Question Locked

Help My web page opens half way down

0 helpful
8 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

Hi Everyone
If anyone can help me asap that would be great as my website went to crap today and I need it fixed. It opens with the cursor on the very last google form of the page ??? To see what it is doing go to www.organicgirl.ca
I really need this fixed soon. I have tried looking at any work I did today as it only started last night but can't find anything!

8 replies

by older mycroft

Because that's what anyone on TR will have to do.

However, since your site is only valid for US and Canadian residents, I will be leaving now. ;)

by seanferd

and keep the per post comments (and entry textboxes) on separate pages from the main page. (If you can't code around this issue. But multiple entry boxes per page is quite cluttered anyway.)

When I loaded the page, it jumped all over the place as elements loaded, finally ending up at the bottom as the load finished.

by deity_chooch

Each frame pointing to the Google form has JavaScript that tells the page the cursor needs to start there. The function in question is the .focus() one, displayed in the IFRAME source. This appears to be housed at Google and uneditable by end users. Here's the offending JavaScript:

by swineguy

Where did you find that script? Can I go delete it to fix it and make it start at the top again? Or is there something else I can include to override it?Thanks so much

by deity_chooch

That script exists within the page called by the IFRAMEs (i.e. http://spreadsheets.google.com/embeddedform?key=tlaDjmSvUVqmyyd3rFvPNGQ). The JavaScript section is toward the bottom of said page. You can delete this or edit it to stop if you have write access to change the code of the form. I'd probably delete or comment out (using "//" at the beginning of the line) the following two lines:

divs[j].lastChild.firstChild.lastChild.focus();

divs[i].lastChild.focus();

by swineguy

We pulled the form that had that code and it still seems to be doing it

by swineguy

Thanks
Google is going to deal with it as it is happening on all sites using their form service today!

This discussion is closed to new replies.