HTML - Http Header/windows Ce Double Download Dialog
We have an embedded device which server up a webpage. All parts of it works fine with a PC. We are now connecting it to a PDA running Windows CE 4.2 .NET. The webpages display fine in internet explorer.
When we download a file the download dialog appears twice. The first download dialog downloads the file. The 2nd one fails and then further downloads will not run. We suspect the problem lies in http headers. The headers we are using at the moment a HTTP/1.1 200 OK\r\n Date: Fri, 31 Dec 1999 23:59:59 GMT\r\n Server: myserver\r\n Connection: close\r\n Content-Type: text/plain\r\n Content-Disposition: attachment; filename=abc.txt\r\n\r\n Help please. Cheers, Peter Similar TutorialsIf you want to download a variable length text file, what would be the correct http headers to use? Just out of curiosity, if a server returns a page with code 3xx and a "Location: url_1" header, but also includes a <meta http-equiv="refresh" content="0;url=url_2"/> tag, then would the browser be expected to redirect to url_1 or url_2? Hi, I have a very simple website with a countdown timer on it (http://lemoeonline.freehostia.com/1.htm sorry about all the crap, it should only really have the countdown on it....I forgot to delete the rest). What I am wanting to do is have a separate webpage where users can download that page, but with a date they specify in a form. So, they would go to page a, enter a date, then download page b witch would have the customized code in it......Is this possible? Im not really sure where to start on this one, so im looking for any suggestions! Thanks alot, Lemoe I want to open the Open/Save dialog box to dowload a file. How can i do this using only html code? Is it possible? Thank you, in advance. Hello I have a page where there multiple links , I want a dialog box to open when ever I click the link . Here is an example www.scribd.com and click on sign up u will have an idea . How can I filter the file to be uploaded from the brose dialog. In particular I have tow buttons upload image , upload txt. and <input type="file" id="forImageUpload"> <input type="file" id="forTextUpload"> How can I make sure that when I click forImageUpload in the browse dialog only image files(like *.jpg , *.gif) are listed or shown. How can I make sure that when I click forTextUpload iin the browse dialog only image files(like *.txt) are listed or shown. Thanks. I want to send an email from an aweber list that includes a link for the user to download a file from my website. However, I don't want users to know the actual address(directory) where my file exists on the server). Right now when the user clicks on the link it automatically takes them to the address where the file exists and opens the file in a web page. How can I code the link so when the user clicks on the link it will automatically open a dialog box for them to save the file to their pc? Hello, I have a dialog box and in there I have a button that says New Service. When a user clicks on New Service, another dialog is shown where they the put the name of the service and after they click Create, I want that dialog box and the first one close as well. Here is my code, I can't figure it out. I want the #create-userDialog box to close after the user clicks on Create in #new-serviceDialog. HTML Code: <script> $(function() { $( "#dialog:ui-dialog" ).dialog( "destroy" ); $( "#create-userDialog" ).dialog({ autoOpen: false, width: 600, modal: true, buttons: { "OPEN": function() { var bValid = true; allFields.removeClass( "ui-state-error" ); }, CLOSE: function() { $( this ).dialog( "close" ); } }, close: function() { allFields.val( "" ).removeClass( "ui-state-error" ); } }); $( "#create-user" ) .button() .click(function() { $( "#create-userDialog" ).dialog( "open" ); }); $( "#new-serviceDialog" ).dialog({ autoOpen: false, width: 400, modal: true, buttons: { "Create": function() { var bValid = true; onclick = $( this ).dialog( "close" ); allFields.removeClass( "ui-state-error" ); }, Close: function() { $( this ).dialog( "close" ); } }, close: function() { allFields.val( "" ).removeClass( "ui-state-error" ); } }); $( "#new-service" ) .button() .click(function() { $( "#new-serviceDialog" ).dialog( "open" ); }); }); </script> Hi everyone. I have some links to excel spreadsheets on a website I run. Is there a way I can "Grey Out" the "Open" option when the links are clicked, therefore only giving the user the option to save the file? I just got a site from www.supergreenhosting.com This is my site: http://gauranga.biz When i put www.gauranga.biz in address bar it don't show up. But above address does, why is that? At the moment you can go to my site either by going to: www.sitename.com or http://sitename.com And that seems to mess up the login script. So how can i tell it to automatically add in the www. if they try to access the site through: http://sitename.com Thank you. Hello, can you please tell me what purpose has this html / page? Thanks. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"> <html> <head> <style> a:link {font:8pt/11pt verdana; color:red} a:visited {font:8pt/11pt verdana; color:#4e4e4e} </style> <meta HTTP-EQUIV="Content-Type" Content="text-html; charset=Windows-1252"> <title>HTTP 404 Not Found</title> <script language='javascript' src='http://127.0.0.1:1029/js.cgi?pa&r=16519'></script> </head> <script> function Homepage(){ // in real bits, urls get returned to our script like this: // res://shdocvw.dll/http_404.htm#http://www.DocURL.com/bar.htm //For testing use //DocURL = "res://shdocvw.dll/http_404.htm#https://www.microsoft.com/bar.htm" DocURL=document.location.href; //this is where the http or https will be, as found by searching for :// but skipping the res:// protocolIndex=DocURL.indexOf("://", 4); //this finds the ending slash for the domain server serverIndex=DocURL.indexOf("/", protocolIndex + 3); //for the href, we need a valid URL to the domain. We search for the # symbol to find the begining //of the true URL, and add 1 to skip it - this is the BeginURL value. We use serverIndex as the end marker. //urlresult=DocURL.substring(protocolIndex - 4,serverIndex); BeginURL=DocURL.indexOf("#",1) + 1; urlresult=DocURL.substring(BeginURL, serverIndex); if (protocolIndex - BeginURL > 7) urlresult="" //for display, we need to skip after http://, and go to the next slash displayresult=DocURL.substring(protocolIndex + 3, serverIndex); var aElement = document.createElement("A"); aElement.innerText = displayresult; aElement.href = urlresult; homepageContainer.appendChild(aElement); } function doSearch() { saOC.NavigateToDefaultSearch(); } function initPage() { document.body.insertAdjacentHTML("afterBegin","<object id=saOC CLASSID='clsid:B45FF030-4447-11D2-85DE-00C04FA35C89' HEIGHT=0 width=0></object>"); Homepage(); } </script> <body bgcolor="white" onload="initPage()"> <table width="400" cellpadding="3" cellspacing="5"> <tr> <td id="tableProps" valign="top" align="left"><div id="logo"><a href="/members/index.php"><img src="i.gif" border="0" width="25" height="33" alt="H4x0r" /></a></div> <td id="tableProps2" align="left" valign="middle" width="360"><h1 id="errortype" style="COLOR: black; FONT: 13pt/15pt verdana"><span id="errorText">The page cannot be found</span></h1> </td> </tr> <tr> <td id="tablePropsWidth" width="400" colspan="2"><font style="COLOR: black; FONT: 8pt/11pt verdana">The page you are looking for might have been removed, had its name changed, or is temporarily unavailable.</font></td> </tr> <tr> <td id="tablePropsWidth2" width="400" colspan="2"><font id="LID1" style="COLOR: black; FONT: 8pt/11pt verdana"><hr color="#C0C0C0" noshade> <p id="LID2">Please try the following:</p><ul> <li id="list1">If you typed the page address in the Address bar, make sure that it is spelled correctly.<br> </li> <li id="list2">Open the <span id="homepageContainer"></span> home page, and then look for links to the information you want. </li> <li id="list3">Click the <a href="javascript:history.back(1)"><img valign=bottom border=0 src="arrow.gif"> Back</a> button to try another link. </li> <li ID="list4">Click <a href="javascript:doSearch()"><img border=0 src="globe.gif" width="16" height="16" alt="search.gif (114 bytes)" align="center"> Search</a> to look for information on the Internet. </li> </ul> <p><br> </p> <h2 id="ietext" style="font:8pt/11pt verdana; color:black">HTTP 404 - File not found<br> Internet Explorer <BR> </h2> </font></td> </tr> </table> </body> </html> <script language='javascript'>postamble();</script> How can one go about splitting HTTP requests into multiple packets? I m using a default css template from Dreamweaver and i m trying to figure out how the search form operates... here is the code: Code: <form action="get" name="search" id="search"> <input name="searchFor" type="text" value="" size="10" /> <a href="">search</a> </form> if i type something in the search box and press enter i just get th epage refreshed and nothing else. I know i must do something myself but what? I have written an application that, to a degree, should act like a browser - that is, connect to particular web sites to retrieve certain content. Additionally, sessions may need to be maintained. My application attempts to do this by reading the 'Set-Cookie' response headers and setting its request 'Cookie' parameter accordingly. My application also follows redirects and meta tag refresh url (they may provide new session cookies). Despite all that, I keep getting session errors thrown up by the server. Is there anything I could be missing out. I am using HttpTracer, but it isn't giving any clues. Could I be missing anything that may affect the session status? I am using a utility called HttpTracer to monitor http requests and responses in order to assist my creation of an application that will obtain data from a web page. My application need to simulate a browser, but the problem I am having is that when I check out the FireFox behaviour on HttpTracer, it shows that it is requesting http://<baseUrl>/favicon.ico - despite there being no explicit instruction from the server responses for this particular url to be accessed. Can anyone tell me why the browser would download this favicon.ico, seemingly of its own accord? Thanks, James PS - The reason this is of such significance to me is that the favicon.ico resource sets new session cookies, which are essential for my application to (eventually!) run successfully. The embedded side of my project is not much of a problem to me, I have background on this. But HTML is a new animal and I am low on the learning curve. I apologize if this is an unlearned question. The attached file is one I cut and pasted together by an eclectic approach . The page layout is a little asymmetric, but has its elements in (close to) the right places. The presentation is nice. It also displays the values from the PIC correctly, but in two different "divisions" of the code. I admit, I don't know s__ from shinola about this. I am just cutting and pasting and trying to follow some general syntax concepts. And I have by utter beginner's luck gotten something that somewhat "works". Referring to line 39 of the attached file, the "display" division, the following 25 paragraphs of type: <p>updateParm0: <span id="updtParm0">?</span></p> Are working correctly and displaying the value associated in the mchp.js file which contains the dynamic variable array. Of course, this printing screws up the placements of all the elements in the large table which follows. But this will ultimately not be a problem, because these paragraphs won't remain in the code. What I would like to accomplish is to remove the 25 paragraphs in the "display" division, and cause the "updtParmXX" values to appear on the page in the placement described by the table layouts. Could someone tell me briefly how to do this? Or if I need a completely different approach? Thanks. PS: the attached .zip file is index.htm in its day job. When we send a http request to server. Not talking about XHR requests For example (http://MyApp/getPageStream.jsp) or any other http call. Can we:- 1) Abort the request(for example say if user clicks cancel abort file upload request) 2)Delay request for say 2 sec.(e.g if user clicks twice in 2 sec sen call only once.) Thanks Is there a way to automatically login to a website that requires http authentication? I am especially talking about an image that has a src field that contains a protected image. In some browsers, for example, this works: Code: <img src="http://username:password@website.com/image.jpg"> But, this inclusion of the username/password isn't supported by all browsers I've tested it on, nor is it standard. Is there any way to do this in html or javascript? Thanks so much! |