execute a jquery plugin?
i've got a plugin that binds to a selector eg. a button. and when i click开发者_运维技巧 on the button then the function executes (showing a windows where i can choose a picture to upload).
the code looks like this:
$('#image_upload').uploadify({
'uploader': '../../frontend/jquery/plugins/uploadify/swf/uploadify.swf',
'script': 'controllers/ajaxcalls/image.php',
});
so it binds to a button with id="image_upload". but this will give the button a different look and i dont want that. i want a regular button look.
so i thought i could use a regular and then when i click on that one, it executes uploadify plugin.
is that possible?
Have a look at the documentation. As far is I understand, settings the option
wmode: 'transparent'
should hide the flash-thingy and make your original button visible.
You could also have a look at the buttonText buttonImg hideButton rollover width height cancelImg
options that should allow you to style the button according to your requirements.
Uploadify uses a flash button to take advantage of Flash's file uploading abilities. You can't bind it to a normal button as far as I know.
You can style the button though, this thread has some tips.
精彩评论