Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    Senior Coder
    Join Date
    Jun 2002
    Location
    ColoRockyz
    Posts
    1,646
    Thanks
    1
    Thanked 0 Times in 0 Posts

    HTML shut off in FF 2

    Well, this is weird...something's shutting off the HTML in FF 2
    I've a page with 2 forms submitting to different pages...
    Click the pic for LD video
    Click HD for HD video

    www.buskeralley.com/directors.php
    Zoobie or not Zoobie...That is the problem.
    <body onUnload="flush( ! )">

  • #2
    Senior Coder timgolding's Avatar
    Join Date
    Aug 2006
    Location
    Southampton
    Posts
    1,517
    Thanks
    114
    Thanked 110 Times in 109 Posts
    Im getting a javascript error 'submit is not defined' which means you are using a submit function to submit your form. however you should try

    Code:
    document.fred.submit();
    and
    Code:
    document.bob.submit();
    You can not say you know how to do something, until you can teach it to someone else.

  • #3
    Senior Coder
    Join Date
    Jun 2002
    Location
    ColoRockyz
    Posts
    1,646
    Thanks
    1
    Thanked 0 Times in 0 Posts
    I got it...
    FF2 doesn't like the event handler (onclick) in the img tag but I'll add your suggestion, too.
    Thx
    Zoobie or not Zoobie...That is the problem.
    <body onUnload="flush( ! )">

  • #4
    Senior Coder timgolding's Avatar
    Join Date
    Aug 2006
    Location
    Southampton
    Posts
    1,517
    Thanks
    114
    Thanked 110 Times in 109 Posts
    You could always get the image to run another scrip say

    Code:
    onclick='return submission('bob');'
    And include a function like so

    Code:
    <script type="text/javascript">
    <!--
    function submission(id)
    {
    document.getElementById(id).submit();
    }
    -->
    </script>
    If not maybe turning the images into form buttons
    You can not say you know how to do something, until you can teach it to someone else.

  • #5
    Senior Coder
    Join Date
    Jun 2002
    Location
    ColoRockyz
    Posts
    1,646
    Thanks
    1
    Thanked 0 Times in 0 Posts
    heh heh...I'm trying to simplify this site by popping the video player window with html because I'm already passing vars thru a separate javascript that needs to get gone

    I should have initially set it up to pass the vars with php (which I'm now doing) seeing as it's a php page...instead of js

    No matter...it submits without naming the forms by putting the event handler in the form tag rather than the image...

    Thx
    Zoobie or not Zoobie...That is the problem.
    <body onUnload="flush( ! )">


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •