HTML - File Paths
On the Apple website (just using it as an example), if you click the Downloads tab at the top of the navigation bar, you end up at this page: http://www.apple.com/downloads/
If you mouse over the "All downloads" are on the left, and then click "Audio", you wind up he http://www.apple.com/downloads/macosx/audio/ How is it that they're able to create file paths like these without ending the link with .html? Similar TutorialsHi, I have a php include menu on my website, which will link to pages in different folders and subdomains. However I don't know how to make it work on all pages because the root folder will be different, as pages are in a lot of different places. e.g. index.php for the homepage doesn't work for pages out of the main folder. As the same menu will be included on all pages, it will have to work for all folders and subdomains. I've tried absolute paths e.g. /home/username/public_html/....file which doesn't work. the only way I have found to work is http://www.pagelocation.. I didn't really want to use that way though. can anyone offer any help? thanks Hi all, Im working with HTML and JSP and trying to select a file using the file chooser. <input type="file" name="fileChooser"/> . When it selects the file it only gives my the final filename of the image and assumes the image is held on the server. How do i ensure that the filename it gets is the absolute path to the image in my filespace? Thanks for reading my problem! Stuart I have a scenario on my job where we have a web server with two drives (C: and D: ) Drive C: has all of the main web pages (.asp and .HTML) but is quickly becoming full (because of application software). As a result we have started to store newer files (images, documents etc..) on drive D:. From within the web page code on drive C, I need to access those files on the second drive (d: ) as document links and have tried code such as href = "/d|/folder1/folder2/file name" where d is the D: drive containing the documents to be opened in the browser but I get "page cannot be found" when I test it in IE. Can anyone tell me how to access files across drives that are on the same web server? Hi there! I've got this .htaccess Code: RewriteEngine on RewriteRule ^(.*/)$ index.php?$1 RewriteRule ^(.*#)$ index.php?$1 RewriteCond %{ENV:REDIRECT_STATUS} ^$ RewriteCond %{HTTP_HOST} !^www\.mysite\.com\.ar$ [NC] RewriteCond %{HTTP_HOST} ^(www\.)?([^\.]+)\.mysite\.com\.ar$ [NC] RewriteRule ^(.*)$ /index.php?$1 [QSA,L] So far it redirects whatever that looks like a folder (/something/, with an ending slash), and also any kind of subdomains. Now I wish to make use of those subdomains for languages (like: us.mysite.com.ar, for the USA site). Thing is, ALL of my images are linked like: HTML Code: src="/images/myimage.png" So whether I'm on a different subdomain than the regular one, the images won't be linked correctly. Aaaand it's priority that the subdomain remains in the URL (no redirection). Is there any way out of this without me having to replace every image (there are at least 200 xD)? Otherwise, I could redirect everything to index.php no matter what is it, and then have it generate the corresponding file (in case of an image or other file), or generate a page (in case of a folder, like, i dunno: mysite.com.ar/news/). But isn't this a lot slower and heavier for the server?. Anyway, please help me to have images in my site no matter what's the subdomain >.< Thanks everyone for your ideas in advance!! =) The following common code is not working in Firefox (3.0.11). It works in Safari (4.02) and IE7. When I say not working, I mean that when I click the submit button, the address does not change to the form processing url: Code: <!-- The data encoding type, enctype, MUST be specified as below --> <form enctype="multipart/form-data" action="uploader.php" method="POST"> <!-- MAX_FILE_SIZE must precede the file input field --> <input type="hidden" name="MAX_FILE_SIZE" value="30000" /> <!-- Name of input element determines name in $_FILES array --> Send this file: <input name="mp3file" type="file" /> <input type="submit" name="submit" value="Send File" /> </form> The file uploader.php does nothing, it is blank, I'm merely trying to establish communication. Once again, the code functions in IE and Safari so I dont think this is PHP related. I have a project written in ASP.NET under Visual Studio 2005 with C#. I am also using Infragistics objects for .NET Advantage 2007. In my page to attach resources to a record I have written a browser and am displaying previously chosen resources here. But when I click the upload button the page opens a new window (which is not a dialog window, but a normal one) which is exactly the same as my dialog window. How can this possibly happen? Can anyone help me? Hi ,I am new in html.Hope you can guide me step-by-step on this. I want to import my .txt file into the html form and the html form can add new item then to be add in to that particular .txt file too as well. can this be done? For example: (fruits.txt) 1.apple 2.banana 3.orange Can this fruit.txt be impoted to fruit.html page and show it at fruit.html page, at the same time, the fruit html page allow to add in new fruit, and once user add in new fruit, the fruit.txt file will be updated as well. Thanks for your guidiance and help. :-) Hi, Anybody have any idea how to convert a xml file to excel file.Actually i m working on visual studio and using C programming language.I have a xml file in the same directory where my programm is running.When i pressed a icon it will take the xml file automatically and convert to a excel file and show the outpt to the user.How can i achive this goal ??? Any help would be great. Thanks, Basanta I have a website where I want to make a drop down menu that will bring you to different pages. It is a very basic, sort of old-fashioned website that relies entirely on html. What I'm trying to do is make a drop-down menu that will be used as navigation for a section of a website and I want to have it in each internally linked page in that section, but I'm going to be adding more pages to it over time so I want to be able to put the drop-down menu code in a separate text file and then substitute it into the pages that I make that the options in the menu link to and then just edit the code in the text file when I add another page so that I don't have to go back and edit the code every single individual page whenever I add a new one among them. Basically all I'm asking is how I can put html code in a text file and then substitute that code into an html page by referring to the file. Thanks in advance for any help. hi everybody, I am working in a html. I defined a functiion in a html file.(first.html) I want to call that function in another html file.(second.html) How can i call that function in second.html file? give some sample code Thanks in advance.... Hi guys I want to add some php files into my frontpage html files, please let me know how to do this. I tried many things but fail. Please guide me. Thank you GCS Hi, I'm trying to include one HTML file in another. I tried iframe and was displeased with the results, I want the size of the frame to change dynamically and not just scroll. Fair warning, my knowledge of JavaScript is non-existent >_> . Basically, I have a document written in HTML (please don't suggest a wholesale re-write, that's simply not practical) and the idea is to have one file where it makes sense to include it several times. One thing to mention, this document is not meant to be shown on a web-server, but in a browser while you're reading it off your hard-drive. Here's what I have so far. main.shtml Code: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>test</title> </head> <body> <center> <h1> This is only a test! </h1> </center> <p> Still testing!!!!! </p> <!-- #include file="included.html" --> <p> Even more testing!!!!! </p> </body> </html> included.html Code: <!--<html> <head> <title> asdfasdfasdfasd </title> </head> <body>--> <p> <h4> foobar </h4> <br> <br> <br> <br> <h4> boofar </h4> </p> <!--</body> </html>--> Not sure what I'm doing wrong, help appreciated! I'm having some trouble that I've never encountered before... I'm trying to get a ".jpg" file that's being loaded from a FTP server to load up on a ".php" file. It all works when I do it locally, but when I try to open it up on the server itself, all the images (".gif"'s) open up perfectly yet the ".jpg" doesn't. Any suggestions? Thanks! Hi All I need some help with the following html coding: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <!-- MagicComment: MVTimeout --> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Untangle Login</title> <script type="text/javascript">if (top.location!=location) top.location.href=document.location.href;</script> <style type="text/css"> /* <![CDATA[ */ @import url(/images/base.css); /* ]]> */ </style> </head> <body> <div id="main" style="width: 500px; margin: 50px auto 0 auto;"> <div class="main-top-left"></div><div class="main-top-right"></div><div class="main-mid-left"><div class="main-mid-right"><div class="main-mid"> <!-- Content Start --> <center> <img alt="" src="/images/BrandingLogo.gif" /><br /> <b></b><br/> Untangle Login <div style="margin: 0 auto; width: 250px; padding: 40px 0 5px;"> <form method="post" action= "/auth/login?url=/setup/welcome.do&realm=Administrator" > <table><tbody> <tr><td style="text-align:right">Server:</td><td><em> localhost</em></td></tr> <tr><td style="text-align:right">Username:</td><td><input id="username" type="text" name="username" value="admin"/></td></tr> <tr><td style="text-align:right">Password:</td><td><input id="password" type="password" name="password" /></td></tr> </tbody></table> <br /> <div style="text-align: center;"><button value="login" type="submit">Login</button></div> </form> <script type="text/javascript">document.getElementById('password').focus();</script> </div> </center> <!-- Content End --> </div></div></div><div class="main-bot-left"></div><div class="main-bot-right"></div> <!-- Box End --> </div> </body> </html> What I need to know is how can I change the title. I cant seem to find the file contaning the html coding that i posted above. the way i found this coding was 'right clicked the web page and clicked on view source' The code that I marked in red seems to be the "file"(welcome.do) that contains this code, but i cant seem to find the file. Please, any help will be appreciated Best regards hi everyone! how can i upload a pdf file via html? i guess "a href" is not the right way. please help me. thank you Is there an HTML tag that loads a text file right into HTML? Or, so to speak, if i had a text file with HTML written in it, how could i get this into a page, without using any server scripting. Possible? thanks a ton ~DeathBlade Hi, I'm putting up a store that sells downloadable content and am having trouble with the download procedure in the osCommerce system. Under Linux it works great but the host I am using uses Microsoft Server and after about 10 mb or 4 minutes time it runs out of resources and reports the download is complete when it is not. Now I'm looking for an alternative method to download the file without the buyer being able to see the exact URL for the file. If he could see that he would have the opportunity to pass it on to his friends. If dishonest he could just as easily email the file to all his friends but I digress. Using the store's download procedure I can only get 46kps where as I can get in excess of 200kps by entering the URL to the file in the address box at the top of the browser. Ok now I have procedures that will check to make sure the person is logged in and he has downloads available to the file before the procedure will continue so what I need to know is there a way to after the checks are run just do the equivelant of entering the URL at the top of the box without actually allowing the user to see the URL to the file? The store uses PHP to do this and under Linux is extremely fast, but under MS server is slower than crap and never completes. I thank you for reading this, I probably gave more information than was needed, but I would rather err on the side of too much than too little. Bob Is there a way to have one document link the coding from another htm file? What I mean is that for my website, I want there to be a logo or menu at the top of every page. So I want to know if there's a way to put it in without putting in the code of it at the top of every document and instead, just linking it to an html file that already has the code. Hello i currently have a domain on godaddy. this is what it looks like mydomain.com/updates I need simple HTML code exactly like apaches to just display the files on the updates folder. Thank You. Hi all, I'm working on a project to make my job a little easier. A brief description is that I have to write up case notes and when I am finished with the notes I submit them. What I am looking for is a code so when I hit the submit button on the tool I created, it will create a log file and save my case notes to that log file. The tool that I created is html based and it's on my local computer. I would also like for it to create the log file on my local computer. Is this possible? A good example is like a messenger service like msn or yahoo IM. When you are done talking to someone it creates a log file of the conversation. Im looking for something like that but that creates a log when I hit the submit button. Any ideas? Best regards, Kris |