February 08, 2008, 08:34 AM
<Shane>Ajax & WebFOCUS...
Just out of curiosity, has anyone successfully used WebFOCUS for any Ajax functionality? If so, could you please post some example code?
Shane
February 08, 2008, 08:52 AM
Alan BAjax is the backbone of many WF processes, it can also be incorporated in many other places as it is only a javascript. I use it all over the place.
What are you trying to achieve in which component?
There are already examples of Ajax calls within this forum though.
February 08, 2008, 09:02 AM
<Shane>Alan,
I'm not trying to accomplish anything in particular. I was just curious if it could be done. I've done it many times using RPG. Just didn't know how the fex would look. I'll do a bit of searching.
Shane
February 08, 2008, 09:05 AM
TravDefinitely used it quite a few times in various places. I had some auto retrieving divs that produced market prices -- each of those divs were draggable, resizable, and they had their own ajax routine to populate them.
I've also used ajax to retrieve dropdowns in various places for various reasons. I've also used ajax to handle unique drill-downs or to perform background processing, etc.
Definitely do a search on this forum though because I think there are several examples. Really the main thing you have to deal with is figuring out exactly what url to pass to the ajax component -- once you figure that out (which isn't hard) you open up a world of possibilities.
Good luck.
February 08, 2008, 10:01 AM
Brian SuterThe fexs look like most fexs ... AJAX is implemented in JS. Typically, if you want data back into JS, your fex would do a PCHOLD FORMAT XML. Other formats are acceptable - your fex can even return hunks of fornated HTML which are then written to the browser window by your JS code.