[ 6 posts ]

richardbenson

  • Joined: Wed Feb 11, 2009 6:17 am
  • Posts: 31
  • Offline
  • Profile

Uploader in a Layout and IE

Post Posted: Tue Mar 31, 2009 8:45 am
+0-
Hi there,

Had a weird one that took a full day's debugging to work out! Using the uploader with queue management example, which was then shoehorned into a Layout, IE wouldn't upload. Typically with IE there was no error!

Anyway, lots of alerts later I noted that it was stopping as soon as you tried to reference the upload object from within any function, including handleContentReady() and upload().

Started stripping down features until eventually removing the layout from that page makes it all work fine.

I tried changing names of functions and objects, but nothing works in IE when you have uploader and a layout on the same page.

Has anyone else experienced this or got uploader and layout working on the same page?

If it would help I could knock up some examples, current stuff is password protected.

Richard

David Mosher

  • Username: davemo
  • Joined: Mon Mar 23, 2009 2:18 pm
  • Posts: 3
  • IRC: davemo
  • Offline
  • Profile

Re: Uploader in a Layout and IE

Post Posted: Thu Apr 02, 2009 7:22 am
+0-
I haven't had the same issue with the Layout + Uploader, but we ran into an issue with anything that contains the uploader that then gets shown/hidden via css (ie: display: none;). IE seems to lose complete binding to submit the uploads to the server in this case and it seems it's more of a general thing with IE and showing/hiding flash.

I would suggest examining the CSS of your containing element with Firebug when you use the layouts and see if it has display: none; on it. Could you post a snippet of code with the markup of the containing element you're using to hold the Flash?

richardbenson

  • Joined: Wed Feb 11, 2009 6:17 am
  • Posts: 31
  • Offline
  • Profile

Re: Uploader in a Layout and IE

Post Posted: Thu Apr 02, 2009 7:36 am
+0-
That's very interesting actually, I had the layout being formed after the markup was done (including the flash etc), so simply moving it all around may well be worth a try. I'm pretty sure during the process of creating a layout, YUI marks stuff as display:none, so that could well be it.

I will let you know if changing the ordering helps!

Richard

richardbenson

  • Joined: Wed Feb 11, 2009 6:17 am
  • Posts: 31
  • Offline
  • Profile

Re: Uploader in a Layout and IE

Post Posted: Thu Apr 02, 2009 7:45 am
+0-
Yup, that did it!

Moved the layout functions to the top of the script and put the upload constructer into the onRender event for the layout, now works in IE.

Gotta love IE's 'quirks' :lol:

Thanks for the tip.

Richard

David Mosher

  • Username: davemo
  • Joined: Mon Mar 23, 2009 2:18 pm
  • Posts: 3
  • IRC: davemo
  • Offline
  • Profile

Re: Uploader in a Layout and IE

Post Posted: Thu Apr 02, 2009 8:47 am
+0-
Cool, glad I could be of assistance :)

David George

  • Username: maracuja
  • Joined: Wed Aug 05, 2009 2:15 pm
  • Posts: 1
  • Offline
  • Profile

Re: Uploader in a Layout and IE

Post Posted: Wed Aug 05, 2009 2:22 pm
+0-
Quote:
I haven't had the same issue with the Layout + Uploader, but we ran into an issue with anything that contains the uploader that then gets shown/hidden via css (ie: display: none;). IE seems to lose complete binding to submit the uploads to the server in this case and it seems it's more of a general thing with IE and showing/hiding flash.


awesome you don't know how far and wide i've searched about this error. had to register and say thanks ^__^
  [ 6 posts ]
Display posts from previous:  Sort by  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum