Go Back   CodingForums.com > :: Client side development > JavaScript programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 12-31-2012, 08:48 PM   PM User | #1
javadeveloper2b
New to the CF scene

 
Join Date: Jan 2012
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
javadeveloper2b is an unknown quantity at this point
JavaScript to trigger flash button for image uploading ?

Hello all,

I've done my research and couldn't find an answer but I couldn't. I need javascript code which I will paste into navigation bar in format like this.

javascript:the_whole_code_goes_here

I want to write a JavaScript code which will click swf button and open it to read image file from Hard Drive and upload it to web form. Or any other solution which would upload image from Hard Drive for me.

This the HTML code of the form

Code:
    <ul id="plupload-container_post-ad_image-select" class="image-container-droppable">
    <li id="image-upload-trigger-container" style="visibility: visible;">
    <a id="plupload-select_post-ad_image-select" class="secondary button" href="#">Add image</a>
    <div id="p17fn085741qvovjsbhpcse1ff90_flash_container" class="plupload flash" style="position: absolute; top: 0px; background: none repeat scroll 0% 0% transparent; z-index: 99999; width: 90px; height: 27px; left: 0px; cursor: pointer;">
    <object id="p17fn085741qvovjsbhpcse1ff90_flash" width="100%" height="100%" style="outline:0" data="/common/plupload/plupload.flash.swf" type="application/x-shockwave-flash">
    <param value="/common/plupload/plupload.flash.swf" name="movie">
    <param value="id=p17fn085741qvovjsbhpcse1ff90" name="flashvars">
    <param value="transparent" name="wmode">
    <param value="always" name="allowscriptaccess">
    </object>
    </div>
    </li>
    </ul>
In FireBug I see that there is a function that might trigger the uploading.

http://prntscr.com/no5fl

And here goes the code of function if it's necessary.

http://pastebin.com/y48XzakJ

So once I have to JS code I will execute it in navigation bar.
javadeveloper2b is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 07:57 PM.


Advertisement
Log in to turn off these ads.