Ajax Error
-
Hi, I am using ajax for my existing VS 2005 Web application. I have applied all the necessary modification to Web.config. My application is working fine when we opening the page. We are also providing Back and Forward links to user ( similar to browser Back and Forward for history) . When user visits 2nd page, we are saving the generated HTML of first page into a java script variable .like below. var html = document.frames[“MyFrame”].document.documentElement.outerHTML; when user clicks on Back link we displaying the page from stored java script variable. Like below var doc = document.frames[“MyFrame”].document.open(); doc.write(html); Here we are getting error saying “Microsoft JScript runtime error: 'Sys' is undefined”. Sys.WebForms.PageRequestManager._initialize('ctl00', document.getElementById('Form1')); Thanks, Salmon
-
Hi, I am using ajax for my existing VS 2005 Web application. I have applied all the necessary modification to Web.config. My application is working fine when we opening the page. We are also providing Back and Forward links to user ( similar to browser Back and Forward for history) . When user visits 2nd page, we are saving the generated HTML of first page into a java script variable .like below. var html = document.frames[“MyFrame”].document.documentElement.outerHTML; when user clicks on Back link we displaying the page from stored java script variable. Like below var doc = document.frames[“MyFrame”].document.open(); doc.write(html); Here we are getting error saying “Microsoft JScript runtime error: 'Sys' is undefined”. Sys.WebForms.PageRequestManager._initialize('ctl00', document.getElementById('Form1')); Thanks, Salmon
salmonraju wrote:
we are saving the generated HTML of first page into a java script variable
I'm sorry but this is horrendously stupid idea. This falls under the just because you can doesn't me you should rule. Just navigate back to the page in question and let the rendering engine do what it is meant to. There are plenty of examples of using the back an forward buttons with Ajax
I know the language. I've read a book. - _Madmatt
-
Hi, I am using ajax for my existing VS 2005 Web application. I have applied all the necessary modification to Web.config. My application is working fine when we opening the page. We are also providing Back and Forward links to user ( similar to browser Back and Forward for history) . When user visits 2nd page, we are saving the generated HTML of first page into a java script variable .like below. var html = document.frames[“MyFrame”].document.documentElement.outerHTML; when user clicks on Back link we displaying the page from stored java script variable. Like below var doc = document.frames[“MyFrame”].document.open(); doc.write(html); Here we are getting error saying “Microsoft JScript runtime error: 'Sys' is undefined”. Sys.WebForms.PageRequestManager._initialize('ctl00', document.getElementById('Form1')); Thanks, Salmon
Create AJAX enabled website to resolve this issue.