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.
Comments
Comment #1
agentrickardPerhaps 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.
Comment #2
wvd_vegt commentedHi,
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.
Comment #3
agentrickardSo 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.
Comment #4
wvd_vegt commentedHi,
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.
Comment #5
agentrickardYour second sentence is unclear.
Comment #6
agentrickardYour second sentence is unclear.
Comment #7
wvd_vegt commentedHi,
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.
Comment #8
agentrickardIs 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.
Comment #9
agentrickard