0
Need some help with coding (ASP)
New Here
,
/t5/dreamweaver-discussions/need-some-help-with-coding-asp/td-p/751590
Mar 06, 2009
Mar 06, 2009
Copy link to clipboard
Copied
I am reworking some pages and can't figure out how to do some
things in Dreamweaver CS4. First thing is how can I make two or
three fields add up and have the sum go into another field.
I am using DW CS4, a SQL database and asp pages.
Another question I have is: I have an insert record page set up but I need to change one of the fields from text to menu. How can I do this without having to redo the entire page?
I am using DW CS4, a SQL database and asp pages.
Another question I have is: I have an insert record page set up but I need to change one of the fields from text to menu. How can I do this without having to redo the entire page?
TOPICS
Server side applications
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
LEGEND
,
/t5/dreamweaver-discussions/need-some-help-with-coding-asp/m-p/751591#M133324
Mar 06, 2009
Mar 06, 2009
Copy link to clipboard
Copied
Do you want this to appear in the field as the user is
entering data or
after the form is submitted?
--
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
==================
"Rayhnee" <webforumsuser@macromedia.com> wrote in message
news:gorhq3$4hn$1@forums.macromedia.com...
>I am reworking some pages and can't figure out how to do some things in
> Dreamweaver CS4. First thing is how can I make two or three fields add up
> and
> have the sum go into another field.
>
> I am using DW CS4, a SQL database and asp pages.
>
after the form is submitted?
--
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
==================
"Rayhnee" <webforumsuser@macromedia.com> wrote in message
news:gorhq3$4hn$1@forums.macromedia.com...
>I am reworking some pages and can't figure out how to do some things in
> Dreamweaver CS4. First thing is how can I make two or three fields add up
> and
> have the sum go into another field.
>
> I am using DW CS4, a SQL database and asp pages.
>
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
Rayhnee
AUTHOR
New Here
,
/t5/dreamweaver-discussions/need-some-help-with-coding-asp/m-p/751592#M133325
Mar 06, 2009
Mar 06, 2009
Copy link to clipboard
Copied
Preferable as the user is entering data.
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
LEGEND
,
/t5/dreamweaver-discussions/need-some-help-with-coding-asp/m-p/751593#M133326
Mar 06, 2009
Mar 06, 2009
Copy link to clipboard
Copied
Then you would have to use javascript for that.
<script type="text/javascript">
function addEm(x,y) {
return parseInt(x)+parseInt(y);
}
</script>
</head>
<body>
<form id="form1" name="form1" method="post" action="">
<p>value:
<input type="text" name="value1" id="value1"
onchange="document.form1.sum.value=addEm(this.value,
document.form1.value2.value);" value="0" />
</p>
<p>value:
<input type="text" name="value2" id="value2"
onchange="document.form1.sum.value=addEm(this.value,
document.form1.value1.value);" value="0" />
</p>
<p>sum:
<input type="text" name="sum" id="sum" value="0" readonly="readonly" />
</p>
</form>
--
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
==================
"Rayhnee" <webforumsuser@macromedia.com> wrote in message
news:gorj8r$67h$1@forums.macromedia.com...
> Preferable as the user is entering data.
<script type="text/javascript">
function addEm(x,y) {
return parseInt(x)+parseInt(y);
}
</script>
</head>
<body>
<form id="form1" name="form1" method="post" action="">
<p>value:
<input type="text" name="value1" id="value1"
onchange="document.form1.sum.value=addEm(this.value,
document.form1.value2.value);" value="0" />
</p>
<p>value:
<input type="text" name="value2" id="value2"
onchange="document.form1.sum.value=addEm(this.value,
document.form1.value1.value);" value="0" />
</p>
<p>sum:
<input type="text" name="sum" id="sum" value="0" readonly="readonly" />
</p>
</form>
--
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
==================
"Rayhnee" <webforumsuser@macromedia.com> wrote in message
news:gorj8r$67h$1@forums.macromedia.com...
> Preferable as the user is entering data.
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
Rayhnee
AUTHOR
New Here
,
/t5/dreamweaver-discussions/need-some-help-with-coding-asp/m-p/751594#M133327
Mar 06, 2009
Mar 06, 2009
Copy link to clipboard
Copied
Okay, thanks. I'll give it a try.
Another question I have is: I have an insert record page set up but I need to change one of the fields from text to menu. How can I do this without having to redo the entire page?
Another question I have is: I have an insert record page set up but I need to change one of the fields from text to menu. How can I do this without having to redo the entire page?
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
LEGEND
,
/t5/dreamweaver-discussions/need-some-help-with-coding-asp/m-p/751595#M133328
Mar 06, 2009
Mar 06, 2009
Copy link to clipboard
Copied
Edit the HTML/scripting on the page so that your
<input> tag has been
replaced with a <select> tag with appropriate list elements.
--
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
==================
"Rayhnee" <webforumsuser@macromedia.com> wrote in message
news:gorr1v$fkv$1@forums.macromedia.com...
> Okay, thanks. I'll give it a try.
>
> Another question I have is: I have an insert record page set up but I need
> to
> change one of the fields from text to menu. How can I do this without
> having to
> redo the entire page?
>
>
>
replaced with a <select> tag with appropriate list elements.
--
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
==================
"Rayhnee" <webforumsuser@macromedia.com> wrote in message
news:gorr1v$fkv$1@forums.macromedia.com...
> Okay, thanks. I'll give it a try.
>
> Another question I have is: I have an insert record page set up but I need
> to
> change one of the fields from text to menu. How can I do this without
> having to
> redo the entire page?
>
>
>
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
Rayhnee
AUTHOR
New Here
,
/t5/dreamweaver-discussions/need-some-help-with-coding-asp/m-p/751596#M133330
Mar 10, 2009
Mar 10, 2009
Copy link to clipboard
Copied
I'm getting this error and cannot work out why:
Operand type clash: float is incompatible with text
I am not using float anywhere in the page, that I can tell. Can anyone give me any idea as to why this might be happening? The page was working fine this morning and after I started getting this error, I went and completely recreated the page but I am still getting it.
Operand type clash: float is incompatible with text
I am not using float anywhere in the page, that I can tell. Can anyone give me any idea as to why this might be happening? The page was working fine this morning and after I started getting this error, I went and completely recreated the page but I am still getting it.
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
LEGEND
,
LATEST
/t5/dreamweaver-discussions/need-some-help-with-coding-asp/m-p/751597#M133331
Mar 10, 2009
Mar 10, 2009
Copy link to clipboard
Copied
> I am not using float anywhere in the page
The error is not talking about a CSS float. It is talking about trying to
use an algebraic operand on a TEXT value, e.g., you may be trying to add 234
to apple.
--
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
==================
"Rayhnee" <webforumsuser@macromedia.com> wrote in message
news:gp6dpr$p9f$1@forums.macromedia.com...
> I'm getting this error and cannot work out why:
>
> Operand type clash: float is incompatible with text
>
> I am not using float anywhere in the page, that I can tell. Can anyone
> give me
> any idea as to why this might be happening? The page was working fine this
> morning and after I started getting this error, I went and completely
> recreated
> the page but I am still getting it.
>
The error is not talking about a CSS float. It is talking about trying to
use an algebraic operand on a TEXT value, e.g., you may be trying to add 234
to apple.
--
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
==================
"Rayhnee" <webforumsuser@macromedia.com> wrote in message
news:gp6dpr$p9f$1@forums.macromedia.com...
> I'm getting this error and cannot work out why:
>
> Operand type clash: float is incompatible with text
>
> I am not using float anywhere in the page, that I can tell. Can anyone
> give me
> any idea as to why this might be happening? The page was working fine this
> morning and after I started getting this error, I went and completely
> recreated
> the page but I am still getting it.
>
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more

