Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- ?How compose URL to a pop up window?
March 12, 2010, 9:36 pm
rate this thread
Let=92s say I go to http://www.straighttalk.com/ and click on Terms and
Conditions at the bottom, a pop up window comes up in the center and
the rest of the page dims. When I save the page locally, I discover in
the Howitworks_files files folder, the file, controller.htm, which has
the text contents of center-positioned window.
I=92d like to link to this file, but when I compose a URL
http://www.straighttalk.com/controller.htm , it takes me to a page
from straighttalk saying The resource you have requested can not be
found in our system.
I=92d like to link to what=92s in controller.htm. So how do I compose a
link that will get someone there? And while I=92m asking, can someone
explain this all to me? I=92m sure it has to do with the scripts. What
should I read about? Where should I start?
(||) Nehmo (||)
Re: ?How compose URL to a pop up window?
That file is just an artifact of the save process. It does not
necessarily exist on the server. As you've discovered, there is, in
fact, no such file.
Links on the web are not to files, but to resources with a named
location. They could refer to files on the server, but they could
also be references to the output of server processes. If you look at
the source of the main page, it includes this:
<li><a href=3D"#" onclick=3D"showHideGenericPopup(
title=3D"TERMS AND CONDITIONS">
TERMS AND CONDITIONS</a></li>
which lets me immediately check if the URL included there has the
content, and in fact it does:
Well, you can start by looking through their JS for the implementation
of showHideGenericPopup to see how they do it. I haven't bothered, as
if all you need is the URL, it was easy to discover.
- » How (the heck) do you center a Web page in IE8 (for the umpteenth time)?
- — Next thread in » HTML Authoring Forum