[jQuery] changing a select

2009-11-03 Thread Mark Volkmann
() { alert(Now selected: + $(select#foo option:selected).text()); } } var select = $(select#foo); select.find(option:first).select(); select.change(); The alert is only displayed when the user changes the selection, not when the code above changes it. -- R. Mark Volkmann Object Computing, Inc.

[jQuery] Re: AJAX and JSON

2009-10-27 Thread Mark Volkmann
function with the json content or just the json content? On Oct 26, 8:14 pm, Mark Volkmann r.mark.volkm...@gmail.com wrote: I have some code working that invokes an HTTP service that returns JSON. From my JavaScript I call the service with: $.getJSON(url + ?callback?, function (json) {   // do

[jQuery] AJAX and JSON

2009-10-26 Thread Mark Volkmann
of JavaScript to the response Is this the recommended approach? I was expected that I wouldn't need to pass the callback function name to the servlet and could just return the JSON from the servlet instead of a string of JavaScript code. -- R. Mark Volkmann Object Computing, Inc.