Solved

Calling a javascript function from a Java web app

Posted on 2008-10-31
5
144 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
Viewers learn about the “while” loop and how to utilize it correctly in Java. Additionally, viewers begin exploring how to include conditional statements within a while loop and avoid an endless loop. Define While Loop: Basic Example: Explanatio…
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…

730 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