KevinBatdorf / codaslider

JQuery Slider Plugin
MIT License
121 stars 52 forks source link

Wrong panel upon load, due to cursor? #37

Open TWarfare opened 11 years ago

TWarfare commented 11 years ago

Hi, I am using coda-slider on a website. One of the panels has an Ajax chat room log-in screen. When I load the website, the cursor is locating to the first input box on chat room log-in screen and viewers are presented with half the chat log-in panel and half of the previous panel instead of the home page.

Could this be a code conflict between javascript and Ajax? Or maybe some setting in the coda js?

Any help greatly appreciated.

KevinBatdorf commented 11 years ago

It's more likely the chat room bringing the log-in screen into focus, right?

TWarfare commented 11 years ago

Im not sure. I'll have a dig about in the chat room code.

TWarfare commented 11 years ago

Yes you are right. I removed the chat room and tested and the website loads fine on correct page without it. What a pain that there is a conflict.

TWarfare commented 11 years ago

Ive found it. I think its this 'document.getElementById('loginNameField').focus();' Thanks for pointing me in the right direction.