Reply to Re: including with innerHTML

Your name:

Reply:


Posted by Andrι Gillibert on 11/11/07 10:23

marco.stole@gmail.com wrote:

> in order to include the pages in my main page I would use links with
> variables in so that you can give someone a link that works like
>
> www.mysite.com?page=thebodypage.htm
>

I think you meant: http://www.mysite.com/getpage?page=thebodypage.htm
Why using this strange URI syntax?

http://www.mysite.com/thebodypage

Is a much better URI.

> where thebodypage.htm is the page I want to include
>

So, if you want to include a specific static page, you don't need server
side scripting.

> how can I filter the variables in the link with javascript ( in php
> there is the $_GET variable)

Which variables?
The URI parameters of a request that hasn't yet been sent? Not possible.
The URI parameters of the current page if it's dynamic and uses
parameters? In that case, since the page is dynamic, write these
parameters in the page, at the adequate places, from the server side
script.

Beware: AJAH breaks most features of browsers: Printing, bookmarking, any
form of history (including the great Opera feature that searches in the
history), links panel, back & forward buttons, address copying, offline
browsing and local page saving, sessions, source viewing, address bar
navigation (i.e. manually editing the URI to access a different resource
or a previously seen resource, or a higher level "directory"),
multi-windows browsing, the right of disabling JavaScript and/or
XmlHttpRequest for privacy or security reasons and features that haven't
yet been invented, relying on the document model. It also breaks search
engine bots and produces inaccessible pages. Only the two or three most
popular full-featured browser with default settings set can access the
pages.

If nothing is dynamic on the server side, then, most probably, AJAH is a
bad thing, as static documents could most probably be served to the client.
--
If you've a question that doesn't belong to Usenet, contact me at
<tabkanDELETETHISnaz@yahoDELETETHATo.fr>

[Back to original message]


УдалСнная Ρ€Π°Π±ΠΎΡ‚Π° для программистов  •  Как Π·Π°Ρ€Π°Π±ΠΎΡ‚Π°Ρ‚ΡŒ Π½Π° Google AdSense  •  England, UK  •  ΡΡ‚Π°Ρ‚ΡŒΠΈ Π½Π° английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Π‘Π°ΠΉΡ‚ ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ Π² Π‘Ρ‚ΡƒΠ΄ΠΈΠΈ Π’Π°Π»Π΅Π½Ρ‚ΠΈΠ½Π° ΠŸΠ΅Ρ‚Ρ€ΡƒΡ‡Π΅ΠΊΠ°
ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ΠΈΠ΅ ΠΈ ΠΏΠΎΠ΄Π΄Π΅Ρ€ΠΆΠΊΠ° Π²Π΅Π±-сайтов, Ρ€Π°Π·Ρ€Π°Π±ΠΎΡ‚ΠΊΠ° ΠΏΡ€ΠΎΠ³Ρ€Π°ΠΌΠΌΠ½ΠΎΠ³ΠΎ обСспСчСния, поисковая оптимизация