View Full Version : How do you re-load dynamic ajax content?

11-22-2008, 11:02 PM
1) Script Title:
Dynamic Ajax Content
2) Script URL (on DD):
3) Describe problem:

Well, I've got this script:

<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");


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

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


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:


11-23-2008, 07:50 AM
I can't even get it to work meow

This is the simple script I was talking about:


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


11-30-2008, 11:52 AM
Is there something better than Ajax I could use?