Hi Steve,
Can you please show me how to implement the first option. I really don't know anything about iframes. I would appreciate it
Thanks
CFDeveloper
>You have two options here...
>
>One, you can change the second DIV to an IFRAME and pass the variable in the
>first fields value to the IFRAME page which runs a query based off of that
>value and displays the results in the IFRAME form.
>
>The second method is to store the query for the second section in a WDDX
>packet and when the user enters the first value and clicks the button loop
>through the WDXX packet looking for the data.
>
>I can think of other methods as well.
>
>The advantage of step 1 is that the data is 100% accurate as of the time the
>button is clicked. In method 2 it is only as accurate as when the page was
>loaded initially.
>
>Optionally you could use a hidden frame and pass the value to it and then
>take the results and post them back to the caller form value as well.
>
>Steve
>
>
>-Original Message-
>From: Allan Clarke [mailto:[EMAIL PROTECTED]
>Sent: Friday, November 21, 2003 7:22 AM
>To: CF-Talk
>Subject: help with div's and form fields
>
>Hi Everybody,
>I really need a second opinion from someone on using
>DIV's. My page has a form with two div's, the first
>div, has two text fields and a button with a onClick
>event. When the user hits the button, the second div
>is displayed. Here's my code:
>
>
>
> DIV Example
>
>
>.normal{position:absolute;top:100px;left:100px;display:inline;}
>.hidden{position:absolute;top:-200px;left:-200px;display:none;}
>
>
>
>function pressedGo(){
> if (document.getElementById("superDiv1").className
>== "hidden"){
> document.getElementById("superDiv1").className =
>"normal";
> document.getElementById("superDiv").className =
>"hidden";
> }
>}
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> Enter user name
>name="userName"> or area
>
>
>>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>name="txtField1">
>
>name="txtField2">
>
>name="txtField3">
>
>name="txtField4">
>
>
>
>
>
>
>
>
>
>
>The code above is fairly st8forward, I hope. What I
>want it to actually do is pass the usename form field
>value from div 1 and pass the value to a query in div
>2 and display the user details in the div 2 text
>fields without
>actually submitting the form. Is this possible? Is
>there any other way at all to do this sort of a thing?
>
>Many Thanks
>CF Developer
>
>__
>Do you Yahoo!?
>Free Pop-Up Blocker - Get it now
>http://companion.yahoo.com/
> _
>
>
[Todays Threads]
[This Message]
[Subscription]
[Fast Unsubscribe]
[User Settings]