473,320 Members | 2,073 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,320 software developers and data experts.

dynamic POST

Is there any way to get an IFRAME to do a POST without altering the
browser window's history?

I can achieve dynamic data loading using GET via the iframe's
contentWindow.location.replace method, but that isn't suitable for large
requests.
--
Robin Becker
Jul 20 '05 #1
9 1786


Robin Becker wrote:
Is there any way to get an IFRAME to do a POST without altering the
browser window's history?

I can achieve dynamic data loading using GET via the iframe's
contentWindow.location.replace method, but that isn't suitable for large
requests.


You could submit some form in the iframe and let the CGI return the HTTP
status code
204
which means no response (body) and therefore I would guess the history
remains unchange.
--

Martin Honnen
http://JavaScript.FAQTs.com/

Jul 20 '05 #2
In article <40********@olaf.komtel.net>, Martin Honnen
<ma*******@yahoo.de> writes


Robin Becker wrote:
Is there any way to get an IFRAME to do a POST without altering the
browser window's history?

I can achieve dynamic data loading using GET via the iframe's
contentWindow.location.replace method, but that isn't suitable for large
requests.


You could submit some form in the iframe and let the CGI return the HTTP
status code
204
which means no response (body) and therefore I would guess the history
remains unchange.


Unfortunately, the idea is to actually get some response via a standard
call back embedded in the returned html/javascript.
--
Robin Becker
Jul 20 '05 #3


Robin Becker wrote:
Unfortunately, the idea is to actually get some response via a standard
call back embedded in the returned html/javascript.


Then I think you will have to live with a history being built up unless
you have an intranet with IE5/Win users and/or Mozilla users where you
could post data with XMLHttpRequest
--

Martin Honnen
http://JavaScript.FAQTs.com/

Jul 20 '05 #4
In article <40********@olaf.komtel.net>, Martin Honnen
<ma*******@yahoo.de> writes


Robin Becker wrote:
Unfortunately, the idea is to actually get some response via a standard
call back embedded in the returned html/javascript.


Then I think you will have to live with a history being built up unless
you have an intranet with IE5/Win users and/or Mozilla users where you
could post data with XMLHttpRequest

So is that a standard in modern browsers? I can certainly do the server
side.
--
Robin Becker
Jul 20 '05 #5


Robin Becker wrote:
In article <40********@olaf.komtel.net>, Martin Honnen
<ma*******@yahoo.de> writes
Then I think you will have to live with a history being built up unless
you have an intranet with IE5/Win users and/or Mozilla users where you
could post data with XMLHttpRequest


So is that a standard in modern browsers? I can certainly do the server
side.


It is not a standard defined by the W3C or any other body publishing
standards for the Web but MS has implemented a COM based XML solution on
Windows that can be scripted with JScript in IE and Mozilla has tried to
implement the same API as close as possible in Mozilla browsers, see
http://www.faqts.com/knowledge_base/.../17226/fid/616
for instance
--

Martin Honnen
http://JavaScript.FAQTs.com/

Jul 20 '05 #6
In article <Jn**************@jessikat.fsnet.co.uk>, Robin Becker
<ro***@jessikat.fsnet.co.uk> writes
In article <40********@olaf.komtel.net>, Martin Honnen
<ma*******@yahoo.de> writes


Robin Becker wrote:
Unfortunately, the idea is to actually get some response via a standard
call back embedded in the returned html/javascript.


Then I think you will have to live with a history being built up unless
you have an intranet with IE5/Win users and/or Mozilla users where you
could post data with XMLHttpRequest

So is that a standard in modern browsers? I can certainly do the server
side.

After a bit of a google I discover quite a lot about this, but the
simple example at http://jibbering.com/2002/4/add.1 seems to add history
in Firefox/Mozilla, but not in IE 6. So the Mozilla XMLHttpRequest
object suffers from the same problem as iframe with post. At present I
can get by with my current strategy, but this sort of thing really bugs
me.
--
Robin Becker
Jul 20 '05 #7


