Skip to Content
avatar image
Former Member

can i pass javascript parameter to a method

Hi Can anyone please let me know on how to solve this problem. Here i'm trying to call class method using javascript parameter. Can it be done or is there any other solution. TIA

function selOrg(nodeid)

{

<% data node type string. %>

<% node = <javascript> nodeid </javascript> .%>

<% call method application->add_item

exporting item = node. %>

} </script>

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    avatar image
    Former Member
    Mar 04, 2005 at 07:13 AM

    I'm pretty certain that just isn't going to work at all.

    JavaScript is compiled after everything else and the BSP is compiled before the Javascript and therefore placing BSP code within a JavaScript function won't work.

    However you can do all of this process when the page is submitted. Check out the BSP forum for some good examples.

    Add comment
    10|10000 characters needed characters exceeded