Click here to Skip to main content
16,008,183 members
Home / Discussions / Web Development
   

Web Development

 
AnswerRe: Table-less layouts Pin
Guffa28-Nov-06 15:47
Guffa28-Nov-06 15:47 
JokeRe: Table-less layouts Pin
George L. Jackson28-Nov-06 16:10
George L. Jackson28-Nov-06 16:10 
JokeRe: Table-less layouts Pin
Guffa28-Nov-06 16:39
Guffa28-Nov-06 16:39 
GeneralRe: Table-less layouts Pin
JimmyRopes29-Nov-06 2:30
professionalJimmyRopes29-Nov-06 2:30 
Questioncustom web combobox component options only work if I use Pin
howardjr28-Nov-06 8:54
howardjr28-Nov-06 8:54 
QuestionTooltip window Pin
texan_wiz28-Nov-06 6:38
texan_wiz28-Nov-06 6:38 
AnswerRe: Tooltip window Pin
shefali_sinha29-Nov-06 7:41
shefali_sinha29-Nov-06 7:41 
QuestionA race between onClick & onChange Pin
Malcolm Smart28-Nov-06 5:14
Malcolm Smart28-Nov-06 5:14 
Hi
Sorry for long post.

I have an edit box, and next to it, two elements, a tick, and a cross. The idea is the user types in the edit box, clicks the 'tick' image when they're happy, or the 'cross' when they want to cancel their change.

But...I also have an onChange event on the edit box, so if they click on another edit box (I have loads of these - not my design - honest!), the new value is stored. I *have* to store the value (via ajax) after each edit. Everything works fine, or it looks to work fine. They enter data, click the tick, it saves. They enter data, click on another edit box, it saves. But if they click the cross, hey - it saves. The onChange event is called on the editBox before I can respond to the onClick event on either of the two images.

So, they click on the cross, the onChange event is called on the edit box, I save the data. WRONG. Is there anyway I can tell that they have clicked teh cross before the onChange event is fired, or in the onChange event, check to see if the onClick event of the cross is pending?

Any help much appreciated.
AnswerRe: A race between onClick & onChange Pin
Shog928-Nov-06 6:07
sitebuilderShog928-Nov-06 6:07 
GeneralRe: A race between onClick & onChange Pin
Malcolm Smart28-Nov-06 10:27
Malcolm Smart28-Nov-06 10:27 
AnswerRe: A race between onClick & onChange Pin
Bradml28-Nov-06 12:12
Bradml28-Nov-06 12:12 
GeneralRe: A race between onClick & onChange Pin
Malcolm Smart28-Nov-06 20:28
Malcolm Smart28-Nov-06 20:28 
GeneralRe: A race between onClick & onChange Pin
Bradml28-Nov-06 21:22
Bradml28-Nov-06 21:22 
Questionreading file Pin
netDeveloper28-Nov-06 4:51
netDeveloper28-Nov-06 4:51 
AnswerRe: reading file Pin
Shog928-Nov-06 5:03
sitebuilderShog928-Nov-06 5:03 
AnswerRe: reading file Pin
MatrixCoder28-Nov-06 9:19
MatrixCoder28-Nov-06 9:19 
GeneralRe: reading file Pin
Guffa28-Nov-06 15:19
Guffa28-Nov-06 15:19 
GeneralRe: reading file Pin
Bradml28-Nov-06 15:32
Bradml28-Nov-06 15:32 
Questiongetting control value from table cell with javascript Pin
mnaveed28-Nov-06 0:52
mnaveed28-Nov-06 0:52 
AnswerRe: getting control value from table cell with javascript Pin
Bradml28-Nov-06 1:03
Bradml28-Nov-06 1:03 
GeneralRe: getting control value from table cell with javascript Pin
mnaveed28-Nov-06 1:22
mnaveed28-Nov-06 1:22 
GeneralRe: getting control value from table cell with javascript Pin
Bradml28-Nov-06 1:44
Bradml28-Nov-06 1:44 
AnswerRe: getting control value from table cell with javascript Pin
Malcolm Smart28-Nov-06 5:18
Malcolm Smart28-Nov-06 5:18 
Questionphp help wanted Pin
collo28-Nov-06 0:23
collo28-Nov-06 0:23 
AnswerRe: php help wanted Pin
Bradml28-Nov-06 0:28
Bradml28-Nov-06 0:28 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.