|
Vern,
For easy Ajax you can use .load in jquery, or even the more powerful .ajax
and others in the jquery form plugin, but jquery .load (dot load) is just
the easy way.
function SendReceiveAjax(){
$("div#html").load("r4ajaxe",{
rpgpgm: "rpg-pgm-to-exec",
hCust: here-the-cust-Id,
otherField: otherContent
}
,function(dataReceived){
alert(dataReceived);
}
else {
alert("error ajax");
}
......
});
}
in this sample, jquery sends
url?rpgpgm=rpg-pgm-to-exec&hCust=here-the-cust-Id and so on,
and receive the formatted html page (or an xml, json or any string) in the
var dataReceived.
in this case, jquery can move the html into a div, several options.
more or less (bad programmers written it with less code, btw).
Regards,
Guillermo.
On Thu, Jul 31, 2008 at 8:45 PM, wrote:
Yup - and I'm really getting benefit from the discussion as I'm taking on--
this CGI app - there are so many opportunities in it for AJAX processing,
but who has time? Sigh!!
This is the Web Enabling the AS400 / iSeries (WEB400) mailing list
To post a message email: WEB400@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/web400
or email: WEB400-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/web400.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.