Newbie in Javascript

This is a discussion on "Newbie in Javascript" within the JavaScript Forum section. This forum, and the thread "Newbie in Javascript are both part of the Program Your Website category.



Go Back   Webforumz.com > Main Forums > Program Your Website > JavaScript Forum

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Mar 11th, 2006, 08:09
Up'n'Coming Member
Join Date: Sep 2005
Location: athens
Age: 25
Posts: 60
Thanks: 0
Thanked 0 Times in 0 Posts
Newbie in Javascript

Hello all!
I am starting to use JS a couple of days now and mainly I am interested in using it in form validation and to create pop-ups.
I have 2 questions :

1) If a user doesn't have JS enabled, how will I check for empty fields in the form and show an alert box that prompts for corrections?

2) Also, I have seen sites that have the following : There is a link somewhere which works like this : [a] if you have JS enabled, it "recognizes" it and gives a pop-up window when clicked whereas [b] if you don't have JS enabled, it simply acts like a link and opens a new window (not a poup-up one).

Because I am a bit confused, I am staring to think that maybe JS causes more problems than it solves... Should a programmer use it or ,for instance, do a form validation in another page and don't count on the user having JS enabled?
Reply With Quote

  #2 (permalink)  
Old Mar 12th, 2006, 05:20
craig's Avatar
Reputable Member
Join Date: Sep 2005
Location: Preston, UK
Age: 21
Posts: 381
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to craig
Re: Newbie in Javascript

There is also server side validation which you can use with forms, by making a field mandatory in the PHP code. Don't rely on JS for anything because like you said, it can be turned off by the visitor.
Craig
Reply With Quote
Reply

Tags
newbie, javascript

Thread Tools

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 On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Newbie to Javascript dapirates JavaScript Forum 5 Mar 11th, 2008 21:21
newbie javascript problem c_martini JavaScript Forum 10 Sep 7th, 2007 08:19
Javascript newbie sehrlund JavaScript Forum 6 Aug 23rd, 2007 18:07
Newbie, Please help with javascript links lea JavaScript Forum 1 Nov 9th, 2006 14:45
JavaScript Newbie Seeks Guidance jswebdev JavaScript Forum 0 Dec 5th, 2005 20:44


All times are GMT. The time now is 05:37.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43