× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



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, <vhamberg@xxxxxxxxxxx> 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!!

As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

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.