passing parameters into the component from the page
I found some information on how to pass parameters into a component from the page definition like so...
<page>
...
<component>
<region-id>middleRight1</region-id>
<url>/scripts/urlBasedComponent</url>
<pageargs>/here/there</pageargs>
</component>
...
</page>
I need to access this pageargs value in the webscript javascript controller but am at a loss of how to do it.
Two main questions are:
- if the variable is wrapped with <pageargs> then what key do I give to some method to extract that value? or can the term "pageargs" be replaced with any value?
- what method can be used in the webscript javascript to extract that variable(s) passed in?
Thanks
Kris