Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

Recent content by anishtulsyan22

  1. anishtulsyan22

    JavaScript Javascript Ajax success data to be accessible in another Javascript file .

    Is there any way by which we can export ajax success data ?
  2. anishtulsyan22

    JavaScript Javascript Ajax success data to be accessible in another Javascript file .

    And as per your reply, before reading, I have to create the file. Please help me on this .
  3. anishtulsyan22

    JavaScript Javascript Ajax success data to be accessible in another Javascript file .

    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...
  4. anishtulsyan22

    JavaScript Javascript Ajax success data to be accessible in another Javascript file .

    I am asking this, because when I did it in the same file, it worked. But when I pasted the code of getitem in second file, it didn't worked. Thanks.
  5. anishtulsyan22

    JavaScript Javascript Ajax success data to be accessible in another Javascript file .

    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...
  6. anishtulsyan22

    JavaScript Javascript Ajax success data to be accessible in another Javascript file .

    Using localstorage setitem in first file , and getitem in second file I tried, but it didn't work Can you pls send me a sample code to try.
  7. anishtulsyan22

    JavaScript Javascript Ajax success data to be accessible in another Javascript file .

    How to import it in another file . Will simple import work . Can u pls send me a sample of working code? Thanks
  8. anishtulsyan22

    JavaScript Javascript Ajax success data to be accessible in another Javascript file .

    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...
  9. anishtulsyan22

    JavaScript Javascript InnerHtml not working

    Hi All, I am closing this issue, Actually it was a CSS Issue. Thanks for your time and effort. With Best Regards, Anish Tulsyan.
  10. anishtulsyan22

    JavaScript Javascript InnerHtml not working

    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...
  11. anishtulsyan22

    JavaScript Javascript InnerHtml not working

    <div class="autocom_box" id="first_autocomplete_box"></div>
  12. anishtulsyan22

    JavaScript Javascript InnerHtml not working

    Hi Padonak, This is the code : const suggbox = document.getElementById("first_autocomplete_box"); So it's a ID Name. Regards, Anish.
  13. anishtulsyan22

    JavaScript Javascript InnerHtml not working

    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); //...
  14. anishtulsyan22

    JavaScript JS is not executing one line of code

    Hi Padonak, Thanks a lot. It solved my problem. With Best Regards, Anish Tulsyan
Back
Top Bottom