XML Elves

XML Elves

<community>of XML and SVG Developers</community>


window.open, not a function

This is a discussion on window.open, not a function within the SVG Questions forums, part of the SVG Forums category; I am having major problems with an error, window.open "is not a function" it is just a simple window.open... var ...


Go Back   XML Elves > SVG Forums > SVG Questions

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Notices


Click here to register

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-07-2004, 03:22 PM
Brian
Guest
 
Posts: n/a
Default window.open, not a function

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,hei ght=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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 06-07-2004, 03:57 PM
Anonymous
Guest
 
Posts: n/a
Default window.open, not a function

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 06-08-2004, 08:50 AM
Anonymous
Guest
 
Posts: n/a
Default window.open, not a function

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=4 00"), 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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 06-08-2004, 09:01 AM
Anonymous
Guest
 
Posts: n/a
Default window.open, not a function

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 06-08-2004, 09:24 AM
Anonymous
Guest
 
Posts: n/a
Default window.open, not a function

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 06-08-2004, 09:36 AM
Anonymous
Guest
 
Posts: n/a
Default window.open, not a function

Quote:
Originally Posted by Anonymous
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 06-17-2004, 09:09 AM
zbob
Guest
 
Posts: n/a
Default open.window

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 06-25-2004, 01:19 PM
Anonymous
Guest
 
Posts: n/a
Default window.open, not a function

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 09-06-2004, 04:28 AM
FzF
Guest
 
Posts: n/a
Default Re: window.open, not a function

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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 11-21-2004, 03:42 PM
SG
Guest
 
Posts: n/a
Default window.open, not a function

Try:

parent.window.open(...)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Tags
function, windowopen


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT -6. The time now is 07:32 PM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0

Inkjet Printer Inks...
Buy your inkjet printer inks at great savings.

HARD DISK DRIVE DATA RECOVERY LANCASHIRE
Need hard disk drive data recovery? Visit this link for cost effective and professional data recovery.

ink cartridges Free UK Delivery on ink cartridges such as Canon, Dell, Epson, hp & Lexmark.

1 2 3 4 5 6 7 8 9 10