Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
0

Need some help with coding (ASP)

New Here ,
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?
TOPICS
Server side applications

Views

983
Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
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.
>

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Mar 06, 2009 Mar 06, 2009

Copy link to clipboard

Copied

Preferable as the user is entering data.

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
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.

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
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?

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
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?
>
>
>

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
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.

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Mar 10, 2009 Mar 10, 2009

Copy link to clipboard

Copied

LATEST
> 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.
>

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines