boblan66
07-16-2009, 07:57 AM
I'm new to java script and placed a 'Tell a Friend' script from this site on my website. What I'm wondering, with this script, when the user clicks the submit button, they would have no idea that the info was sent. Also if the text boxes were empty, there was no check to ensure the proper information was entered.
I found two other scripts that I thought would solve the problem. the first would popup a window with a thank you message. When I placed that script on my site, it did not work. I checked everything out and it seemed to be correct.
The second was a script to ensure the textboxes were not blank by placing the script in the head and placing 'required' before the required name attributes (Name=requiredemail) in the form. It also did not work.
Is there a script that would meet these conditions:
Check to ensure correct data was entered, and displayed a message informing the sender that the data was sent? If there is a script, I believe I could learn by example. Just point me in the right direction, please.
In my web development, I use four browsers to check my sites, Firefox, Opera, IE8, and Google Chrome. I checked the site with the scripts on all four browsers with the same results. I am new to javascript but not new to programing.
Website Name: http://www.itsayorkieworld.com
Page where Tell a Frind resides: Index.shtml
Thanks,
Bob...
I found two other scripts that I thought would solve the problem. the first would popup a window with a thank you message. When I placed that script on my site, it did not work. I checked everything out and it seemed to be correct.
The second was a script to ensure the textboxes were not blank by placing the script in the head and placing 'required' before the required name attributes (Name=requiredemail) in the form. It also did not work.
Is there a script that would meet these conditions:
Check to ensure correct data was entered, and displayed a message informing the sender that the data was sent? If there is a script, I believe I could learn by example. Just point me in the right direction, please.
In my web development, I use four browsers to check my sites, Firefox, Opera, IE8, and Google Chrome. I checked the site with the scripts on all four browsers with the same results. I am new to javascript but not new to programing.
Website Name: http://www.itsayorkieworld.com
Page where Tell a Frind resides: Index.shtml
Thanks,
Bob...