cesarvr / pdf-generator

Cordova plugin to generate pdf in the client-side
MIT License
107 stars 61 forks source link

javascript local storage #63

Open ahmadsolehin opened 6 years ago

ahmadsolehin commented 6 years ago

hello.. local storage won't work and display.. i just put printData.html in my server.. and retrieve using url to transform into pdf button but it won't show the data i save in my local storage..

cesarvr commented 6 years ago

Can you put a code snippet ? , but I suspect that if you pass the page to the plugin they won't share the same browser so the local storage on one would be isolated from the other one.

ahmadsolehin commented 6 years ago

after i figure it out .. i think this happen is because of I'm using a jquery instead of javascript..

screen shot 2018-01-26 at 12 28 02 pm
ahmadsolehin commented 6 years ago

the code of mine jquery is simple and like this.. but i think, it cannot retrieve value is because ajax.googleapis is from external resources .. am i right ?

screen shot 2018-01-26 at 12 29 13 pm
somedeveloperguy commented 5 years ago

Hi ahmadsolehin. I am having the same problem. Have you already found a solution for this?

ahmadsolehin commented 5 years ago

Hi ahmadsolehin. I am having the same problem. Have you already found a solution for this?

Yes, i think i have found the solution

ahmadsolehin commented 5 years ago

Hi ahmadsolehin. I am having the same problem. Have you already found a solution for this?

Your problem is , data is saved in local storage but it didn't appear when u try to retrieve it to pdf ?