Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_web_howto thread: change bgcolor of input text box on parent window when closing the child window


Message #1 by william.sze@s... on Thu, 9 May 2002 10:33:57 -0400
Hi all,

I have been using the following VBScript code to update the values in the
parent window when closing a child window. Is there a way to change the
background color of the text box, say the txtBadCount box,  in parent
window as well.?

     opener.document.all("txtInspCount").value = document.all
("InspCount").value
     opener.document.all("txtBadCount").value = document.all
("BadCount").value
     opener.document.all("SN").value = ""
     window.close()

Thanks
William

Message #2 by santhi_maadhaven@y... on Wed, 15 May 2002 11:01:57
HI,
  We can change the background color
Here is the syntax
window.opener.document.[formname].[textboxname].style.backgroundcolor="red"



Regards,
santhi





Message #3 by william.sze@s... on Wed, 15 May 2002 08:15:35 -0400
Santhi,

Got it work using "background" instead of "backgroundcolor"

window.opener.document.[formname].[textboxname].style.background="red"

Thanks for your help
William



                                                                                                                       
                    santhi_maadhaven@y...                                                                                 
                    ahoo.co.in               To:     "ASP Web HowTo" <asp_web_howto@p...>                      
                                             cc:                                                                       
                    05/15/02 07:01 AM        Subject:     [asp_web_howto] Re: change bgcolor of input text box on      
                    Please respond to         parent window when closing the child window                              
                    "ASP Web HowTo"                                                                                    
                                                                                                                       
                                                                                                                       




HI,
  We can change the background color
Here is the syntax
window.opener.document.[formname].[textboxname].style.backgroundcolor="red"



Regards,
santhi






---

Improve your web design skills with these new books from Glasshaus.

Usable Web Menus
http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=nosim/theprogramme
r-20
Constructing Accessible Web Sites
http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=nosim/theprogramme
r-20
Practical JavaScript for the Usable Web
http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=nosim/theprogramme
r-20




Message #4 by santhi_maadhaven@y... on Wed, 15 May 2002 13:54:44
Hi william
ok.No mention pls.
santhi

> 
Santhi,

Got it work using "background" instead of "backgroundcolor"

window.opener.document.[formname].[textboxname].style.background="red"

Thanks for your help
William



                                                                           
                                            
                    
santhi_maadhaven@y...                                                         
                        
                    ahoo.co.in               To:     "ASP Web HowTo" 
<asp_web_howto@p...>                      
                                             
cc:                                                                       
                    05/15/02 07:01 AM        Subject:     [asp_web_howto] 
Re: change bgcolor of input text box on      
                    Please respond to         parent window when closing 
the child window                              
                    "ASP Web 
HowTo"                                                                     
               
                                                                           
                                            
                                                                           
                                            




HI,
  We can change the background color
Here is the syntax
window.opener.document.[formname].[textboxname].style.backgroundcolor="red"



Regards,
santhi






---

Improve your web design skills with these new books from Glasshaus.

Usable Web Menus
http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=nosim/theprogramme
r-20
Constructing Accessible Web Sites
http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=nosim/theprogramme
r-20
Practical JavaScript for the Usable Web
http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=nosim/theprogramme
r-20





  Return to Index