Re: OWA 2007 Custom NAV Bar button



This is great!!

If I wanted to modify this so that the target opened in the same window,
what would I change

onClick="window.open

to, to make the web page in my link appear in the same frame that displays
the targets of the other links on the nav bar?

Thanks for the help.

"Glen Scales [MVP]" wrote:

You need to get rid of the server side code and just put your own labels and
Targets into the onclick event. It depends what you trying to target you may
need to modify a few of javascript files but for something easy for eg this
will create a button with a label called Yahoo Mail and will launch Yahoo
mail in a separate Window if you click the icon

<tr>
<td class="nbMnuItm">
<a id="yhmail"
onClick="window.open('http://mail.yahoo.com','mywindow','width=1200,height=700,toolbar=yes,location=yes,directories=yes,status=yes,menubar=yes,scrollbars=yes,copyhistory=yes,resizable=yes')"
href="#">
<% RenderingUtilities.RenderNavigationBarImage(Response.Output, 0,
UserContext); %>
<div id=divTxCtcts class=nbtx>Yahoo Mail</div>
</a>
</td>
</tr>

Cheers
Glen

"Joe" <Joe@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:00E54356-67E7-4B96-9BA6-E2330C764D1D@xxxxxxxxxxxxxxxx
Hi.

I am trying to add a new button to the NAVBAR in OWA 2007. This button
would
just be a hyperlink that would open its target when clicked on. I have
done
this with OWA 2003, having trouble with 2007.

If I modify startpage.aspx and add the code below, a second contacts
button
is added to the NAVBAR however I can't figure out how to change its
target,
or the label on the button.

Does anyone have some sample code that could point me in the right
direction?

<% if (UserContext.IsFeatureEnabled(Feature.Contacts)) { %>
<tr>
<td class="nbMnuItm">
<a id="lnkCtcts" <%RenderOnClick("navCtcts();");%><%="
"%><%RenderHighlight(NavigationModule.Contacts); %> href="#">
<% RenderingUtilities.RenderNavigationBarImage(Response.Output, 2,
UserContext); %>
<div id=divTxCtcts
<%RenderHighlightText(NavigationModule.Contacts);%>><%=
LocalizedStrings.GetHtmlEncoded(Strings.IDs.Contacts) %></div>
</a>
</td>
</tr>
<% } %>



.