cancel
Showing results for 
Search instead for 
Did you mean: 

can i pass javascript parameter to a method

Former Member
0 Kudos

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>

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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.

Answers (0)