Great GREAT module!

I'm having some trouble with adding droplets with eaither javascript or flash.

When using a JavaScript widget, taken from widgetbox.com, the page suddenly turns white, and tries endlessly to load something... no info is displayed in firebug.. the same code, when placed in a block, works fine. any time MySite displayes or previews the droplet, the white screen comes.

When using flash widgets, I get the flash placed outside the widget-box, aligned to the left of the screen, messing up the display.

I'm assuming these problems are (somhow...) related.

Any ideas?

Drupal 5.10
MySQL database 4.1.22
PHP 5.2.6
MySite 5.x.3.2

CommentFileSizeAuthor
#3 mysitefirefox.png153.69 KBRival24
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

asak’s picture

UPDATE:

1. When placing JavaScript in a block, and making this block into a droplet - things still don't work.
2. When placing Flash in a block, and making that block a droplet - it works fine! problem basically solved...

agentrickard’s picture

Not enough information here to even begin.

This is likely a JavaScript rendering issue and may be browser-specific.

Rival24’s picture

FileSize
153.69 KB

It is indeed browser specific. It doesn't seem to be working on Firefox 2.0.0.14 and 2.0.0.17 and 3.0.3 in Windows, neither on Firefox 3.0.3 in Ubuntu. Internet Explorer 6 doesn't seem to be causing any problems.

When trying widgets from Widgetbox, and I choose Flash instead of javascript, a different anomaly occurs. This also only happens in Firefox, IE works fine. see picture.

edit: strangely enough the examples on therickards.com work fine in firefox..

agentrickard’s picture

The picture looks like a CSS / layout issue. Is that a fixed-width design?

I would try FireBug and see if it tells you anything useful.

Rival24’s picture

I found out what the problem with Flash widgets from widgetbox was. It seems that when using the "full html" input format, there are still two filters active by default (Url filter & line break convertor) which seem to mess up the layout of the page where the droplet is located. I created a custom input filter 'mysite' which doesn't use any filters at all and this seems to be working for Flash at least.

This doesn't fix the white screen javascript problem unfortunately.

I'm currently testing with a simple "quotes by Gandhi" widget from Widgetbox and I'm using the following code for the gadget.

<script type="text/javascript" src="http://widgetserver.com/syndication/subscriber/InsertWidget.js?appId=e5042a18-69a2-42cb-8080-05f01fb6b5a4"></script>

This results in a white screen as described in the comments above. When loading a page with this widget I can see the proper layout for a split second (the droplet hasn't loaded yet), and then the screen turns white. I've tried the code above with both "full html" and my own "mysite" input format.

This only occurs in Firefox, IE6 works fine.

Any suggestions on where to look?

agentrickard’s picture

In FireBug, it might tell you something.

I do not have this issue on FireFox / Mac. But on Safari, the page loads normally and then explodes to WSOD if I try to collapse and then expand the element with the Gandhi widget.

Maybe there is a JS conflict between JQuery and the widget (or the WidgetBox) code.

Rival24’s picture

You were right, there is a conflict with JQuery.

When I installed mysite and the two Jquery modules, the drupal status report told me the following:

Please copy jQuery
In order for the jQuery Update module to work correctly, please copy the file at modules/jquery_update/misc/jquery.js and use it to replace misc/jquery.js.

So I did...

Moments ago I restored the jquery.js version version that comes with Drupal 5 and the 'white screen' problem was solved, but the 'error report' came back. So far I haven't encountered any other problems, but somehow this doesn't feel entirely right. Which version are you using?

I barely have any knowledge of Javascript (or Jquery) so I'm afraid I can't really help with that, sorry.

Thanks for your help so far! much appreciated.

agentrickard’s picture

I'm testing on Drupal 5.x.10 with jQuery Update 5.x.1.0, which is jQuery 1.1.2.

It is also possible that jQuery Interface is the problem.

Rival24’s picture

Ah, it seems that I was using jQuery Update 5.x.2.0. I'm now using the same version as you, and everything is working perfectly now, no errors anymore.

Thanks a bunch.

agentrickard’s picture

Status: Active » Closed (won't fix)

I recently made a note on the project home page reminding people that we use 5.x.1.0. Haven't tested on 5.x.2.0 and have no real plans to do so.