Trigger Embedded Object click by clicking a Div?
Hi there!
I am trying to trigger an embedded object click by clicking on another div,
this is the code ive tried:
- $('.action-upload').livequery(function()
- {
- $(this).click(function()
- {
- $('#button').trigger('click');
- });
-
- });
this is the code that comes up for the embedded object in firebug:
- <object width="114" height="29" class="swfupload" data="js/swfupload/swfupload.swf?preventswfcaching=1285336584999" type="application/x-shockwave-flash" id="SWFUpload_0">(parameters)</object>
this is what the code is like in my html document
- <input type="button" id="button" />
im not sure if im supposed to be trying to trigger the form button or the object, im guessing the object as it doesnt appear as a button when the page renders, it appears as an embedded object?
i used the code on a normal input button which works, but when i apply it to this it doesnt
anyone got any ideas how i would do this?
( the actions-upload div is just a normal div with a bg image )
thanks for your time ;)