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

Basic questions

Explorer ,
Jun 22, 2007 Jun 22, 2007
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
TOPICS
Server side applications
1.5K
Translate
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 ,
Jun 22, 2007 Jun 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
>


Translate
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
Explorer ,
Jun 22, 2007 Jun 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
Translate
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 ,
Jun 22, 2007 Jun 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
>


Translate
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
Explorer ,
Jun 22, 2007 Jun 22, 2007
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
Translate
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 ,
Jun 23, 2007 Jun 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
>


Translate
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
Explorer ,
Jun 25, 2007 Jun 25, 2007
Hello Murray,

Thanks for the reply.

You got me moving ahead with your explanation. For now I have no other questions and was nice to have your help.
We can call it a day.


Thanks

Peter
Translate
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 ,
Jun 25, 2007 Jun 25, 2007
Good luck, Peter!

--
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:f5oiqe$nji$1@forums.macromedia.com...
> Hello Murray,
>
> Thanks for the reply.
>
> You got me moving ahead with your explanation. For now I have no other
> questions and was nice to have your help.
> We can call it a day.
>
>
> Thanks
>
> Peter


Translate
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
Explorer ,
Jun 27, 2007 Jun 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
Translate
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 ,
Jun 27, 2007 Jun 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
>


Translate
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
Explorer ,
Jun 28, 2007 Jun 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
Translate
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 ,
Jun 28, 2007 Jun 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.
>
>


Translate
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
Explorer ,
Jun 28, 2007 Jun 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
Translate
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 ,
Jun 28, 2007 Jun 28, 2007
Post a link to 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:f611c0$dhm$1@forums.macromedia.com...
> 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
>
> <form action="" method="post" name="form1" id="form1"
> onsubmit="MM_validateForm('Option','','RinRange1:2','Company','','R','Contact','
> ','R','Email','','RisEmail','Phone','','R');return
> document.MM_returnValue">
> <div align="center" >
> <!-- <div align="center"
> onfocus="MM_validateForm('Option','','RinRange1:2','Company','','R','Contact',''
> ,'R','Email','','RisEmail','Phone','','R');return
> document.MM_returnValue"> -->
>


Translate
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
Explorer ,
Jun 29, 2007 Jun 29, 2007
Hi Murray,

This is the link: http://www.wecollect4u.com/peter/HTMLs-NEW/Form-test-Peter-dream.html


Thanks for looking at it.

Peter
Translate
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 ,
Jun 29, 2007 Jun 29, 2007
Just so you'll know, you have not uploaded this file -

<script src="../Scripts/AC_RunActiveContent.js"
type="text/javascript"></script>

You should do this.

As for the form validation, you tried applying it everywhere, right? 8)

Change this -

<body
onload="MM_validateForm('Option1or2','','R','company','','R','contact','','R','email','','NisEmail','phone','','R');return
document.MM_returnValue">

to this -

<body>

--
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:f633c5$nm$1@forums.macromedia.com...
> Hi Murray,
>
> This is the link:
> http://www.wecollect4u.com/peter/HTMLs-NEW/Form-test-Peter-dream.html
>
>
> Thanks for looking at it.
>
> Peter


Translate
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
Explorer ,
Jun 29, 2007 Jun 29, 2007
Murray,

I know that js was not included. It is my understanding that it doesn't affect the problem at all. It is only a Flash movie.
If you need that very much, please let me know.
BTW, I'm depending on a third person to make the changes you need. The person is here all day, so it is a good time to test and make almost imediate changes in the page.

The change you asked me to do is done.

<body ...all that crap"...> to a simple

<body>

I hope it will work but anyway please let me know.


Thanks

Peter
Translate
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 ,
Jun 29, 2007 Jun 29, 2007
That should solve the validation 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:f63ajn$9af$1@forums.macromedia.com...
> Murray,
>
> I know that js was not included. It is my understanding that it doesn't
> affect
> the problem at all. It is only a Flash movie.
> If you need that very much, please let me know.
> BTW, I'm depending on a third person to make the changes you need. The
> person
> is here all day, so it is a good time to test and make almost imediate
> changes
> in the page.
>
> The change you asked me to do is done.
>
> <body ...all that crap"...> to a simple
>
> <body>
>
> I hope it will work but anyway please let me know.
>
>
> Thanks
>
> Peter
>


Translate
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
Explorer ,
Jun 29, 2007 Jun 29, 2007
It got to be something else.

it is not working and it's not even checking any fields when executing under the server.

Did you test the link? Did it work for you?

Peter
Translate
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 ,
Jun 29, 2007 Jun 29, 2007
Well, there's one other minor detail -

</div>
</form>
<p>
<center>
<input name="submit" type="submit" value="SUBMIT" />
<input name="reset" type="reset" value="RESET" />
</center>

Note that the closing </form> tag is ABOVE the submit button. That's not a
good idea! 8)

--
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:f63l3n$lhu$1@forums.macromedia.com...
> It got to be something else.
>
> it is not working and it's not even checking any fields when executing
> under the server.
>
> Did you test the link? Did it work for you?
>
> Peter


Translate
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
Explorer ,
Jun 29, 2007 Jun 29, 2007
Murray,

I think I owe a , perhaps even more than 1. Perhaps 24 of them.
man, you're great

The change place (<form>) saved the day and my sanity

The test ran OK in the Local environment so it will work in the remote(server).

I guess I have to look more closely how things are built by DRW and with your guidance, I have enough information to at least now what to look for in first place whenever I get me the same trouble.

I have a LOT of pages that will have to be validated, all in different ways but now I have learned the basic.

I guess we close he issue again and really I'll bother you only if i get myself in a very messy situation. There is no substitute for experience.


Thanks for you patience.

Have a NICE weekend


Peter
Translate
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 ,
Jun 29, 2007 Jun 29, 2007
LATEST
> I guess I have to look more closely how things are built by DRW

Remember, DW only does what you tell it to. It would be hard to get this
kind of stuff without telling it to do so.

> I have a LOT of pages that will have to be validated, all in different
> ways
> but now I have learned the basic.

There's another lesson - client-side validation is nearly useless as a 'data
integrity' tool. If you must have valid data, then you would have to
validate server-side.

--
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:f63ntj$oth$1@forums.macromedia.com...
> Murray,
>
> I think I owe a , perhaps even more than 1. Perhaps 24 of them.
> man, you're great
>
> The change place (<form>) saved the day and my sanity
>
> The test ran OK in the Local environment so it will work in the
> remote(server).
>
> I guess I have to look more closely how things are built by DRW and with
> your
> guidance, I have enough information to at least now what to look for in
> first
> place whenever I get me the same trouble.
>
>
> I guess we close he issue again and really I'll bother you only if i get
> myself in a very messy situation. There is no substitute for experience.
>
>
> Thanks for you patience.
>
> Have a NICE weekend
>
>
> Peter
>


Translate
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