AnsweredAssumed Answered

How to get current node object from node id in javascript

Question asked by miteshpanchal on Nov 6, 2006
Latest reply on Nov 8, 2006 by ajshaw
Hi all,

I was trying to implement action on forum. For that I have configured "web-client-config-forum-actions.xml" and written following code


<action id="create_summary">
  <label>Create Summary</label>
  <image>/images/icons/recover.gif</image>
  <script>/Company Home/Data Dictionary/Scripts/atest.js</script>
  <params>
      <param name="id">#{actionContext.id}</param>
   </params>
</action>
here param "id" is node UID.
Now How can i get the javascript node object from args["id"] in my atest.js.
And after getting it I want to access topics and posts of the forum and based on that i want to make summary html page.

I have used parametes like
1. SpaceDetailsBean.space - to get current forum as space -  Got Exceptions
2. ForumBean.forum - to get all children of the forum - Throws Exception in ArrayList

How can i get access to Forum space and children of current forum

waiting for your replys….
Thanks in advance…
Mitesh

Outcomes