HTML - Save Link As Issue
Hi all,
I have a page that has a lot of links that bring up a PDF form file in its own window. No problem opening the link and getting the PDF but when a user selects "save link as" it only gives them the option of HTML not PDF. Even more interesting the HTML option just refreshes the page. Any ideas? Thanks. Sticks101 Similar TutorialsIs there a way to have a link bring up a 'Save as...' box by default rather than having the link open the file inside my visitors' browser. More specifically, I have a long lecture on my site (mp3) that by default opens in my visitors' browsers rather than offering to be downloaded. I know visitors can right-click on the link to get a 'Save as...' box, but I would rather 'Save as...' be the default action whenever the link is clicked. http://www.americancreek.com/index.p...d=37&Itemid=61 Picture gallery link does not work. It is an .swf file. When i test it out in flash, it works fine. But when I insert the .swf into the website, the link does not work. Ok for my site I decided to have the links all in one file and to just do an "include" on each page to call it. Only it just hit me now there might be a problem with doing that. I use a css generated menu and in my "links" file I use "class="current" which will turn the tab of the current page red. So my question is this. How can I still use "class="current"" for each page without any problems and STILL have only one file for my links? Here is my links code right now. PHP Code: <div class="hovermenu"> <ul> <li><a href="index.php" class="current">Home</a></li> <li><a href="clubs.php" >Clubs</a></li> <li><a href="resturants.php" >Resturants</a></li> <li><a href="contact.php">Bars</a></li> <li><a href="contact.php">Coffee Shops</a></li> <li><a href="video.php" >Video</a></li> <li><a href="stuff.php">Music</a></li> <li><a href="up_coming.php">Up Coming Events</a></li> <li><a href="example.php">Attractions</a></li> <li><a href="contact.php">Contact Us</a></li> </ul> <p class="iepara"></p> </div> and a sample of my page code PHP Code: <div class="redline"> </div> <?php include "links_nav.php" ?> <div class="redline"> </div> <div id="left"> <p><img src="your_ad_here.jpg" height="125" width="125" align="middle" alt=""></p> <p> This is sidebar content and will all go over here. This can be moved and tweeked if need be. This box that you are reading this in will also automaticly adjust its size to the ammount of text that is entered. </p> <div id="sidesred"></div> <p> This is sidebar content and will all go over here. This can be moved and tweeked if need be. This box that you are reading this in will also automaticly adjust its size to the ammount of text that is entered. </p> <div id="sidesred"></div> <p> This is sidebar content and will all go over here. This can be moved and tweeked if need be. This box that you are reading this in will also automaticly adjust its size to the ammount of text that is entered. </p> <div id="sidesred"></div> </div> <div id="content"> <p><span class="style4">Who are we?</span></p> <p> Twincitieshotspot.com is a site that shows people some of the hottest places in the Twincities and surrounding suburbs. Most of these "hot spots" are generaly smaller companies, weather they be bars, restaurants or clubs. We want you to have a great time at the places you go to. So let us do the dirty work to find the "hot spots" for you. But if you have found a potential "hot spot" lets us know, you can even leave comments about places posted on our site. </p> <div id="middlered"></div> <span class="style4">What's a "hot spot"?</span> <p> Well thats a great question and you shall receive a great answer. Like most of you we like to think of a hot spot as a place that everyone wants to go to. Now just because everyone goes to a place doesnt always make it a "hot spot" to everyone. So to weed through this process we have come up with the first ever "Hot Spot" rating system. On our pages not only can you leave a comment about a particular place but you can also rate it with our "10 spot" rating system. Once places start getting rated they will develop an over all average rating for all to see. Then you can decide if it is hot enough for you. </p> <div id="middlered"></div> <span class="style4">And here</span> <p> And a local style to highlight the first word : All of our world dominating and ever so addicting Hotspot content will go here or maybe here... It also seems that no matter how much I type, all of the text is kept nice and tight into a predefind box to keep it all organized. Ill have to check it out. </p> <div id="middlered"></div> </div> <div id="right"> <p><img src="your_ad_here.jpg" height="125" width="125" align="middle" alt=""></p> <p><img src="your_ad_here.jpg" height="125" width="125" align="middle" alt=""></p> <p> This is sidebar content and will all go over here. This can be moved and tweeked if need be. This box that you are reading this in will also automaticly adjust its size to the ammount of text that is entered. </p> <div id="sidesred"></div> <p> This is sidebar content and will all go over here. This can be moved and tweeked if need be. This box that you are reading this in will also automaticly adjust its size to the ammount of text that is entered. </p> <div id="sidesred"></div> </div> <?php include "links_footer.php" ?> </div> links_nav.php is the file containing the links for me menu. Any ideas? Thanks for all the help. hey, im having an issue with Opera... in FF and IE things work fine... but i wanted to see what my customers will be seeing so i downloaded opera to get another point of view... now <body link = "lawngreen"> isnt working vlink works in opera... and oddly opera accepts the vlink = green... and fire fox does not... I am wondering i dono much about CSS but have been hearing CSS is your friend, Use CSS, edit your CSS, CSS CSS CSS.... whats the deal with the CSS you make a file with specifics ? then reference to it and instead of it using IE / FF / Opera as its reference it looks @ your code now and universally sets figures in all browers? Or am i way way off here... lol sorry im uber noober here on this 1... can any1 suggest a good CSS info site if they know one, and if any1 knows a fix for the coloring issues between browsers please let me know, thank you all very much... Hi, I am in the process of building a website for a client. This is my first ever site so I knew I would have a few issues. I have fixed all but one at present. Here is a link to my site which I have put live on a test server. http://leaf.greenxtian.com/grangefarm/index.html The naviagation bar and Lightbox2 images are moving when rolled over. This only happens in Internet Explorer 8. It is fine in FireFox and other browsers. It is only on the Services/Facilities Pages so I think it may be an issue with the CSS for Lightbox2? Maybe how I have set it up or just a bug in the coding? Does anyone know why this is happening? If so, do you know of a fix? Any help would be greatly appreciated as I have spent hours trying to work this out. hello i have created a text box eg First Name [ Ash ] and inside u type your name if i close that page and then re open it the box is clear but if i type in the letter A ash will come up and i dont want that how would i remove that? so that it dosnt save my last input Ty all help links, codes will be greatly appreciated hello all I have a text area, and I need a button near it which when clicked it will save the content of the text area into a file. any help? thanks I want to save some space by avoiding rewriting some code that connects to server and database etc. Is there a way to do this in html? I know you can do somethihng similar in java (methods at end of program or seperate from program with new 'public stat...'). hey! i want to make a save button that will save whatever i typed in a box, and refreshes the page. (file:///codes.html) example: ------------ (typing box) blablablablablablalolblabla (End of typing box) (button, save) button clicked... blablablablablablalolblabla ------------ (typing box) blablablablablablalolblabla (End of typing box) (button, save). If possible, i dont want the text to dissapear when the page is refreshed. I want to save the content of a textbox in a div on button press. PHP is a possibility but I don't want to get into databases. How would this be done, Hi ya, is there any program that will download a .asp web site convert it to .html and relink? i can't find anything... currently i'm saving each .asp as html in IE as complete web page, i don't mind doing this but how can i automatically change all the links to point to local copy instead of www? and change all folders containing images to only one folder with images? p.s. i can't install IIS (can't find disk) so i can't open .asp files on my home computer XP Pro.. thanks.. Hello i have one problem. I need to make HTML page. <html><head><title>World 2 by GIZMO</title></head> <body bgcolor="black"><div align="center"><br/></div>''<div align="center"> <iframe src="http://ul8.runescape.com/l1,p0,j1" name="mainframe" width="800" height="550" scrolling="auto"></iframe> </div>"</body> </html> So i need to make it work like this - when someone types something in this page - my serv saves typed text and stores it in .txt file or something I have several links on my site, all in the form of <a href="http://www.mywebsite.com">mywebsite</a> How do I need to change it such that a new instance of the browser is used in which the linked site is displayed. Good afternoon, I have a program that I am writing in HTML and Javascript. Here is what I want to do. I have a menu that goes to multiple pages. When I get to a certain page, I want a variable set that when I return to the menu, I can use that variable to display a check mark. I need to keep the functionality simple, so I can't use ASP or write to cookies. I have two ideas on what to do, but none of them worked. 1) To use a .js file. I can get the .js file to hold the variable on just the page that called it, but when I go to another page and access the .js file, I lose the variable. 2) To use frames, where I pass the variable dynamically to one frame and so I can access it later. I don't know what to do. I've tried using a combo of the above ideas, but nothing has worked. Any help would be greatly appreciated. Thanks. Hi everyone, I need to know whether we can select a file using save button?? and also i need to scrape the details in the file to a variable.. IS this possible... Plz help me.. really I'm stuck in this.... Hi guys i just joined and hope to learn a lot from this forum! Ok, My question is if there is a HTML code to save an image as a different image. To help explain better I want to embed an original artwork image on my myspace page. I have seen other artist do this same thing where they have embedded and image onto their page and if someone uses the Right click>Save image as... to try to save that image they get a whole different image than the one they wanted to save. For example: Say you wanted to save this image and after you use the Right click> save image as... and open up the file you just saved You get this Scripts don't work with myspace so i would like to know if there is a HTML code that does this. Thanks for your time <<<Edit>>> Ok heres a better example this users profile has an image of his alias i guess in his "About Me" Section and when you try to save the image you get a 1pixel gif Heres the users page (Google cache) http://64.233.167.104/search?q=cache...lnk&cd=1&gl=us The actual image URL is : http://img71.imageshack.us/img71/880/101copyzd9.png and the 1pixel gif's URL is : http://x.myspace.com/images/clear.gif I would like to know whats the html code for this because when you try to save the imageshack image you end up downloading the 1pixel gif instead Thanks for your time Hi Q1 - I have a form in html that I would like to be able to save as a word doc once the user has completed. I can transfer the results by email but would also like to leave a hard copy. Q2 - Is this possible to do client side rather than server side just in case the user is offline? I haven't been able to google the answer so I must be searching for the wrong thing! Any suggestions?? Hi, i am studying in 10th grade in India. My computer science teacher has asked me and my classmates to design a website in html using forms and CSS. I have created one with help of frontpage 2003. It contains a user registeration form. I just want to give my teacher a surprise by saving the data entered in forms to a file on the computer. Please give the codings to do so. Also, when the user enters the username and pasword, he should be welcomed by his name. I have attached my file. Please help me. Hi Ive got a page with the code below. The link to the mp3 (stored locally) does not work when I click on it, but i can save it if I right click. The file exists and the path is correct. Also it does not work in IE but does in Firefox. What's going on? Any help appreciated. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML> <HEAD> <TITLE>mp3 [23 March 2007]</TITLE> <META http-equiv=Content-Type content="text/html; charset=windows-1252"> <LINK href="followlink_files/styles.htm" type=text/css rel=stylesheet> <META content="MSHTML 6.00.5730.11" name=GENERATOR> </HEAD> <BODY id=oBody bgColor="#ffffff" leftMargin=6 topMargin=2 rightMargin=6> <SPAN class=DocumentTitle>mp3<BR>[23 March 2007] </SPAN> <HR> <DIV id=oPage style="DISPLAY: block" pageId="1"> <TR> <TD> <TABLE class=profile width="100%"> <TBODY vAlign=top align=left> <TR> <TD width="100%" colSpan=2> <TABLE cellSpacing=0 cellPadding=0 border=0> <TBODY> <TR> <TD width="100%"> <SPAN class=ProfileTitle>Know How Document</SPAN> </TD> <TD noWrap align=right> <BR> </TD> </TR> </TBODY> </TABLE> </TD> </TR> <TR> <TD class=ProfileLabel noWrap align=right width=120>Title :</TD> <TD class=ProfileText align=left width="100%">all saints</TD> </TR> <TR> <TD class=ProfileLabel noWrap align=right width=120>Notes :</TD> <TD class=ProfileText align=left width="100%"><A href="file:///c:/1.mp3">mp3</A></TD> </TR> <TR> <TD class=ProfileLabel noWrap align=right width=120>Document Date :</TD> <TD class=ProfileText align=left width="100%">23 March 2007</TD> </TR> <TR> <TD class=ProfileLabel noWrap align=right width=120>Profile Created :</TD> <TD class=ProfileText align=left width="100%">23 March 2007</TD> </TR> </TBODY> </TABLE> <HR> </TD> </TR> </DIV> <DIV id=oPage style="DISPLAY: none" pageId="2"></DIV> <DIV id=oPage style="DISPLAY: none" pageId="3"></DIV> <SCRIPT>startPage=1;</SCRIPT> </BODY> </HTML> Hi This is my first post. I have created a html page using vbscript. It is basically a timesheet to capture start and stop time of activities throughout a day. I have included drop-down boxes to select the activities and a command button which is used to enter time on clicking it. The file resides on an users machine and after it is opened the user can select the activity and enter the start and stop time. I just need a way to save this resulting HTML page onto some location. Note: The user has no access to applications like Word, Excel, Outlook etc. Thanks Pani |