Client Side Things
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsOther TechnologiesClient Side Things

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
  #1  
Old November 24th, 2004, 04:00 AM
pickleman78 pickleman78 is offline
Codewalkers Novice (500 - 999 posts)
 
Join Date: Apr 2007
Location: Dallas,TX,USA
Posts: 582 pickleman78 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
Send a message via AIM to pickleman78
dynamic s

I have 3 <select> boxes, and the values that should be in them is dependant on what information has been previously entered. All that info is stored in a database, and the code that does that is irrelivant at this point.

So what I want to know, is should I dynamically generate alot of javascript and swap out the select boxes, or refresh the page using <select onChange> and redo the boxes each time?

Reply With Quote
  #2  
Old November 24th, 2004, 04:21 AM
Blindeddie Blindeddie is offline
Codewalkers Regular (2000 - 2499 posts)
 
Join Date: Apr 2007
Location: NJ - USA
Posts: 2,152 Blindeddie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 4
RE: dynamic s

the choice is yours, but I would suggest using the onchange event to refresh the page and the display each successive dropdown as the dependent dropdown selection is made.

Reply With Quote
  #3  
Old November 24th, 2004, 04:22 AM
bsmith bsmith is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: palm bay, fl, usa
Posts: 204 bsmith User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
Send a message via ICQ to bsmith
RE: dynamic s

To be, or not to be!

Your preference. From a "client" stand point. The faster you can do something, the better. Ever add a listing on Ebay? They change their combo boxes on the fly, instead of reloading.

I feel it makes it more professional. If someone is still on shall I say it, dial up (huuh?, whats that) ... they will need to keep reloading the page.

If your just pushing a lot of text, it generally gets transfered extremely fast. Much better then having to keep sending data back to the server.

Plus, it can take a small load off the server.

I say use dynamic combo/drop down boxes. Just remember though, if they do not have JS enabled, it is broke. So, you may just want to do both. Or make it a requirement that you have JS enabled to view the pages/site.

Reply With Quote
  #4  
Old November 24th, 2004, 04:55 AM
pickleman78 pickleman78 is offline
Codewalkers Novice (500 - 999 posts)
 
Join Date: Apr 2007
Location: Dallas,TX,USA
Posts: 582 pickleman78 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
Send a message via AIM to pickleman78
RE: dynamic s

No heres another issue.

I have 1 category, and under that there are about 30 options, each one of them has at least 5 options for it, which can grow, that makes 150 items to get and generate. Now, assuming each option may get more, lets say as many as 10, that raises us to 300 options, making 300 more words that have to be pushed out to the user, and placed into a dynamically generated combo box.... But thanks for the suggestions, I'll probably go that way anyway.

Reply With Quote
  #5  
Old November 30th, 2004, 10:32 PM
rehfeld_dot_us rehfeld_dot_us is offline
Codewalkers Novice (500 - 999 posts)
 
Join Date: Apr 2007
Posts: 825 rehfeld_dot_us User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
RE: dynamic s

if you really want cool, and functional, use the xml HTTP Request Object in javascript



it is the perfect solution to this.

youll need to learn it, but its gives you so much power when doing these things.

Reply With Quote
  #6  
Old November 30th, 2004, 10:39 PM
rehfeld_dot_us rehfeld_dot_us is offline
Codewalkers Novice (500 - 999 posts)
 
Join Date: Apr 2007
Posts: 825 rehfeld_dot_us User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
RE: dynamic s

heres a demo

http://developer.apple.com/internet/webcontent/XMLHttpRequestExample/example.html

Reply With Quote
  #7  
Old December 1st, 2004, 01:32 AM
pickleman78 pickleman78 is offline
Codewalkers Novice (500 - 999 posts)
 
Join Date: Apr 2007
Location: Dallas,TX,USA
Posts: 582 pickleman78 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
Send a message via AIM to pickleman78
RE: dynamic s

now THATS cool.... too bad I've almost finished doing it my way, but I'll keep that in mind if this way gets too bad

Reply With Quote
Reply

Viewing: Codewalkers ForumsOther TechnologiesClient Side Things > dynamic s


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway