Hi,

I just installed the latest version of MySite including the two jquery modules and replaced the script as suggested.

When i add a google droplet (used the Live Weather one) i get a script error when i start dragging it. The message i get is Line: 1 Unexpected call to method or property access. After closing the script error message the drag&drop operation continues normally.

I use a fully patched IE7 under Windows XP.

Firefox 2.0.0.9 works fine.

CommentFileSizeAuthor
#7 Mauki.PNG32.45 KBwvd_vegt

Comments

agentrickard’s picture

Perhaps this is related to http://drupal.org/node/170660.

Does this only happen for content containing Google Gadgets? Do you have any idea which script (MySite's or Google's) is throwing the error?

I do not have access to a PC for testing, so further investigation is appreciated.

wvd_vegt’s picture

Hi,

The first drag is fine but subsequent drags give an error message. According to the script debugger the cause is the statement

html=html.replace(/__LOCATION__/g, encodeURIComponent(location.href))

near the end of the gadget code. It seems like 'location.href' is causing the problem. document.location is defined.

Dragging a collapsed widget works fine.

agentrickard’s picture

So that's a Google error? Not sure what we can do about it. I'm open to ideas.

Do take a look at http://drupal.org/node/170660, as I suspect the issues are related. Perhaps we need to wrap Google Gadget code in some other JS. I did get a report from someone who said that loading a Gadget into WidgetBox and then loading the WidgetBox code into MySite solved similar problems.

wvd_vegt’s picture

Hi,

I just added 'maukie the virtual cat' from widgetbox and that one can be dragged around properly.

But this droplet does blank the browser screen to the background color during dragging.

agentrickard’s picture

Your second sentence is unclear.

agentrickard’s picture

Your second sentence is unclear.

wvd_vegt’s picture

StatusFileSize
new32.45 KB

Hi,

Just what it says the whole browser screen goes light blue during dragging and does not show 1) any info about where i was dragging 2) the other widgets etc. Just a large blue area.

If i drag far outside the right browser border i sometimes get a 'normal' view of the page.

agentrickard’s picture

Is that IE 7?

I am unable to test PC/JS issues. My guess is that it is an issue with jQuery Interface. I'll try to take a look at the known issues for that.

This issue (in #4 and #7) should be filed separately from the original Google issue.

agentrickard’s picture

Status: Active » Closed (duplicate)