473,414 Members | 1,740 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,414 software developers and data experts.

Hidden IFrame Values Not Making It To Server: How Do I Debug This?


hi. i have a hidden iframe for uploading files. when
i check the httpfilecollection on the server, it is
always zero - the files never make it to the server.

i know all the javascript is working correctly on
the client b/c i have followed the local variables
using venkman.

so, something is happening on the server.

can somebody kindly guide me as to how to debug
this problem? how do i test for the successful posting
of variables from client to server via hidden iframe?

i appreciate your attention. thank you.

Jan 24 '07 #1
5 2036
Try downloading the HttpWatch utility. It basically lets you monitor
everything the browser is sending over to the server.

"pbd22" <du*****@gmail.comwrote in message
news:11**********************@l53g2000cwa.googlegr oups.com...
>
hi. i have a hidden iframe for uploading files. when
i check the httpfilecollection on the server, it is
always zero - the files never make it to the server.

i know all the javascript is working correctly on
the client b/c i have followed the local variables
using venkman.

so, something is happening on the server.

can somebody kindly guide me as to how to debug
this problem? how do i test for the successful posting
of variables from client to server via hidden iframe?

i appreciate your attention. thank you.

Jan 24 '07 #2
Thanks Marina,

HttpWatch seems to be an expensive commercial product. I did hunt down
fiddler though. I think it works for firefox also. Will check this
out... thanks.

On Jan 24, 7:24 am, "Marina Levit [MVP]" <mari...@comcast.netwrote:
Try downloading the HttpWatch utility. It basically lets you monitor
everything the browser is sending over to the server.

"pbd22" <dush...@gmail.comwrote in messagenews:11**********************@l53g2000cwa.g ooglegroups.com...
hi. i have a hidden iframe for uploading files. when
i check the httpfilecollection on the server, it is
always zero - the files never make it to the server.
i know all the javascript is working correctly on
the client b/c i have followed the local variables
using venkman.
so, something is happening on the server.
can somebody kindly guide me as to how to debug
this problem? how do i test for the successful posting
of variables from client to server via hidden iframe?
i appreciate your attention. thank you.
Jan 24 '07 #3

Ok. I have made some progress with fiddler (thanks again marina).
i am noticing that the "Body" column of the query string being passed
via hidden iframe from client to server is "-1" and all the other
columns
(caching, content-type, user-defined) are blank:

# Result Protocol Host URL Body Caching Content-Type User-defined
54 - HTTP localhost:4362
/progress.aspx?video_1=&video_0=C%3A%5CDocuments%20 and%20Settings%5CAdministrator.GATEWAY-SERVER%5CMy%20Documents%5CMy%20Videos%5CGoogle%20V ideos%5CShark%20vs%20Seal.gvi -1

and, here are the performance stats:

Request Count: 1
Bytes Sent: 881
Bytes Received: 0

RESPONSE CODES
--------------
HTTP/ 0: 1

RESPONSE BYTES (by Content-Type)
--------------
~headers: 0

what does all this mean? i am guessing it means that the iframe files
never
made it to the server? does anybody more experienced than myself with
fiddler see a solution in/from the above information?

again, i thank you.
On Jan 24, 7:56 am, "pbd22" <dush...@gmail.comwrote:
Thanks Marina,

HttpWatch seems to be an expensive commercial product. I did hunt down
fiddler though. I think it works for firefox also. Will check this
out... thanks.

On Jan 24, 7:24 am, "Marina Levit [MVP]" <mari...@comcast.netwrote:
Try downloading the HttpWatch utility. It basically lets you monitor
everything the browser is sending over to the server.
"pbd22" <dush...@gmail.comwrote in messagenews:11**********************@l53g2000cwa.g ooglegroups.com...
hi. i have a hidden iframe for uploading files. when
i check the httpfilecollection on the server, it is
always zero - the files never make it to the server.
i know all the javascript is working correctly on
the client b/c i have followed the local variables
using venkman.
so, something is happening on the server.
can somebody kindly guide me as to how to debug
this problem? how do i test for the successful posting
of variables from client to server via hidden iframe?
i appreciate your attention. thank you.
Jan 24 '07 #4
HttpWatch should have a free trial version, or a limited functionality
version. I know I have downloaded and used the free version before.

As for your problem, I am not sure what the 'body' column is you are
referring to.

By the way, are you trying to have your hidden ifame upload files from the
client machine to the server without user intervention? If so, that is not
possible (for security reasons). You would have to either use an file input
control and have the user browse to the file to upload and then submit the
form, or have some sort of ActiveX that the user installs that would then be
able to do this automatically.

"pbd22" <du*****@gmail.comwrote in message
news:11**********************@m58g2000cwm.googlegr oups.com...
Thanks Marina,

HttpWatch seems to be an expensive commercial product. I did hunt down
fiddler though. I think it works for firefox also. Will check this
out... thanks.

On Jan 24, 7:24 am, "Marina Levit [MVP]" <mari...@comcast.netwrote:
>Try downloading the HttpWatch utility. It basically lets you monitor
everything the browser is sending over to the server.

