Skip to main content
Participant
March 6, 2009
Question

Need some help with coding (ASP)

  • March 6, 2009
  • 5 replies
  • 1018 views
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?
This topic has been closed for replies.

5 replies

Inspiring
March 10, 2009
> 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.
>

RayhneeAuthor
Participant
March 10, 2009
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.
Inspiring
March 6, 2009
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.

RayhneeAuthor
Participant
March 6, 2009
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?

RayhneeAuthor
Participant
March 6, 2009
Preferable as the user is entering data.
Inspiring
March 6, 2009
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.
>