Javascript error when I try to move a widget

Aug 28, 2008 at 4:40 PM
I am trying to put the blog in the same folder as my website. When I try to click the widget to move it I get a generic javascript error. Can anyone point me in the right direction?

Dave
Aug 28, 2008 at 11:31 PM
Most likely you have added some other JavaScript that includes a Window.Onload.  The blog.js includes this method so having more than one causes issues.  Double check that this isn't the case...  Also, you might look at using FireBug in Firefox to watch the JavaScript errors that happen during page load...

btw, I use the ready event with JQuery to get around this issue...

Chris
Aug 29, 2008 at 3:05 PM
Edited Aug 29, 2008 at 3:23 PM

Here is what firebug is spitting out

I am getting a couple of these

imgOn is not defined
onmouseover(mouseover clientX=615, clientY=146)EGvGu2dF...IVg%3D%3D (line 2)
imgOn("img6");




Firebug needs to POST to the server to get this information for url:
http://localhost:3370/Web/admin/WidgetEditor.aspx?move=91bd1826-7bfe-4572-8432-52d79f2de526;d8527d08-c70a-45ea-bac4-84ec91f38305;80182ec4-3abc-43d7-9ca7-433380ad1960;2755ed23-020c-4ff9-9c94-bb974fc78e19;ab3ea4e1-fd5a-4435-a5e1-c076e3f4e3d0&rnd=0.8719989116123928

This second POST can interfere with some sites. If you want to send the POST again, open a new tab in Firefox, use URL 'about:config', set boolean value 'extensions.firebug.allowDoublePost' to true
This value is reset every time you restart Firefox This problem will disappear when https://bugzilla.mozilla.org/show_bug.cgi?id=430155 is shipped.

Firebug needs to POST to the server to get this information for url:
http://localhost:3370/Web/admin/WidgetEditor.aspx?move=91bd1826-7bfe-4572-8432-52d79f2de526;d8527d08-c70a-45ea-bac4-84ec91f38305;80182ec4-3abc-43d7-9ca7-433380ad1960;ab3ea4e1-fd5a-4435-a5e1-c076e3f4e3d0;2755ed23-020c-4ff9-9c94-bb974fc78e19&rnd=0.4211845314221393

This second POST can interfere with some sites. If you want to send the POST again, open a new tab in Firefox, use URL 'about:config', set boolean value 'extensions.firebug.allowDoublePost' to true
This value is reset every time you restart Firefox This problem will disappear when https://bugzilla.mozilla.org/show_bug.cgi?id=430155 is shipped.

Firebug needs to POST to the server to get this information for url:
http://localhost:3370/Web/admin/WidgetEditor.aspx?move=91bd1826-7bfe-4572-8432-52d79f2de526;d8527d08-c70a-45ea-bac4-84ec91f38305;80182ec4-3abc-43d7-9ca7-433380ad1960;ab3ea4e1-fd5a-4435-a5e1-c076e3f4e3d0;2755ed23-020c-4ff9-9c94-bb974fc78e19&rnd=0.6378004568212271

This second POST can interfere with some sites. If you want to send the POST again, open a new tab in Firefox, use URL 'about:config', set boolean value 'extensions.firebug.allowDoublePost' to true
This value is reset every time you restart Firefox This problem will disappear when https://bugzilla.mozilla.org/show_bug.cgi?id=430155 is shipped.

Aug 30, 2008 at 7:03 AM
Again, it sounds like blog.js is not able to execute the window.onload call...  You should have a look at all of the JavaScript being loaded on your page.  I tried to find a way in Firebug to display the entire JavaScript list but couldn't find it... so I loaded WebDeveloper for FireFox and there is an option under Information | View JavaScript that will display all of the JavaScript code that has loaded with the page... from that view you should be able to search for the Window.Onload method...  if you find more than one then there might be your problem...

Also, you can try and disable any/all custom JavaScript code you may have added and see if the error persists...

Chris