Hi
The sample given in this site "Packing A Picnik" is given for a link href. (ie) when we click any link u can get picnik site to be loaded in a lightbox iframe and pass the image name in the import parameter.
But I want the same functionality by using the form file element.
My code for file upload is :
For ex:
<form name="frmAction" id="frmAction" action="
http://www.picnik.com/service/" method="post" enctype="multipart/form-data" >
<input type="hidden" name="_apikey" value="73f32fe27cc90015b0bd8083e30bcab7"/>
<input type="hidden" name="_import" value="imagedata"/>
<input type="hidden" name="_close_target" value="
http://sitename.com/"/>
<input type="hidden" name="_replace" value="yes" />
<input type="file" name="imagedata" />
<input type="button" value="Import!" class="pbox" />
</form>
When i upload any image in the file filed(imagedata) i should get a iframe lightbox similar to the above example (which works with a link href)mentioned in the picnik site . My uploaded image should appear in the picnick site for editing as it does when using a href link.
I found this code in the js file
$('pbox_picnik').innerHTML="<iframe id='pbox_iframe' frameborder='0' scrolling='no' src='"+this._elLink.href+"'></iframe>";
which means in this iframe it takes the src only when there is href link.... But i want to post a form along with the datas(image upload) and send to picnik site within the iframe..
I tried this out and i could not import the image through the file field and load it in iframe....
Does anyone have this code....If you can help me plzzzzz...Its really urgent.... Kindly do the needfull