tags:

views:

14

answers:

0

I'm having an odd problem in RAD 6.0.1 with AJAX. I'm using a very simple show/hide (Karl Swedberg's slickbox) and it works fine on a raw html page, but the js functionality just stops when running on the server on a jsp page. e.g. here's my html page

<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">

<script src="theme/jquery-1.3.2.min.js" type="text/javascript"></script>
<script src="theme/showhide.js" type="text/javascript"></script>
<body>
<p><a href="#" id="slick-toggle">Toggle the box</a></p>
<div id="slickbox">This is the box that will be shown and hidden and toggled at your whim. :)</div>

And that works fine, the jsp is:

<jsp:include page="/theme/header.jsp" flush="false"></jsp:include>
<p><a href="#" id="slick-toggle">Toggle the box</a></p>
<div id="slickbox">This is the box that will be shown and hidden and toggled at your whim. :)</div>

And the page simply displays the hidden content and clicking the toggle does nothing. The header.jsp is identical to the header block of the html page.

Is there some quirk to doing AJAX in Rational App Dev?