Little AJAX problem...

S

SpiralCorp

http://baltasar.kicks-ass.net/

Alright, check it out. Got a little AJAX thingie going to retrieve the
content for the site. The problem is that, in Firefox, it takes 2
clicks on the buttons for the site to change content from one section
to the other. Try out and see for yourself.

It doesn't happen in IE by the way.

Any idea whats going on in there? Thanks for the help
 
S

shimmyshack

http://baltasar.kicks-ass.net/

Alright, check it out. Got a little AJAX thingie going to retrieve the
content for the site. The problem is that, in Firefox, it takes 2
clicks on the buttons for the site to change content from one section
to the other. Try out and see for yourself.

It doesn't happen in IE by the way.

Any idea whats going on in there? Thanks for the help

function handleResponse()
{
if(ajaxRequest.readyState == 4)
{
if (ajaxRequest.status == 200)
{
contentData = ajaxRequest.responseText;
return contentData;
..
..
..


bodyElement.innerHTML=ajaxFunction('contactos');

might do it.
 
S

SpiralCorp

function handleResponse()
{
if(ajaxRequest.readyState == 4)
{
if (ajaxRequest.status == 200)
{
contentData = ajaxRequest.responseText;
return contentData;
.
.
.

bodyElement.innerHTML=ajaxFunction('contactos');

might do it.


No, that doesn't work. Remember the handling function is part of
ajaxFunction. Doing that actually breaks the whole thing. (I had
actually tried it before posting btw)
 
S

SpiralCorp

No, that doesn't work. Remember the handling function is part of
ajaxFunction. Doing that actually breaks the whole thing. (I had
actually tried it before posting btw)

Fixed. Move along. Nothing to see. Thanks for your support ;)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,159
Messages
2,570,885
Members
47,419
Latest member
ArturoBres

Latest Threads

Top