window.open, not a function

Brian
06-07-2004, 02:22 PM
I am having major problems with an error, window.open "is not a function"
it is just a simple window.open... var newSiteWindow = open("scbtemplate.htm","siteWindow","width=300,height=400");
If I use just open(), it says open not defined.
It diplays the alerts I have in the function, and I can pull attributes from the circle elements. Just when it gets to the window.open it doesn't like.

If I place the code in an html page, it works.
I have an .asp page generating an svg document and generating circle elements from a database. I want to click on the circle element to have another small window open.
It was working at one time when the page was just a svg document.

Could I be referencing it wrong in some way??
I have looked in these forums and others, searched the Internet for any answer and have yet to find the way to make it work.

Any ideas??

Thanks, Brian

Anonymous
06-07-2004, 02:57 PM
Do you try only
open("scbtemplate.htm","","width=300,height=400")

I use it to open new window from svg with ASV3 + IE and it run ....

Michel

Anonymous
06-08-2004, 07:50 AM
Michel,

yes, if I try open("scbtemplate.htm","","width=300,height=400"), it says "open is not defined"
if I try self.open("scbtemplate.htm","","width=300,height=400"), it says "self is not defined"
window.open, it says "window.open is not a function"

I am using ASV3 and IE6.

I am wondering if I am in the right spot when I call the open(). ie.. top of the document, things I have read about the opener window.
I don't know, I just trying to guess at anything.

Is this not a common error??

Thanks, Brian

Anonymous
06-08-2004, 08:01 AM
Michel,

by the way, I was trying to look at your page you mentioned in other posts
http://pilat.free.fr/english/svg_lib/index.htm.

It's not working. I was hoping to look at your examples trying to find a fix.
Is your page down, gone??

Brian

Anonymous
06-08-2004, 08:24 AM
Michel,

If I load just the .svg page, I can click on the circle and it opens a new window, no problem.
If I load the .asp page that generates the svg with response.write's and such, I get the errors.
The two pages are basically the same, just looping through a database to create circle elements.

I don't know, any ideas??

Brian

Anonymous
06-08-2004, 08:36 AM
Michel,
by the way, I was trying to look at your page you mentioned in other posts
http://pilat.free.fr/english/svg_lib/index.htm.
It's not working. I was hoping to look at your examples trying to find a fix.
Is your page down, gone??
Brian
It's only problem with dot at the end of link ....
http://pilat.free.fr/english/svg_lib/index.htm

This run ...

Michel

zbob
06-17-2004, 08:09 AM
I am having similar problems. Window.open works when svg is embedded in html file but does not work when svg is generated from the server. I wonder if this is a know problem because I seem to recall a similar problem when trying to use tooltips popups.

zbob

Anonymous
06-25-2004, 12:19 PM
zbob,

Yea, thats the problem I am having, still do not have it figured out.

This didn't work for me, but you can try "self.open" or just "open"
I get "self(open) is not defined" or "window.open is not a function".

I am stuck. :(

If you get it figured out, let me know.

Thanks,
Brian

FzF
09-06-2004, 03:28 AM
I got the same problem : check if you don't have a variable in your javascript called "open".
I had : var open="blabla", so window.open(...) used my variable instead of the javascript function.

SG
11-21-2004, 02:42 PM
Try:

parent.window.open(...)

 
Web mp2kmag.com
mapforums.com

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum