Share this Page URL

Part: 6 Show Me the Money: Turning Your ... > Graphics Questions - Pg. 301

Frequently Asked Questions About HTML 301 This assumes that you've uploaded to your server and that the file is in the same directory as your HTML file. When the user clicks the link, the browser will display a dialog box asking whether the user wants to open the file or save it to his hard disk. For files that get displayed in the browser (such as text files), you need to add instructions on your page that tell the user to load the file and then select the browser's File, Save As command. Is there any way to specify a Subject line with a mailto link? Most (but not all) browsers and e-mail programs let you specify the Subject line by adjusting the <A> tag as follows: <A HREF=" Subject Line"> Replace My Subject Line with the actual Subject line you want. What is ASP? If you come across a page file name that uses the .asp extension, then you've come across a species of page known as an Active Server Page (ASP, for short). Most ASP files contain one or more scripts that are very similar to the JavaScripts that you learned about in Part 4, "Working with JavaScripts and Java Applets." However, they're vastly different: · JavaScripts run when the browser loads the page or when the user initiates some action (such as submitting a form). In other words, JavaScripts are executed by the browser. · An ASP script is executed by the server. That is, when the user requests an ASP file, the server first checks to see if it contains a script. If it does, it runs that script and then sends the file to the user's browser. The big advantage you get with ASP is that you no longer have to worry about browser compatibility, as you do with JavaScript. Since the script runs on the server, it doesn't matter what browser the user is running. Also, since the script runs on the server, it's fairly easy to do things such as access a database, send an e-mail, and do other fancy tricks. ASP is a Microsoft technology, so it's designed to run on Microsoft web servers, such as Internet Information Server. If you want to give ASP a whirl, you have to find a web host that supports it. Note, too, that a similar technology called PHP also exists. However, PHP usually runs on Unix and Linux web servers. What is XML? XML (eXtensible Markup Language) is still pretty highfalutin stuff, and it's not really on the radar screens just yet (at least not for the likes of us). The basic idea is that XML enables the designer to create his or her own tags in such a way that an XML-smart browser knows what to do with those tags. This won't be a big deal for folks who just have straightforward pages. If you deal with data- bases or specialized fields (such as medicine or mathematics), however, you can create tags that describe database components or elements from your field of expertise. For example, a Math XML is already being proposed, and it'll enable math types to render equations and other elements that HTML just can't do. See The problem with XML is that it requires some heavy-duty programming to "teach" the browser what each hand-built tag is supposed to do. For that reason, XML will remain a geeks-only technology for some time to come. Finding nongeek info on XML is hard right now, but the following PC Magazine article isn't too bad: Graphics Questions Why don't my images appear when I view my page in the browser?