# Random ajax load: convert to jQuery?

**URL:** <https://forum.kirupa.com/t/random-ajax-load-convert-to-jquery/327397>\
**Category:** web dev\
**Created:** [February 27, 2012, 6:18am UTC](https://forum.kirupa.com/t/random-ajax-load-convert-to-jquery/327397 "2012-02-27T06:18:05Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ctoz](https://avatars.discourse-cdn.com/v4/letter/c/59ef9b/32.png) [@ctoz](https://forum.kirupa.com/u/ctoz)\
**Post date:** [February 27, 2012, 6:18am UTC](https://forum.kirupa.com/t/random-ajax-load-convert-to-jquery/327397/1 "2012-02-27T06:18:05Z")

</div>

Hello new colleagues:

I’ve been looking for a way to randomly load a page inline, and have basically found two alternatives: there the all-options-in-one-xml-page way ( the ‘Chuck Norris way’), and then there’s Kirupa’s

[http://www.kirupa.com/html5/loading\_random\_page\_inline\_pg1.htm](http://www.kirupa.com/html5/loading_random_page_inline_pg1.htm)

which functionally is exactly what I want, as the pages each include an image 20-50kb as well as text and some links.

Question is: most of my page is written in primitive jQuery. I’ve made a couple of attempts at converting this script to jQ, but it’s defeated me so far. Possibly someone here might help?

Cheers

ctoz
