Link to home
Start Free TrialLog in
Avatar of nicktimesthree
nicktimesthree

asked on

Calling a javascript function from a Java web app

I've got a Java web app that runs and manipulates data. One of the new data sources is a third party vendor who provides its data via a script. Typically, the user would place a script on their page and when the page is loaded, the data is displayed on the page, ie:

<script src="http://www.thirdpartyvendor.com"></script><script>function(params)</script>

Is there a way that I can call this from my Java web app?
Avatar of silemone
silemone
Flag of United States of America image

you could use an applet...
ASKER CERTIFIED SOLUTION
Avatar of silemone
silemone
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of nicktimesthree
nicktimesthree

ASKER

Thanks. Once I've created that applet, my java app can instantiate it and call it. What methods are best for accessing what that applet returns (for parsing purposes)?
Maybe some more information might help. My app aggregates data in to a single source. Typically, it pulls RSS feeds/XML, parses, and writes it locally. I need to add this third party source to the data to be aggregated so I have to find a way to call the script and get at its results.
To access what the applet returns?  please explain further....