Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

JavaScript Forum


You are currently viewing our JavaScript Forum as a guest. Please register to participate.
Login



Reply
Old 06-06-2005, 05:17 PM '@' form requirment
Skilled Talker

Posts: 62
Trades: 0
Hello,

I'm trying to make the form on
http://javascriptkit.com/script/cut159.shtmlmy page act like the form on this page in that the '@' sybmbol is required.

However, the model form requires that I copy and paste the whole thing when all I want is the '@ required' part.

Can anyone tell me exactly which part of the code I need to extract to adapt my form?

Thanks,

Neil
neila is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 06-06-2005, 05:29 PM
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,517
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
seems to work ok seeing as both links go to the same page.
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 06-07-2005, 06:39 PM
Skilled Talker

Posts: 62
Trades: 0
Hmm, sorry, something went wrong in the links. My page is this: http://www.parisphotographique.org/contactform-en.html

So, how do I make this form work like the one on the Javascript Examples page?

Thanks,

Neil
neila is offline
Reply With Quote
View Public Profile
 
Old 06-07-2005, 07:05 PM
Phaedrus's Avatar
Ultra Talker

Posts: 271
Location: CA
Trades: 0
Just this:
Code:
var string1=document.demande.requirednom.value;
if (string1.indexOf("@")==-1)
{
    alert("Please input a valid email address!");
    return false;
}
__________________

Please login or register to view this content. Registration is FREE
Phaedrus is offline
Reply With Quote
View Public Profile
 
Old 06-07-2005, 07:28 PM
Skilled Talker

Posts: 62
Trades: 0
I can't see the code you posted!?
neila is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to '@' form requirment
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.14755 seconds with 12 queries