You need to sign in to do that
Don't have an account?
Mixing of jQuery, ActionFunction
Hi all.
I'm working for pass variable from VF to another VF.
Here is my code.
First VF
Finally, second VF
However, currently variable s1 is not passed.
alert show me empty box.
Could you please guide me about the issue?
Thanks in advance.
I'm working for pass variable from VF to another VF.
Here is my code.
First VF
<apex:form> <apex:actionFunction name="setParam" action="{!passParam}" reRender="resultPanel" status="myStatus"> <apex:param name="firstparam" assignTo="{!s1}" value=""/> </apex:actionFunction> </apex:form>First VF jquery
$(".select") .click(function(event) { alert($(this).val()), setParam($(this).val()); }) ;and then, I have <a> tag for moving to next page like this
<a href="/apex/page2"><div class="col-xs-6 col-md-4 text-center"><b> Next ></b></div ></a>
Finally, second VF
<script> window.onload = function(){ alert({!s1}); } </script>
However, currently variable s1 is not passed.
alert show me empty box.
Could you please guide me about the issue?
Thanks in advance.