•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the JavaScript / DHTML / AJAX section within the Web Development category of DaniWeb, a massive community of 401,422 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,934 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our JavaScript / DHTML / AJAX advertiser: Lunarpages Web Hosting
Views: 451 | Replies: 1
![]() |
•
•
Join Date: Dec 2007
Posts: 5
Reputation:
Rep Power: 0
Solved Threads: 0
Hi All,
I have 3 horizontal tabs menus with different form to let user key in some infor to the text fields.
When user 1st time access this page, all fields are blank. But if user want to go to the second tab, user must key in some infor at the 1st tabs form. How do I check if user didn't key in anything in the 1st tabs form? I want to force user to key in the 1st tab's form in order to allow user to click the second tab form and 3rd tab form.
What I want is if user didn't key in anything at the 1st tab's form, an alert will prompt out and tell the user to key in the text in the textfield at 1st tab form and save the data into mysql DB. Or else he can't even pressed the second tab form or 3rd tab's form.
How should I proceed with this requirement.
I using yui tabview to show the tab menu. All the form is within the same page.
Here is the sample of how my tab menu look like: http://developer.yahoo.com/yui/examp...rommarkup.html
So when user click 1st tab and then to next tab menu, i need to verify if user is allow to click 2nd tab. Or else force user back to 1st tab. Each tab will have a <div id=tab1>content</div>.
I am using php and mysql for data storage. I think of using javascript to do this but my javascript is knowledge is a bit crappy.
I have 3 horizontal tabs menus with different form to let user key in some infor to the text fields.
When user 1st time access this page, all fields are blank. But if user want to go to the second tab, user must key in some infor at the 1st tabs form. How do I check if user didn't key in anything in the 1st tabs form? I want to force user to key in the 1st tab's form in order to allow user to click the second tab form and 3rd tab form.
What I want is if user didn't key in anything at the 1st tab's form, an alert will prompt out and tell the user to key in the text in the textfield at 1st tab form and save the data into mysql DB. Or else he can't even pressed the second tab form or 3rd tab's form.
How should I proceed with this requirement.
I using yui tabview to show the tab menu. All the form is within the same page.
Here is the sample of how my tab menu look like: http://developer.yahoo.com/yui/examp...rommarkup.html
So when user click 1st tab and then to next tab menu, i need to verify if user is allow to click 2nd tab. Or else force user back to 1st tab. Each tab will have a <div id=tab1>content</div>.
I am using php and mysql for data storage. I think of using javascript to do this but my javascript is knowledge is a bit crappy.
•
•
•
•
Hi All,
I have 3 horizontal tabs menus with different form to let user key in some infor to the text fields.
When user 1st time access this page, all fields are blank. But if user want to go to the second tab, user must key in some infor at the 1st tabs form. How do I check if user didn't key in anything in the 1st tabs form? I want to force user to key in the 1st tab's form in order to allow user to click the second tab form and 3rd tab form.
What I want is if user didn't key in anything at the 1st tab's form, an alert will prompt out and tell the user to key in the text in the textfield at 1st tab form and save the data into mysql DB. Or else he can't even pressed the second tab form or 3rd tab's form.
How should I proceed with this requirement.
I using yui tabview to show the tab menu. All the form is within the same page.
Here is the sample of how my tab menu look like: http://developer.yahoo.com/yui/examp...rommarkup.html
So when user click 1st tab and then to next tab menu, i need to verify if user is allow to click 2nd tab. Or else force user back to 1st tab. Each tab will have a <div id=tab1>content</div>.
I am using php and mysql for data storage. I think of using javascript to do this but my javascript is knowledge is a bit crappy.
try something similar to:
<your element onblur="if(this.value==''){alert('something'); this.focus()}"> ![]() |
•
•
•
•
•
•
•
•
DaniWeb JavaScript / DHTML / AJAX Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
- Previous Thread: tinymce editor
- Next Thread: download fckeditor


Linear Mode