BooZker 0 Report post Posted December 19, 2006 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://forums.xisto.com/no_longer_exists/ There might be PHP errors and stuff right now, but i am working on those, but this i can not get. <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> Share this post Link to post Share on other sites
avara.badal 0 Report post Posted February 15, 2008 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://forums.xisto.com/no_longer_exists/ There might be PHP errors and stuff right now, but i am working on those, but this i can not get. <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> <!-- 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. Notice from rvalkass: Please remember to use the correct BBCodes in your posts. Code goes in [ code ] tags (without the spaces). Also, please avoid making double posts. You can use the edit button to add to your post if no-one else has replied. Share this post Link to post Share on other sites