Hi,
I am passing my ajax data to a function , and in that function I am trying to write the data to a file. but I am getting the error as:
Uncaught TypeError: e.writeFile is not a function
After googling, it came to my knowledge that I can't create the file in the browser.
SO I can I create...
I tried the following approach :
File1:
window.sessionStorage.setItem("myresult",JSON.stringify(data));
File2:
var result = JSON.parse(sessionStorage.getItem("myresult"));
console.log("Anish");
var i;
for(i=0;i<result.length;i++){
console.log(result);
}
But this didn't worked out. I...
Hi All,
I have two .js files: file1.js and file2.js.
In file1.js, I am able to get the data from the database using ajax call, and it is working fine.
In file2.js , I want to access the ajax success data which I received in file1.js .
How can I do that ?
Any help is appreciated.
Thanks in...
Hi Padonak,
I didn't get what variable you are referring to.
Please see my whole code below :
const compare_search_url = window.location.href
const search_wrapper_first = document.querySelectorAll(".search-input")[0];
const inputBox = document.getElementById("compare_input_first");
const...
Hi All,
My code is as follows:
function show_Suggestions_first_product(list) {
let listData;
if (!list.length) {
userValue = inputBox.value;
listData = '<li>' + userValue + '</li>';
} else {
listData = list.join('');
}
console.log(listData);
//...