[jQuery] Re: Setting a newly inserted option as the selected option

2009-04-17 Thread Nando
false;                }); ... how to select the newly inserted option in #refSelectBox using the text attribute and set it to the selected option? Any alternate suggestions are most welcome! Thanks, Nando

[jQuery] Setting a newly inserted option as the selected option

2009-04-16 Thread Nando
); } } ); $('#dialog').dialog('close'); return false; }); ... how to select the newly inserted option in #refSelectBox using the text attribute and set it to the selected option? Any alternate suggestions are most welcome! Thanks, Nando

[jQuery] Converting JSON to html output

2009-04-14 Thread Nando
] +''+result.DATA.AUTHOR[i]+' ('+result.DATA.REFYEAR[i]+')option' } $(refSelectBox).bind('focus', function(event, ui) { $(#refSelectBox).html(str) } }); }); select id=refSelectBox/select Thanks in advance for any help. Nando

[jQuery] Re: Converting JSON to html output

2009-04-14 Thread Nando
...@gmail.com wrote: Can you give an example of the JSON to help? On Apr 14, 9:24 am, Nando d.na...@gmail.com wrote: Hi, I'm a jQuery and Javascript noob, and can't seem to get this to work. The JSON output looks right to me via console.log(result), but the select box isn't being populated

[jQuery] Re: Converting JSON to html output

2009-04-14 Thread Nando
post you have no property of .ROWCOUNT, so that's a bad start.. this is a quick mock up that works http://paste.pocoo.org/show/112508/ (sorry about the if's... i never trust that the data is intact/ complete) On Apr 14, 10:50 am, Nando d.na...@gmail.com wrote: Sure. Here's the JSON