Skip to Content
avatar image
Former Member

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

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • May 17, 2007 at 08:21 AM

    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.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    May 18, 2007 at 04:28 AM
    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

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

      Thanks,

      Sandeep Bonam.

  • avatar image
    Former Member
    May 18, 2007 at 09:53 AM

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

    Thanks,

    Sandeep Bonam.

    Add comment
    10|10000 characters needed characters exceeded