PDA

View Full Version : HTML shut off in FF 2



zoobie
04-01-2009, 09:40 AM
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

timgolding
04-01-2009, 10:17 AM
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



document.fred.submit();

and


document.bob.submit();

zoobie
04-01-2009, 10:24 AM
I got it...
FF2 doesn't like the event handler (onclick) in the img tag but I'll add your suggestion, too.
Thx

timgolding
04-01-2009, 10:40 AM
You could always get the image to run another scrip say



onclick='return submission('bob');'


And include a function like so



<script type="text/javascript">
<!--
function submission(id)
{
document.getElementById(id).submit();
}
-->
</script>


If not maybe turning the images into form buttons

zoobie
04-01-2009, 11:13 AM
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