Skip to main content
Participating Frequently
June 22, 2007
Question

Basic questions

  • June 22, 2007
  • 3 replies
  • 1502 views
Hello,

I'm quite new using Dreamweaver (DRW for short) and I'm able to set up dumb web pages.
The smart ones are the brick wall.

I have a page with,say, 5 entries.

Entry 1 = Radio button to option 1
Entry 2= Radio button for option 2

Entry 3 = Company Name with xxx characters (Required in both options)
Entry 4 = Phone number (Required only if Radio button (option 1 ) is used
Entry 5 = Email address of the user of the page (Required ONLY if radio button (option 2) is selected

all <form id> for the fields are method=POST.

0. ALL fields are blanks when the page is shown.

1. I have to validate each field for : Radio option set, fields are not left in blank etc.
I'm using the Behavior "onSubmit" + Validate Form. No matter how I do it, I always get 2 "textfield missing" message.
Question: What can cause this ?

2. I need to know which radio button is used. I have no clue how to know which one was selected.
Question: How do I detect a radio button entry?

3. Depending on the Option I have to be sure that the needed fields are filled out.
Ex: Option1 : I have to know if company name is filled out, phone number filled out, email should be blank.
Option 2: no phone number have to be filled out but email is required.

I'm not expecting someone to write me a code in whatever language (all I know is a bit of Javascript), assuming that there is a code to be written.

Bottom Line:
The Validation as defined tells me that I have more fields to fill out than the actual number of them. Why?
How do I cross-check the fields depending on the options?
Do I have to write some code for that matter?

Possibly the information given here is not enough to understand what I really expect to see .
If that's the case, please let me know and I'll try explain better in few lines only.

I'd really appreciate some guidelines to help me.

Thanks


pakoppan
This topic has been closed for replies.

3 replies

Inspiring
June 27, 2007
What problems?

--
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
==================


"x#3" <webforumsuser@macromedia.com> wrote in message
news:f5uj0t$ahd$1@forums.macromedia.com...
>I need to reopen this issue snce I'm still having some problems I just
>can't understand.
>
> Is it possible?
>
> Thanks
> peter
>


Inspiring
June 28, 2007
> 1.When testing under IE7, I'm having mixed situations. In one case the
> validation works almost fine but it starts asking to fill out fields that
> are
> After the option. The Option 1 or 2 is never checked.

Sounds like you have applied the validation to the fields instead of to the
form.

Oh - well you'd want to change this -

<div align="center"
onfocus="MM_validateForm('Option','','RinRange1:2','Company','','R','Contact','','R','Email','','RisEmail','Phone','','R');return
document.MM_returnValue">


to this -

<div align="center">

That might be the cause of the problem.


--
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
==================


"x#3" <webforumsuser@macromedia.com> wrote in message
news:f60grr$mm4$1@forums.macromedia.com...
> Hi Murray *ACE*,
>
> I followed your suggestion of
> <body><form>.......................<form><body>
> I changed the radio button to an "Enter 1 or 2" field.
>
> 1.When testing under IE7, I'm having mixed situations. In one case the
> validation works almost fine but it starts asking to fill out fields that
> are
> After the option. The Option 1 or 2 is never checked.
>
>


x_3Author
Participating Frequently
June 28, 2007
Hello Murray.

I changed that line.
Nothing changed in the execution
. The same description of the problem (earlier posting) is still valid.
One addition, after clicking SUBMIT, the page doesn't refresh. I have to refresh it manually and then some validation occurs. Option is never validated.
Sorry.


Changed code follows.
Thanks

peter
x_3Author
Participating Frequently
June 27, 2007
I need to reopen this issue snce I'm still having some problems I just can't understand.

Is it possible?

Thanks
peter
Inspiring
June 22, 2007
Show us the page, please.

--
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
==================


"x#3" <webforumsuser@macromedia.com> wrote in message
news:f5gvd8$cn$1@forums.macromedia.com...
> Hello,
>
> I'm quite new using Dreamweaver (DRW for short) and I'm able to set up
> dumb
> web pages.
> The smart ones are the brick wall.
>
> I have a page with,say, 5 entries.
>
> Entry 1 = Radio button to option 1
> Entry 2= Radio button for option 2
>
> Entry 3 = Company Name with xxx characters (Required in both options)
> Entry 4 = Phone number (Required
> only
> if Radio button (option 1 ) is used
> Entry 5 = Email address of the user of the page (Required ONLY if radio
> button
> (option 2) is selected
>
> all <form id> for the fields are method=POST.
>
> 0. ALL fields are blanks when the page is shown.
>
> 1. I have to validate each field for : Radio option set, fields are not
> left
> in blank etc.
> I'm using the Behavior "onSubmit" + Validate Form. No matter how I do
> it,
> I always get 2 "textfield missing" message.
> Question: What can cause this ?
>
> 2. I need to know which radio button is used. I have no clue how to know
> which one was selected.
> Question: How do I detect a radio button entry?
>
> 3. Depending on the Option I have to be sure that the needed fields are
> filled
> out.
> Ex: Option1 : I have to know if company name is filled out, phone number
> filled out, email should be blank.
> Option 2: no phone number have to be filled out but email is
> required.
>
> I'm not expecting someone to write me a code in whatever language (all I
> know
> is a bit of Javascript), assuming that there is a code to be written.
>
> Bottom Line:
> The Validation as defined tells me that I have more fields to fill out
> than
> the actual number of them. Why?
> How do I cross-check the fields depending on the options?
> Do I have to write some code for that matter?
>
> Possibly the information given here is not enough to understand what I
> really
> expect to see .
> If that's the case, please let me know and I'll try explain better in few
> lines only.
>
> I'd really appreciate some guidelines to help me.
>
> Thanks
>
>
> pakoppan
>


x_3Author
Participating Frequently
June 22, 2007
Murray,
Thanks for the quick reply.
I'm sending the "source code". I guess that's what you are looking for. if you ned the prtscrn, let me know.
The part of the listing starting immediately between line 71 (picture ari-logos) and line 75 (./ANIMATION/MOVER05-BEST-SO-FAR' ); //end AC code are only logo stuff.(doesn't affect what I want to achieve)

Regards

Peter