AJAX Forums

can someone tell me whats wrong with this javascript?

This is a discussion on can someone tell me whats wrong with this javascript? within the JavaScript forums, part of the Beginners AJAX category; i want it so that if somebody types test, an alert box goes off saying "this finally works":if (document.former.cmdbar.value=="test"){alert ('this ...


Go Back   AJAX Forums > Beginners AJAX > JavaScript

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
Old 06-26-2007, 02:27 AM   #1 (permalink)
Junior Member
 
Join Date: Jun 2007
Posts: 1
Rep Power: 0 liam uk is on a distinguished road
can someone tell me whats wrong with this javascript?

i want it so that if somebody types test, an alert box goes off saying "this finally works":if (document.former.cmdbar.value=="test"){alert ('this finally works')}else{alert ('yay')}on 4th line it's:if (document.former.cmdbar.value=="test")i dunno why but it got cutnvm it keeps gettin cut
__________________
liam uk is offline   Reply With Quote
Old 06-26-2007, 03:53 AM   #2 (permalink)
Junior Member
 
Join Date: Jun 2007
Posts: 1
Rep Power: 0 titaniumkinetix is on a distinguished road
function checkForm(){ if (document.former.cmdbar.value== "test"){ alert ('this finally works'); } else { alert ('yay'); }You can see forms like this one on my website: http://x.excessiveplus.netJust analyze the script by right-clicking on the page and then select 'View page source'
__________________
titaniumkinetix is offline   Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes


Similar Threads

Thread Thread Starter Forum Replies Last Post
whats the capacity of the ajax arena in Amsterdam ?... tracy b AJAX Ideas 2 06-26-2008 07:29 PM
What happens if I put wrong information of the CSS/Profile? sarah c XHTML and CSS 0 11-02-2007 08:49 AM
What's wrong with this... jboesch AJAX Help 1 06-12-2007 12:28 PM
Whats the html code to make the make text bounce all over the screen? dustin0 aka BAMF XHTML and CSS 1 05-24-2007 04:55 PM
Whats the easyist way.. Billy_2k6 AJAX Help 0 11-23-2006 03:38 PM


All times are GMT -4. The time now is 06:02 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 RC5
Copyright ©2006 - 2008, AJAXwith.com