Client Side Things
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsOther TechnologiesClient Side Things

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
  #1  
Old October 25th, 2004, 11:55 AM
spank spank is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Maryland, USA
Posts: 48 spank User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
Works in Mozilla, not in IE

Can someone tell me why this works in Mozilla and not in IE? I'm new to javascript and have been unable to figure this one out.


This is a snippet from the page that calls the javascript function
php Code:
Original - php Code
  1.  
  2. <td class="data" width="10%"><a href=" javascript: openWinClosedCalls('viewClosed.php?id=$id')" class="calls">".$id."</a></td>


Here is the actual function
php Code:
Original - php Code
  1.  
  2. function openWinClosedCalls(url)
  3.     {
  4.          window.open(url,'Closed Call','width=650,height=400,resizable=no');
  5.         }


Any help would be greatly appreciated. I know that your time is important and I thank you in advance for spending some of it on my problem.

Reply With Quote
  #2  
Old October 26th, 2004, 01:29 AM
jcaughel jcaughel is offline
Contributing User
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Buffalo, NY, USA
Posts: 283 jcaughel User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 11 m 4 sec
Reputation Power: 2
Send a message via ICQ to jcaughel Send a message via AIM to jcaughel Send a message via Yahoo to jcaughel
RE: Works in Mozilla, not in IE

Hello:

When you say "it doesn't work in IE," what is the behavior you are seeing? Is there a script error? If so, what are the details of the error?

-Jeff

Reply With Quote
  #3  
Old October 26th, 2004, 10:06 AM
spank spank is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Maryland, USA
Posts: 48 spank User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
RE: Works in Mozilla, not in IE

I get an error saying that the 'url' element of my function is an invalid argument. I'm not sure why Mozilla doesn't see it that way.

Reply With Quote
  #4  
Old October 29th, 2004, 12:55 PM
ivo ivo is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: cologne,germany
Posts: 126 ivo User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
RE: Works in Mozilla, not in IE

the space in the window name 'Closed Call' is the problem. remove it and it will work.

Reply With Quote
  #5  
Old October 29th, 2004, 01:19 PM
spank spank is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Maryland, USA
Posts: 48 spank User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
RE: Works in Mozilla, not in IE

How simple! You would think that someone would tell you that out there on the great, big WWW.

Thank you VERY much Ivo. I really appreciate it.

Reply With Quote
  #6  
Old October 29th, 2004, 06:24 PM
ivo ivo is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: cologne,germany
Posts: 126 ivo User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
RE: RE: Works in Mozilla, not in IE


Quote:
How simple! You would think that someone would tell you that out there on the great, big WWW.


at least someone did ;-)
i think you made this error, because you were not aware, that the second parameter of window.open is the name of the window (and not the title).
and for names the same rules as for variables apply (no space, only numbers and letters, start with a letter.)
probably you would never try:
var a var='oops';

its quite dangerous to use mozilla for development.
it became a very error-tolerant browser.
thats a pity, because mozillas error-messages are much better than internetexplorers ;-)



Reply With Quote
  #7  
Old October 29th, 2004, 06:57 PM
spank spank is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Maryland, USA
Posts: 48 spank User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
RE: Works in Mozilla, not in IE

That sounds like a good idea. I usually try Mozilla first (since that's what I use) and then try the page in IE. This is the first time I've had a problem, but it's also the first time that I've tried using Javascript. You are correct in your statement that I was placing the window title in the second parameter. Thanks again for catching my problem and pointing it out. I really appreciate it.

Reply With Quote
Reply

Viewing: Codewalkers ForumsOther TechnologiesClient Side Things > Works in Mozilla, not in IE


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway