I would like to pass a parameter from my component to the controller. Here is the source code:
<apex:actionFunction name="attachFil" action="{!attachFile}">
<apex:param name="myImageURL" assignTo="{!pictureurl}" value=""/>
</apex:actionFunction>
<Script>attachFil('ok!!!');</script>
The controller have a field named pictureurl, and a function named attachFile. When I debug in the controller attachFile function, I find the pictureurl = null.