PDA

View Full Version : Dynamic Ajax Content



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!

jscheuer1
03-22-2007, 02:21 PM
Things work differently with Ajax loaded content and their scripts, especially if an onload event is involved. If this is the case in your situation, see:

http://www.dynamicdrive.com/forums/showthread.php?t=17426

noorazrin
03-23-2007, 07:18 AM
thx John.. i'll try that one and will let u know it's working or not. thx again!

choodeepupp
10-14-2007, 04:28 PM
I am using the same script!!
URL Script : http://www.dynamicdrive.com/dynamicindex17/ajaxcontent.htm

but it is not working on ie (i have the latest one)

any idea!!??!?!

thank you

jscheuer1
10-14-2007, 04:51 PM
I am using the same script!!
URL Script : http://www.dynamicdrive.com/dynamicindex17/ajaxcontent.htm

but it is not working on ie (i have the latest one)

any idea!!??!?!

thank you

Go live! It will not work in IE 7 locally.

choodeepupp
10-20-2007, 04:56 PM
yes, thank you, it worked as you said!!
one more question:

I m including this ajaxcar on an Arabic website! the external pages are opening fine on their own but when loading inside the website the arabic is showing as question marks!!

what's the problem here!!

Thank you again for your time!

jscheuer1
10-20-2007, 05:11 PM
That depends upon your server (host) and your access to it, see:

http://www.dynamicdrive.com/forums/showthread.php?t=25659

amador
08-03-2010, 12:37 AM
Hi There;

I have a problem, this script only loads 3 pages, If I add more urls, those new ones (more than 3) won´t load @ all....

Any idea?

Thanks, best regards

jscheuer1
08-03-2010, 01:01 AM
Please open a new thread for a new question.