Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Community Forums
 Community Discussions (All other subjects)
 Browser Support Question
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

redbrad0
Advanced Member

USA
3725 Posts

Posted - 01 January 2005 :  17:11:32  Show Profile  Visit redbrad0's Homepage  Send redbrad0 an AOL message
Does anyone here see any reason why the below code would not work for some browsers?

<a class="LinkButton" href="javascript:document.FormName.submit();">Submit</a>

Brad
Oklahoma City Online Entertainment Guide
Oklahoma Event Tickets

laser
Advanced Member

Australia
3859 Posts

Posted - 01 January 2005 :  17:21:19  Show Profile
Javascript disabled ?
Go to Top of Page

redbrad0
Advanced Member

USA
3725 Posts

Posted - 01 January 2005 :  21:37:16  Show Profile  Visit redbrad0's Homepage  Send redbrad0 an AOL message
Well I am not having any problems with the code but I am wondering if using that code would limit the people able to use the program.

Brad
Oklahoma City Online Entertainment Guide
Oklahoma Event Tickets
Go to Top of Page

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 02 January 2005 :  01:00:50  Show Profile
Only if they had javascript disabled. And I think it is very few persons who have javascript disabled.

Support Snitz Forums
Go to Top of Page

dayve
Forum Moderator

USA
5820 Posts

Posted - 02 January 2005 :  15:33:23  Show Profile  Visit dayve's Homepage
use this preferred method instead:

<a class="LinkButton" href="#" onclick="javascript:document.FormName.submit();">Submit</a>


Edited by - dayve on 02 January 2005 15:34:15
Go to Top of Page

redbrad0
Advanced Member

USA
3725 Posts

Posted - 03 January 2005 :  14:14:20  Show Profile  Visit redbrad0's Homepage  Send redbrad0 an AOL message
Dayve,

Would that help support more browsers or should I also have the JS inside the href also?

Thanks guys

Brad
Oklahoma City Online Entertainment Guide
Oklahoma Event Tickets
Go to Top of Page

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 03 January 2005 :  16:31:41  Show Profile
Brad, no it won't, it's just preffered, as Dayve mentioned.

And Dayve, remove the "javascript:" keyword from the onclick. Onclick accepts javascript code so no need to specify that it is javascript.

onclick="document.FormName.submit();"

Support Snitz Forums
Go to Top of Page

redbrad0
Advanced Member

USA
3725 Posts

Posted - 03 January 2005 :  17:01:38  Show Profile  Visit redbrad0's Homepage  Send redbrad0 an AOL message
quote:
Originally posted by Davio
And Dayve, remove the "javascript:" keyword from the onclick. Onclick accepts javascript code so no need to specify that it is javascript.

onclick="document.FormName.submit();"



Oh great now you tell me after I have replaced all my code

Brad
Oklahoma City Online Entertainment Guide
Oklahoma Event Tickets
Go to Top of Page

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 03 January 2005 :  17:12:44  Show Profile
You're a web developer. I thought you would have picked that up and not copy and past the code.

Support Snitz Forums
Go to Top of Page

redbrad0
Advanced Member

USA
3725 Posts

Posted - 03 January 2005 :  17:21:42  Show Profile  Visit redbrad0's Homepage  Send redbrad0 an AOL message
blah blah blah blah blah blah blah


Brad
Oklahoma City Online Entertainment Guide
Oklahoma Event Tickets
Go to Top of Page

dayve
Forum Moderator

USA
5820 Posts

Posted - 03 January 2005 :  17:29:13  Show Profile  Visit dayve's Homepage
quote:
Originally posted by Davio

Brad, no it won't, it's just preffered, as Dayve mentioned.

And Dayve, remove the "javascript:" keyword from the onclick. Onclick accepts javascript code so no need to specify that it is javascript.

onclick="document.FormName.submit();"


yeah, an oversight on my part.

Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.4 seconds. Powered By: Snitz Forums 2000 Version 3.4.07