HTML - Opening A File
I cant open my php file...ive downloaded wampserver to support the file but it still doesnt open...wat could b the problem here???
Similar TutorialsI'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 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 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> 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 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. 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 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 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! 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 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..... 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 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 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, 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 Hi there guys, I was having a problem with a new site I am working on. I need to be able to open a new browser window from a pop-up. I have a main page, that has a pop-up window. Inside that pop-up I have a Paypal Form with button, that when pressed I would like to open a Blank NEW Window. At the moment it is opening the window inside the pop-up.... Is there some Javascript or something I can force a new window, like Break_out_of_frame ?? Hoping you can help. Warren Hi. I am wondering if there is any way of opening/closing an object in HTML or CSS or Javascript? For example, I have a Chat Box that is floating on the bottom left of the screen, I want to be able to close it if I don't want to see it, and if i want to open it up again, I would do so. If anyone can help, it would be greatly appreciated! Thanks, Chris Hi to everyone. I am very new to programming. I am writing an html code for a simple program here at our office. Part of the program is to open an html file that is located on another computer. The computer's IP address is 192.168.2.110 (on the local network) and is named accounting8. If I paste any of the following in the address bar of Mozilla Firefox, initial.html is show correctly: http://accounting8/genghis_khan/initial.html http://192.168.2.110/genghis_khan/initial.html However, when I use either of the two within my html code, nothing comes out. Here is the sample code: <html> <head> <title>Module</title> </head> <frameset cols="190,*" <frame src="http://accounting8/genghis_khan/initial.html" name="toc"> <frame src="http://www.yahoo.com" name="toc"> </frameset> </html> I hope you guys can help me out. Advance thank you. RJ |