struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Casinova <casinova...@gmail.com>
Subject Loading and Calling Java Script in Struts
Date Fri, 21 Nov 2008 15:43:06 GMT

HI all. i found strange issue with my struts application. 

I have a jsp page like below test.jsp

<script language="JavaScript" src="../js/jquery.js"
type="text/javascript"></script>
<script language="JavaScript" src="../js/jquery-ui-1.6rc2.js"
type="text/javascript"></script>
<script language="JavaScript" src="../js/JSloader_1.js"
type="text/javascript"></script>
    

and something like this

script type="text/javascript">
        var jquery = new Jquery();
        jquery.load('calendar');
        
    </script>
    <script type="text/javascript">
	jquery.newCalendar('test1');
	jquery.newCalendar('test2', 'yy/dd/mm');
	jquery.ready();
    </script>

and i m using this as
<input type="text" id="test2" name="cal2" size="20">

when i run this jsp page alone then Java Script working fine..but when i
call this JSP page in struts via some other page using action...then java
script is not working......

Please help me OUT.

Thanks in advance
-- 
View this message in context: http://www.nabble.com/Loading-and-Calling-Java-Script-in-Struts-tp20623678p20623678.html
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message