Fórumok
how to send data from javascript to java page in liferay 6.2
Amit Sinha, módosítva 9 év-val korábban
how to send data from javascript to java page in liferay 6.2
Junior Member Bejegyzések: 43 Csatlakozás dátuma: 2014.12.31. Legújabb bejegyzések
Hi
in view.jsp of portlet there are 5 labels where every labels have a value
onclick event is added to each label
after clicking any label, javascript is called
now how to send that value (value of label) to a java page
Thanks and Regards
Amit Sinha
in view.jsp of portlet there are 5 labels where every labels have a value
onclick event is added to each label
after clicking any label, javascript is called
now how to send that value (value of label) to a java page
Thanks and Regards
Amit Sinha
Pankaj Kathiriya, módosítva 9 év-val korábban
RE: how to send data from javascript to java page in liferay 6.2
Liferay Master Bejegyzések: 722 Csatlakozás dátuma: 2010.08.05. Legújabb bejegyzések
Use ajax Refer links. (jQuery ajax, AUI-working with ajax).
You have to call ajax method on dom events to pass values from browser to server side code.
You have to call ajax method on dom events to pass values from browser to server side code.
Amit Sinha, módosítva 9 év-val korábban
RE: how to send data from javascript to java page in liferay 6.2
Junior Member Bejegyzések: 43 Csatlakozás dátuma: 2014.12.31. Legújabb bejegyzések
Thanks Pankaj for replying
but i was unable to call ajax method
can u kindly provide some portlet related ajax link
Thanks and Regards
Amit Sinha
but i was unable to call ajax method
can u kindly provide some portlet related ajax link
Thanks and Regards
Amit Sinha
Abhishek Suthar, módosítva 9 év-val korábban
RE: how to send data from javascript to java page in liferay 6.2
New Member Bejegyzések: 18 Csatlakozás dátuma: 2013.06.26. Legújabb bejegyzések
HI Amit,
Check this out.
https://www.liferay.com/web/tauseef/blog/-/blogs/jquery-ajax-with-liferay
Check this out.
https://www.liferay.com/web/tauseef/blog/-/blogs/jquery-ajax-with-liferay
Aditya Bhardwaj, módosítva 9 év-val korábban
RE: how to send data from javascript to java page in liferay 6.2
Junior Member Bejegyzések: 78 Csatlakozás dátuma: 2015.01.08. Legújabb bejegyzések
Hi Amit,
You can call ajax by using resourceURL you can take help from:-
https://www.liferay.com/web/tauseef/blog/-/blogs/jquery-ajax-with-liferay
http://liferay-blogging.blogspot.in/2012/07/alloyui-how-to-send-ajax-request.html
And remember if you are using 6.2
Add following tags in liferay-portlet.xml
<requires-namespaced-parameters>false</requires-namespaced-parameters>
<ajaxable>true</ajaxable>
You can call ajax by using resourceURL you can take help from:-
https://www.liferay.com/web/tauseef/blog/-/blogs/jquery-ajax-with-liferay
http://liferay-blogging.blogspot.in/2012/07/alloyui-how-to-send-ajax-request.html
And remember if you are using 6.2
Add following tags in liferay-portlet.xml
<requires-namespaced-parameters>false</requires-namespaced-parameters>
<ajaxable>true</ajaxable>