JavaScript: radio button

  • vickriz
  • Novice
  • Novice
  • User avatar
  • Joined: Jul 28, 2003
  • Posts: 31
  • Loc: Phlippines
  • Status: Offline

Post August 3rd, 2003, 8:48 pm

back to the last script we give me.. thats really works and i add some lines in disabled function..
Code: [ Select ]
document.getElementById("NominaterLN").value="";
document.getElementById("NominaterFN").value="";
document.getElementById("NominaterMN").value="";
document.getElementById("NominaterNS").value="";
  1. document.getElementById("NominaterLN").value="";
  2. document.getElementById("NominaterFN").value="";
  3. document.getElementById("NominaterMN").value="";
  4. document.getElementById("NominaterNS").value="";

what about in NominaterTitle, i try this line
Code: [ Select ]
document.getElementById("NominaterTitle").options.selectedIndex.text="";

but it doesnt work.
...what should be the object to call to get the selected value return to -1 or empty value??
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post August 3rd, 2003, 8:48 pm

  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Joined: May 28, 2003
  • Posts: 23403
  • Loc: Woodbridge VA
  • Status: Offline

Post August 3rd, 2003, 8:51 pm

Vickriz the biggest problem is the size. You've already noticed the lag time and the browser hang up. If you put it into a database you can code the scripting language (ASP/PHP or whatever) to display only portions at a time. i.e page 1, page 2 etc...just like this forum script does.

The only other thing I can think to do it in HTML is to break down your largest files alphabetically, then do dropdowns to select from the letters, then use "CASE" to switch to the cities based on the alphabetical letter selected.

That's off the top of my head, but I think it would work.
"There's no place like 127.0.0.1 except for ::1."
Alexandria Networks. Leader in IT consulting for associations/non-profits, and small to medium sized businesses around the northern Virginia and Washington D.C. metro area.
  • vickriz
  • Novice
  • Novice
  • User avatar
  • Joined: Jul 28, 2003
  • Posts: 31
  • Loc: Phlippines
  • Status: Offline

Post August 3rd, 2003, 9:08 pm

ATNO/TW wrote:
Vickriz the biggest problem is the size. You've already noticed the lag time and the browser hang up. If you put it into a database you can code the scripting language (ASP/PHP or whatever) to display only portions at a time. i.e page 1, page 2 etc...just like this forum script does.

The only other thing I can think to do it in HTML is to break down your largest files alphabetically, then do dropdowns to select from the letters, then use "CASE" to switch to the cities based on the alphabetical letter selected.

That's off the top of my head, but I think it would work.


thats a good idea i've heared.. well i hope you can help me to put them in the box..
i have to start work with PHP now. actually we used postgresql as back-end for data access but i dont have background niether. just a little read about sql statements...
  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Joined: May 28, 2003
  • Posts: 23403
  • Loc: Woodbridge VA
  • Status: Offline

Post August 3rd, 2003, 9:21 pm

*smiles -- I charge $95.00 US an hour for custom scripting. It looks like you have the ability to do that one on your own. Just follow the idea I presented and use an extended version of the switch and case options RichB gave in his earliest thread and I think you'll get it.

I'll be more than happy to help if you run into a snag and I can figure it out.

P.S. You don't need to quote us every time you post. Unless it's unclear what you're refering to, the added quote text just eats extra bandwidth. We pretty much know what you're refering to.
"There's no place like 127.0.0.1 except for ::1."
Alexandria Networks. Leader in IT consulting for associations/non-profits, and small to medium sized businesses around the northern Virginia and Washington D.C. metro area.
  • RichB
  • Guru
  • Guru
  • User avatar
  • Joined: May 17, 2003
  • Posts: 1121
  • Loc: Boston
  • Status: Offline

Post August 3rd, 2003, 9:45 pm

In regards to the last script I gave you:

add this line to the disable function for "NominaterTitle".

Code: [ Select ]
document.getElementById("NominaterTitle").selectedIndex=0;


Unfortunately I don't have a solution for the multiple lists problem. The combined size of the text files you sent me is nearly one megabyte and there are over 44,000 items in the files. I think you might have to hire someone to make you a custom solution for that. I'm throwing in the towel on that one.
Free Programming Resources

Post Information

  • Total Posts in this topic: 20 posts
  • Users browsing this forum: No registered users and 100 guests
  • 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 post attachments in this forum
 
 

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.