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. Access denied for javascript object

Access denied for javascript object

Scheduled Pinned Locked Moved ASP.NET
javajavascriptsysadmindebuggingtools
2 Posts 2 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.
  • R Offline
    R Offline
    raghvendrapanda
    wrote on last edited by
    #1

    Hy, I have two application which are running simultaneously (p1,p2). If i am working on application p1, i have to restart the clock of application p2 also.For this i have written a java script code which works perfectly on my machine but gives error in server. Here is my code string strOut = @" <SCRIPT language='JavaScript'> var tparent; alert('In PC.SearchResult.ascx Script'); debugger; try{ if(parent.EnableClock == null) { alert(' In PC.SearchResult.ascx Script:parent.enableclock=null'); alert(parent.parent.EnableClock); if(parent.parent.EnableClock == null) { alert('In PC.SearchResult.ascx Script: parent.parent.enableclock=null'); tparent = parent.parent.parent; } else { alert('In PC.SearchResult.ascx Script: parent.parent.enableclock!=null'); tparent = parent.parent; } } else { alert('In PC.SearchResult.ascx Script: parent.enableclock!=null'); tparent = parent; } alert('The value of tparent is'); alert(tparent.value); tparent.resetClock(); tparent.EnableClock = true; alert(" + Session.Timeout.ToString() + ");" + "tparent.startClock(" + Session.Timeout.ToString() + " );} catch (err){alert(err.message)}</SCRIPT>";

    N 1 Reply Last reply
    0
    • R raghvendrapanda

      Hy, I have two application which are running simultaneously (p1,p2). If i am working on application p1, i have to restart the clock of application p2 also.For this i have written a java script code which works perfectly on my machine but gives error in server. Here is my code string strOut = @" <SCRIPT language='JavaScript'> var tparent; alert('In PC.SearchResult.ascx Script'); debugger; try{ if(parent.EnableClock == null) { alert(' In PC.SearchResult.ascx Script:parent.enableclock=null'); alert(parent.parent.EnableClock); if(parent.parent.EnableClock == null) { alert('In PC.SearchResult.ascx Script: parent.parent.enableclock=null'); tparent = parent.parent.parent; } else { alert('In PC.SearchResult.ascx Script: parent.parent.enableclock!=null'); tparent = parent.parent; } } else { alert('In PC.SearchResult.ascx Script: parent.enableclock!=null'); tparent = parent; } alert('The value of tparent is'); alert(tparent.value); tparent.resetClock(); tparent.EnableClock = true; alert(" + Session.Timeout.ToString() + ");" + "tparent.startClock(" + Session.Timeout.ToString() + " );} catch (err){alert(err.message)}</SCRIPT>";

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

      Please read and understand the guidelines for this forum. When posting code snippets use the pre tags, i.e. the "code block" menu item above the textbox where you entered your message.


      I know the language. I've read a book. - _Madmatt

      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