[FX.php List] Problems w/ Internet Explorer 7 (submit via image)

Kevin Futter kfutter at sbc.melb.catholic.edu.au
Tue Mar 13 23:11:04 MDT 2007


On 14/3/07 2:55 PM, "Timothy Tait" <bottledspider at gmail.com> wrote:

> this is probably a non-issue, since it's been so long, but be aware that you
> can also remove the button tag completely by code like this:
>  
> <a href="javascript:validateForm()"><img src="./images/your.jpg" border=0></a>
>  
> then in your validation code, if everything is okay, just add this line (or
> something like it)
>  
> document.formName.submit();
>  
> that will work around any problem with the <button> tag.
>  
> i don't know that it will work on the mac, since i'm pc, but it should be
> cross-browser...
>  
> cheers,
> -t
> 
That¹s about the worst thing you could do ­ the form simply won¹t work for
people who turn off, or don¹t have access to, JavaScript. That¹s more people
(and devices) than you think ­ heck even some corporate firewalls strip out
JS from pages as the packets pass through! It¹s also an invalid href
attribute (the javascript: pseudo-protocol) that, at the very least, should
be replaced with the appropriate event handler (in this case, onClick). For
example:

<a href=²fallbackURL.html² onclick=²validateForm();²> ... </a>

The golden rule is never, ever completely rely on JavaScript for anything,
and always plan for it not being available.

-- 
Kevin Futter
Webmaster, St. Bernard's College
http://www.sbc.melb.catholic.edu.au/


#####################################################################################
This e-mail message has been scanned for Viruses and Content and cleared 
by MailMarshal
#####################################################################################

This e-mail and any attachments may be confidential. You must not disclose or use the information in this e-mail if you are not the intended recipient. If you have received this e-mail in error, please notify us immediately and delete the e-mail and all copies. The College does not guarantee that this e-mail is virus or error free.  The attached files are provided and may only be used on the basis that the user assumes all responsibility for any loss, damage or consequence resulting directly or indirectly from the use of the attached files, whether caused by the negligence of the sender or not. The content and opinions in this e-mail are not necessarily those of the College.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.iviking.org/pipermail/fx.php_list/attachments/20070314/1aa1636b/attachment.html


More information about the FX.php_List mailing list