Robin Becker wrote:
After a bit of a google I discover quite a lot about this, but the
simple example at http://jibbering.com/2002/4/add.1 seems to add history
in Firefox/Mozilla, but not in IE 6. So the Mozilla XMLHttpRequest
object suffers from the same problem as iframe with post. At present I
can get by with my current strategy, but this sort of thing really bugs
me.


No, in my view that example is buggy, it doesn't work with Mozilla where
the script causes a script error (check the JavaScript console) and then
the form gets submitted normally and that is why you see a history being
built up.
--

Martin Honnen
http://JavaScript.FAQTs.com/

Jul 20 '05 #8
In article <40******@olaf.komtel.net>, Martin Honnen
<ma*******@yahoo.de> writes


Robin Becker wrote: .......
No, in my view that example is buggy, it doesn't work with Mozilla where
the script causes a script error (check the JavaScript console) and then
the form gets submitted normally and that is why you see a history being
built up.

you're right, but I still don't think I will change from my current
stuff. I will certainly bear this in mind in future though.
--
Robin Becker
Jul 20 '05 #9
On Sun, 07 Mar 2004 16:26:37 +0100, Martin Honnen <ma*******@yahoo.de>
wrote:


Robin Becker wrote:
After a bit of a google I discover quite a lot about this, but the
simple example at http://jibbering.com/2002/4/add.1 seems to add history
in Firefox/Mozilla, but not in IE 6. So the Mozilla XMLHttpRequest
object suffers from the same problem as iframe with post. At present I
can get by with my current strategy, but this sort of thing really bugs
me.


No, in my view that example is buggy, it doesn't work with Mozilla where
the script causes a script error (check the JavaScript console) and then
the form gets submitted normally and that is why you see a history being
built up.


It predates the current Mozilla implementation and is written to the
specification, as I don't have a mozilla to hand, what's the error?

I know it would hit the old Mozilla bug of xmlhttp.send() erroring,
but I can't believe they've not fixed that one.

At least it falls back sensibly...

Cheers,

Jim.
--
comp.lang.javascript FAQ - http://jibbering.com/faq/

Jul 20 '05 #10

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

Similar topics

0
by: Martin | last post by:
Hi. I had a very frustrating afternoon and evening but I have got it all under control now so all of a sudden I am in a good mood. I want to share some insights on output caching with you lot. ...
5
by: RA | last post by:
I have created a button dynamically; which has been added to a TableCell of a TableRow of a Table control. Is there a way to add onclick event which calls a procedure on the Server-side itself....
3
by: Jon Westmore | last post by:
I've been trying to use a combination of ASP and Infopath to display a dynamic form for users to fill out. I have some ASP code that generates a dynamic XML document and the document points to the...
7
by: serge | last post by:
How can I run a single SP by asking multiple sales question either by using the logical operator AND for all the questions; or using the logical operator OR for all the questions. So it's always...
3
by: NateDawg | last post by:
I'm reposting this. I'm kinda in a bind untill i get this figured out, so if anyone has some input it would sure help me out. Ok, I’ve noticed a few gridview problems floating around the forum....
6
by: Tom | last post by:
I am developing my pages on my development machine and then copying to the production server. I am not pre-compiling, I am using the 'dynamic compile' feature. This is working fine except that...
13
by: rn5a | last post by:
In a shopping cart app, suppose a user has placed 5 orders, I want to show him 5 LinkButtons (one for each order) so that when he clicks the first LinkButton, he would be shown the details of his...
7
by: Jo | last post by:
Hi, How can i differentiate between static and dynamic allocated objects? For example: void SomeFunction1() { CObject *objectp = new CObject; CObject object;
9
by: pbd22 | last post by:
Hi. This is just a disaster management question. I am using XMLHTTP for the dynamic loading of content in a very crucial area of my web site. Same as an IFrame, but using XMLHTTP and a DIV. I...
5
by: bearophileHUGS | last post by:
I often use Python to write small programs, in the range of 50-500 lines of code. For example to process some bioinformatics data, perform some data munging, to apply a randomized optimization...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.