redho home | products | services
Web Design Forums

Web Design Forums  


Web Hosting, Web Design, Software and Web Development Forums  
 FAQFAQ   MemberlistArchive  Log inLog in   RegisterRegister 
         

how to handle a situation with multiple cases


Goto page Previous  1, 2, 3
 
Post new topic   Reply to topic    Web Design Forums -> JavaScript forum
View previous topic :: View next topic  
Author Message
Klimapol



Joined: 27 May 2006
Posts: 134
ovigo22, t's also python.
Object full of functions is tasty.
  Reply with quote


kadamat



Joined: 01 Jun 2006
Posts: 88
So, it would be used like: selection = document.frmCheckMe.giveaway.value;
Then switch (selection)
?
Then case "name of item selected" :
Then the stuff I want to happen
Then the next case and so on?
  Reply with quote
Gladis



Joined: 24 May 2006
Posts: 108
Ok so...
Http://www.javascriptkit.com/javatutors/switch.shtml
  Reply with quote
kadamat



Joined: 01 Jun 2006
Posts: 88
Ah. ha! Thanks.
  Reply with quote
Klimapol



Joined: 27 May 2006
Posts: 134
Gladis, Are the javascript tutors or Java tutors.
?
  Reply with quote
Gladis



Joined: 24 May 2006
Posts: 108
Im not sure about javascript but after the case "somecrap": you can put { } break
Klimapol, check the link and you see javascript
  Reply with quote
Page 3 of 3 Goto page Previous  1, 2, 3
Post new topic   Reply to topic    Web Design Forums -> JavaScript forum


Dubai Forums - Expat Help | Vegan Chat | Java Programming | Free 3D tutorials and 3d textures | Paris Forum | EU Forum
Free Dubai Classifieds | Free London Classifieds | Jobs in London

High Quality, Custom 3d animation and Web Design solutions Royal Quality Web Hosting Services Vegetarian and Animal Rights news

Powered by phpBB © 2001, 2005 phpBB Group