|
.net
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Page refresh - Alternative to using framesI've a SharePoint web site, with left navigation, top menu and footer links. All these come from a master page. The contentplace holder for the main content area(PlaceHolderMain) gets filled by the page content defined using page layouts. Currently when I click on the left navigation, the whole page gets posted back and causes a refresh of the complete page. Is there a way to refresh only the content area? One way is to use frames and replace the frame in the content area with the page url. Since frames are not supported on all browsers, this option is ruled out. Is there any alternative to using frames? Thanks *** Sent via Developersdex http://www.developersdex.com *** On Jul 7, 10:42 am, RJN <r***@yahoo.com> wrote:
Show quoteHide quote > Hi 1) What browser which may work with SharePoint does not support> > I've a SharePoint web site, with left navigation, top menu and footer > links. All these come from a master page. The contentplace holder for > the main content area(PlaceHolderMain) gets filled by the page content > defined using page layouts. > > Currently when I click on the left navigation, the whole page gets > posted back and causes a refresh of the complete page. Is there a way to > refresh only the content area? One way is to use frames and replace the > frame in the content area with the page url. Since frames are not > supported on all browsers, this option is ruled out. > > Is there any alternative to using frames? > > Thanks > > *** Sent via Developersdexhttp://www.developersdex.com*** frames? 2) Only IE (v. 6-8) is fully supported by SharePoint http://technet.microsoft.com/en-us/library/cc263526.aspx "RJN" <r**@yahoo.com> wrote in message Yes, that's the way MasterPages work. There is a common misconception that news:%23eMrN7t$JHA.1488@TK2MSFTNGP03.phx.gbl... > I've a SharePoint web site, with left navigation, top menu and footer > links. All these come from a master page. The contentplace holder for > the main content area(PlaceHolderMain) gets filled by the page content > defined using page layouts. > > Currently when I click on the left navigation, the whole page gets > posted back and causes a refresh of the complete page. MasterPages are somehow the ASP.NET replacement for framesets. In fact, a MasterPage is nothing more than a UserControl. If Microsoft had called them something more logical and sensible e.g. TemplateControls or LayoutControls, this confusion would not have arisen. > Is there a way to refresh only the content area? Not easily, though I suppose you could use an iframe and change its source dynamically - I've never tried this, so can't recommend it... > One way is to use frames and replace the frame in the content area with Yes, that would work.> the page url. > Since frames are not supported on all browsers, this option is ruled out. As Alexey has pointed out, frames are supported on all browsers supported by SharePoint... RJN <r**@yahoo.com> wrote in news:#eMrN7t$JHA.1488@TK2MSFTNGP03.phx.gbl: A master page is, underneath the hood, a user control. It does not > Hi > > I've a SharePoint web site, with left navigation, top menu and footer > links. All these come from a master page. The contentplace holder for > the main content area(PlaceHolderMain) gets filled by the page content > defined using page layouts. > > Currently when I click on the left navigation, the whole page gets > posted back and causes a refresh of the complete page. appear this way, necessarily, as you attach a master rather than drag and drop it on the page. It is a container control that contains page content when rendered. As such, you will see the entire page refreshed. >Is there a way to Outside of frames, including an iFrame, you end up with an asynchronous > refresh only the content area? transport, like AJAX.With AJAX, you can refresh part of a page and not the whole thing. The problem is you do not want your entire application to refresh using AJAX, as it would make the application overly complex. In addition, you have mentioned using SharePoint, which adds another layer of complexity to the problem. > One way is to use frames and replace the What browser does not support frames? Perhaps some mobile browser, but > frame in the content area with the page url. Since frames are not > supported on all browsers, this option is ruled out. frames have been around for a long time and all of the current browsers (and most of their ancestors) support frames. \ Personally, I prefer an iFrame to a full frameset, or AJAX on a page by page basis. The first will probably solve your problem, the second ends up too complex for the main nav menu. -- Show quoteHide quoteGregory A. Beamer MVP; MCP: +I, SE, SD, DBA Twitter: @gbworld Blog: http://gregorybeamer.spaces.live.com ******************************************* | Think outside the box! | ******************************************* Thanks for the replies. Suppose I use a iframe, how do I replace the
page in that iframe? Is it through javascript? I need to pass querystring as parameters to the page. One drawback I see with iframe is that the scrollbar will appear inisde the iframe instead of the browser scrollbar, when the page content is long. *** Sent via Developersdex http://www.developersdex.com *** "RJN" <r**@yahoo.com> wrote in message Yes.news:%23O5ZGUx$JHA.3432@TK2MSFTNGP02.phx.gbl... > Suppose I use an iframe, how do I replace the page in that iframe? > Is it through JavaScript? RJN <r**@yahoo.com> wrote in news:#O5ZGUx$JHA.3432@TK2MSFTNGP02.phx.gbl: Every approach will have some drawbacks. The iFrame avoids the annoyance of > Thanks for the replies. Suppose I use a iframe, how do I replace the > page in that iframe? Is it through javascript? I need to pass > querystring as parameters to the page. > > One drawback I see with iframe is that the scrollbar will appear inisde > the iframe instead of the browser scrollbar, when the page content is > long. the frameset (esp. when you crunch the browser size down), but it has some drawbacks of its own, like you mention. As for filling the iFrame, JavaScript does make things easier. -- Show quoteHide quoteGregory A. Beamer MVP; MCP: +I, SE, SD, DBA Twitter: @gbworld Blog: http://gregorybeamer.spaces.live.com ******************************************* | Think outside the box! | *******************************************
Other interesting topics
Calling Application_Start After Worker Process is Recycled
Gridview render control error in content page Advice required Server.ScriptTimeout not being observed? Javascript question How can the Login control stop authenticating? VB.Net Developer, Houstan TX, Duration: 6months, ONLY Green Card / (1-140 & EAD approved) Control is null on postback? DAL for sharing? Refer to Content page from Master page |
|||||||||||||||||||||||