I do use html comment tags as you can see in the code below. They don’t stop the rendering of the link. Can anyone help?
I am confused, what link are you referring to in the above source as the only code you have changes the URL in the browser not on the page itself. Also in your markup you have a tag called xhtml, a tag called html exists but no tag by that name exists in the HTML spec and never will.
Not necessarily my business to comment here, but a better approach to web design and use of JS is to make a page with accessible content and then use JS as an enhancement to the page. I guess it depends on what you are trying to do, but it’s a good principle to work by.[/ot]
I tried again and my firefox still shows the link. I have to find out why my browser is doing this.
I say this for 2 reasons, I want to use ajax to validate form data, using onfocus and onblur events, before submit, and the page we are talking about right now is an https page. I wonder if that is causing firefox to show the links.
This is a brain twister. Thanks to everyone for the comments.
I use php to validate, and communicate with mysql. A php file for each separate form element contains a regex specifically for that form element. This regex checks (not submits) the data for that element only by using XMLHttpRequest object . When all user input passes the series of regexes (nothing submitted yet, just checked by a regex), the user submits to a separate server side php validation script.
There will be so much going on for each user that I want to keep all activity on one dynamic page for ease of use. No one gets lost - including me.
I learned from the responses here that the noscript add on is rendering those links. Other users will have this add on, so I have to learn more about it to see if I can test for it and response as necessary. I don’t want my customers to see the links at all, even before they turn js on. That’s why I’m looking for a way to turn off the links to the scripts.
The links are a dead end, but they show the path to the scripts, and they look bad.
I’m not sure why you want users to turn on their js just for the client side validation (with or without ajax).
If the user has js turned off, all that should mean is that there will be no client side validation and their inputted data will be validated in your separate server side script anyway when they click the submit button.
If you insist users turn on their js, at least the less tech-savvy ones might suspect you are trying to do something “nasty” on their pc and so you risk losing them.
I want to move beyond a form that shows errors only by scrolling the form after the submit button is clicked. I want the user to know within half a second or less of moving away from each form element if their input into that element has errors, - that is, if they entered 876r4 as a zip code, etc
The faster I can show the user any errors they make, the faster they can get through the form. Scrolling and searching slows things down.
Also, why use AJAX (which slows down your validation speed) unless you are querying a database as part of your validation?
No one will be able to go to the secure site directly by typing the url into their browser. They will have to link from the non secure site.
Also, the things they will be able to do after registering will require ajax as well. That provides the quick functionality. There will be a database involved. If it slows down, I’ll upgrade the hardware.
I’m still learning to code. There will always be a learning curve to coding. It won’t always be as steep as it is now, but it will always be there to some degree. I don’t have all the answers. I have to make some decisions about how to do things, and see how it goes. No one method has all the advantages and no disadvantages.