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>fu nction(par ams)</scri pt>
Is there a way that I can call this from my Java web app?
<script src="http://www.thirdpartyvendor.com"></script><script>fu
Is there a way that I can call this from my Java web app?
you could use an applet...
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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)?
ASKER
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....