By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,445 Members | 1,159 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,445 IT Pros & Developers. It's quick & easy.

How To Target DIV's?

P: n/a
Hi All,

Does anyone know how to target a <DIV...>. I want to put an HTML form
in a DIV. When it's submitted, the results should show up within that
same DIV. Possible?

Thanks.
Jul 20 '05 #1
Share this Question
Share on Google+
8 Replies


P: n/a
rn****@cudbytech.net (Robert Nurse) wrote:
Hi All,

Does anyone know how to target a <DIV...>. I want to put an HTML form
in a DIV. When it's submitted, the results should show up within that
same DIV. Possible?


You mean, to treat a DIV like a frame? You can't, unless you're using
proprietary IE-only programming using an HTTPRequest object that sends
the form data behind the scenes and then uses DOM to rewrite the
contents of the DIV. If you want to do that, an IE-related form would
be a better place to ask details.

--
Harlan Messinger
Remove the first dot from my e-mail address.
Veuillez ôter le premier point de mon adresse de courriel.
Jul 20 '05 #2

P: n/a
Robert Nurse wrote:
I want to put an HTML form in a DIV. When it's submitted, the
results should show up within that same DIV. Possible?


Perhaps. You might try <iframe>, but note that support is not as good
as it could be. Anyways, <iframe> bring up their own set of problems,
so you may want to recreate the whole page in a server side script,
replacing the <div><form>etc.</form></div> with <div>data submitted by
form</div>.

--
Brian (remove ".invalid" to email me)
http://www.tsmchughs.com/
Jul 20 '05 #3

P: n/a
Harlan Messinger <hm*******************@comcast.net> wrote in message news:<j6********************************@4ax.com>. ..
rn****@cudbytech.net (Robert Nurse) wrote:
Hi All,

Does anyone know how to target a <DIV...>. I want to put an HTML form
in a DIV. When it's submitted, the results should show up within that
same DIV. Possible?


You mean, to treat a DIV like a frame? You can't, unless you're using
proprietary IE-only programming using an HTTPRequest object that sends
the form data behind the scenes and then uses DOM to rewrite the
contents of the DIV. If you want to do that, an IE-related form would
be a better place to ask details.


This application is for internal use only and IE is the official
browser. So, this will work for me. Could you direct me to some
online documentation on how to program this up? The only place I've
seen the HTTPRequest object is in Java servlets. "... behind the
scenes" sounds like VBScript. I've also been recently immersed into
VBScript.
Jul 20 '05 #4

P: n/a
On 16 Jul 2004 07:12:46 -0700, Robert Nurse <rn****@cudbytech.net> wrote:
This application is for internal use only and IE is the official
browser.


So, you posted to a www authoring group on an intranet situation, and
didn't think to mention that?

self {bang: head; object: wall;}
Jul 20 '05 #5

P: n/a
Robert Nurse wrote:

This application is for internal use only and IE is the official
browser.


In other words, your question is off-topic for this group, which is
about authoring for the *www*, not for an IE only intranet. You might
have mentioned this upfront, and gotten more useful answers.

(I still think recreating the page with the form submission replacing
the form markup is the best option.)

--
Brian (remove ".invalid" to email me)
http://www.tsmchughs.com/
Jul 20 '05 #6

P: n/a
Neal wrote:
self {bang: head; object: wall;}


That's clearly structure of ActionML 0.666, not presentation. You should
be using
<action><type>bang</type><object>head</object><object>wall</object></action>.
:-)
Jul 20 '05 #7

P: n/a
On Sat, 17 Jul 2004 01:34:45 -0400, Leif K-Brooks <eu*****@ecritters.biz>
wrote:
Neal wrote:
> self {bang: head; object: wall;}


That's clearly structure of ActionML 0.666, not presentation. You should
be using
<action><type>bang</type><object>head</object><object>wall</object></action>.
:-)

Well, I put it in CSS as it really wasn't necessary, it was kinda obvious
from the text alone what was going on... Totally presentational expression
of the text.
Jul 20 '05 #8

P: 1
Did you hapen to find a answer to your problem??? if so email me
May 31 '06 #9

This discussion thread is closed

Replies have been disabled for this discussion.