() {
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.
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
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.
3 matches
Mail list logo