Reputation: 91
I have a JSP Page like Below
< html >
< head >
< head >
< script type="text/javascript" src=../../jquery.js">
</head>
<script type="text/javascript">
$().ready(function() {
alert("Page Is Loading....");
// Do Some
});
</script>
< body >
< span id="Refresh">
// here I wrote a Some HTML code
< %@include file="/../../some.jsp" %>
< /span>
< /body >
< / html >
The some.jsp also contains the some HTML element that are handled By the some JQuery Function. But I did'nt include the jquery.js in some.jsp
All functions are working fine when first time is page loading.But My Problem is, I try to refresh the span with an id value is Refresh, I am not able to get the Jquery Functionality in between the Span Tag.But, The some.jsp Jquery Function is work well after the Span is Refresh.
How Can I solve the Problem..
Is there any way to dynamically load the jquery.js
Upvotes: 0
Views: 292
Reputation: 1357
I think what you need is jQuery live.
But I can't be sure unless you tell what you are doing in:
// Do Some
And what elements are coming from some.jsp.
jQuery live is used to bind event handlers for elements which are later added/replaced in the DOM.
Upvotes: 1