Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Connecting to iseries Database

Status
Not open for further replies.

SDyke

MIS
Oct 13, 2005
55
US
Is there a simple solution to connecting to a remote data base to verify a use input on an HTML form. This would neeed to be a DSN-less connection. My web app already contains Java classes that make connections for various data. However, this situation involves a user inputing a job number which I need to verify before the form can be submitted. Could I use a java class called from javascript?

Please help.
 
...Could I use a java class called from javascript?
Have a look at DWR (Direct Web Remoting). This will allow you to expose Java classes to javascript. Ideally you would use an AJAX approach triggered on the onchange event for the input.

You could do this without DWR... and just use a regular AJAX request that is processed server-side.


Cheers,
Jeff

[tt]Jeff's Page @ Code Couch
[/tt]

What is Javascript? FAQ216-6094
 
Thank. I have now looked at the AJAX and can get it to do some simple stuff. But how do I use it to make a remote connection and get data based on a SQL statement?
 
But how do I use it to make a remote connection and get data based on a SQL statement?

Use a server-side language to make a connection string to the database. Ususally something like ASP or ASP.NET.

That's the entire idea of AJAX, being able to go server-side w/o having to refresh/reload your web page.



[monkey][snake] <.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top