This is Interesting: Free Magazines for Graphics designers and webmasters
Home > Archive > Dreamweaver > April 2006 > button question
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
|
|
| CSI Bruce 2006-04-18, 10:29 pm |
| I have a form that will find data the user enters in the form field then they
click the Search button. How do I get the action to happen if they click Search
OR hit Enter? I know this is basic and I feel like an idiot for asking....
Here's my code
<input type="button" name="Submit2" value="Search" onClick='document.layers?
getFromArray(rev.value,descriptions,codes):
document.getElementById("goo").innerHTML=getFromArray(rev.value,descriptions,cod
es)'>
| |
| Murray *ACE* 2006-04-18, 10:29 pm |
| What else is in the form? It is ONLY a search form?
--
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================
"CSI Bruce" <webforumsuser@macromedia.com> wrote in message
news:e214n5$328$1@forums.macromedia.com...
>I have a form that will find data the user enters in the form field then
>they
> click the Search button. How do I get the action to happen if they click
> Search
> OR hit Enter? I know this is basic and I feel like an idiot for asking....
>
> Here's my code
> <input type="button" name="Submit2" value="Search"
> onClick='document.layers?
> getFromArray(rev.value,descriptions,codes):
> document.getElementById("goo").innerHTML=getFromArray(rev.value,descriptions,cod
> es)'>
>
| |
| CSI Bruce 2006-04-18, 10:29 pm |
| I still can't figure this one out. Anyone?
|
|
|
| | Copyright 2003 - 2008 forum4designers.com Software forum Computer Hardware reviews |
|