javascript - Activate SWFUpload trigger with plain anchor -


this might simple question simple fix, unable figure out solution.

i using swfupload on site facilitate file uploads (obviously), however, requires placing placeholder using span or of likes:

<span id="swf_placeholder_etc"></span> 

and calling swfupload replaces span with:

<object id="swfupload_1" type="application/x-shockwave-flash" data="/swfupload/flash/swfupload.swf?preventswfcaching=1365470153721" width="120" height="35" class="swfupload">   <param name="wmode" value="transparent">   <param name="movie" value="/swfupload/flash/swfupload.swf?preventswfcaching=1365470153721">   <param name="quality" value="high">   <param name="menu" value="false">   <param name="allowscriptaccess" value="always">   <param name="flashvars" value="all settings in here"> </object> 

this requires passing kinds of flash vars using clunky image various rollover/activity states of button in in order 'style' it, , use term 'style' very loosely.

i want have hidden flash object, can activate using javascript call flash either trigger click (which not think work, due security reasons) or have call swfupload's code trigger action - using nice, easy style <a> tag.

anyone? cannot first person has ever wanted this, hope else has found success.

you can like

swfupload.instances.swfupload_0.selectfiles() or selectfile() 

but unfortunately it's not supported in flash 10 + make html element, style it, , serve button text image


Comments

Popular posts from this blog

android - getbluetoothservice() called with no bluetoothmanagercallback -

sql - ASP.NET SqlDataSource, like on SelectCommand -

ios - Undefined symbols for architecture armv7: "_OBJC_CLASS_$_SSZipArchive" -