Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Ajax Error

Ajax Error

Scheduled Pinned Locked Moved ASP.NET
javahtmlvisual-studiotoolshelp
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    salmonraju
    wrote on last edited by
    #1

    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

    N P 2 Replies Last reply
    0
    • S salmonraju

      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

      N Offline
      N Offline
      Not Active
      wrote on last edited by
      #2

      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

      1 Reply Last reply
      0
      • S salmonraju

        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

        P Offline
        P Offline
        puviyarasan j
        wrote on last edited by
        #3

        Create AJAX enabled website to resolve this issue.

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups