Solved

Calling a javascript function from a Java web app

Posted on 2008-10-31
5
142 Views
Last Modified: 2013-11-23
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?
0
Comment
Question by:nicktimesthree
  • 3
  • 2
5 Comments
 
LVL 21

Expert Comment

by:silemone
ID: 22853919
you could use an applet...
0
 
LVL 21

Accepted Solution

by:
silemone earned 125 total points
ID: 22853927
0
 

Author Comment

by:nicktimesthree
ID: 22854090
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)?
0
 

Author Comment

by:nicktimesthree
ID: 22854229
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.
0
 
LVL 21

Expert Comment

by:silemone
ID: 22960995
To access what the applet returns?  please explain further....
0

Featured Post

Is Your AD Toolbox Looking More Like a Toybox?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

By the end of 1980s, object oriented programming using languages like C++, Simula69 and ObjectPascal gained momentum. It looked like programmers finally found the perfect language. C++ successfully combined the object oriented principles of Simula w…
Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.

803 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question