Welcome Guest ( Log In | Register)



 
Reply to this topicStart new topic
> Problem With Java Script Popup Form, Doesnt work in Safari
BooZker
post 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
T17 GFX Crew



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>
Go to the top of the page
 
+Quote Post
avara.badal
post Feb 15 2008, 12:24 PM
Post #2


Newbie
*

Group: Members
Posts: 3
Joined: 15-February 08
Member No.: 57,891



QUOTE(BooZker @ Dec 19 2006, 12:17 PM) *
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 -->
&lt;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.

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.
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic

Collapse

> Similar Topics

Topics Topics
  1. Php Quiz Script(20)
  2. Free Weather Feed Script(1)
  3. Form To Php Mail. Attachment(13)
  4. My Dog Pukes Regularly(16)
  5. Linux Question: Amarok And File Permissions(4)
  6. Idea For A Overunity/perpetual Motion Device(9)
  7. Remote Assistance Problem(7)
  8. Evilboard (forum Software) - Multiple Categorys - Don't Work :((6)
  9. Php Msn Bot Does Not Work Right(2)
  10. How To Reformat Your Harddrive...(10)
  11. Html Code Tester. Online Script(15)
  12. Invite Script..(1)
  13. Need Help Installing Dolphin Community Script!(5)
  14. Mysql-essential-5.0.51 Installion Problem(2)
  15. Can Anyone Help Me With My Graphic Card - 8600 Gt [resolved](15)
  1. Isync On Tiger To Work With A Samsung D520(3)
  2. Flash Problem(9)
  3. I'm Having A Strange Problem With My Ping In Cs:s(27)
  4. Html Form!(4)
  5. Issue With Windows Vista - Sound Card Acting Wierd [resolved](4)
  6. Credits Problem(14)
  7. Advice On A Girl From Work.(9)
  8. Application Form [approved](2)
  9. Guessing Php Script(0)
  10. Why My Computer Freezez(4)
  11. Learn Java Programming Language Online Step By Step(0)
  12. Phpmyadmin Problem(0)
  13. Weird Write Problem(0)


 



- Lo-Fi Version Time is now: 4th July 2008 - 10:45 PM