Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

JavaScript Forum


You are currently viewing our JavaScript Forum as a guest. Please register to participate.
Login



Reply
Another script, works fine in IE, but in FF, it triggers the submit button
Old 03-23-2007, 02:16 AM Another script, works fine in IE, but in FF, it triggers the submit button
Extreme Talker

Posts: 163
Name: James
Location: Australia
Trades: 0
I have a form page, of whereby one clicks on a button, that is to activate a Javascript function, of which is to help navigate around the form.


In IE, that is what happens. To click the up button, the menu of which is shown inside a textarea tag, scrolls up.

However in FF, it seems to trigger the 'submit' function.


What have I done wrong.

Should I have something in each of the functions that would abort any submit action.

I do not have any doc type tag, I do not see the need for them, at least they do not seem to be required for IE, but does FF require doc type tags? and if so, what type of doc type tag should I have?
TRANZIT JIM is offline
Reply With Quote
View Public Profile Visit TRANZIT JIM's homepage!
 
 
Register now for full access!
Old 03-23-2007, 02:17 AM Re: Another script, works fine in IE, but in FF, it triggers the submit button
Extreme Talker

Posts: 189
Trades: 1
If you don't provide the link or code it's hard to help you.
__________________

Please login or register to view this content. Registration is FREE
yellow1912 is offline
Reply With Quote
View Public Profile Visit yellow1912's homepage!
 
Old 03-24-2007, 01:16 AM Re: Another script, works fine in IE, but in FF, it triggers the submit button
Extreme Talker

Posts: 163
Name: James
Location: Australia
Trades: 0
At this moment, this page is only on my pen drive, but I shall upload it in the next day or two, and then provide you a link to it then.
TRANZIT JIM is offline
Reply With Quote
View Public Profile Visit TRANZIT JIM's homepage!
 
Old 03-28-2007, 10:35 PM Re: Another script, works fine in IE, but in FF, it triggers the submit button
Extreme Talker

Posts: 163
Name: James
Location: Australia
Trades: 0
Ok, here is the link to the page of which seems to play up in Firefox.

http://www.internetdatabase.com.au/ipp.htm
TRANZIT JIM is offline
Reply With Quote
View Public Profile Visit TRANZIT JIM's homepage!
 
Old 03-30-2007, 04:30 PM Re: Another script, works fine in IE, but in FF, it triggers the submit button
Extreme Talker

Posts: 169
Trades: 0
I'd recommend you use slightly better names for your vaiables...
I also noticed that no matter what button I click it always submits afterwards in Opera.
And by God is it ugly.

Quick check I couldn't find the error. I'll check back later when I have a little bit more time.
__________________
George Bush would never take me alive.
MJM_RDS is offline
Reply With Quote
View Public Profile
 
Old 04-02-2007, 01:30 AM Re: Another script, works fine in IE, but in FF, it triggers the submit button
Extreme Talker

Posts: 163
Name: James
Location: Australia
Trades: 0
I seem to have fixed the problem,

Where I had <button onclick= function

I replaced it with <a href="javascript:functon & <div combination

I no longer have the problem with Firefox acting like it was the submit button of which was triggered.
TRANZIT JIM is offline
Reply With Quote
View Public Profile Visit TRANZIT JIM's homepage!
 
Reply     « Reply to Another script, works fine in IE, but in FF, it triggers the submit button
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.29954 seconds with 12 queries