Results 1 to 9 of 9

Thread: Dynamic Ajax Content

  1. #1
    Join Date
    Mar 2007
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Unhappy Dynamic Ajax Content

    1) Script Title: Dynamic Ajax Content (ajaxcars)

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...jaxcontent.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. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    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/s...ad.php?t=17426
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #3
    Join Date
    Mar 2007
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    thx John.. i'll try that one and will let u know it's working or not. thx again!

  4. #4
    Join Date
    Apr 2007
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    I am using the same script!!
    URL Script : http://www.dynamicdrive.com/dynamici...jaxcontent.htm

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

    any idea!!??!?!

    thank you

  5. #5
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Quote Originally Posted by choodeepupp View Post
    I am using the same script!!
    URL Script : http://www.dynamicdrive.com/dynamici...jaxcontent.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.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  6. #6
    Join Date
    Apr 2007
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    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!

  7. #7
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    That depends upon your server (host) and your access to it, see:

    http://www.dynamicdrive.com/forums/s...ad.php?t=25659
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  8. #8
    Join Date
    Aug 2010
    Posts
    7
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default ajaxcars

    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

  9. #9
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Please open a new thread for a new question.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  10. The Following User Says Thank You to jscheuer1 For This Useful Post:

    amador (08-03-2010)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •