Register Advertise with usHelp Desk Today's Posts Search

Closed Thread
Thread Tools Search this Thread
Unread 22nd Apr 2012, 11:25 AM   #1
Warrior Member
 
Join Date: 2011
Location: NY
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
Default
Validation through javascript issue
Share on: 
fb share twitter share gplus share more share

Hi,

I am working on simple project and it's for the institute Class project where i am learning php. i have to submit the project as soon as possible. But i am doing it different way then of i was supposed. Instead of validation message i want to use a picture or icon with Red error icon and Green yes icon as you can check in the attached picture. I am calling a function on submit button and if there is any error then using document.GetElementById('error').style.background= "none" and ="pic url". I am getting output but it's just for a second then disappeared. I have already attached the Screen Shot to get the full idea.
Attached Thumbnails
Validation through javascript issue-login.jpg  

fredrikrob is offline  
Unread 22nd Apr 2012, 12:08 PM   #2
HyperActive Warrior
War Room Member
 
Join Date: 2004
Location: , , .
Posts: 179
Thanks: 5
Thanked 44 Times in 33 Posts
Default
Re: Validation through javascript issue
Share on: 
fb share twitter share gplus share more share

Unfortunately your screenshot doesn't help much, you'd better post your code here
phpg is offline  
Unread 22nd Apr 2012, 11:57 PM   #3
Warrior Member
 
Join Date: 2012
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default
Re: Validation through javascript issue
Share on: 
fb share twitter share gplus share more share

use javascript

capitalalternatives is offline  
Unread 23rd Apr 2012, 12:19 AM   #4
Frenchy Warrior !
War Room Member
 
Join Date: 2011
Location: France
Posts: 52
Thanks: 11
Thanked 5 Times in 5 Posts
Default
Re: Validation through javascript issue
Share on: 
fb share twitter share gplus share more share

Can we have your source javascript code, to help you and to know witch party of your code dont run ?

Best,
Mirque is offline  
Unread 29th Apr 2012, 07:30 AM   #5
Active Warrior
 
Join Date: 2012
Location: Canada
Posts: 66
Thanks: 3
Thanked 7 Times in 7 Posts
Default
Re: Validation through javascript issue
Share on: 
fb share twitter share gplus share more share

From what i understand you want the onsubmit handler to show a green or red alert. Is that it?
Brad Hodge is offline  
Closed Thread


Bookmarks

Tags
issue, javascript, validation


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




All times are GMT -6. The time now is 04:56 PM.