Howdy, Stranger!

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

Button Text/Image Problem
  • Hello,
    I need to have a button that is only 13px tall.

    When I use the buttonText setting, the text of off the bottom of the button.
    When I use the buttonImg setting my button gets zoomed down to a very small size.
    When I try using transparent and put an absolute positioned element under it, the upload button becomes unclickable.

    So I am stuck as to how to move foward with this.

    Any help would be greatly appreciated.

    Thanks,
    ml



    $('#button1').fileUpload({
    uploader: '/dataprism/jq/plugins/jquery.uploadify/uploader.swf',
    script: '/dataprism/jq/plugins/jquery.uploadify/upload.php',
    cancelImg: '/dataprism/jq/plugins/jquery.uploadify/cancel.png',
    auto: true,
    folder: '/dataprism/assets',
    height: '13',
    width: '76',
    buttonText: 'Upload',
    //buttonImg: '/dataprism/assets/dataprism/buttons/upload.png',
    //wmode: 'transparent',
    //hideButton: true,
    onComplete: function( event, queueID, fileObj, response, data ) {
    $("#dp_asset_root").click();
    return true;
    }
    });
  • buttonText is only to be used with the button left as it's default size. The size of the default button is fixed, changing width and height will always crop/stretch the default. If you want to use a different sized button then you will need to create an image and use buttonImg

    When using buttonImg make sure you set hideButton to true. hideButton only hides the default button image used in the swf file