File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes HTML, CSS and JavaScript and the fly likes include file without server side technology? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "include file without server side technology?" Watch "include file without server side technology?" New topic
Author

include file without server side technology?

Azrael Noor
Ranch Hand

Joined: Jul 29, 2010
Posts: 378
could we include a file dynamically on client side, in javascript or HTML, CSS,
like in Asp or JSP we use <jsp:Include - file name>.

i do not want to generate page dynamically,
what i want to include a file without using any server side technology and possible not even advance javascript technology


Regards
Azrael Noor
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60059
    
  65

You are out of luck.

The only way to do this without server-side assist, is to include it with Ajax (which I would consider "advance javascript" whihc you would like to avoid).


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Azrael Noor
Ranch Hand

Joined: Jul 29, 2010
Posts: 378
You are out of luck.


Laugh out Loud.
well could i use ajax or this purpose? but i do not want page to dynamically load, i mean no server side loading. Only Client Side.

How is this possible with ajax?

My purpose is that i want to include Navigation on every page and also tell which it make page heavy to load?

Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60059
    
  65

Still out of luck. You can use Ajax to include the snippet dynamically, but a static solution will require a server-side mechanism.

Why no server-side solution. It's the way to do it.
Azrael Noor
Ranch Hand

Joined: Jul 29, 2010
Posts: 378
You want me to (cry out loud) now . (laugh out loud )
So you mean that i will not able to include page without installing server or without having server.
No ONLY Client Side Includes facility is present.

you are right i am out of luck .
are you sure with your answer because i feel your answer is THE FINAL ONE.

(Ranch does not allowed abbreviation don't know why)

i actually want ""Client side include"" thats all i don't want server, if you have made your library for doing that kindly explore.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60059
    
  65

Azrael Noor wrote:So you mean that i will not able to include page without installing server or without having server.

How are you delivering your pages without a server? Or are the pages only for yourself and opened as files from your local system?

(Ranch does not allowed abbreviation don't know why)

Because abbreviations are rude and unreadable.

i actually want ""Client side include"" thats all i don't want server

Sorry, it does not exist.
Azrael Noor
Ranch Hand

Joined: Jul 29, 2010
Posts: 378
How are you delivering your pages without a server? Or are the pages only for yourself and opened as files from your local system?


Ya for myself on local system.

If client side Includes does not exists for what purpose you people are, bring something new so that we people can do that. (LAUGH OUT UNLOUD)
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
You are relally coming across as rude and you make it seem like it is the people here at the Ranch's fault that a browser is not smart enough to do what you want.

It is a piece of cake o run a server on your local system. If you do not want to do that, sounds like you should cook up some little applicationt that you can run that builds the files and does the includes for you.

Eric
Azrael Noor
Ranch Hand

Joined: Jul 29, 2010
Posts: 378
i felt that i requested,
i will adjust my writing tone in future.
can't say sorry because it is rule of forum,
ya THANKYOU for telling me to adjust my tone
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: include file without server side technology?
 
Similar Threads
policy file
Any good solution to build a dynamic navigation tree in Java?
Doubt in Final Mock Exam:HFSJ
Purpose of ajax?
representing as XML