Go Back   Dynamic Drive Forums > General Coding > JavaScript
Search Dynamic Drive Forums:

Reply
 
Thread Tools Search this Thread
  #1  
Old 11-13-2004, 03:49 PM
NoClue NoClue is offline
Junior Coders
 
Join Date: Nov 2004
Posts: 39
Thanks: 0
Thanked 0 Times in 0 Posts
Default Pop-up Window Stopped Working

I'm not sure why my pop-up window just stopped working. I'm using a simple code - here it is:

<script type="text/javascript">
function openpopup(popurl) {
winpops = window.open(popurl,"","width=650, height=400, left=45, top=15, scrollbars=yes, menubar=yes, resizable=0")
}
</script>

<a href="javascript:Openpopup('http://www.geocities.com/omatkd/HolidayCelebration.htm')">Click here
for more info...</a>

Any ideas? Thanks!
Reply With Quote
  #2  
Old 11-13-2004, 07:27 PM
Odin Odin is offline
Junior Coders
 
Join Date: Sep 2004
Location: UK
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
Default

The function is case sensitive, you need to use either Openpopup or openpopup, in both sections.
Reply With Quote
  #3  
Old 11-14-2004, 03:38 PM
NoClue NoClue is offline
Junior Coders
 
Join Date: Nov 2004
Posts: 39
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Actually the reason why the "O" in the second openpopup is in caps is because when I was posting this message the purple smilie face keeps appearing rather than "o" so I changed it. But in my acutal code both are the same....
Reply With Quote
  #4  
Old 11-14-2004, 10:15 PM
Nate_Bro Nate_Bro is offline
Junior Coders
 
Join Date: Sep 2004
Posts: 66
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hmmm.... IDK what to tell you, i just used it and it worked, i just changed the "O" to "o" and like you said, the one in your script is an "o" well, got me, sorry, but it works ok for me..
Reply With Quote
  #5  
Old 11-15-2004, 12:56 AM
Odin Odin is offline
Junior Coders
 
Join Date: Sep 2004
Location: UK
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Well I checked your site and the popup worked for me, using Firefox. I also tried in IE and it worked. The only problem I see is that 2 of your links (Math Trick, What's Your Sign?) have a semi-colon at the end of the javascript:
<a href="javascript:Openpopup('http://www.geocities.com/omatkd/[page].htm');">
If those 2 popups are the ones causing a problem, try removing it. If not, what browser are you using?
Reply With Quote
  #6  
Old 11-17-2004, 11:16 PM
NoClue NoClue is offline
Junior Coders
 
Join Date: Nov 2004
Posts: 39
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks for your response. I really don't know why it wasn't working at the time but now it is! Thanks again!
Reply With Quote
Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

Forum Jump


All times are GMT. The time now is 01:06 AM.

Home - Contact Us - Archives - Link to DD - Top 

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.