Queuing events to uploader fails, when flash object isn't yet loaded

2 views
Skip to first unread message

Alexander Obuhovich

unread,
Sep 22, 2010, 7:06:24 AM9/22/10
to In-Portal Bugs
Queuing events to uploader fails, when flash object isn't yet loaded.

For example, when you need to disable upload button method queueEvent must be used. This attempt will fail, because queueEvent is not aware if flash is loaded or not.

Task: http://tracker.in-portal.org/view.php?id=870

--
Best Regards,

http://www.in-portal.com
http://www.alex-time.com
ability_to_queue_events_even_before_flash_loaded.patch

Dmitry Andrejev

unread,
Sep 23, 2010, 2:21:22 PM9/23/10
to in-port...@googlegroups.com
Hi Alex,


Thanks for the patch!

Would you please provide some ideas/instructions for test scenarios here.


Cheers!

DA

--
You received this message because you are subscribed to the Google Groups "In-Portal Bugs Team" group.
To post to this group, send email to in-port...@googlegroups.com.
To unsubscribe from this group, send email to in-portal-bug...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/in-portal-bugs?hl=en.



--


Best regards,

Dmitry A.

Alexander Obuhovich

unread,
Sep 27, 2010, 1:56:51 PM9/27/10
to in-port...@googlegroups.com
Here is JS code, that will disable "Browse" button for field "UploaderField" of "prefix" prefix.

var $uploader = UploadsManager._Uploaders[ '<inp2:prefix_InputName field="UploaderField" js_escape="1"/>' ];

$uploader.queueEvent(
    function() {
        setTimeout(
            function () {
                $uploader.callFlash('SetButtonDisabled', [false]);           
            }, 0
        )
    }
);


Maybe we should also introduce new method for getting uploader control based on field name, that will do following line:

$uploader = UploadsManager._Uploaders[ '<inp2:prefix_InputName field="UploaderField" js_escape="1"/>' ];

Dmitry A.

unread,
Jan 5, 2011, 1:31:34 PM1/5/11
to in-port...@googlegroups.com
Patch tested good.


Yes, it would be nice to have proposed way of "getting uploader control based on field name". I guess we can create a Feature Request?


DA.

Alexander Obuhovich

unread,
Jan 5, 2011, 3:06:47 PM1/5/11
to in-port...@googlegroups.com
Yes, why not.

--
You received this message because you are subscribed to the Google Groups "In-Portal Bugs Team" group.
To post to this group, send email to in-port...@googlegroups.com.
To unsubscribe from this group, send email to in-portal-bug...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/in-portal-bugs?hl=en.
Reply all
Reply to author
Forward
0 new messages