﻿<?xml version="1.0" encoding="utf-8"?><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0"><channel><title>Intersoft Community - WebDesktop - WebNavPane - How to set navBar contentURL dynamically client side ?</title><link>http://www.intersoftsolutions.com/Community/WebDesktop/WebNavPane---How-to-set-navBar-contentURL-dynamically-client-side-/</link><description /><generator>http://www.intersoftsolutions.com</generator><language>en</language><copyright>Copyright 2002 - 2015 Intersoft Solutions Corp. All rights reserved.</copyright><ttl>60</ttl><item><title>WebNavPane - How to set navBar contentURL dynamically client side ?</title><link>http://www.intersoftsolutions.com/Community/WebDesktop/WebNavPane---How-to-set-navBar-contentURL-dynamically-client-side-/</link><pubDate>Thu, 12 May 2011 19:21:12 GMT</pubDate><dc:creator>MarTin</dc:creator><category>WebNavPane</category><description>&lt;p&gt;Hello Jean,&lt;/p&gt;
&lt;p&gt;You just need to change childNodes[0] to childNodes[1] for the 2nd childNodes from the end.&lt;/p&gt;
&lt;p&gt;Therefore, for 2nd bar:&lt;/p&gt;&lt;pre&gt;   var navBarItemFrame = navBarItem.Parent.FrameObj.childNodes[0].childNodes[0].childNodes[1].childNodes[0].childNodes[1].childNodes[0];
&lt;/pre&gt;

