Java script code being replaced by code in target page    
This topic is assigned to Dmitry

Mar 26, 2011 04:37 PM
Finally the 4 apps are now nearly ready for SC submission.
1 problem though:
I use javascript to check if the device is online. If its online i redirect to one page and if off line I redirect to another page.I am using the window.location function to redirect. 
This works fine if I save the code and dont need to edit again.
If I try to edit the page later the javascript is replaced by the code on the redirected page and the online test is over written.

I have the same problem with a random quote generator, where i write text on the page using show function. on edit it leaves behind the old quote and puts the new one after it instead of just showing the new one.

Any ideas on how I can resolve these issues?

how this issue have been resolved

Dec 13, 2018 04:15 PM
how this issue have been resolved