Jump to content


Photo

Strange SELECT issue


  • Please log in to reply
1 reply to this topic

#1 KittyKate

KittyKate
  • Members
  • PipPipPip
  • Advanced Member
  • 32 posts

Posted 21 August 2006 - 06:11 PM

I've got several SELECTs that list a bunch of companies. If the company you want to chose isn't listed, you chose 'Create New'. A javascript then creates a field immediately under in which you enter the new company's name and select it's area of industry (so a text input and a second select).

My problem: the first layer of selects work perfectly. However, as soon as you chose 'create new' all selects suddenly stop functioning. You can get the top level (the list of companies) to drop down, but anything you chose doesn't get selected. The inner select (the list of areas of industry) won't even drop down. I didn't write the original code, so I may be missing something, but I've combed through it as best I can, and for the life of my I can't figure out what the issue is. I thought it was a missing close tag or quotation marks somewhere, but it doesn't appear to be an issue. This was a problem with the code before I got it.

Interesting thing I've noticed: I haven't been testing it in IE yet, but when I change tabs in FF and then back, the top level SELECTs work until I click the second level select.
PHP Version 4.3.2
MySQL version unknown (greater or equal to 3.23)

#2 KittyKate

KittyKate
  • Members
  • PipPipPip
  • Advanced Member
  • 32 posts

Posted 21 August 2006 - 10:55 PM

Well, I found a nice work-around that fixes the issue -- radio buttons are my new best friend. (The inner option only had four choices, so the UI actually looks better with them.)

Time for a night away from the screen and maybe a glass of wine.
PHP Version 4.3.2
MySQL version unknown (greater or equal to 3.23)




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users