掲示板
how to send data from javascript to java page in liferay 6.2
9年前 に Amit Sinha によって更新されました。
how to send data from javascript to java page in liferay 6.2
Junior Member 投稿: 43 参加年月日: 14/12/31 最新の投稿
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
9年前 に Pankaj Kathiriya によって更新されました。
RE: how to send data from javascript to java page in liferay 6.2
Liferay Master 投稿: 722 参加年月日: 10/08/05 最新の投稿
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.
9年前 に Amit Sinha によって更新されました。
RE: how to send data from javascript to java page in liferay 6.2
Junior Member 投稿: 43 参加年月日: 14/12/31 最新の投稿
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
9年前 に Abhishek Suthar によって更新されました。
RE: how to send data from javascript to java page in liferay 6.2
New Member 投稿: 18 参加年月日: 13/06/26 最新の投稿
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
9年前 に Aditya Bhardwaj によって更新されました。
RE: how to send data from javascript to java page in liferay 6.2
Junior Member 投稿: 78 参加年月日: 15/01/08 最新の投稿
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>