Ask a Question related to Dreamweaver AppDev, Design and Development.
-
RV Chris #1
Manipulating contents of Text Field
My task is to build a login form. My only tool is HTML - the site does not
have Coldfusion. It is a very simple form except that the username needs to be
concatenated with the text '@mydomain.com'
Instead of just:
username: ______________
Password: ______________
I need it to be Username: ________________ @mydomain.com
Password: __________________
When the user clicks 'submit', I want the form.username contents to be
'username@mydomain.com'
I think it would be logical to handle this in the processing script, but I
have no control over that file - someone else, far away is doing that and it
handles more than just my login form. I could do it in Coldfusion, naming the
field username1, and then creating a hidden field called Username that =
#username1#@mydomain.com But, I don't have coldfusion for this page.
I know nothing about Java, but I'm wondering if that is where my solution is?
Any help would be appreciated.
Thanx
RV Chris Guest
-
Verifying Case of field contents
Hi All, A colleague wants a script for a quiz which takes the content of a field and checks it against the given answers. Pretty... -
Simple go to frame (contents of field) script
Hi, I'm having a problem with one of my scripts and I can't figure it out. I have it set so that the I have a object on stage that, when... -
Exporting field contents to .html file
I have a problem that I reckon somone has come across before. We have a database where I enter an HTML header and an HTML footer into two global... -
List all and field names database contents
I have been provided with a DSN, user name and password for one of my clients sites. I'm not an ASP developer and need to view all the contents... -
importing exporting container field contents
Hello Pierre, Under Windows you might find some hints at www.tekstotaal.com/c.fmp.image.import.html and... -
Anthony Brown #2
Re: Manipulating contents of Text Field
Use this script in the head section of your html document.
Change:
"formname" to yours
"textfieldname" to your text field name.
function dothis()
{ document.formname.textfieldname.value =
document.formname.textfieldname.value + "@domain.com";
}
</script>
Then add this to your text field properties:
onBlur="dothis();"
When the user clicks off of the text field it will concantenate for you.
"RV Chris" <webforumsuser@macromedia.com> wrote in message
news:d3i3e8$qv4$1@forums.macromedia.com...> My task is to build a login form. My only tool is HTML - the site does
> not
> have Coldfusion. It is a very simple form except that the username needs
> to be
> concatenated with the text '@mydomain.com'
>
> Instead of just:
> username: ______________
> Password: ______________
>
> I need it to be Username: ________________ @mydomain.com
> Password: __________________
>
> When the user clicks 'submit', I want the form.username contents to be
> 'username@mydomain.com'
> I think it would be logical to handle this in the processing script, but I
> have no control over that file - someone else, far away is doing that and
> it
> handles more than just my login form. I could do it in Coldfusion, naming
> the
> field username1, and then creating a hidden field called Username that =
> #username1#@mydomain.com But, I don't have coldfusion for this page.
>
> I know nothing about Java, but I'm wondering if that is where my solution
> is?
>
> Any help would be appreciated.
> Thanx
>
Anthony Brown Guest
-
Anthony Brown #3
Re: Manipulating contents of Text Field
Sorry I forgot the Jscript part. Here ya go:
<script language="JavaScript">
function dothis()
{ document.formname.textfieldname.value =
document.formname.textfieldname.value + "@domain.com";
}
</script>
"Anthony Brown" <anthony@kermy.com> wrote in message
news:d3i60g$mh$1@forums.macromedia.com...> Use this script in the head section of your html document.
> Change:
> "formname" to yours
> "textfieldname" to your text field name.
>
> function dothis()
> { document.formname.textfieldname.value =
> document.formname.textfieldname.value + "@domain.com";
> }
> </script>
>
>
> Then add this to your text field properties:
>
> onBlur="dothis();"
>
>
> When the user clicks off of the text field it will concantenate for you.
>
>
>
> "RV Chris" <webforumsuser@macromedia.com> wrote in message
> news:d3i3e8$qv4$1@forums.macromedia.com...>>> My task is to build a login form. My only tool is HTML - the site does
>> not
>> have Coldfusion. It is a very simple form except that the username needs
>> to be
>> concatenated with the text '@mydomain.com'
>>
>> Instead of just:
>> username: ______________
>> Password: ______________
>>
>> I need it to be Username: ________________ @mydomain.com
>> Password: __________________
>>
>> When the user clicks 'submit', I want the form.username contents to be
>> 'username@mydomain.com'
>> I think it would be logical to handle this in the processing script, but
>> I
>> have no control over that file - someone else, far away is doing that and
>> it
>> handles more than just my login form. I could do it in Coldfusion,
>> naming the
>> field username1, and then creating a hidden field called Username that =
>> #username1#@mydomain.com But, I don't have coldfusion for this page.
>>
>> I know nothing about Java, but I'm wondering if that is where my solution
>> is?
>>
>> Any help would be appreciated.
>> Thanx
>>
>
Anthony Brown Guest
-
Michael Fesser #4
Re: Manipulating contents of Text Field
.oO(RV Chris)
That's the only reliable way.> When the user clicks 'submit', I want the form.username contents to be
>'username@mydomain.com'
> I think it would be logical to handle this in the processing script
You can do it with Javascript (not Java!), but what if the user has JS>but I
>have no control over that file - someone else, far away is doing that and it
>handles more than just my login form. I could do it in Coldfusion, naming the
>field username1, and then creating a hidden field called Username that =
>#username1#@mydomain.com But, I don't have coldfusion for this page.
>
> I know nothing about Java, but I'm wondering if that is where my solution is?
disabled or not available at all? It will break the script.
Micha
Michael Fesser Guest



Reply With Quote

