Win a copy of Terraform in Action this week in the Cloud forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Rob Spoor
  • Bear Bibeault
Saloon Keepers:
  • Jesse Silverman
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Al Hobbs
  • salvin francis

include file without server side technology?

 
Ranch Hand
Posts: 385
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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

 
Sheriff
Posts: 67602
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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).
 
Azrael Noor
Ranch Hand
Posts: 385
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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
Sheriff
Posts: 67602
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 385
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Sheriff
Posts: 67602
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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
Posts: 385
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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)
 
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 385
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic