Amit's Blog

Sharing Thoughts and Learning

  Home  |   Contact  |   Syndication    |   Login
  43 Posts | 0 Stories | 233 Comments | 14 Trackbacks

News

About Me?
Read it in
Blog Statistics
Proud Member of

Tag Cloud


Archives

Post Categories

Articles

Book Review

I Visit.

OpenSource Project(s)

iframe

If you visit Asp.net Ajax Forum, you will find hundreds of request on File Upload Control that it does not give Ajax version of the page when it is placed in an UpdatePanel. Certainly, it is not possible, as the XMLHTTPRequest object that is used internally to post the form does not support file upload. In this post I will show you how to create Ajax like version of the file upload. The trick is very simple, I will use an Iframe to upload the file so the whole page does not get refreshed and when...
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

Recently I was trying to set an iframe height which is hosted in another domain. But could not able to get its height from its hosting window - It always throws security exception. I searched Google and found a interesting example on Iframe cross domain messaging, here is the link. Based upon it I have created a small solution which finally does the job. Here are files, you can also download these files from this link:// FrameManager.js -- Must be added in Hosting windowvar FrameManager ={ currentFrameId...
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati