Last post Apr 26, 2013 08:59 AM by Mikesdotnetting
Apr 26, 2013 07:16 AM|HowandWhy|LINK
I spent Thursday reading chapters of text books, and many threads, trying to discern the 'correct' way forward to program the final and 'core' page of my website, the page that provides a variety of information about a chosen book title. Through this post
I am seeking some guidance regarding a choice that I believe I have, which is between Render Section and AJAX.
The picture below is a, Powerpoint created, Story Board style, mockup, of what I am trying to achieve. I encourage you to look at this picture as I feel it will be much better in conveying my intentions than the following words – a picture speaks a thousand
In essence there are seven parts or sections of the page.
I have read quite a lot now about Render Section and AJAX, and I certainly found the former to be easier to understand, but it also appears that, in order to produce "flicker-free" pages, AJAX is the way to go. I will persevere with AJAX if that is the
'only' or 'strongly recommended' way, but I am hesitant, as I am finding it quite hard to understand.
I seek guidance for a way forward.
I would have liked to show below the code I have created thus far, for this page, and it works, but it seems to maybe be blowing some limits of posting size so I have had to drop it. It does not progress, though, in to the trickier areas I have discussed
With thanks in anticipation.
Apr 26, 2013 08:59 AM|Mikesdotnetting|LINK
RenderPage is a way of including a reusable bit of content into a page which is then rendered to the browser. This only happens when the entire page is being requested.
AJAX is a way of requesting and loading content into a page without causing a full page request.
Which you choose to use is entirely a matter for you. One is not recommended over another. They are not competitive approaches. They solve differnet problems and cause different problems. For example, search engines cannot cause content to be loaded via