Results 1 to 3 of 3

Thread: How do you re-load dynamic ajax content?

  1. #1
    Join Date
    Jul 2007
    Posts
    40
    Thanks
    9
    Thanked 0 Times in 0 Posts

    Default How do you re-load dynamic ajax content?

    1) Script Title:
    Dynamic Ajax Content
    2) Script URL (on DD):
    http://www.dynamicdrive.com/dynamici...jaxcontent.htm
    3) Describe problem:

    Well, I've got this script:

    PHP Code:
    <script language="Javascript">

    <!--

    // Original script = http://www.tamingthebeast.net/scripts/freejavascripts.htm
    // Heavily modified for use in Quikscript learning by Stephen Bartok
    // Last update for words - 9/1/05

    function r(n){return Math.round(Math.random()*(n-1))}

    var 
    test = new String();

    <!--
    one -->

    var 
    one = new Array("bob""bill""ted");

    <!--
    two -->

    var 
    two = new Array("hugged""punched""stabbed");

    <!--
    three-->

    var 
    three = new Array("bob""bill""ted");

    test one[r(one.length)] + " " two[r(two.length)] + " " three[r(three.length)] + ".";

    document.write(test);

    //--></script> 
    So, it regenerates text. So, what I want to do is set up a list of links that use that script, but all differently. But when I used that ajax link, it only loaded it once and didn't regenerate.

    I want it to reload every time I click on the button instead of loading once and staying. How do I do this?

    I have 12 of these links, all generate different text, so I want it to reload all of them in the same column.

    This is the layout I'm using:

    http://www.dynamicdrive.com/style/la...frames-layout/

  2. #2
    Join Date
    Jul 2007
    Posts
    40
    Thanks
    9
    Thanked 0 Times in 0 Posts

    Default

    I can't even get it to work meow

    This is the simple script I was talking about:

    http://tivaelydoc.110mb.com/test2.html

    And this is a make shift layout that it should work in:

    http://tivaelydoc.110mb.com/test1.html

  3. #3
    Join Date
    Jul 2007
    Posts
    40
    Thanks
    9
    Thanked 0 Times in 0 Posts

    Default

    Is there something better than Ajax I could use?

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
  •