EDIT: I needed to put a ReRender, but why?
Trying to pass an action function param to the VFP's custom controller. The value is not passing as passedVariableString returns null on the debug. Where am I going wrong?
Initiated in between script tags on VFP:
var variable = 'some text here';
launchActionFunction(variable);
On same VFP:
<apex:actionFunction action="{!launchActionFunction}" name="launchActionFunction">
<apex:param name="passedVariable" value=""/>
</apex:actionFunction>
On Controller
public void launchActionFunction()
{
string passedVariableString =
system.CurrentPageReference().getParameters().get('passedVariable');
system.debug(passedVariableString);
}