noorazrin
03-22-2007, 06:48 AM
1) Script Title: Dynamic Ajax Content (ajaxcars)
2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex17/ajaxcontent.htm
3) Describe problem:
I've downloaded the ajaxcars.zip from Dynamic Ajax Content to try it out. I have problems loading an external page with it's own css and js to the origin page but the css and js of the external page didn't appear.
code for the origin page:
<a href="ajaxpage('xxx.jsp', 'rightcolumn')">
code for the external page (xxx.jsp):
<link rel="STYLESHEET" type="text/css" href="styles/mystyle.css">
<script language="JavaScript" src="js/myjs.js"></script>
<table class="theclass" style="width:400px">
<tr>
<td>Column 1</td>
<td>Column 2</td>
</tr>
<tr>
<td>value 11</td>
<td>value 12</td>
</tr>
<tr>
<td>value 21</td>
<td>value 22</td>
</tr>
<tr>
<td>value 31</td>
<td>value 32</td>
</tr>
</table>
the external page suppose to call the js file to change the look of the table using the defined css. unfortunately this did not happen. when i try to view the external file itself in the browser it looks like it should be.
i've try inserted the loadobjs scripts into the <a href> tag of the origin page to load the js and css file. but it still fails. can anybody help me? thanks!
2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex17/ajaxcontent.htm
3) Describe problem:
I've downloaded the ajaxcars.zip from Dynamic Ajax Content to try it out. I have problems loading an external page with it's own css and js to the origin page but the css and js of the external page didn't appear.
code for the origin page:
<a href="ajaxpage('xxx.jsp', 'rightcolumn')">
code for the external page (xxx.jsp):
<link rel="STYLESHEET" type="text/css" href="styles/mystyle.css">
<script language="JavaScript" src="js/myjs.js"></script>
<table class="theclass" style="width:400px">
<tr>
<td>Column 1</td>
<td>Column 2</td>
</tr>
<tr>
<td>value 11</td>
<td>value 12</td>
</tr>
<tr>
<td>value 21</td>
<td>value 22</td>
</tr>
<tr>
<td>value 31</td>
<td>value 32</td>
</tr>
</table>
the external page suppose to call the js file to change the look of the table using the defined css. unfortunately this did not happen. when i try to view the external file itself in the browser it looks like it should be.
i've try inserted the loadobjs scripts into the <a href> tag of the origin page to load the js and css file. but it still fails. can anybody help me? thanks!