HighDots Forums  

Interactive CGI form

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss Interactive CGI form in the Macromedia Dreamweaver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
linkot
 
Posts: n/a

Default Interactive CGI form - 07-06-2004 , 09:15 AM






If you would be so kind, please go to
http://www.johnkerry.com/front/20/index.html
and see the form setup ... how the form field name is in the text field to
begin ... is this possible with DW?
tia, linda


Reply With Quote
  #2  
Old   
Remus Stratulat
 
Posts: n/a

Default Re: Interactive CGI form - 07-06-2004 , 09:31 AM






linkot wrote:
Quote:
If you would be so kind, please go to
http://www.johnkerry.com/front/20/index.html
and see the form setup ... how the form field name is in the text field to
begin ... is this possible with DW?
tia, linda

Something like that is easy to do and is done in JavaScript.

--
*Remus STRATULAT*
Technical Leader MX Division
Dreamweaver Extensions - InterAKT Online
http://www.interaktonline.com


Reply With Quote
  #3  
Old   
linkot
 
Posts: n/a

Default Re: Interactive CGI form - 07-06-2004 , 10:06 AM



Thanks for the info ... easy for you ... not for me
I imagine the script needs to be at each line ... any idea of what that script is?
linda

Reply With Quote
  #4  
Old   
Tom
 
Posts: n/a

Default Re: Interactive CGI form - 07-06-2004 , 12:09 PM



Simple...set the value of the textbox in the HTML, as for removing the
content when you click on the box, that is a javascript issue. Look
at the code below and go through it, if you dont understand what it
means then you started the wrong way round, learn code first, learn
tool second.

Dreamweaver is not a replacement for knowing HTML, or Javascript etc.

Try this:

<form>
<input name="email" VALIDATOR="emailPat" type="text" alt="email
address" value="your email address" ONFOCUS="if(this.value=='your
email address')this.value='';"
ONBLUR="if(this.value=='')this.value='your email address';">
</form>

Cheers,
Tom


On Tue, 6 Jul 2004 13:15:43 +0000 (UTC), "linkot"
<webforumsuser (AT) macromedia (DOT) com> wrote:

Quote:
If you would be so kind, please go to
http://www.johnkerry.com/front/20/index.html
and see the form setup ... how the form field name is in the text field to
begin ... is this possible with DW?
tia, linda


Reply With Quote
  #5  
Old   
Gary White
 
Posts: n/a

Default Re: Interactive CGI form - 07-06-2004 , 12:22 PM



On Tue, 6 Jul 2004 14:06:08 +0000 (UTC), "linkot"
<webforumsuser (AT) macromedia (DOT) com> wrote:

Quote:
Thanks for the info ... easy for you ... not for me
I imagine the script needs to be at each line ... any idea of what that script is?

It doesn't necessarily have to be on all of them. See
http://apptools.com/examples/dynamiceventhandler.php.


Gary


Reply With Quote
  #6  
Old   
linkot
 
Posts: n/a

Default Re: Interactive CGI form - 07-06-2004 , 01:37 PM



Thanks so much Gary ... once I wrap my mind around it, I'll be all set ... thanks again, linda

Reply With Quote
  #7  
Old   
Gary White
 
Posts: n/a

Default Re: Interactive CGI form - 07-06-2004 , 01:58 PM



On Tue, 6 Jul 2004 17:37:39 +0000 (UTC), "linkot"
<webforumsuser (AT) macromedia (DOT) com> wrote:

Quote:
Thanks so much Gary ... once I wrap my mind around it, I'll be all set
... thanks again, linda

You're welcome. Shout back if you need more help.


Gary


Reply With Quote
  #8  
Old   
linkot
 
Posts: n/a

Default Re: Interactive CGI form - 07-06-2004 , 02:29 PM



Thanks Gary ... when I put
function restoreDefault(){
if (!this.value){
this.value=this.defaultValue;
}
}
function clearDefault(){
if (this.value==this.defaultValue){
this.value="";
}
}

in the "head" it is visible on the top of the page!?
linda


Reply With Quote
  #9  
Old   
linkot
 
Posts: n/a

Default Re: Interactive CGI form - 07-06-2004 , 02:54 PM



I'm back ... but you probaly knew I would be ...
http://linkot.tripod.com/contact_js.html is where my attempt is located. My
text moves around and doesn't disappear and reappear. I think I understood
that all three things go into the head ... wrong/right
linda


Reply With Quote
  #10  
Old   
Gary White
 
Posts: n/a

Default Re: Interactive CGI form - 07-06-2004 , 06:59 PM



On Tue, 6 Jul 2004 18:54:18 +0000 (UTC), "linkot"
<webforumsuser (AT) macromedia (DOT) com> wrote:

Quote:
I'm back ... but you probaly knew I would be ...
http://linkot.tripod.com/contact_js.html is where my attempt is located. My
text moves around and doesn't disappear and reappear. I think I understood
that all three things go into the head ... wrong/right

What you have is working for me in both Firefox and IE6.


Gary


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.