"pbd22" <dush...@gmail.comwrote in
messagenews:11**********************@l53g2000cwa. googlegroups.com...
hi. i have a hidden iframe for uploading files. when
i check the httpfilecollection on the server, it is
always zero - the files never make it to the server.
i know all the javascript is working correctly on
the client b/c i have followed the local variables
using venkman.
so, something is happening on the server.
can somebody kindly guide me as to how to debug
this problem? how do i test for the successful posting
of variables from client to server via hidden iframe?
i appreciate your attention. thank you.

Jan 24 '07 #5
thanks marina,

ok, i see what you are talking about on the httpwatch site. still, i
have
installed fiddler and it seems to be doing what you are talking about.

the upload i have requires users to search for the file on their hard
drive and upload via input (type=file) through hidden iframe to the
server.

i think i might have a lead - thanks to fiddler. the header response i
am getting
looks like this:

Accept:text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5

but, i thought i should be seeing multipart/form-data??

my form tag looks like this on the upload form:

<form id="uploadForm" name="uploadForm" method="post"
enctype="multipart/form-data" action="progress.aspx.vb"
onsubmit="return callToServer(this.name)">
<input id="my_file_element" type="file" name="file_1" /><input
type='submit' value='Submit Query' />
</form>

but, i wonder if the fact that the "action=" attribute is pointing to
an aspx (client) page is mucking things up? the client looks like this:

<%@ Page Language="VB" Title="Untitled Page"
CodeFile="progress.aspx.vb" Inherits="progress" %>

<script type="text/javascript">
window.parent.handle();
</script>

does the this page also need an enctype=multipart/form-data?

i'll mess around with this to see if i can get anywhere... let me know
if anything
jumps out at you. thanks again for the suggestions.

peter

On Jan 24, 11:13 am, "Marina Levit [MVP]" <mari...@comcast.netwrote:
HttpWatch should have a free trial version, or a limited functionality
version. I know I have downloaded and used the free version before.

As for your problem, I am not sure what the 'body' column is you are
referring to.

By the way, are you trying to have your hidden ifame upload files from the
client machine to the server without user intervention? If so, that is not
possible (for security reasons). You would have to either use an file input
control and have the user browse to the file to upload and then submit the
form, or have some sort of ActiveX that the user installs that would then be
able to do this automatically.

"pbd22" <dush...@gmail.comwrote in messagenews:11**********************@m58g2000cwm.g ooglegroups.com...
Thanks Marina,
HttpWatch seems to be an expensive commercial product. I did hunt down
fiddler though. I think it works for firefox also. Will check this
out... thanks.
On Jan 24, 7:24 am, "Marina Levit [MVP]" <mari...@comcast.netwrote:
Try downloading the HttpWatch utility. It basically lets you monitor
everything the browser is sending over to the server.
"pbd22" <dush...@gmail.comwrote in
messagenews:11**********************@l53g2000cwa.g ooglegroups.com...
hi. i have a hidden iframe for uploading files. when
i check the httpfilecollection on the server, it is
always zero - the files never make it to the server.
i know all the javascript is working correctly on
the client b/c i have followed the local variables
using venkman.
so, something is happening on the server.
can somebody kindly guide me as to how to debug
this problem? how do i test for the successful posting
of variables from client to server via hidden iframe?
i appreciate your attention. thank you.
Jan 24 '07 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: GoCMS | last post by:
Hi, guys: I am trying debug other people(who has left company)'s ASP code, and had difficulty understanding the use of a hidden asp page. The application has an index page, like MyIndex.asp...
1
by: Madame Blablavatsky | last post by:
hello, i am trying to build a kind of very, very simple ritch text editor for people to use with a very simple cms. at the moment i am working on the basic structure. the text is put in an...
1
by: tllcll | last post by:
Hi, I would like to find out how to handle the following: I retrieve the data from the database by calling javabean and return the data back to the same jsp page and then display those values...
6
by: seans | last post by:
Hi, please, can somebody help me with this? I have an iframe on a form. I need to add "runat=server" to the iframe tag to convert to a HTML Server control. When I do that I get the error CS1012:...
4
by: Drew | last post by:
This might beyond the scope of this group because it deals with SharePoint, but I'm not sure if I can't get it to work because of SharePoint or because JavaScript is weird (I don't have much...
10
by: jon | last post by:
I'm trying to use a hidden iframe to print the contents of one div seamlessly. Currently I can create the hidden iframe, copy the contents of the div to the iframe, and print it. I even have a...
8
by: pbd22 | last post by:
hi. i have spent the past week (i am afraid) trying to get the below script for uploading files via a hidden iframe to work. i have narrowed down my problem to the possibility that IE doesnt...
5
by: pbd22 | last post by:
Hi. I am trying to poll a long-running process via a hidden IFrame. I am noticing that the online errata gives advice for handling a server response: window.parent.handleServerResponse(); ...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.