Click to See Complete Forum and Search --> : Two Childs


Lion4ever
March 14th, 2006, 04:05 AM
Hello,

I'm developing a form that uses a dialog box to input some special data, but i need another dialog, it's possible to have two different "dialog Boxes" (class=child), in one html form?

PeejAvery
March 14th, 2006, 08:53 AM
I'm developing a form that uses a dialog box to input some special data, but i need another dialog, it's possible to have two different "dialog Boxes" (class=child), in one html form?
I guess I am a little confused. Two dialog boxes in a form? There are no dialog boxes in a form, simply input tags are your input possibilities in forms. Are you using JavaScript's prompt command to get information and then planting that in a form?

Are you just trying to make the web browser have multiple windows inside that are like frames except movable?

Lion4ever
March 14th, 2006, 09:30 AM
I'm using JavaScript to get information, and "feeds" an dropdown in the frame child (*1).
But i need another frame child, to get another type of information, so i thought thas was possible to have two or more frames child, but the javascript code(*2) that hides/show the child frame, doesn't refeer to any child in particular, just enable or disable the childs, so with this code is not possible for me to control two frames, possible i'm doing something wrong, or i'me understading something wrong.

PS: I really don't no much about html, neither javascript.

(*1) I've refered dialog box, but what they defined with <DIV ID="X" CLASS="child>, so it's like frames.

(*2)
<SCRIPT LANGUAGE="JavaScript" ID="code">
<!--
function swapDisplay() {
// Make sure a child element exists
var child = event.srcElement.getAttribute("child");
if (null!=child) {
var el = document.all[child]
if (null!=el)
el.style.display = ""==el.style.display ? "block" : ""
}
}

PeejAvery
March 14th, 2006, 10:45 AM
Is this (http://www.scriptasylum.com/misc/popup/popup.html) what you seek?

Lion4ever
March 14th, 2006, 10:51 AM
Is this (http://www.scriptasylum.com/misc/popup/popup.html) what you seek?
I think so, tks.

PeejAvery
March 14th, 2006, 12:26 PM
I think so, tks.
You're welcome.