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
>


x_3Author
Participating Frequently
June 28, 2007
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.

On and off, the validation works for the fields at and below Company Name.(Comments are not included in the validation).
Since ALL fields are required, sometimes I have the email not displayed as in error because it is blank. Other times it does.
This happens in the first time I start the screen (PF12 out of dreanweaver). From then on no matter what I change (blank out a field) the validation just doesn't do anything.

Then I Refresh the browser and even then I might or might not receive error message.
Clearly the whole thing doesn't work when changing option number.
I'm sending the code also so we don't waste time asking for it .

I guess I'm not able to send the code. I paste the code in the the pop-up window hit add and nothing happens.
If the code is not there, I'll try to send it over later.

Thanks you

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
>


Inspiring
June 22, 2007
It's very risky to use spaces in filenames -

BG-cloud%201.jpg

Some browsers will see the space as the end of the filename.

You have each form element in a separate form. That's not the idea. One
form to rule them all, so to speak. You only need a single form on the
page, containing all of those elements.

--
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:f5h205$3aa$1@forums.macromedia.com...
> 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
>


Inspiring
June 23, 2007
> 1. What I have to do to to have all that stuff under only 1 form?
> Would that be: in design mode I "highlight" the whole page and then go to
> behaviors, set the onSubmit + validate form?

Insert a form on the page. Inside that form insert each field/element that
you want to be part of the form. It may be that the most convenient way to
do this would be to make the form enclose the entire page, e.g.,

<body>
<form...>
...
</form>
</body>

When you have the form built so that everything is within that single form,
then click anywhere within it, select the <form> tag on the Tag Selector
bar, and apply your client-side validation.

> 2. What do you suggest to do to have the cross-reference between options
> and
> the respective fields accomplished?

That will require the use of server scripting, I'm afraid. HTML has no
facility to do this.

--
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:f5h969$bf1$1@forums.macromedia.com...
> Murray,
>
> I'll fix the BG-Cloud 1.jpg.
>
> I didn't elaborate too much in my initial posting.
> I must add that I have been trying to figure things out as you can see in
> the
> code, but after trying for a whole day I just lost my pointers,i e, I'm
> not
> sure what I did when something was working or not.
>
> My question really is :
> 1. What I have to do to to have all that stuff under only 1 form?
> Would that be: in design mode I "highlight" the whole page and then go to
> behaviors, set the onSubmit + validate form?
>
> 2. What do you suggest to do to have the cross-reference between options
> and
> the respective fields accomplished?
>
> Ex:
> Option 1 might be something hat must have a company name AND the email
> filled out.
>
> Essentially is the IF Then....Else situation I'm talking about.?
>
> I guess that with these 2 answers, I could close the issue unless I hit
> another brick wall.
>
> OR
>
> Can you point me to "somewhere" in the Internet that might have this kind
> of
> example? ( I think I'm going too far so I apologize for that.)
>
> Thank you
>
>
> Peter
>