|
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]
|