Home » Developer & Programmer » Forms » PL/SQL and Javescript Function result
PL/SQL and Javescript Function result [message #361718] Thu, 27 November 2008 14:48 Go to next message
ramtin
Messages: 37
Registered: November 2008
Member
Hi,

I have one onBlur event on one of form field and create a function which now just has one alert command.

This function will call in onBlur event. Everything is working fine.

Now I need pass two number values to this function and also take back the result of that. I need some information or sample code that shows me how I can get the result of calculation from JavaScript function to my PL/SQL Code the result is and number value.

Thank you
Re: PL/SQL and Javescript Function result [message #361719 is a reply to message #361718] Thu, 27 November 2008 15:01 Go to previous messageGo to next message
ramtin
Messages: 37
Registered: November 2008
Member
this is my code:

onBlur =" checkInput(document.MGQGTEL.hate.value,
document.MGQGTEL.hpp.value )"' ));

Now I do not know how change that to get the return value

Thanks
Re: PL/SQL and Javescript Function result [message #361720 is a reply to message #361719] Thu, 27 November 2008 15:19 Go to previous message
ThomasG
Messages: 3212
Registered: April 2005
Location: Heilbronn, Germany
Senior Member
You can't. "Just change the code", that is.

Javascript runs on the client in the browser. PL/SQL runs on the database server.

You need to set up an entire framework in the middle. Perhaps a Webserver or an XSQL Servlet that answers to an XMLHttpRequest and get's the data from the database.

Some more info :

AJAX
XMLHttpRequest
XSQL Servlet





Previous Topic: Numeric overflow in forms 6i
Next Topic: Send &recieve parameters through web-site into Oracle Forms
Goto Forum:
  


Current Time: Sun Feb 09 09:00:30 CST 2025