?
Solved

Calling a javascript function from a Java web app

Posted on 2008-10-31
5
Medium Priority
?
146 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 375 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

Java contains several comparison operators (e.g., <, <=, >, >=, ==, !=) that allow you to compare primitive values. However, these operators cannot be used to compare the contents of objects. Interface Comparable is used to allow objects of a cl…
This was posted to the Netbeans forum a Feb, 2010 and I also sent it to Verisign. Who didn't help much in my struggles to get my application signed. ------------------------- Start The idea here is to target your cell phones with the correct…
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…
This video teaches viewers about errors in exception handling.
Suggested Courses
Course of the Month9 days, 3 hours left to enroll

764 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