Click here to Skip to main content
15,886,788 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: How to return to parent apsx page from a pop-up html page? Pin
GeoNav25-Nov-10 16:44
GeoNav25-Nov-10 16:44 
GeneralRe: How to return to parent apsx page from a pop-up html page? Pin
GeoNav26-Nov-10 4:36
GeoNav26-Nov-10 4:36 
Questionhorizontal menu with vertical submenu Pin
AndyInUK23-Nov-10 5:03
AndyInUK23-Nov-10 5:03 
Answerhttp://www.devexpress.com/ Pin
David Mujica23-Nov-10 5:42
David Mujica23-Nov-10 5:42 
AnswerRe: horizontal menu with vertical submenu Pin
T M Gray23-Nov-10 10:24
T M Gray23-Nov-10 10:24 
GeneralRe: horizontal menu with vertical submenu Pin
AndyInUK23-Nov-10 22:12
AndyInUK23-Nov-10 22:12 
AnswerRe: horizontal menu with vertical submenu Pin
Luc Pattyn23-Nov-10 11:36
sitebuilderLuc Pattyn23-Nov-10 11:36 
QuestionAccess denied for javascript object Pin
raghvendrapanda23-Nov-10 2:02
raghvendrapanda23-Nov-10 2:02 
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>";
// string strOut = @"<SCRIPT language='JavaScript'>try{var tparent;if(parent.EnableClock == null){if(parent.parent.EnableClock == null){tparent = parent.parent.parent;}else{tparent = parent.parent;}}else{tparent = parent;} tparent.resetClock();tparent.EnableClock = true;tparent.startClock(" + Session.Timeout.ToString() + ");}catch(err){alert(err.message);}</SCRIPT>";
Response.Write(strOut);



The error that i get is when the debugger goes on "parent.parent",it says "ACCESS IS DENIED"

Please help
AnswerRe: Access denied for javascript object Pin
Not Active23-Nov-10 2:30
mentorNot Active23-Nov-10 2:30 
Questionwindow.showModalDialog Pin
chayale23-Nov-10 0:49
chayale23-Nov-10 0:49 
AnswerRe: window.showModalDialog Pin
Sebastien T.23-Nov-10 1:54
Sebastien T.23-Nov-10 1:54 
QuestionImage Preloading for image gallery Pin
Tridip Bhattacharjee23-Nov-10 0:20
professionalTridip Bhattacharjee23-Nov-10 0:20 
AnswerRe: Image Preloading for image gallery Pin
Not Active23-Nov-10 2:28
mentorNot Active23-Nov-10 2:28 
QuestionThe Hidden Field still carries the Old Value on the First postback Pin
Vimalsoft(Pty) Ltd23-Nov-10 0:11
professionalVimalsoft(Pty) Ltd23-Nov-10 0:11 
AnswerRe: The Hidden Field still carries the Old Value on the First postback Pin
Not Active23-Nov-10 2:25
mentorNot Active23-Nov-10 2:25 
AnswerRe: The Hidden Field still carries the Old Value on the First postback Pin
T M Gray23-Nov-10 10:15
T M Gray23-Nov-10 10:15 
GeneralRe: The Hidden Field still carries the Old Value on the First postback Pin
Vimalsoft(Pty) Ltd23-Nov-10 18:55
professionalVimalsoft(Pty) Ltd23-Nov-10 18:55 
GeneralRe: The Hidden Field still carries the Old Value on the First postback Pin
Chris Quinn30-Nov-10 3:30
Chris Quinn30-Nov-10 3:30 
GeneralRe: The Hidden Field still carries the Old Value on the First postback Pin
Vimalsoft(Pty) Ltd30-Nov-10 4:39
professionalVimalsoft(Pty) Ltd30-Nov-10 4:39 
QuestionHow to call a javascript function in content place holder when the content place holder refreshes? Pin
Varun Sareen22-Nov-10 23:09
Varun Sareen22-Nov-10 23:09 
AnswerRe: How to call a javascript function in content place holder when the content place holder refreshes? Pin
Not Active23-Nov-10 2:19
mentorNot Active23-Nov-10 2:19 
QuestionEncrypt and Decrypt Excel columns Pin
padmanabhan N22-Nov-10 16:29
padmanabhan N22-Nov-10 16:29 
AnswerRe: Encrypt and Decrypt Excel columns Pin
T M Gray23-Nov-10 10:48
T M Gray23-Nov-10 10:48 
QuestionAjaxControlToolkit.TabContainer Pin
treuveni22-Nov-10 4:47
treuveni22-Nov-10 4:47 
AnswerRe: AjaxControlToolkit.TabContainer Pin
T M Gray23-Nov-10 10:55
T M Gray23-Nov-10 10:55 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.