HTML - Html Links With Space In It
Hello,
I have the following problem: I want to put online a link to local file. The name of the file has spaces in it like in the example below: HTML Code: <a href='file://H:\Documents and Settings\admin\Desktop\a b.docx' target=_blank>test</a> I also tryed: HTML Code: <a href='file://H:\Documents%20and%20Settings\admin\Desktop\a%20b.docx' target=_blank>test</a> but it still does not open the file When viewing the link properties for the first example it shows: Code: file:///H:/Documents%20and%20Settings/admin/Desktop/a%20b.docx and for the second: Code: file:///H:/Documents%2520and%2520Settings/admin/Desktop/a%2520b.docx witch is obviously not correct since it is escaped... What am I doing wrong? How should I write the link code so that it will open a local file on my pc that has spaces in it's name? Thanks for the help... Similar TutorialsI just upgraded all my .HTML pages to .PHP . But now I noticed that when my pages pull up in the search engines like Google, Yahoo, and MSN. They still show the old .HTML links?? When they click on the webpages from the search engines results you get error 404 page cannot be found. How can I update the search engines or add code to my page so the search engines will reflect the new .PHP pages. Also it's been over a good week since I've update to .PHP Thank you all in advanced!! Hi, The following code works fine for me except it adds extra spaces on the top of the table. I have searched everywhere for answers in vain. Can anyone help me solve it. thanks in advance. We use Expression Engine Here is the code: <table bgcolor="#003399" border=".1" cellpadding="0" cellspacing="0" style="height: 73px;" width="715"> <tbody> <tr> <td style="TEXT-ALIGN: center;font-size:13pt;font-weight:bold;color:#ffffff"> <h1><img height="62" src="{filedir_6}CD.jpg" style="border: .1px solid Black; margin: .5px; float: left;" width="241" /></h1> <p>Client Advocacy</p> </td> </tr> </tbody> </table> When I create a HTML form there always seems to be an amount of unusable space sorrounding it. Is there a way to make the HTML form fit in a smaller area? Hi, I have a problem. some of my HTML text appears differently in the browsers. for e.g - I want my text to show normally like this - Hi My name is raj. BUT on the browser it is showing as Hi M Y na me is r aj. How do I get rid of the unwanted space. Pease help somebody and thanks in advance (",) <table> <tr> <td>Flag Name </td> <td><input style="background-color:010280; color:white" type="button" name="edit" value="Add" onclick="javascript:addContent(this.parentNode.parentNode.rowIndex,'Flag Name');"></td> <td><input style="background-color:010280; color:white" type="button" name="edit" value="Edit" onclick="javascript:editContent(this.parentNode.parentNode.rowIndex,'Flag Name');"></td> </tr> </table> <script> function editContent(tableRow, flag_data) { alert(flag_data); } </script> It is working properly. But when i add new row with textbox value with the following data "Sample Sample". The alert box is not working... but for the data "SampleSample" it is working properly.... Please help me to solve the issue... Hi, I'm trying to find a way to fill the empty space between a description and its relative letter for example: blablablalbalbalblablabla (***carry over to the second line because out of space) blabla----(white space)----a. (** the letter) the description is done by cold fusion query and the structure is in a table with the vertical align = bottom to ensure the letter match the last line of the description. now I need to make change to this so that the whitespace between the last line do the description and the letter is filled with dots like this: blablablalbalbalblablabla (***No dots on the line above the last line) blabla ............................ a. I've tried number of methos but none of them sync well with my situation, Any suggestion on how to do this will be greatly appreciated, Thanks in Advance!! Hey guys, EDIT: I figured it out. There was a phantom image that I had between the two that no longer belongs. Nevermind! Thanks, ~C-Style~ Hi, i'm just starting doing html and dreamweaver, but i got a bit of a problem no matter what i do cant link 2 pages together! can someone help me with this??? thanks Hello, im finally putting once of my websites on to a server but the problem is that the links do not work once up.... they are in a php include .... they also work fine on my localhost machine ive name my links like: index.php, london.php etcetc do i need to name them: http://websitename.co.uk/london.php etc? If that doesnt make sense ask and i will try and make it clear what i am trying to do. Thanks Scott. Hello all, I am working on a blog roll or links sidebar for my site. If you go to QuickCache you will find that all of my links forward to http://www.quickcache.org/http://linkedsite.com I want it to go to http://linkedsite.com. You can view my code here using the password "help" Could you tell me how to fix this, and what i am doing wrong? Thank you very much, Mbf123 Update: Sorry for the links in this post, they were meant to be examples for a site that I could link to. For some reason my link is not working but the source is definately correct so i am confused why it doesnt work. any help would be much appreciated. HTML Code: <a href="C:\Users\umar\Documents\Humzah \computing FINAL DO NOT EDIT\project \Final Website\AQA-COMP2-W-QP-JAN09.pdf"> <b>Past Exam Paper Comp 2 January 2009:</b> </a> Practice to test your understanding with this past paper.<br> Hi, I'm coding a website in just HTML and am encountering a problem... When ever I try to link to another HTML document that I have coded, the browser won't load it. This is the error message that appears: (BTW, I'm using Opera, if that helps) You tried to access the address file://localhost/C:/Users/Milkyway/HTML%20Files/TheFreebieSmartGuide.com/HTML%20Files/MegaFreebie.htm, which is currently unavailable. Please make sure that the Web address (URL) is correctly spelled and punctuated, then try reloading the page. NOTE: The "%20" appear where spaces would be. This is the line of code that I'm using: <A HREF="MegaFreebie.htm">Laptops.MegaFreebie.com</a>-A site where you can get a free notebook computer!<BR> Thanks for everyone's help. To briefly explain what is happening.... I can hover over my links on my index.html page. Click any of them which directs me to the proper page... but any remaining licks change to the same as first previously clicked link and stays there Wierd. Therfore clicking does nothing at this point. I can refresh to the index page again and everthing is back to normal. I can hover over any link I want but if I click it it will go to the correct page , but then the remaining link all change to that one. Is the a problem with my html or css file? Thanks Hi there, I am not able to figure out why there are blue lines around my images on this page http://www.surveys.hottestdeals.info. If i want to get rid of them, where should i make the changes in CSS sheets? Thanks for any help. Kris Hi So I'm creating a website and I made a banner in photoshop with the Home, About buttons etc on it. I have made text in HTML saying Home, About (and the other buttons) And I have placed it over the buttons on the jpg banner. But now I need to know how to make a box around the text, so anywhere in the box is clickable, rather than just the actual text. Then I can just make the links transparent and Im set! I am a noob... A pic for those confused..... probably all of you : ( i know its not looking great but im still only designing it) http://i1058.photobucket.com/albums/t402...17/pic.jpg I know I could just enlarge the text so it fits the buttons on the picture, but then I would have to change the margins and stuff again and there must be an easier way to do it and I want to learn how. Help will be appreciated PS: If you look at the pic, you'll see the dark grey div. If possible, I would like to know how to get rid of that space between the div and banner. Thanks I have been sent a flash file to use on my website as an ad. I have successfully inserted it as a html into my website, and it is all working fine apart from one thing. The link is not working. I have followed all the tutorials correctly, and when you hover over it, it displays the link in the pane at the bottom of Internet Explorer. The problem is that I can't edit the flash file, and it did not come with any hyperlink added to the swf. Is there a way I can make this work so that it goes to the link when clicked on? This is my html code so far: <a href="http://www.rspb.org.uk" target="_blank"><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab" width="498" height="380" id="test1"> <param name="movie" value="http://s1.2mdn.net/1286313/GOLDFINCH-RSPB-LBANNER-SWF.swf " /><embed src="http://s1.2mdn.net/1286313/GOLDFINCH-RSPB-LBANNER-SWF.swf " width="468" height="60" name="test1" type="application/x-shockwave-flash" pluginspage="http://www.adobe.com/go/getflashplayer" /></object> </a> I want to embed a social media block on my page that has all the little buttons and all the little links happy together. I almost had it too using this: <p> <a href="http://www.sample site.com" target="_blank"> <img src="http://my image" width="32" height="32" alt="RSS" title="RSS Coming Soon"> </a> This repeated so I had 6 little images for social media connections. In Internet Explorer all links worked, but there was a little line sticking out the right side of each image. In Safari only my last three image links worked but they have no annoying little line. Why? Anyone? Anyone? Hey guys, Okay so here is what I am trying to do. I am populating a table with some info from a database. The data should look something like this. Recipe Name - Prep Time - Total Time- Rating ============================ test data here 12 mins 15 mins 4.5 test data here 12 mins 15 mins 4.5 test data here 12 mins 15 mins 4.5 test data here 12 mins 15 mins 4.5 The names of the recipe is what I want to create as links so that when the user clicks on a certain RECIPE NAME another page will open showing only the data that goes with that recipe he/she clicked on. So far I have not gotten my code to work correctly, i dunno if i am missing something or doing it all wrong? I am using a while loop to generate all the recipes form the database. Again, i want the names of the recipes to be the links. Please help me!!!! Thanks for your time and help Here is my code: <? while( $row = mysql_fetch_array( $result ) ) { ?> <tr> <a href="ShowRecipe.php?id=<?=$row['id']?>"></a> <td><?=$row['name']?></td> <td><?=$row['preptime']?> mins</td> <td><?=$row['totaltime']?> mins</td> <td><?=$row['rating']?></td> </tr> <? } ?> Dont know if it is the right forum place I have html links on my web site. These links are to files. Recently when i clicked the link, the file "open / Save" dialogue appears, but now i receieve a page can not be displayed. Right click save as works i.E 7, What could be causing this Regards, Alan Hey guys, I have 2 separate problems, I'll be dealing with both in this thread. If possible, please answer asap, since I'm doing a website for my aunt's company, and I'm sort of running on a deadline. Any answers for either of the questions are welcome 1) Links - CSS Basically my stylesheet is supposed to set all my links to a black colour, even if visited, hovered over, etc, etc. The only problem is, the unvisited links are showing up in that awful default blue colour (I'm sure you all know what I mean). This is what my CSS looks like: A:link { text-decoration: underline; color:#000000; font-weight: bold; } A:visited { text-decoration: underline; color:#000000; font-weight: bold; } A:active { text-decoration: underline; color:#000000; font-weight: bold; } A:hover { text-decoration: underline; color:#000000; font-weight: bold; } Can anyone help me with this? 2) HTML/php contact form So I have a contact form on my website, and it seems to work fine. The only problem is that when my e-mail receives it, only the LAST field shows up (in this example, the 'message' field). The others just don't appear - it's as if the form only has that one field. I have two sets of code for my contact form - this is the one on the contact page: <form action="/contactform.php" method="post"> <b>Name:</b> <input type="text" name="cf_name"><br> <b>E-mail:</b> <input type="text" name="cf_email"><br> <b>Message:</b><br> <TEXTAREA NAME="cf_message" ROWS=4 COLS=30> </TEXTAREA><br><br> <center><input height="4px" type="submit" value="SEND"> <input type="reset" value="CLEAR"></center> </form> And this is the contactform.php file: <?php $field_name = $_POST['cf_name']; $field_email = $_POST['cf_email']; $field_message = $_POST['cf_message']; $mail_to = 'ggmdolly@gmail.com'; $subject = 'Message from a site visitor - '.$field_name; $body_message = 'Name: '.$field_name."\n"; $body_message = 'E-mail: '.$field_email."\n"; $body_message = 'Message: '.$field_message."\n"; $headers = 'From: '.$cf_email."\r\n"; $headers .= 'Reply-To: '.$cf_email."\r\n"; $mail_status = mail($mail_to, $subject, $body_message, $headers); if ($mail_status) { ?> <script language="javascript" type="text/javascript"> alert('Thank you for your message. We will get back to you shortly.'); window.location = 'contact.php'; </script> <?php } else { ?> <script language="javascript" type="text/javascript"> alert('Message failed. Please retry or send us an email directly.'); window.location = 'contact.php'; </script> <?php } ?> Thanks to anyone who can help! |