473,387 Members | 1,483 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

How to concatenate web pages - client side only ?

16
I want to create a web site with multiple pages that one can think of as sections to a large document. What I also want is a web page that is simply the concatenation of the other web pages. (I want more than one actually differing only by the order in which the concatenation is done)

I know you can do this with server based code – but it ought to be possible to do this just using a browser that can ‘see’ the separate files that need to be concatenated.

Other’s claim this can’t be done since each page has its own styles, scripts etc. so how would the concatenated page know how to apply them. In my case I can design all of the pages to avoid conflicting styles and unless the solution requires it avoid the use of scripts.
Jul 22 '10 #1
5 2059
acoder
16,027 Expert Mod 8TB
For the sections, you can use frames or iframes.

For the concatenation, you will need to use JavaScript as long as the pages are from the same domain.
Jul 22 '10 #2
tur130
16
Thanks for response. The files are from the same domain.

Frames are not working for me since the user needs to be able to right click and print the whole concatenated document. With frames they can only print the frame where the cursor is.

This seems such an obvious oversight of HTML - does any know if it will be easy in HTML v5?

e.g. have say an <include> tag which simply pulls the body or named ID from another URL and inserts it in to the page being rendered.

Any one know if one of the java script frameworks out there has a function to parse another URL looking for a given ID (say a DIV or BODY) and then pull that section to write on the page being rendered?
Jul 22 '10 #3
acoder
16,027 Expert Mod 8TB
There is something called xinclude, but support is probably almost non-existent.

You can use Ajax to include the HTML snippet (perhaps with a bit of parsing) into your page.

There is also the possibility to convert your HTML to JavaScript statements, but I don't think that makes sense and isn't worth the effort.
Jul 22 '10 #4
JKing
1,206 Expert 1GB
Just curious here, but why are you choosing to not use server side scripting?
Jul 22 '10 #5
tur130
16
Reason - I don't have any control over the web server. I can only put content up there.
Jul 22 '10 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Jim | last post by:
I having a difficult time here trying to figure out what to do here. I need a way to scroll through a recordset and display the results with both forward and backward movement on a web page(PHP...
2
by: Prashanth | last post by:
Hi, The application we are developing will be used worldwide by various individuals and organizations . As part of the security restrictions , some of the organization will disable client side...
18
by: cjl | last post by:
Hey all: I know that it is silly in the age of Google to 'lose' something on the internet, but I recently checked out a project that had implemented a database with a subset of SQL in pure...
5
by: Brian Shannon | last post by:
Does anyone know of a client side javascript calandar that can be used in ..aspx pages. I have many pages using the calandar that is built in with .NET and all I use it for is the for the user...
2
by: Guadala Harry | last post by:
In an aspx file I have declared a hidden field like this: <input id="hTestVal" type=hidden value="-1" runat="server"> Defined in the code-behind like this: protected...
3
by: Simon Brooke | last post by:
I've been doing XSL transforms, converting XML to HTML, server side since 2000. In those days, clients which could do the transformation client side didn't exist, so whether to transform...
6
by: JimLad | last post by:
Hi, We have a major ASP app that we are in the process of upgrading to ASP.NET 1.1 and probably on to ASP.NET 2.0 in the middle of next year. (We will also be upgrading to SQL2K5 at the same...
5
by: Ankur | last post by:
Hi Folks, I am new for this group. I want to clarify one thing what's a basic difference between Client Side Java Script and Server Side Java Script. how we can differentiate it. Why we called...
5
by: Simon | last post by:
I heard that we could do that by using AJAX. Could anybody share how to do it? Thanks.
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.