MajorGeeks Support Forums IOBit Software

Go Back   MajorGeeks Support Forums > Majorgeeks.Com - Support Forums > Programming
Register FAQ Members List Calendar Casino Mark Forums Read

Programming Place to discuss programming including HTML, Java, C++, MySQL and others.


Reply
 
Thread Tools Display Modes
  #1  
Old 05-15-07, 13:09
Computer Acolyte Computer Acolyte is offline
Senior Member
 
Join Date: Dec 2003
Posts: 105
Thanks: 0
Thanked 0 Times in 0 Posts
Default Javascript help

Why is this not working under IE?

Code:
<script type="text/javascript" language="JavaScript">

function PopUp(url) {
window.open(url,"popup", 'scrollbars, width=750, height=500');
}

</script>


<a href="javascript:PopUp('popup.html')">click here</a>
__________________
AMD Athlon 64 3200+ 2.2 GHz
1GB DDR RAM
GeForce 7600 GS with 256 MB
Windows XP
LG Flatron F700B monitor
Reply With Quote
Sponsored links
  #2  
Old 05-16-07, 07:12
Mada_Milty's Avatar
Mada_Milty Mada_Milty is offline
Major Geek
 
Join Date: Aug 2005
Location: Ontario, Canada
Posts: 4,880
Thanks: 4
Thanked 52 Times in 48 Posts
Default Re: Javascript help

What version of IE??
Works fine for me in IE7.

The only thing that held me up is not having access to popup.html... is this file in the same directory as this page???

The only other thing I could think of is your security settings.
IE7 blocks javascript by default... I had to allow execution of your script... maybe you've got javascript disabled???
__________________
A+, Project+ Certified Network Engineering Grad
5 years Sys Admin exp. 11 years web dev exp.
Reply With Quote
  #3  
Old 05-16-07, 13:51
Computer Acolyte Computer Acolyte is offline
Senior Member
 
Join Date: Dec 2003
Posts: 105
Thanks: 0
Thanked 0 Times in 0 Posts
Default Re: Javascript help

Well, see for yourself: http://blackriven.5gbfree.com/bands/JohnPetrucci.html
Scroll down to discography and videos.

I'm also using IE7. It works fine on Firefox.
__________________
AMD Athlon 64 3200+ 2.2 GHz
1GB DDR RAM
GeForce 7600 GS with 256 MB
Windows XP
LG Flatron F700B monitor
Reply With Quote
  #4  
Old 05-17-07, 11:10
Mada_Milty's Avatar
Mada_Milty Mada_Milty is offline
Major Geek
 
Join Date: Aug 2005
Location: Ontario, Canada
Posts: 4,880
Thanks: 4
Thanked 52 Times in 48 Posts
Default Re: Javascript help

From this link:

Quote:
Originally Posted by w3schools.com
Always Quote Attribute Values

Attribute values should always be enclosed in quotes. Double style quotes are the most common, but single style quotes are also allowed.

In some rare situations, like when the attribute value itself contains quotes, it is necessary to use single quotes:

name='John "ShotGun" Nelson'
Does it work if we change your tag to

Code:
<a href='javascript:PopUp("popup.html")'>click here</a>
???
__________________
A+, Project+ Certified Network Engineering Grad
5 years Sys Admin exp. 11 years web dev exp.
Reply With Quote
  #5  
Old 05-19-07, 16:50
Computer Acolyte Computer Acolyte is offline
Senior Member
 
Join Date: Dec 2003
Posts: 105
Thanks: 0
Thanked 0 Times in 0 Posts
Default Re: Javascript help

Nope it still doesn't work.
__________________
AMD Athlon 64 3200+ 2.2 GHz
1GB DDR RAM
GeForce 7600 GS with 256 MB
Windows XP
LG Flatron F700B monitor
Reply With Quote
Sponsored links
Reply

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Mac and javascript eggamagga Macintosh 3 08-23-06 05:14
Javascript Uproot Software 2 01-22-06 15:47
javascript alf3367 Software 1 06-11-05 14:17
javascript alf3367 Networking 0 06-10-05 13:01
anyone know javascript? mr_flea Programming 2 11-01-03 16:24


All times are GMT -5. The time now is 02:20.


MajorGeeks.Com Home Page
| Admin Tools | All In One | Anti-Spyware | Anti-Virus | Appearance | Backup | Benchmarking | BIOS | Browsers | Covert Ops |
Data Recovery | Diagnostics | Drive Cleaners | Drive Utilities | Drivers | Driver Tools Ergonomics | Firewalls | Games | Game Tweaks | Graphics | Input Devices | Internet Tools | Macintosh | Mail Utilities | Memory | Messaging | Monitoring | Microsoft | Multimedia | Networking | Office Tools | Process Management | Processor | Registry | Security | System Info | Toys | Video | Miscellaneous
|

-->
Powered by vBulletin® Version 3.8.4
Copyright © 2009 vBulletin Solutions, Inc. All rights reserved.
Ad Management by RedTyger