Krystalware
SlickUpload | Documentation | Demos | Purchase | Free Stuff | Forums | Blog | Testimonials | Company | Contact

Krystalware Support Forums

Welcome Guest Search | Active Topics | Log In | Register

Iframe and automatic upload Options
avagarwal
#1 Posted : Wednesday, February 10, 2010 5:42:03 AM
Rank: Member

Groups: Registered

Joined: 12/15/2009
Posts: 10
Location: India

Hi,

Can we configure the control to work in an Iframe, and start off an automatic upload, without posting back the main page? I need the ability to upload an image of an employee and have that displayed, without having to post back the entire page.

Thanks

Anurag

ChrisHynes
#2 Posted : Wednesday, February 10, 2010 8:26:01 PM
Rank: Administration


Groups: Administrators

Joined: 7/7/2005
Posts: 1,341
Location: Arlington, VA

If you create a page that contains just the SlickUpload control, and then host that inside an iframe on your main page, that should work. In the UploadComplete event of the control, set Visible="false" on the SlickUpload control to remove it, and then write out javascript that notifies the main page with the uploaded file information. If you want to automatically upload when a file is selected, take a look at this forum post: http://krystalware.com/forums/yaf_postst1374_Single-button-automatic-upload.aspx.

The other way you could approach this is to use a SlickUpload control on the main page. Set AutoUploadOnPostBack="false" and AutoPostBackAfterUpload="false". Manually trigger the upload by calling kw.submit("<%= SlickUpload1.ClientID %>"). Hook the OnClientProgressUpdate event and monitor for the progress to be complete. At that point, you'll know the upload is complete and you can display the picture. The drawback to this is that you won't be able to get information back about where the file is stored, as a full upload postback won't occur, so your logic will have to use a deterministic path to access the picture.

Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.