&lt;p&gt;For the 3rd bar:&lt;/p&gt;&lt;pre&gt;   var navBarItemFrame = navBarItem.Parent.FrameObj.childNodes[0].childNodes[0].childNodes[1].childNodes[0].childNodes[2].childNodes[0];
&lt;/pre&gt;
&lt;p&gt;Hope this helps. Thank you.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;-Martin-&lt;/p&gt;</description></item><item><title>WebNavPane - How to set navBar contentURL dynamically client side ?</title><link>http://www.intersoftsolutions.com/Community/WebDesktop/WebNavPane---How-to-set-navBar-contentURL-dynamically-client-side-/</link><pubDate>Thu, 12 May 2011 02:07:06 GMT</pubDate><dc:creator>JNguimb</dc:creator><category>WebNavPane</category><description>Hello Martin,&lt;br /&gt;&lt;br /&gt;Thankyou; your code works great.&amp;nbsp; I am using 5 bars in the Navigation Pane, and I need to be able to update the content of the first three bars (from the top) at runtime.&amp;nbsp; However, the DOM tree in your code, copied below, is for the first bar.&amp;nbsp; I tried to modify in order to access the IFrames of the 2nd and 3rd bars but was unsuccessful.&amp;nbsp; Could you please modify the line below and give me a tree for 2nd bar and a tree for 3rd bar ? &amp;nbsp; &lt;br /&gt;&lt;br /&gt;Regards,&lt;br /&gt;Jean&lt;br /&gt;&lt;pre&gt;xxxx.Parent.FrameObj.&lt;span style="color: rgb(192, 0, 0);"&gt;childNodes[0].childNodes[0].childNodes[1].childNodes[0].childNodes[0].childNodes[0]&lt;/span&gt;&lt;/pre&gt;&lt;br /&gt;</description></item><item><title>WebNavPane - How to set navBar contentURL dynamically client side ?</title><link>http://www.intersoftsolutions.com/Community/WebDesktop/WebNavPane---How-to-set-navBar-contentURL-dynamically-client-side-/</link><pubDate>Wed, 11 May 2011 11:56:47 GMT</pubDate><dc:creator>MarTin</dc:creator><category>WebNavPane</category><description>&lt;p&gt;Hello Jean,&lt;/p&gt;
&lt;p&gt;It seems that we don't have SetContentURL() method in WebNavPane. But I do have a workaround for this issue. You are still able to set the content url using the following code:&lt;/p&gt;&lt;pre&gt;function DoSetURL()
{
   var navPane = ISGetObject("WebNavPane1");
   var navBarItem = navPane.BarItems.GetNamedItem("navbar_Item1")
   var navBarItemFrame = navBarItem.Parent.FrameObj.childNodes[0].childNodes[0].childNodes[1].childNodes[0].childNodes[0].childNodes[0]
   navBarItemFrame.src = "http://www.intersoftpt.com";
}&lt;/pre&gt;
&lt;p&gt;What I did is to obtain the object which WebNavPane is using to set its ContentURL for the navbar item. In this case, I need to get the iFrame of NavBarItem. Therefore, this is how I get into that object. Then, set the src property to implement content url.&lt;/p&gt;
&lt;p&gt;Hope this helps. Thank you.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Regards.&lt;br /&gt;-Martin-&lt;/p&gt;</description></item><item><title>WebNavPane - How to set navBar contentURL dynamically client side ?</title><link>http://www.intersoftsolutions.com/Community/WebDesktop/WebNavPane---How-to-set-navBar-contentURL-dynamically-client-side-/</link><pubDate>Tue, 10 May 2011 17:19:23 GMT</pubDate><dc:creator>JNguimb</dc:creator><category>WebNavPane</category><description>&lt;p&gt;Hello Martin,&lt;/p&gt;
&lt;p&gt;Thank you for your reply.  But this is not what I am looking for.  I am looking for the ContentURL, not the TargetURL.  In other words, I need the webpage to appear inside the iframe of the NavBar, not in a separate window.  &lt;/p&gt;
&lt;p&gt;In Pane Manager, I would use WebPaneName.SetContentURL("http://www.Intersoftpt.com") to insert your web page in the iframe of a WebPane.  But I am using Navigation Pane here and the SetContentURL method is not available; so how do I insert a web page in the iframe of a NavBar at client side, when the bar is using IFrame ContentMode? &lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Jean&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt; &lt;/p&gt;</description></item><item><title>WebNavPane - How to set navBar contentURL dynamically client side ?</title><link>http://www.intersoftsolutions.com/Community/WebDesktop/WebNavPane---How-to-set-navBar-contentURL-dynamically-client-side-/</link><pubDate>Tue, 10 May 2011 13:48:58 GMT</pubDate><dc:creator>MarTin</dc:creator><category>WebNavPane</category><description>&lt;p&gt;Hello Jean,&lt;/p&gt;
&lt;p&gt;You can try the following code to set ContentURL using TargetURL property and Click() method.&lt;/p&gt;&lt;pre&gt;function ClickBarItem()
{
   var navPane = ISGetObject("WebNavPane1");
   var navBar = navPane.BarItems[0];
   var navBarItem = navBar.Items[0];
   navBarItem.TargetURL = "http://www.intersoftpt.com";
   navBarItem.Click();
}&lt;/pre&gt;
&lt;p&gt;I refer to &lt;strong&gt;VariousClientSideObjectSamples&lt;/strong&gt;.&lt;strong&gt;aspx&lt;/strong&gt; in WebNavPane. I simply modify one of the NavBarItem and set &lt;strong&gt;TargetURL&lt;/strong&gt; manually from client-side and trigger the item by using &lt;strong&gt;Click()&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;Hope this helps. Thank you.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;-Martin-&lt;/p&gt;</description></item><item><title>WebNavPane - How to set navBar contentURL dynamically client side ?</title><link>http://www.intersoftsolutions.com/Community/WebDesktop/WebNavPane---How-to-set-navBar-contentURL-dynamically-client-side-/</link><pubDate>Tue, 10 May 2011 01:17:48 GMT</pubDate><dc:creator>JNguimb</dc:creator><category>WebNavPane</category><description>&lt;p&gt;Hello:&lt;/p&gt;
&lt;p&gt;How do I set the ContentURL of a WebNavBar, for example "http://www.yahoo.com", on client side at runtime ?  I could not find a method in the documentation on how to do this.  SetContentURL("xxxxxxx") does not seem to be supported for this control, although IFrame content mode is available.&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Would you have a workaround?&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Jean&lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>