HighDots Forums  

Text Field in Forms

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss Text Field in Forms in the Macromedia Dreamweaver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Waitingforanswer
 
Posts: n/a

Default Text Field in Forms - 10-29-2005 , 09:59 PM






Text fields (whether must fill or not) are automatically colored with a dull
yellow kind of color. That is ok.

But my issue is for some reason 2 out of 11 text fields are not adopting the
dull yellow kind of color. It is plain white. I look at the code and the code
of these two text fields are exactly the same as the rest of the 9 text fields
that have the dull yellow color.

Has anyone encountered this and if so, what is the solution.

Thanks in advance.


Reply With Quote
  #2  
Old   
PParker
 
Posts: n/a

Default Re: Text Field in Forms - 10-30-2005 , 01:09 AM






Have you applied a css to the feilds at all?

I use them to color form fields all the time
maybe you applied to other ones without knowing
try it anyway you can allways make a css just for the fields and then they
will all be the same
"Waitingforanswer" <webforumsuser (AT) macromedia (DOT) com> wrote

Quote:
Text fields (whether must fill or not) are automatically colored with a
dull
yellow kind of color. That is ok.

But my issue is for some reason 2 out of 11 text fields are not adopting
the
dull yellow kind of color. It is plain white. I look at the code and the
code
of these two text fields are exactly the same as the rest of the 9 text
fields
that have the dull yellow color.

Has anyone encountered this and if so, what is the solution.

Thanks in advance.




Reply With Quote
  #3  
Old   
art a part
 
Posts: n/a

Default Re: Text Field in Forms - 10-30-2005 , 05:23 AM



hello,

I suppose you are using IE, right?

for some stupid reason IE is designed to recognise certain field and
automatically applies the yellow colour, regardless of whatever colour you may
have set via a .css file.

use the following script to disable this IE function.

<script type="text/javascript">
<!--
if(window.attachEvent)
window.attachEvent("onload",setListeners);

function setListeners(){
inputList = document.getElementsByTagName("INPUT");
for(i=0;i<inputList.length;i++){
inputList.attachEvent("onpropertychange",restoreSt yles);
inputList.style.backgroundColor = "";
}
selectList = document.getElementsByTagName("SELECT");
for(i=0;i<selectList.length;i++){
selectList.attachEvent("onpropertychange",restoreS tyles);
selectList.style.backgroundColor = "";
}
}

function restoreStyles(){
if(event.srcElement.style.backgroundColor != "")
event.srcElement.style.backgroundColor = "";
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
window.open(theURL,winName,features);
}
//-->
</script>


this should work.

Regards,

Federico


Reply With Quote
  #4  
Old   
John Waller
 
Posts: n/a

Default Re: Text Field in Forms - 10-30-2005 , 05:45 AM



Quote:
for some stupid reason IE is designed to recognise certain field and
automatically applies the yellow colour, regardless of whatever colour you
may
have set via a .css file.
It's the Google toolbar doing this, not IE.

Fields which can be autofilled by the Toolbar are highlighted in yellow.

--
Regards

John Waller




Reply With Quote
  #5  
Old   
John Waller
 
Posts: n/a

Default Re: Text Field in Forms - 10-30-2005 , 05:48 AM



Quote:
Text fields (whether must fill or not) are automatically colored with a
dull
yellow kind of color. That is ok.

But my issue is for some reason 2 out of 11 text fields are not adopting
the
dull yellow kind of color. It is plain white.
This is probably caused by the Google Toolbar in IE or FF.

Fields which can be autofilled with data by clicking Autofill on the Toolbar
are colored in yellow.

Fields which will require manual data entry (because the info cannot be
inserted via Autofill) are left default white.

--
Regards

John Waller




Reply With Quote
  #6  
Old   
art a part
 
Posts: n/a

Default Re: Text Field in Forms - 10-30-2005 , 07:18 AM



yes, but that function should fix the problem, whatever the cause.



Reply With Quote
  #7  
Old   
John Waller
 
Posts: n/a

Default Re: Text Field in Forms - 10-30-2005 , 05:22 PM



Quote:
yes, but that function should fix the problem, whatever the cause.
Agreed, although I find the yellow shading to be a good feature rather than
a problem :-)

--
Regards

John Waller




Reply With Quote
  #8  
Old   
Waitingforanswer
 
Posts: n/a

Default Re: Text Field in Forms - 10-30-2005 , 10:25 PM



ok -

1. is there a specific place within the html body or form that I should put
this script into

2. I am assuming that I will just type in this script literally (exactly the
way it is); I am not much into scripts yet so I would not know if there is
something in this script I need to customize

Will wait for your answer and thank you so much


Reply With Quote
  #9  
Old   
art a part
 
Posts: n/a

Default Re: Text Field in Forms - 10-31-2005 , 05:56 AM



yes, just put it as it is, between the <head></head> in your page.

Best

Federico

Reply With Quote
  #10  
Old   
Waitingforanswer
 
Posts: n/a

Default Re: Text Field in Forms - 11-04-2005 , 02:05 PM



Hello. I still need help. I put the script somewhere within the head part of
the code.

The text fields still remain yellow and the two text fields I'm having an
issue as they would not turn yellow still remain white.

I was hoping the script will make all text fields either all white or all
yellow.

Please continue to help me.

Thank.s


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.