Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

"uploadifySettings" problem
  • Hi

    I have problem with "uploadifySettings" method.
    When I add 1 picture I want to change "browse" button on another (with different size and location):

    $(\"#uploadify\").uploadify({
    'uploader' : '/uploadify.swf',
    'script' : 'scripts/uploadify.php',
    'cancelImg' : '/gfx/cancel.gif',
    'folder' : 'uploads',
    'fileExt' : '*.jpg;*.jpeg;*.gif;*.png;*.bmp',
    'fileDesc' : 'Pliki graficzne',
    'queueID' : 'fileQueue',
    'auto' : false,
    'multi' : true,
    'queueSizeLimit' : '5',
    onInit : function() { // THIS METHOD DOESN'T WORK AND SCRIPT NOT WORK
    $(\"#uploadify\").uploadifySettings('width', '122');
    $(\"#uploadify\").uploadifySettings('height', '40');
    $(\"#uploadify\").uploadifySettings('buttonImg', '/gfx/inputs.gif');
    },
    onSelectOnce : function() {
    if($('#fileQueue .uploadifyQueueItem').size() > 0)
    {
    $(\"#filebox\").css('width', '440');
    $(\"#uploadify\").uploadifySettings('width', '124');
    $(\"#uploadify\").uploadifySettings('height', '14');
    $(\"#uploadify\").uploadifySettings('buttonImg', '/gfx/browse2.gif');
    }},
    onCancel : function() {
    if($('#fileQueue .uploadifyQueueItem').size() == 1)
    {
    $(\"#uploadify\").uploadifySettings('width', '120');
    $(\"#uploadify\").uploadifySettings('height', '40');
    $(\"#uploadify\").uploadifySettings('buttonImg', '/gfx/inputs.gif');

    }},
    });

    });


    I don't know what is wrong with this code ;/
    Can I use: "$("#uploadify").uploadifySettings('width', '120');" in section: "$("#uploadify").uploadify({" to change parameters?
  • don't use this code: $("#uploadify").uploadifySettings('width', '120');
    use this code: $("#uploadifyUploader").width(120);
    and then you can get the correct result.
  • The user and all related content has been deleted.