> >

Post New Thread  Reply
 
Thread Tools
Old 09-23-12 at 08:45 PM   #1
Elder
Join Date: Jan 2008
Location: Islamic World
Posts: 4,032
Default Coding for Web Part.

Hi guys. I really dont know where to turn to now. So here am I. I need a favor here. Can I move the box (in red box) to the right of the page? Since search button will always be at the right of the page aite? haha. so how can I change it to the right? I look at the coding and I cant really recognize the coding for Web Part well. So I really need your help on this one.



Here are the code if I edit it;

<?xml version="1.0" encoding="utf-8"?>
<WebPart xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/WebPart/v2">
  <Title>Search Box</Title>
  <FrameType>None</FrameType>
  <Description>Used to search document and items.</Description>
  <IsIncluded>true</IsIncluded>
  <ZoneID>TopColumnZone</ZoneID>
  <PartOrder>0</PartOrder>
  <FrameState>Normal</FrameState>
  <Height />
  <Width>335px</Width>
  <AllowRemove>true</AllowRemove>
  <AllowZoneChange>true</AllowZoneChange>
  <AllowMinimize>true</AllowMinimize>
  <AllowConnect>true</AllowConnect>
  <AllowEdit>true</AllowEdit>
  <AllowHide>true</AllowHide>
  <IsVisible>true</IsVisible>
  <DetailLink />
  <HelpLink />
  <HelpMode>Modeless</HelpMode>
  <Dir>Default</Dir>
  <PartImageSmall />
  <MissingAssembly>Cannot import this Web Part.</MissingAssembly>
  <PartImageLarge />
  <IsIncludedFilter />
  <Assembly>Microsoft.SharePoint.Portal, Version=12.0.0.0, Culture=neutral,

PublicKeyToken=71e9bce111e9429c</Assembly>
  <TypeName>Microsoft.SharePoint.Portal.WebControls.SearchBoxEx</TypeName>
  <DropDownModeEx xmlns="urn:schemas-microsoft-com:SearchBoxEx">ShowDD</DropDownModeEx>
  <GoImageUrl xmlns="urn:schemas-microsoft-com:SearchBoxEx">/_layouts/images/gosearch.gif</GoImageUrl>
  <GoImageActiveUrl xmlns="urn:schemas-microsoft-com:SearchBoxEx">/_layouts/images/gosearch.gif</GoImageActiveUrl>
  <GoImageUrlRTL xmlns="urn:schemas-microsoft-com:SearchBoxEx">/_layouts/images/goRTL.gif</GoImageUrlRTL>
  <GoImageActiveUrlRTL

xmlns="urn:schemas-microsoft-com:SearchBoxEx">/_layouts/images/goRTL.gif</GoImageActiveUrlRTL>
  <ScopeDisplayGroupName xmlns="urn:schemas-microsoft-com:SearchBoxEx">Search Dropdown</ScopeDisplayGroupName>
  <RegisterStyles xmlns="urn:schemas-microsoft-com:SearchBoxEx">true</RegisterStyles>
  <ShouldTakeFocusIfEmpty xmlns="urn:schemas-microsoft-com:SearchBoxEx">false</ShouldTakeFocusIfEmpty>
</WebPart>

Last edited by OneSz1646; 09-23-12 at 09:03 PM.
OneSz1646 is offline  
Discuss Coding for Web Part. at the Helpdesk forum within tehPARADOX.COM Online Sharing Community.
Old 09-23-12 at 09:01 PM   #2
Novice
Join Date: Nov 2009
Posts: 240
1. You linked a picture to you gmail account
2. You didn't mention what language its written in.


Fix these first
billes is offline   Reply With Quote
Old 09-23-12 at 09:04 PM   #3
Elder
Join Date: Jan 2008
Location: Islamic World
Posts: 4,032
Quote: Originally Posted by billes View Post
1. You linked a picture to you gmail account
2. You didn't mention what language its written in.


Fix these first
Sorry. Fixed. Thanks for mentioning it.
OneSz1646 is offline   Reply With Quote
Old 09-24-12 at 03:19 AM   #4
Elder

Join Date: Dec 2008
Location: $_POST['WIN!'];
Posts: 2,660
I'm not that familiar with Microsoft sharepoint however a web page is a web page and what ever the magic that sharepoint is doing behind the scenes will ultimately end up in HTML. A simple move like this could be as simple as editing the css values for the box. You will need to locate your css style sheet and the name of the container which houses the box you want to move (firebug is a good option to locate it in the DOM). Then override the css values with something along the lines of:

#my_div_name {
position: absolute;
right: 0px; /*or how far you want it to move from the right hand side*/
}

Obviously "#my_div_name" should be replaced with the name of the element you are trying to change. Tip: Don't delete the original css until you are sure you do not need it any more just comment it out like I did with the comment on right. Also remember that the last entry for a rule in css is the one which will stick in the browser for any given attribute. Hope that helps.

Cheers,

Jiff
JiffOrange is online now   Reply With Quote
Reply


Like this page? Share it!  
 
  

Thread Tools


Related
Thread Thread Starter
Have a coding problem? plasty
Help with coding please hwbc
Secure Coding in C and C imprenta
coding links matthewhome
coding links... wasteofpaint


All times are GMT -7. The time now is 08:47 AM.
SEO by vBSEO ©2011, Crawlability, Inc.