开发者

execute a jquery plugin?

开发者 https://www.devze.com 2022-12-17 02:43 出处:网络
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).

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号