Jun 21, 2007 #1 gary1975 Programmer Joined Oct 12, 2004 Messages 8 Location GB Hi I am trying to access a function from a window I open, The code is below. var thewin = window.open('../index.asp', "oldwin"); thewin.thetest(); But I can't seem to get it to access the function thetest() Any Ideas? Thanks Gary
Hi I am trying to access a function from a window I open, The code is below. var thewin = window.open('../index.asp', "oldwin"); thewin.thetest(); But I can't seem to get it to access the function thetest() Any Ideas? Thanks Gary
Jun 21, 2007 #2 adam0101 Programmer Joined Jun 25, 2002 Messages 1,952 Location US Are you sure the function exists in the popup window (meaning that the page is loaded) before you call the function? Adam http://adameslinger.blogspot.com/ Upvote 0 Downvote
Are you sure the function exists in the popup window (meaning that the page is loaded) before you call the function? Adam http://adameslinger.blogspot.com/
Jun 21, 2007 Thread starter #3 gary1975 Programmer Joined Oct 12, 2004 Messages 8 Location GB Hi Yes the function is in the popup window Thanks Gary Upvote 0 Downvote
Jun 21, 2007 #4 BillyRayPreachersSon Programmer Joined Dec 8, 2003 Messages 17,047 Location GB But has the page in the popup finished loading before you try and call the function? Also, what error do you get? Dan Coedit Limited - Delivering standards compliant, accessible web solutions [tt]Dan's Page [blue]@[/blue] Code Couch http://www.codecouch.com/dan/[/tt] Upvote 0 Downvote
But has the page in the popup finished loading before you try and call the function? Also, what error do you get? Dan Coedit Limited - Delivering standards compliant, accessible web solutions [tt]Dan's Page [blue]@[/blue] Code Couch http://www.codecouch.com/dan/[/tt]
Jun 21, 2007 Thread starter #5 gary1975 Programmer Joined Oct 12, 2004 Messages 8 Location GB Hi No it hasn't, that might be the problem then. The error I get is 'Object doesn't support this property or method' Thanks again Gary Upvote 0 Downvote
Hi No it hasn't, that might be the problem then. The error I get is 'Object doesn't support this property or method' Thanks again Gary