FireFox! The PHP Forum Loans and Credit
Panama Web Design for Hire Free Insurance Quotes!
Web Hosting Advertise Here $10 a Month Designer Children
Never Pay Taxes Again HGH Domain name registration
Web Hosting and Dedicated Servers Insurance Affordable web-hosting


HomeWatched TopicsRegisterSearchDirectory
FAQMemberlistUsergroupsLog inStoresItemsBank
Google

Reply to topic Page 1 of 1
Recognising events from menu-item
Message  

Reply with quote
Post Recognising events from menu-item 
I have a javascript menu and i want to load the same page when the menu item is clicked but how can i recognise that, that specific item is clicked ? and then i can handle it by some check (if-else).
For example:
Students
     |    
     V
Add Students
Del Students
Search Students

How to handle/recognise an event which is raised by clicking on the menu item ? Remember i don't want to use loading new page for Add Students, Del Students and Search Students.

View user's profile Send private message

Reply with quote
Post  
first of all this is not the right section, you should've post it in "beyond php:..." section
anyway to accomplish that you need to have something like the following:
Code:

...
<div id='add' onclick='action(this.id);'>Add Students</div>
...

is that what you wanted?


_________________
www.codeigniter.com
View user's profile Send private message ICQ Number
Display posts from previous:
Reply to topic Page 1 of 1
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
  



Google

FireFox! The PHP Forum Loans and Credit
Panama Web Design for Hire Free Insurance Quotes!
Web Hosting Advertise Here $10 a Month Designer Children
Never Pay Taxes Again HGH Domain name registration
Web Hosting and Dedicated Servers Insurance Affordable web-hosting


Web Design by PlatinumShore.com & Web Hosting by TradeWebHosting.com