FORUM PLAN UPDATE
Date revision: This forum will remain open to new posts and responses until December 1, 2018. (After that date, you will still be able to view and search the forum.) Also, we're taking a second look at the best place to host future conversation. For now, keep using this forum, and stay tuned for more news.



Apr 9, 2013, 6:34 AM
67 Posts

Re: Server side value in CSJS

  • Category: Dojo and Client Side JavaScript
  • Platform: All
  • Release: 8.5.3
  • Role: Developer
  • Tags:
  • Replies: 9
 That doesn't work.
 
All Expressions like
#{javascript:viewScope.EAN}

are failing in the clientside script block.
The evaluator of the editor doesn't allow to save this, because there is a 'content  with runtime binding'.
 
Are there any other proposals ?
Idea: i write the whole script block serverside as pure HTML Code in a text field. Then i can embed the value. 
 
@Dan:
i don't know to integrate XSP.getElementById("#{id:inputHidden1}").value into my csjs ???
Nevertheless I think that would be the same problem as described above.
 
 

FORUM PLAN UPDATE
Date revision: This forum will remain open to new posts and responses until December 1, 2018. (After that date, you will still be able to view and search the forum.) Also, we're taking a second look at the best place to host future conversation. For now, keep using this forum, and stay tuned for more news.