Page is a not externally linkable
- Code, Content, and Presentation
-- JavaScript and AJAX
---- random choice from array of functions


ctoz - 10:52 am on Mar 22, 2011 (gmt 0)


OK: the problem is definitely to do with AJAX/loading.

I've reworked the code so that all options are loaded as part of the main page, and made 'display:none'; and reworked the functions 'page1()' etc so that they do 'display:inline" on the appropriate options.

And that works, on the first click. I can live with that.

Question is, is anyone interested in exploring further what the AJAX version needs to make it fire? If so, I can post or send links.

cheers


Thread source:: http://www.webmasterworld.com/javascript/4284932.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com