Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Search textbox styleSearch textbox style
Previous
 
Next
New Post
10/15/2008 5:17 AM
 

How does one style the search textbox then without changing all the search boxes on all my parent portals then?

I have tried to add a CssClass in to the <DNN:search ID="Search1" runat="server" showWeb="False" CssClass="SearchBox" showSite="False"/>

and added the class to my skin file but that doesnt seem to work it still loads the NormalTextBox class

 Using firebug tells me that the CssClass added to the search control only styles the "Search" text and not the search text area

Strange

Cheers for any help


Class Campers -The Home of the Volkswagen camper & Bus Enthusiast
Worlds Cheapest Homes - Need a Cheap Property, cant afford a home
Beeb iPlayer - Need help with the BBC's new iPlayer software
Internet Insurance Quotes - For the the information you will ever require about Insurance
 
New Post
10/15/2008 10:35 AM
 

You can use input#dnn_dnnSEARCH_txtSearch and a#dnn_dnnSEARCH_cmdSearch to target the search textbox and button, although the ID is generated by DNN automaticlly, but don't worry, it's fixed, you can use it reliable.

 
New Post
10/16/2008 9:17 AM
 

Thanks

But I dont really understand

Can you give me a little more information on how this wil work

 

Cheers


Class Campers -The Home of the Volkswagen camper & Bus Enthusiast
Worlds Cheapest Homes - Need a Cheap Property, cant afford a home
Beeb iPlayer - Need help with the BBC's new iPlayer software
Internet Insurance Quotes - For the the information you will ever require about Insurance
 
New Post
10/17/2008 2:19 AM
 

If you use firebug to see the client side HTML of search skin object, you find this:

<div id="search">
<input type="text" onkeydown="return __dnn_KeyDown('13', ' __doPostBack(%27dnn$dnnSEARCH$cmdSearch%27,%27%27)', event);" class="NormalTextBox" id="dnn_dnnSEARCH_txtSearch" size="20" maxlength="255" name="dnn$dnnSEARCH$txtSearch"/>
<a href=" __doPostBack('dnn$dnnSEARCH$cmdSearch','')" class="ssearch" id="dnn_dnnSEARCH_cmdSearch">Search</a>
</div>

See, a INPUT element with dnn_dnnSEARCH_txtSearch ID and a A element with dnn_dnnSEARCH_cmdSearch ID.

 
New Post
10/20/2008 7:23 AM
 

Right OK I have between your help and the dnn creative people managed to get as far as adding a couple of new styles and semi-contolling the look of my search feild.  However, I was wondering if anyone could tell me how I can get rid of the "" from displaying on my skin from the following code that I have used to display an image as my go button

[code]<dnn:SEARCH runat="server" id="SEARCH1" CssClass="SkinItem" ShowSite="False" ShowWeb="False" Submit='"<img src="SearchImage.gif">"'/>[code/]

 

Cheers have tried everything


Class Campers -The Home of the Volkswagen camper & Bus Enthusiast
Worlds Cheapest Homes - Need a Cheap Property, cant afford a home
Beeb iPlayer - Need help with the BBC's new iPlayer software
Internet Insurance Quotes - For the the information you will ever require about Insurance
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Search textbox styleSearch textbox style


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out