Home     |     .Net Programming    |     cSharp Home    |     Sql Server Home    |     Javascript / Client Side Development     |     Ajax Programming

Ruby on Rails Development     |     Perl Programming     |     C Programming Language     |     C++ Programming     |     IT Jobs

Python Programming Language     |     Laptop Suggestions?    |     TCL Scripting     |     Fortran Programming     |     Scheme Programming Language


 
 
Cervo Technologies
The Right Source to Outsource

MS Dynamics CRM 3.0

Ajax Programming

Simultaneous IFrame And XMLHTTPRequest Call?


Hi.

I am uploading large files through a hidden IFrame. This part is
completed and I have no problems with it.

I also am trying to poll the server as the file gets uploaded for
progress. I am trying to do this via XMLHTTPRequest but I am
finding this diffucult. I am starting to wonder if the nature of the
IFrame Call is making it hard to execute a propper ajax-style
request?

question: can i execute a normal XMLHTTPRequest while
uploading via hidden IFrame or should i be polling the server
"through" the hidden IFrame?

In either case, any additional information (and/or code) about how to
do this would be appreciated.

Regards.
Peter

What is your serverside language?

Eric

On 3/13/07, pbd22 <dush@gmail.com> wrote:

Hi.

Thanks for the reply.
I am using ASP.NET and VB.NET with VBScript and JavaScript on
the client.

On Mar 14, 5:15 am, "Eric Pascarello" <alienf@gmail.com> wrote:

Eric,

What I am trying to do is poll the server "while" a huge file is
being
uploaded. I am doing this via hidden iframe because i couldnt make it
work
(and read that it doesnt work) using xmlhttp requests. So, now I am
trying
to figure out how to count bytes "as" the upload is happening. Is
making
a RPC via the hidden iframe my best bet or is there an easier way to
poll
using XMLHTTP that I havent found yet?

Thanks for your help.
Peter

On Mar 14, 7:51 am, "pbd22" <dush@gmail.com> wrote:

Eric,

What I am trying to do is poll the server "while" a huge file is
being
uploaded. I am doing this via hidden iframe because i couldnt make it
work
(and read that it doesnt work) using xmlhttp requests. So, now I am
trying
to figure out how to count bytes "as" the upload is happening. Is
making
a RPC via the hidden iframe my best bet or is there an easier way to
poll
using XMLHTTP that I havent found yet?

Thanks for your help.
Peter

On Mar 14, 7:51 am, "pbd22" <dush@gmail.com> wrote:

On Mar 14, 8:25 am, "pbd22" <dush@gmail.com> wrote:

> Eric,

> What I am trying to do is poll the server "while" a huge file is
> being
> uploaded.

You might want to try my open source NeatUpload component:

http://www.brettle.com/neatupload

Since you are uploading to a hidden iframe, I think you'll need to use
the development snapshot, which is currently:

http://www.brettle.com/Data/Sites/1/NeatUpload-trunk.425.zip

The server-side code for your hidden iframe would access
UploadHttpModule.Files[0] to get the file that was uploaded.

For details, see the docs\Manual.html included in the zip file.

Good luck,

--Dean

Add to del.icio.us | Digg this | Stumble it | Powered by Megasolutions Inc