HTML - Issue With Opening File Via Webpage
The issue I'm having is that I can't open an html file via a link in an existing web page. My webpage is created in ASP.Net using C# to list out all the .html files in a specific directory. That works fine. Here is the resulting web page
Code: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" > <head><title> </title></head> <body> <form name="form1" method="post" action="ProductsForGraphs.aspx" id="form1"> <div> <input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="/wEPDwULLTExNzQ0NTIzMDlkZA5WbO/3euQo7nU92sfVjUhzzVQK" /> </div> <div> <table style="width:100%;"> <tr> <td> <a href='c:\FO\graphs\GE_Condor.html' target='_blank'>GE_Condor.html</a> </td> </tr> <tr> <td> <a href='c:\FO\graphs\GE_DblFly.html' target='_blank'>GE_DblFly.html</a> </td> </tr> <tr> <td> <a href='c:\FO\graphs\GE_Fly.html' target='_blank'>GE_Fly.html</a> </td> </tr> <tr> <td> <a href='c:\FO\graphs\I_Condor.html' target='_blank'>I_Condor.html</a> </td> </tr> <tr> <td> <a href='c:\FO\graphs\I_DblFly.html' target='_blank'>I_DblFly.html</a> </td> </tr> <tr> <td> <a href='c:\FO\graphs\I_Fly.html' target='_blank'>I_Fly.html</a> </td> </tr> <tr> <td> <a href='c:\FO\graphs\L_Condor.html' target='_blank'>L_Condor.html</a> </td> </tr> <tr> <td> <a href='c:\FO\graphs\L_DblFly.html' target='_blank'>L_DblFly.html</a> </td> </tr> <tr> <td> <a href='c:\FO\graphs\L_Fly.html' target='_blank'>L_Fly.html</a> </td> </tr> <tr> <td> <a href='c:\FO\graphs\ZQ_Condor.html' target='_blank'>ZQ_Condor.html</a> </td> </tr> <tr> <td> <a href='c:\FO\graphs\ZQ_Fly.html' target='_blank'>ZQ_Fly.html</a> </td> </tr> </table> </div> </form> </body> </html> Now when I click on the GE_Condor.html link, or any other link for that matter. The file doesn't open. Here is the code for the GE_Condor.html file. Code: <!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'> <html xmlns='http://www.w3.org/1999/xhtml' > <head> <title></title> </head> <body> <p> <img alt='No Image' src='C:\FuturesOptions\FOA\FOA\bin\x86\Debug\graphs\GE0U0Z0H1M1CNDR.png' /> <img alt='No Image' src='C:\FuturesOptions\FOA\FOA\bin\x86\Debug\graphs\GE0Z0H1M1U1CNDR.png' /> <img alt='No Image' src='C:\FuturesOptions\FOA\FOA\bin\x86\Debug\graphs\GE1H1M1U1Z1CNDR.png' /> <img alt='No Image' src='C:\FuturesOptions\FOA\FOA\bin\x86\Debug\graphs\GE1M1U1Z1H2CNDR.png' /> <img alt='No Image' src='C:\FuturesOptions\FOA\FOA\bin\x86\Debug\graphs\GE1U1Z1H2M2CNDR.png' /> <img alt='No Image' src='C:\FuturesOptions\FOA\FOA\bin\x86\Debug\graphs\GE1Z1H2M2U2CNDR.png' /> <img alt='No Image' src='C:\FuturesOptions\FOA\FOA\bin\x86\Debug\graphs\GE2H2M2U2Z2CNDR.png' /> <img alt='No Image' src='C:\FuturesOptions\FOA\FOA\bin\x86\Debug\graphs\GE2M2U2Z2H3CNDR.png' /> <img alt='No Image' src='C:\FuturesOptions\FOA\FOA\bin\x86\Debug\graphs\GE2U2Z2H3M3CNDR.png' /> <img alt='No Image' src='C:\FuturesOptions\FOA\FOA\bin\x86\Debug\graphs\GE2Z2H3M3U3CNDR.png' /> <img alt='No Image' src='C:\FuturesOptions\FOA\FOA\bin\x86\Debug\graphs\GE3H3M3U3Z3CNDR.png' /> <img alt='No Image' src='C:\FuturesOptions\FOA\FOA\bin\x86\Debug\graphs\GE3M3U3Z3H4CNDR.png' /> <img alt='No Image' src='C:\FuturesOptions\FOA\FOA\bin\x86\Debug\graphs\GE3U3Z3H4M4CNDR.png' /> <img alt='No Image' src='C:\FuturesOptions\FOA\FOA\bin\x86\Debug\graphs\GE3Z3H4M4U4CNDR.png' /> <img alt='No Image' src='C:\FuturesOptions\FOA\FOA\bin\x86\Debug\graphs\GE4H4M4U4Z4CNDR.png' /> <img alt='No Image' src='C:\FuturesOptions\FOA\FOA\bin\x86\Debug\graphs\GE4M4U4Z4H5CNDR.png' /> <img alt='No Image' src='C:\FuturesOptions\FOA\FOA\bin\x86\Debug\graphs\GE4U4Z4H5M5CNDR.png' /> <img alt='No Image' src='C:\FuturesOptions\FOA\FOA\bin\x86\Debug\graphs\GE4Z4H5M5U5CNDR.png' /> <img alt='No Image' src='C:\FuturesOptions\FOA\FOA\bin\x86\Debug\graphs\GE5H5M5U5Z5CNDR.png' /> <img alt='No Image' src='C:\FuturesOptions\FOA\FOA\bin\x86\Debug\graphs\GE5M5U5Z5H6CNDR.png' /> <img alt='No Image' src='C:\FuturesOptions\FOA\FOA\bin\x86\Debug\graphs\GE5U5Z5H6M6CNDR.png' /> <img alt='No Image' src='C:\FuturesOptions\FOA\FOA\bin\x86\Debug\graphs\GE5Z5H6M6U6CNDR.png' /> <img alt='No Image' src='C:\FuturesOptions\FOA\FOA\bin\x86\Debug\graphs\GE6H6M6U6Z6CNDR.png' /> <img alt='No Image' src='C:\FuturesOptions\FOA\FOA\bin\x86\Debug\graphs\GE6M6U6Z6H7CNDR.png' /> <img alt='No Image' src='C:\FuturesOptions\FOA\FOA\bin\x86\Debug\graphs\GE6U6Z6H7M7CNDR.png' /> <img alt='No Image' src='C:\FuturesOptions\FOA\FOA\bin\x86\Debug\graphs\GE6Z6H7M7U7CNDR.png' /> <img alt='No Image' src='C:\FuturesOptions\FOA\FOA\bin\x86\Debug\graphs\GE7H7M7U7Z7CNDR.png' /> <img alt='No Image' src='C:\FuturesOptions\FOA\FOA\bin\x86\Debug\graphs\GE7M7U7Z7H8CNDR.png' /> <img alt='No Image' src='C:\FuturesOptions\FOA\FOA\bin\x86\Debug\graphs\GE7U7Z7H8M8CNDR.png' /> <img alt='No Image' src='C:\FuturesOptions\FOA\FOA\bin\x86\Debug\graphs\GE7Z7H8M8U8CNDR.png' /> <img alt='No Image' src='C:\FuturesOptions\FOA\FOA\bin\x86\Debug\graphs\GE8H8M8U8Z8CNDR.png' /> <img alt='No Image' src='C:\FuturesOptions\FOA\FOA\bin\x86\Debug\graphs\GE8M8U8Z8H9CNDR.png' /> <img alt='No Image' src='C:\FuturesOptions\FOA\FOA\bin\x86\Debug\graphs\GE8U8Z8H9M9CNDR.png' /> <img alt='No Image' src='C:\FuturesOptions\FOA\FOA\bin\x86\Debug\graphs\GE8Z8H9M9U9CNDR.png' /> <img alt='No Image' src='C:\FuturesOptions\FOA\FOA\bin\x86\Debug\graphs\GE9H9M9U9Z9CNDR.png' /> <img alt='No Image' src='C:\FuturesOptions\FOA\FOA\bin\x86\Debug\graphs\GE9M9U9Z9H0CNDR.png' /> <img alt='No Image' src='C:\FuturesOptions\FOA\FOA\bin\x86\Debug\graphs\GE9U9Z9H0M0CNDR.png' /> </p> </body> </html> If I open the file directly in IE (typing in the path) or double-clicking on the file from windows explorer, it opens without any problems. Any ideas? Thanks Bob Similar TutorialsI cant open my php file...ive downloaded wampserver to support the file but it still doesnt open...wat could b the problem here??? I'm an html novice, and I'm trying to get a file to open in a new window and not replace the current screen. What can I add to this code and try? <html> <head> </head> <body> <script type="text/javascript"> location.replace('http://www.company.com/file.pdf'); </script> </body> </html> Currently, when clicked in a doc library in Sharepoint, the file takes over the screen, which is what I want. However, the user can't use the back button to return to the previous screen. So, how can I change this code so the file pops in a new window but doesn't also take over the original window (since location.replace causes this)? Or is there code I can add which allows the user to use the back button in the ie browser? Thanks! I appreciate any help you can give! Nicole Hi, Newby here - trying to make some link changes to an existing site and it has gone south for me. I have updated some java based links and it has blown up on me. They are trying to open as a file, rather than staying as a link. website address is dub, dub, dub nufinish dot ca. Small site, but trying to update it so that links operate properly. Thanks! Hendy Hey yall.. I have some pdf files on my website. When a user clicks on the download link, I would like to display a web form, after they have filled out the form clicking submit will send the mail form and download the file that they have clicked on. What is the best way to go about this? Thanks for any help on this Hi, When I open an HTML with my browser to see how it looks, instead of what the code should look like showing showing up, the code itself shows up. Sorry if this is a stupid question, I'm quite new to HTML. I use Dreamweaver CS5. This is the code I used: <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"> <html> <body> <h1>My First Heading</h1> <p>My first paragraph.</p> </body> </html> Hey I'm trying to figure out how I can display my doc file in a table or something, so then it would have a fieldset button "printable version," which would open a new window to print it on or download it. Hi. I currently working on a site that displays furniture (how exciting). My client wants to just have lots of pages with the photo and description of the item on the page. The juts have <<< Previous || Next >>> buttons on the bottom of the page. That not a problem. The problem I've got is that when the client adds new furniture he wants the latest as the first page. This means that everytime I add a new page, I have to rename all the other pages too. i.e. furniture01.htm will then become furniture02.htm and I will have to change all the links on the Previous and Next Buttons. Is there a way of me not have to rename all the pages everytime I add a new page. Please Help. Leroy Sorry if i posted this in the wrong location. So im a real estate agent making a website. Im no pro and most of the stuff ive been using to build has been through layouts/generators/help of others such as yourselves. So ive been stuck on finding/making this code for the past couple of days. So all my listings are on my agencys website, not my personal agent website. Is there a code i could have where in the listings page my my personal agent website, i could have a window maybe 600x900 of the listing page on my agencys website? To kind of clear things up, you know how when you google something you have the magnifying glass, how it gives that preview. How can i have that preview coded onto a webpage, but me say what webpage to preview and how big to make the preview box? Tried to explain it as best i could. If you dont know the code, if you can tell me what its called so i can try to narrow the google searches. So far everything that has been coming up in the search restults has been preview boxes to preview html codes you have already written. Fail Blog Thanks I'm sure this is probably one of the dumbest questions to appear here, but how would I get a link to a file to open that file in its native program - i.e. a .doc into Word or a .xls with Excel rather than in an IE plugin? Problem is, of course, whilst the IE plugins work, they don't have full functionality. I read somewhere that you could change the default settings in Windows, but part of what I'm trying to set up is on a business computer and of course, things like file associations and registry are tied down pretty tight so they can't be accessed, so I need to do it from within a page of links. Many thanks (in hope) Hello - I am a newbie to the forum needing assistance with some HTML coding. I am trying to create a page which has a number of small images acting as buttons. When an image is clicked, a new window is opened which displays that image in full size. I would like this page to contain a "Close Page" button which closes this page. Also, is there HTML code which prevents users from downloading images that appear in this new window? Addition: I have found javascript code which closes a browser window: <a href="javascript:window.close()"> <img border="0" src="closingwindows.gif" width="95" height="46"> </a> but where do you put this code, given that the new page to display the full size image is created from the page that contains the thumbnail of that image? Any help appreciated! Onesimus Hi Guys/Girls, Quick Question im in the process of creating a website, and i have a table that contains links to other pages on the website, im having trouble on one, what im trying to achieve is when they press the link which is named "Add to Favourites" then it will automatically open there "Add to Favourites" tab "located top of the browser" but unfortunately its not working for me :-/ im currently using firefox for my browser im not to sure if this is the correct place to paste such an issue but im not to sure...... my snippet of the code is below, hope some one can help me. HTML Code: <tr style="Height:20px"> <td style="width:20px"><img src="/images/TriangleOnBlue.jpg" width="10" height="10" border="0" align=middle></td> <td style="width:108px" align=left valign=middle><a href="javascript:window.external.AddFavorite(location.href,document.title);" class="BlueTiny">Add to Favorites</a></td> </tr> I will also point out that all my Java is enabled.... Hope someone can help. Can someone post the code I would use to have a hyperlink on our webpage that would give visitors the option to view or download a pdf? Thanks! Hey guys I got this: <a href="http://www.youtube.com/watch?v=mdWkKKSckNk target="_blank"<font size="3" face="arial" color="black">Sony Video</font></a> But its not opening in a new tab, and all the forums and posts about it are 4 years old and say that it's impossible. So what is the code to open a hyperlink in a new tab? Thanks in advance Sensen Hello frndz, i have made a landing page and a contact page tilll i complete the website , Websites URL is www.holycowtravels.com. The problem is that it is opening in chrome and firefox but not in IE please check out the code and try to please assist me. Regards, Nishant heya guys i want to open a webpage in a new window when i click on a hotspot. can anyone tell me what i need to do? frosty how can i make the open a new window code work as it is in this include file: <div id="footer"> <img src="images/footer.jpg" alt="" width="998" height="45" border="0" usemap="#footer" /> <map name="footer" id="Map2"> <area shape="rect" coords="0,0,162,45"href="http://www.myspace.com/spittinknowledge" alt="myspace" /> <area shape="rect" coords="184,0,308,45" href="affiliates.shtml" alt="affiliates" /> <area shape="rect" coords="328,0,482,45" href="#" onclick="MyWindow=window.open('webmaster.shtml','Contact Spittin-knowledge.com webmaster','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes, width=525,height=560'); return false;"></a> alt="webmaster" /> <area shape="rect" coords="501,0,655,45" href="disclaimer.shtml" alt="disclaimer" /> <area shape="rect" coords="672,0,998,45" href="#top"/> </map> </div><!-- end of nav --> Hi, I want to open PDF files within my website so users can browse the file on the site rather than having to download the whole PDF file. How can I do this ? I created a page with a chromeless window. Clicking on 'enter' on the index page will open the homepage in a chromeless window. However, whenever you click enter on the index page, the index page itself is also loading the homepage. (so it's double, one on the index page and one in a chromeless window). How can I get it to stop, so that it only loads a chromeless window and the index page stays the same? I used the chromeless window codes from the following page: http://www.lissaexplains.com/javascript9.shtml I have a link on my website that opens up a new window, and that new window opens up and is resized to be smaller at 400X300. It works just fine on Internet Explorer and Safari, but when it's in Firefox the new window opens up on a separate tab in the same browser window and causes the whole window to resize to 400X300. Is there a way to fix this? Like is there a better coding to make sure Firefox will open this link in a new window for sure, and not just a separate tab? I'm using the coding target="_blank" right now..... Hello, I need some help with showing a pop-up in an application. This is a part of the HTML: HTML Code: <?xml version="1.0" standalone="yes"?> <Legendgroup> <Name>AERO</Name> <DisplayName>Aerorama's</DisplayName> <ShowInLegend>true</ShowInLegend> <DefaultVisibility>true</DefaultVisibility> <Legendentries> <Legendentry> <Name>AERO11</Name> <DisplayName>Aerorama's 2011</DisplayName> <MinScale>0</MinScale> <MaxScale>2501</MaxScale> <ConnectionName>Spatial</ConnectionName> <TableName>AERORAMA</TableName> <WhereClause>Where EXPIRED is null</WhereClause> <Tooltip>Toon Aerorama: <%.RECORDINGDATE%></Tooltip> ------------------------------------------------------------------ <ShowInLegend>true</ShowInLegend> <DefaultVisibility>true</DefaultVisibility> <IsRaster>false</IsRaster> <DisplaySymbology> <Color>RGB(0,165,0)</Color> <Font>WebDings</Font> <FontChar><![CDATA[µ]]></FontChar> <TextSize>10</TextSize> </DisplaySymbology> <HotspotSymbology> <Color>RGB(231,99,231)</Color> <Weight>3</Weight> </HotspotSymbology> </Legendentry> </Legendentries> </Legendgroup> I can select the symbol and want to open a new window (pop-up). In the table AERORAMA there is a column named PATH and contains this kind of info: \\st001b\Data\GIS Fotos\Fotos\Aerorama\zuid\BopZ_0004.html It's a path on some internal storage drive. I want the file above to be openend in the new window. How can i alter the HTML code above to make this happen? I thank you already! Marteijn |