I am using the following code to popup a new window that has a calendar in it: <A HREF="javascript:window.open('cal','calwin',width='300',height='300', location='0',menubar='0',toolbar='0',scrollbars='auto')">NewWin</a> the popup window works fine, but the problem is that the parent window refreshes to a non-existent page called '0' after the new window is opened? Here is a bit of the error page: <P><STRONG>Resource not found</STRONG></P> Sorry, the requested resource does not exist.<p>Check the URL and try again.<p> <!-- http://localhost:9090/frames/0 --> The page it is used on is at http://localhost:9090/frames/leads and the popup windoe source is in http://localhost:9090/frames/leads/cal Where is the '0' coming from and why does the page refresh? Thanks, -- Erik Myllymaki erik@pacific-shores.com
you got the wron syntax for the open method of the window object it takes the options as one string with comma delimited items like this: NewWin=window.open(URL,name,"left=640,top=480"); best thing is to write a function to open the window, which assigns it to a new variable like in the statement above this may cause the opener win to change its source cu ----- Original Message ----- From: "Erik Myllymaki" <erik@pacific-shores.com> To: <zope@zope.org> Sent: Wednesday, May 23, 2001 4:26 AM Subject: [Zope] javascript problem
I am using the following code to popup a new window that has a calendar in it:
<A HREF="javascript:window.open('cal','calwin',width='300',height='300', location='0',menubar='0',toolbar='0',scrollbars='auto')">NewWin</a>
the popup window works fine, but the problem is that the parent window refreshes to a non-existent page called '0' after the new window is opened?
Here is a bit of the error page:
<P><STRONG>Resource not found</STRONG></P>
Sorry, the requested resource does not exist.<p>Check the URL and try again.<p> <!-- http://localhost:9090/frames/0 -->
The page it is used on is at http://localhost:9090/frames/leads
and the popup windoe source is in http://localhost:9090/frames/leads/cal
Where is the '0' coming from and why does the page refresh?
Thanks,
--
Erik Myllymaki erik@pacific-shores.com
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Erik Myllymaki wrote:
Where is the '0' coming from and why does the page refresh?
I don't know why it refreshes, but it tries to load '0' because that's the location you gave it. Either remove the location='0' or change it to location='cal' HTH, -- Tim Cook, President - FreePM,Inc. http://www.FreePM.com Office: (731) 884-4126 ONLINE DEMO: http://www.freepm.org:8080/FreePM
participants (3)
-
Erik Myllymaki -
Tim Cook -
zope-mailinglist