Go Back   CodingForums.com > :: Server side development > PHP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 11-29-2012, 11:22 PM   PM User | #1
gig
New to the CF scene

 
Join Date: Nov 2012
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
gig is an unknown quantity at this point
How to clear alert message in sendmail ajax form

hi,
I used Bryan Helmig's sendmail php+ajax form.
But after the user presses submit without filling a required field,
he cannot clear the alert message.
I would expect it to clear after clicking somewhere or escape, but it remains even after closing and opening the contact form again.
How can I fix this?

thanks a lot!
gig is offline   Reply With Quote
Old 11-30-2012, 12:34 AM   PM User | #2
Inigoesdr
Super Moderator


 
Inigoesdr's Avatar
 
Join Date: Mar 2007
Location: Florida, USA
Posts: 3,601
Thanks: 2
Thanked 397 Times in 390 Posts
Inigoesdr is a jewel in the roughInigoesdr is a jewel in the roughInigoesdr is a jewel in the rough
Sounds like a JavaScript issue. In any event there isn't much we can do if you don't post some code or a link to a page where we can reproduce the error.
Inigoesdr is offline   Reply With Quote
Old 11-30-2012, 07:59 AM   PM User | #3
felgall
Master Coder

 
felgall's Avatar
 
Join Date: Sep 2005
Location: Sydney, Australia
Posts: 5,447
Thanks: 0
Thanked 496 Times in 488 Posts
felgall is a jewel in the roughfelgall is a jewel in the roughfelgall is a jewel in the rough
How is the alert message being created - is it a lightbox script - if so which one - or is it simply the JavaScript debugging command - alert() - if the latter then if you run the code in Opera there will be an extra checkbox in the alert to allow you to turn off JavaScript for that web page. Other browsers will display a checkbox to kill all further alerts from the page when the second alert displays.
__________________
Stephen
Learn Modern JavaScript - http://javascriptexample.net/
Helping others to solve their computer problem at http://www.felgall.com/
felgall is offline   Reply With Quote
Old 12-01-2012, 10:18 PM   PM User | #4
gig
New to the CF scene

 
Join Date: Nov 2012
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
gig is an unknown quantity at this point
Thanks, I solved it

I added this in my document javascript:

$('#contactForm input,#contactForm textarea').click(function() {
$('.message').hide();
});

You can see it here: http://www.mayagonen.net/index_en.html
gig is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

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

Forum Jump


All times are GMT +1. The time now is 10:26 AM.


Advertisement
Log in to turn off these ads.