|
|
|
|
![]() ![]() |
Dec 19 2006, 06:47 AM
Post
#1
|
|
|
Mad Scientist of 2006 ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: [HOSTED] Posts: 750 Joined: 27-April 06 From: Washington State in the USA Member No.: 22,661 ![]() |
This code wont work in Safari, but works fine in Firefox 2. Can someone help. The error pops up however. It just doesn't do anything unless you dont pick one and then it says Pick a Windows tweak, but if you DO pick one it doesnt even try to load anything. Everything you see below is everything inside my PHP Include. If you would like to view my actual site it's http://boozkerstweaks.trap17.com There might be PHP errors and stuff right now, but i am working on those, but this i can not get.
CODE <td valign="top" class="right">
<p class="content_titles">Tweak Archive</p> <p class="right_titles1">Top Tweaks of 2006</p> <!-- Pop Up Script --> <script language="JavaScript"> function openDir( form ) { var newIndex = form.fieldname.selectedIndex; if ( newIndex == 0 ) { alert( "Please select a Windows tweak!" ); } else { cururl = form.fieldname.options[ newIndex ].value; window.location.assign( cururl ); } } </script> <!-- Pop Up Script End --> <form> <select name="fieldname" size="1" onChange="openDir( this.form )"> <option>Top Tweaks</option> <option value=tutorials/2006/11/change_windows_to_vista.php>Change Windows to Look Like Vista</option> </select> </form> </td> </tbody> |
|
|
|
Feb 15 2008, 12:24 PM
Post
#2
|
|
|
Newbie ![]() Group: Members Posts: 3 Joined: 15-February 08 Member No.: 57,891 |
This code wont work in Safari, but works fine in Firefox 2. Can someone help. The error pops up however. It just doesn't do anything unless you dont pick one and then it says Pick a Windows tweak, but if you DO pick one it doesnt even try to load anything. Everything you see below is everything inside my PHP Include. If you would like to view my actual site it's http://boozkerstweaks.trap17.com There might be PHP errors and stuff right now, but i am working on those, but this i can not get. CODE <td valign="top" class="right"> <p class="content_titles">Tweak Archive</p> <p class="right_titles1">Top Tweaks of 2006</p> <!-- Pop Up Script --> <script language="JavaScript"> function openDir( form ) { var newIndex = form.fieldname.selectedIndex; if ( newIndex == 0 ) { alert( "Please select a Windows tweak!" ); } else { cururl = form.fieldname.options[ newIndex ].value; window.location.assign( cururl ); } } </script> <!-- Pop Up Script End --> <form> <select name="fieldname" size="1" onChange="openDir( this.form )"> <option>Top Tweaks</option> <option value=tutorials/2006/11/change_windows_to_vista.php>Change Windows to Look Like Vista</option> </select> </form> </td> </tbody> CODE <!-- Pop Up Script --> <script language="JavaScript"> function openDir( form ) { var newIndex = form.fieldname.selectedIndex; if ( newIndex == 0 ) { alert( "Please select a Windows tweak!" ); } else { cururl = form.fieldname.options[ newIndex ].value; openRequestedPopup(cururl); } } function openRequestedPopup(yoururl) { win = window.open(yoururl,"DescriptiveWindowName", "resizable=no,scrollbars=yes,status=no"); //edit properties as you need } </script> <!-- Pop Up Script End --> Please check also value of variable cururl is coming properly or not. Just check it using… Alert(cururl); If the alert is coming with proper value then comment it and run again. |
|
|
|
![]() ![]() |
Similar Topics
|
Lo-Fi Version | Time is now: 4th July 2008 - 10:45 PM |