Ben Bacarisse wrote [in part]:
"ipy2006" <ip*******@gmail.comwrites:
>Thanks for the reply. If you look at http://www.nyu.edu everytime you
open this url in a browser you will see a new <divelement. Do you
think it is created by a server side script or by some Ajax code? From
my observation I don't see any server side code there. Please
comment.
The photos appear (and change) when all client-side scripting is off
so a server-side script is probably generating the changed content.
You say you can't see any server code there, but server-side code is
almost always hidden.
A server-side include (SSI) script executes on the Web server before the
requested Web page is sent. If the SSI affects content within the page,
that effect appears as if pre-coded into the page. You do not see the
SSI itself.
If you go to my home page (see signature below), scroll to the bottom,
and select the link "Index of HTML Files", you will get a page with the
index of all HTML files on my site. This is generated by a SSI called
from <http://www.rossde.com/get_index.html>. If you look at the source
HTML of that page, you will see the table structure of the display. You
will NOT see the UNIX Korn shell SSI script -- named get_index.ksh --
that generated the source HTML. You will not even see the call to
get_index.ksh, which the Web server replaced with the results of
executing that SSI.
The same is true of the "hit" counters in my pages; the count looks
hard-coded into the HTML. I see the calls to the SSIs when I view my
HTML on my server, which you can't see because you don't have access. I
also see the calls in the HTML on my PC, where I develop and maintain my
pages before uploading to the server. If I view one of those pages in a
browser, the results of an SSI is a blank because my PC is not a server
and thus can't execute the SSI. If I view one of my pages by loading it
from the server, I see the SSI results. If I then download that page to
my PC, the HTML contains the results of the SSI, not the call to it.
--
David E. Ross
<http://www.rossde.com/>
I use SeaMonkey as my Web browser because I want
a browser that complies with Web standards. See
<http://www.mozilla.org/projects/seamonkey/>.