Jump to content
xisto Community
BooZker

Problem With Java Script Popup Form Doesnt work in Safari

Recommended Posts

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

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.