Jun 21, 2007 #1 gary1975 Programmer Oct 12, 2004 8 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 Jun 25, 2002 1,952 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 Oct 12, 2004 8 GB Hi Yes the function is in the popup window Thanks Gary Upvote 0 Downvote
Jun 21, 2007 #4 BillyRayPreachersSon Programmer Dec 8, 2003 17,047 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 Oct 12, 2004 8 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