gigaZhang / struts2-jquery

Automatically exported from code.google.com/p/struts2-jquery
0 stars 0 forks source link

document.onReady with code doesn't work #1076

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hi I  wanted to style my radio button using istyle JQUERY plugin. The below is 
the code.
<link href="styles/blue.css" rel="stylesheet">
<script src="js/icheck.js"></script>
    <script type="text/javascript">
$(document).ready(function()  {
    alert('inside')
     $('input').iCheck({
            checkboxClass: 'icheckbox_square-blue',
            radioClass: 'iradio_square-blue',
            increaseArea: '20%' // optional
          });
});
</script>
The radio button gets styled. But on click of it no ajax functionality seems to 
be working.
What steps will reproduce the problem?
1.Create a main JSP file with target div.
2.Create one more JSP file which would be loaded in target div and include the 
above mentioned code after <head> tag
3.

What is the expected output? What do you see instead?

Expected Ajax functionalities to work. But none of the Ajax functionalities 
seems to be working. This is Hindrance for integration of most beautiful 
plugins developed for Jquery with struts2 JQUERY. 
Which struts2 version?
2.3.15.1
Which struts2-jquery plugin version?
3.6.1

Please provide any additional information below.
It would be really helpful if the plugin can document the steps to integrate 
other JQUERY plugins with struts2 jquery plugin.

Thanks,
Lokesh

Original issue reported on code.google.com by lokeshre...@gmail.com on 20 Jan 2014 at 5:26

GoogleCodeExporter commented 9 years ago
Can someone help me out with this?

Original comment by lokeshre...@gmail.com on 23 Jan 2014 at 2:26

GoogleCodeExporter commented 9 years ago
Sorry but how exactly is this related to the Struts2 jQuery plugin? 
You can use third party jquery plugins mostly without problems together with 
Struts2 jQuery Plugin. But be sure you place custom jQuery code after the 
<sj:head /> tag. 

Also take a look at the showcase sample applications.

Original comment by johgep on 10 Apr 2014 at 8:03