cancel
Showing results for 
Search instead for 
Did you mean: 

How to call the java method in java script function in a portal application

Former Member
0 Kudos

Hi Friends,

I am developing one application where i need to fetch the data from KM content and displaying it on the screen in regular interval. I wrote one method in JSPdynpage for fetching data from KM content now I need to call that java method in java script function.

java method(IComponentRequest request)

{

//Coode for fetching the KM content

}

function()

{

<b>//Need to call the java method</b>

setTimeout(function, 5000);//setting the time interval for this function

}

<<htmlb display code>>

If anybody can help me in calling the java method in java script function that will be very helpful for me.

Thanks in advance,

Sandeep Bonam

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

I could able to solve the problem in other way. Thank you all for the help.

Thanks,

Sandeep Bonam.

Former Member
0 Kudos
Former Member
0 Kudos

I could able to solve the problem in other way. Thank you all for the help.

Thanks,

Sandeep Bonam.

Former Member
0 Kudos

Hi,

To my knowledge we cannot mix java and javascript. Java Program is invoked by Java Virtual Machine and javascript is executed by client side browsers.

How in your case a client side browser can invoke a normal java function.

If its applet then its fine. But I don't see a an Applet here!

regards

Vivek Nidhi.