Form does not work in NS & Firefox

liunx

Guest
Well, first lesson after using this forum for a couple of days... Always check your pages in multiple browsers! And after answering a form related question - I naturally checked out my own forms.<br />
<br />
Found out this form isn't working in NS 7 and Firefox 0.8:<br />
lettonica.info/form.html <br />
<br />
It is simply not possible enter cursor to input, text fields.<br />
<br />
Anyone knows why?<br />
<br />
Edit: Link deactivated<!--content-->I've narrowed it down to some of your JavaScript, specifically within works.js (<!-- m --><a class="postlink" href="http://www.lettonica.info/works.js">http://www.lettonica.info/works.js</a><!-- m -->). For seemingly no reason (even if there was a reason, it wouldn't be a valid one), there is code in which prevents users from selecting text, and moreover, it nullifys any click events, hence why you can't bring focus to any of the form elements. The solution would be to get rid of this portion of your JavaScript:function disableselect(e){<br />
return false<br />
}<br />
<br />
function reEnable(){<br />
return true<br />
}<br />
<br />
//if IE4+<br />
document.onselectstart=new Function ("return false")<br />
<br />
//if NS6<br />
if (window.sidebar){<br />
document.onmousedown=disableselect<br />
document.onclick=reEnable<br />
}P.S. Note that when you disable JavaScript, your navigation is no longer usable. This is considered very bad practice because your site is now inaccessible to disabled persons and as such does not meet accessibility guidelines as stated in the WCAG, and it'll also get much lower search engine rankings. Ideally, you'd use an accessible alternative (<!-- m --><a class="postlink" href="http://www.udm4.com/">http://www.udm4.com/</a><!-- m -->) or at the very least provide your navigation within a <noscript> block so non-JavaScript users can still navigate your site.<!--content-->Originally posted by fredmv <br />
I've narrowed it down to some of your JavaScript, specifically within works.js (<!-- m --><a class="postlink" href="http://www.lettonica.info/works.js">http://www.lettonica.info/works.js</a><!-- m -->). The solution would be to get rid of this portion of your JavaScript&#58<br />
Oops... :rolleyes: You're perfectly right. Code is now removed.<br />
<br />
Originally posted by fredmv <br />
P.S. Note that when you disable JavaScript, your navigation is no longer usable. This is considered very bad practice because your site is now inaccessible to disabled persons and as such does not meet accessibility guidelines as stated in the WCAG, and it'll also get much lower search engine rankings. Ideally, you'd use an accessible alternative (<!-- m --><a class="postlink" href="http://www.ud4m.com/">http://www.ud4m.com/</a><!-- m -->) or at the very least provide your navigation within a <noscript> block so non-JavaScript users can still navigate your site. <br />
<br />
Yes, I now understand according to an answer in one of my other threads. :) BTW... Your link is a dead end.<br />
<br />
Many thanks for your help on this.<!--content-->No problem. I just fixed the link; thanks for pointing that out.<!--content-->fredmv,<br />
<br />
WHOA! That's heavy load stuff that accessable website menu... :D<!--content-->
 
Back
Top