RE: help with div's and form fields

2003-11-21 Thread Schuster, Steven
That is correct.

 
Glad to help

-Original Message-
From: ColdFusion Programmer [mailto:[EMAIL PROTECTED] 
Sent: Friday, November 21, 2003 9:00 AM
To: CF-Talk
Subject: Re:help with div's and form fields

 
many thanks Steve for this. It works! Am I right to say that only the
embedded frame refreshes and not the entire page?

>The way I did it I just passed a URL var. If you defined a form on the
>second page you could also do something a bit more direct by writing
>directly to the form values on the Test2.cfm. You would need to add it to a
>FORM though as right now I didn't create a FORM for the text boxes but just
>placed them on the page.
> 
>Steve
> 
> 
>-Original Message-
>From: ColdFusion Programmer [mailto:[EMAIL PROTECTED] 
>Sent: Friday, November 21, 2003 7:49 AM
>To: CF-Talk
>Subject: Re:help with div's and form fields
> 
>How do I pass the variable in the first fields value to the IFRAME page ?
>  _  
>
>
  _  


 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: help with div's and form fields

2003-11-21 Thread Schuster, Steven
The way I did it I just passed a URL var. If you defined a form on the
second page you could also do something a bit more direct by writing
directly to the form values on the Test2.cfm. You would need to add it to a
FORM though as right now I didn't create a FORM for the text boxes but just
placed them on the page.

 
Steve

-Original Message-
From: ColdFusion Programmer [mailto:[EMAIL PROTECTED] 
Sent: Friday, November 21, 2003 7:49 AM
To: CF-Talk
Subject: Re:help with div's and form fields

 
How do I pass the variable in the first fields value to the IFRAME page ?
  _  


 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: help with div's and form fields

2003-11-21 Thread Schuster, Steven
Here ya go:

It is not elegant, but just a quick and dirty way to show you how to do
it.

Test.cfm


    DIV Example

 

.normal{position:absolute;top:100px;left:100px;display:inline;}
.hidden{position:absolute;top:-200px;left:-200px;display:none;}

function pressedGo(){
document.getElementById("superDiv1").className ="normal";
    secondFram.location.href='' + frm.userName.value;
}
  
      Enter user name   or area     >          vspace=0 frameborder=0 scrolling=no id="secondFram" name="secondFram" src="">       Test2.cfm     DIV Example SELECT *   FROM FAX_BOX_TABLE WHERE VC_USERNAME = '#URL.ID#' -Original Message- From: ColdFusion Programmer [mailto:[EMAIL PROTECTED] Sent: Friday, November 21, 2003 7:49 AM To: CF-Talk Subject: Re:help with div's and form fields How do I pass the variable in the first fields value to the IFRAME page ?   _   [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

RE: help with div's and form fields

2003-11-21 Thread Schuster, Steven
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

<br>
.normal{position:absolute;top:100px;left:100px;display:inline;}<br>
.hidden{position:absolute;top:-200px;left:-200px;display:none;}<br>


<br>
function pressedGo(){<br>
    if (document.getElementById("superDiv1").className<br>
== "hidden"){<br>
   document.getElementById("superDiv1").className =<br>
"normal";<br>
   document.getElementById("superDiv").className =<br>
"hidden";<br>
 }<br>
}<br>
  <br>







  
   
    
 
  

   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]




help with div's and form fields

2003-11-21 Thread Allan Clarke
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]