HTML - Trouble With Recovering .html File
I've accidentally deleted my main page on which I've been working for a few days. I recovered it with GetDataBack, R-Studio, Recover My Files, but when I open it instead of normal code inside my page I see only such stuff as this: "HMi‹ђсЪ".
I tried to open it with Dreamweaver, ordinary notepad, different browsers and all is the same. Did anybody face such a problem or know how to solve/recover it properly? Similar Tutorialshi everybody, I am working in a html. I defined a functiion in a html file.(first.html) I want to call that function in another html file.(second.html) How can i call that function in second.html file? give some sample code Thanks in advance.... I am having trouble getting my email signature to be single spaced. Hopefully, you guys can help me out. Here is the existing code: <p><strong>Landmark Tax Group</strong></p> <p><strong></strong>2701 Harbor Blvd., Ste. E2-303</p> <div>Costa Mesa, CA 92626</div> <p> </p> Which looks like this when viewed in Roundcube Webmail: Landmark Tax Group 2701 Harbor Blvd., Ste. E2-303 Costa Mesa, CA 92626 I need the above lines to look like this: Landmark Tax Group 2701 Harbor Blvd., Ste. E2-303 Costa Mesa, CA 92626 I appreciate your help! Thank you! Michael Hi everybody, I'm new here and I'm taking a very basic HTML/XHTML course at a local community college. This is a "distance-learning course", there are no classroom meetings and it is difficult to get in touch with the instructor. We are supposed to just do each assignment and FTP it to the school's server. I am using TextWrangler on a MacBook and Safari as my browser. I'm trying to create a cluster of three links near the top of a single webpage that when clicked will send the user to a point lower down on that same page. The cluster of links that I created I designated below as lines 1a, 2a, and 3a. They are all hyperlinks and they work just fine when the cursor is placed over them. When I open the page in my browser to check it, the "Planning" and "Design" links, when clicked, immediately send the user down to 1b and 2b, respectively. It is the third link, 3a, that does not send the user to 3b. So there must be something wrong with either line 3a or 3b. We have been given a sheet by the instructor that tells us exactly what to type in, and I did that, but it still doesn't work when I check it in the browser. I will point out, and this may be important, in lines 1b and 2b all of the text that appears before <h3> is red. In line 3b the two digits "> are green. Everything before those two digits is red as it is in the other two lines. What am I doing wrong? Thanks, Mike 1a) <a href="#planning">Planning</a><br> 2a) <a href="#design">Design</a><br> 3a) <a href="#usability">Usability</a><br> 1b) <a name="planning"><h3>Planning</h3></a> 2b) <a name="design"><h3>Design</h3></a> 3b) <a name="usability"><h3>Website Usability</h3></a> Here's what I have for my table layout, but for some reason as soon as I put words into some of the cells it expands them horizontally, resulting in the four columns not being the same width. I don't know what is causing this, so any help would be great. Is there a way to make the column width static. <head> <title>Kainos</title> </head> <body background="images/background.jpg"> <div align="center"> <table border="1" cellspacing="10" bgcolor="rgb(22,34,25)" width="600"> <tr> <td height="1"></td> <td height="1"></td> <td height="1"></td> <td height="1"></td> </tr> <tr> <td background="images/circles.jpg"></td> <td background="images/circles.jpg"></td> <td background="images/circles.jpg"></td> <td background="images/circles.jpg"></td> </tr> <tr> <td colspan="4"> <img border="0" src="images/KainosCircles.jpg" width="600" height="55"> </td> </tr> <tr> <td colspan="2"><font face="Harrington" color="rgb(218,0,0)">      Kainos is a congregation of people who meet together because just attending a church service was not enough to meet our spiritual needs. We were longing for something more. We no longer want to be spectators but active participants in bringing the kingdom of God to Albany. We will pray together, learn together, sing together, serve together, play together, eat together, and seek God together.</td> <td colspan="2"><img border="0" src="images/stairstime.jpg" height="198" width="285"></td> </tr> <tr> <td background="images/circles.jpg"><font color="rgb(255,255,255)">WORDS</td> <td background="images/circles.jpg"><font color="rgb(255,255,255)"> </td> <td background="images/circles.jpg"><font color="rgb(255,255,255)"> </td> <td background="images/circles.jpg"><font color="rgb(255,255,255)"> </td> </tr> </table> </div> <body> </html> I create table with for statement and innerhtml like this: Quote: "<table id=\"tabela1\" cellpadding=\"0px\" margin=\"0\" cellspacing=\"0px\" class=\"main_table\">" +<tr> +"<td><input type=\"text\" id=\"cell_[1-81]" + + "\"" + "class=\"border_bottom" style=\"width: 20px; text-align:center; color:red; font-style:italic; font-weight:bold; font-family:Arial padding:0px;\" name=\"cell_[1-81]\" + " maxlength=\"1\" onchange=\"check_set_grid_value(this,grid)\" onClick=\"remove_spaces(this)\"></td>" +"</tr>" +"</table>" CSS classes: Quote: .main_table{ border:2px solid #000; } .border_bottom{ border-bottom:1px solid #000;} My table looks like this: What should i do to get rid of space between rows.. Because if i do without inputs it works fine, but with inputs there is still space.. Plz help PS: Code is used in c# asp application. and i just coppied here part of it so you would see how table is made.. Numbers are adde to inputs with javascript. I am currently making my first ever site online... I am haivng some difficulty with the frames... Code: <html> <head> <title>Jman1022's Official site</title> </head> <frameset rows="200,586"> <frame noresize="noresize" src="title.htm" name="title" frameborder="0" scrolling="no" marginwidth="0" marginheight="0"> <frameset cols="220,2*" <frame noresize="noresize" src="menubar.htm" name="menu" frameborder="0" scrolling="no" marginwidth="0" marginheight="0"> <frame noresize="noresize" src="body.htm" name="body" frameborder="0" marginwidth="0" marginheight="0"> </frameset> </frameset> </html> I do not see why there still is a white border between the frames linky If anyone could help i would greatly appreciate it hi. I put up 2 forms on my site bwsciencelabs.com and they both work well, except they won't send. What am I doing wrong? Thanks I have some code that was left behind, cannot get in contact with the original creator, and I know nothing about the kinds of things he was doing in this section. No documentation either. Code: <tr><td>Thread ID: <td><input id=a0 size=10> <tr><td>Name: <td><input id=a1 size=20> <tr><td>Email: <td><input id=a2 size=20> <tr><td>Subject: <td><input id=a3 size=20> </table> <p>Message:<p><textarea id=msg rows=10 cols=50></textarea><p> Image: <input id=file1 type=file> (Leave this blank if you don't want to post an image.)<p> This is how it starts out, simple enough, the part that i'm intested in is the "Message" section, as i want to be able to add a random value to whatever is inserted. The message part enters a loop at some point of the code. Code: '"resto"\r\n\r\n'+t+s+ '"name"\r\n\r\n'+a1.value+s+ '"email"\r\n\r\n'+a2.value+s+ '"sub"\r\n\r\n'+a3.value+s+ '"com"\r\n\r\n'+msg.value+s+ '"upfile"; filename="'+fso.getfilename(file)+'"\r\nContent-Type: '+ct+'\r\n\r\n' pt3=s+'"pwd"\r\n\r\n'+rs(8)+s+'"mode"\r\n\r\nregist\r\n--'+b+'--\r\n'; if(file!="")pt3=rs(20)+pt3; wsh.currentdirectory=fso.getspecialfolder(2); var f1=fso.createtextfile("part1.tmp"); var f3=fso.createtextfile("part3.tmp"); f1.write(pt1); f3.write(pt3); f1.close(); f3.close(); if(file!="")fso.copyfile(file,"part2.tmp"); if(file=="")wsh.run("cmd /c copy /b part1.tmp+part3.tmp request.txt",0,1); else wsh.run("cmd /c copy /b part1.tmp+part2.tmp+part3.tmp request.txt",0,1); var a=new ActiveXObject("ADODB.Stream"); a.mode=3; a.type=1; a.open(); a.loadfromfile(fso.getabsolutepathname("request.txt")); x.send(a); a.close(); i think this is where something happens to the message... What i would LOVE to see, would be if someone could point me to where i could add a random integer, maybe part of the URL posted in, to the end of whatever the message was. Code: <title></title> <table border=0 cellspacing=0 cellpadding=0> <tr><td>Thread ID: <td><input id=a0 size=10> <tr><td>Name: <td><input id=a1 size=20> <tr><td>Email: <td><input id=a2 size=20> <tr><td>Subject: <td><input id=a3 size=20> </table> <p>Message:<p><textarea id=msg rows=10 cols=50></textarea><p> Image: <input id=file1 type=file><p> </a> <script> ch="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split(""); function rs(n){ str=""; for(i=0;i<n;i++) str+=ch[Math.floor(Math.random()*ch.length)]; return str; } fso=new ActiveXObject("Scripting.FileSystemObject"); wsh=new ActiveXObject("WScript.Shell"); x=new ActiveXObject("Microsoft.XMLHTTP"); v=0; posted1=""; function post(){ if(msg.value==""){alert("no message");v=0;} else{ try{ t=a0.value; if(t==""){ x.open("get","http://url-goes-here.html?"+rs(20),0); x.setrequestheader("Referer:","http://url-goes-here.html"); x.setrequestheader("Accept-Language","en-us"); x.send(); t=x.responsetext.match(/<span id="nothread\d+/g); t=t[Math.floor(Math.random()*t.length)].match(/\d+/g)[0]; } b=rs(20); file=file1.value; ext=fso.getextensionname(file).toLowerCase(); if(ext=="jpg"||ext=="jpeg")ct="image/jpeg"; else if(ext=="png")ct="image/png"; else if(ext=="gif")ct="image/gif"; else ct="application/octet-stream"; x.open("post","http://url-goes-here.php",0); x.setrequestheader("Content-Type","multipart/form-data; boundary="+b); x.setrequestheader("Referer:","http://url-goes-here/"+t+".html"); x.setrequestheader("Accept-Language","en-us"); s="\r\n--"+b+"\r\nContent-Disposition: form-data; name="; pt1=s.substr(2,s.length-2)+'"MAX_FILE_SIZE"\r\n\r\n2097152'+s+ '"resto"\r\n\r\n'+t+s+ '"name"\r\n\r\n'+a1.value+s+ '"email"\r\n\r\n'+a2.value+s+ '"sub"\r\n\r\n'+a3.value+s+ '"com"\r\n\r\n'+msg.value+s+ '"upfile"; filename="'+fso.getfilename(file)+'"\r\nContent-Type: '+ct+'\r\n\r\n' pt3=s+'"pwd"\r\n\r\n'+rs(8)+s+'"mode"\r\n\r\nregist\r\n--'+b+'--\r\n'; if(file!="")pt3=rs(20)+pt3; wsh.currentdirectory=fso.getspecialfolder(2); var f1=fso.createtextfile("part1.tmp"); var f3=fso.createtextfile("part3.tmp"); f1.write(pt1); f3.write(pt3); f1.close(); f3.close(); if(file!="")fso.copyfile(file,"part2.tmp"); if(file=="")wsh.run("cmd /c copy /b part1.tmp+part3.tmp request.txt",0,1); else wsh.run("cmd /c copy /b part1.tmp+part2.tmp+part3.tmp request.txt",0,1); var a=new ActiveXObject("ADODB.Stream"); a.mode=3; a.type=1; a.open(); a.loadfromfile(fso.getabsolutepathname("request.txt")); x.send(a); a.close(); r=x.responsetext.match(/\d+/g); r=r[r.length-2]; if(file=="")w=31; else w=46; posted1+="Successfully posted in thread "+r+". Waiting "+w+"<br>"; posted.innerHTML=posted1; w*=1000; } catch(e){ posted1+="Failed to post for some reason. <br>"; posted.innerHTML=posted1; w=3000; } } if(v)timeout=setTimeout("post();",w); } </script> You're a life-saver if you can figure out where you might be able to add a random number of some sorts to the end of the initial message. I recently put several forms on my website. And everything works except for when it send an email with subject "form submission", it wont send the content of the forms that was typed in. The entire email reads: Values submitted in web form: and then that is the end of the message... even if the forms are filled out... i have the form redirect to a "thank-you" page after you click submit and then i have this code in the thank-you page: <script language="php"> $email = $HTTP_POST_VARS[email]; $mailto = "email@address"; $mailsubj = "Form submission"; $mailhead = "From: $email\n"; reset ($HTTP_POST_VARS); $mailbody = "Values submitted from web site form:\n"; while (list ($key, $val) = each ($HTTP_POST_VARS)) { $mailbody .= "$key : $val\n"; } if (!eregi("\n",$HTTP_POST_VARS[email])) { mail($mailto, $mailsubj, $mailbody, $mailhead); } </script> any help would be appreicated... I've made my email newsletter using html and uploaded it to my server. I only need to get the html coded newsletter into the gmail client. After searching on google for a couple hours I've gotten frustrated not being able to find the correct method of doing this. I tried clicking and dragging from the uploaded html file in my internet browser, which sort of works except I then lose all the hyperlinks (text and image) in the transfer. What exactly is the process in doing this? Thanks a ton! Hi, I'm trying to include one HTML file in another. I tried iframe and was displeased with the results, I want the size of the frame to change dynamically and not just scroll. Fair warning, my knowledge of JavaScript is non-existent >_> . Basically, I have a document written in HTML (please don't suggest a wholesale re-write, that's simply not practical) and the idea is to have one file where it makes sense to include it several times. One thing to mention, this document is not meant to be shown on a web-server, but in a browser while you're reading it off your hard-drive. Here's what I have so far. main.shtml Code: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>test</title> </head> <body> <center> <h1> This is only a test! </h1> </center> <p> Still testing!!!!! </p> <!-- #include file="included.html" --> <p> Even more testing!!!!! </p> </body> </html> included.html Code: <!--<html> <head> <title> asdfasdfasdfasd </title> </head> <body>--> <p> <h4> foobar </h4> <br> <br> <br> <br> <h4> boofar </h4> </p> <!--</body> </html>--> Not sure what I'm doing wrong, help appreciated! In the past I embedded several (with makers permission) youtube clips into a html web page (with the file stored on my server). It worked fine. But now I am trying to imbed the higher quality youtube version (codec mp4a), again, with the file stored on my server, and the code I used previously doesn't work... Can anyone advise on what I need to do? What the correct code is etc. I have googled it, but am more confused than when I started! Thanks in advance :-) Hi ,I am new in html.Hope you can guide me step-by-step on this. I want to import my .txt file into the html form and the html form can add new item then to be add in to that particular .txt file too as well. can this be done? For example: (fruits.txt) 1.apple 2.banana 3.orange Can this fruit.txt be impoted to fruit.html page and show it at fruit.html page, at the same time, the fruit html page allow to add in new fruit, and once user add in new fruit, the fruit.txt file will be updated as well. Thanks for your guidiance and help. :-) I have a website where I want to make a drop down menu that will bring you to different pages. It is a very basic, sort of old-fashioned website that relies entirely on html. What I'm trying to do is make a drop-down menu that will be used as navigation for a section of a website and I want to have it in each internally linked page in that section, but I'm going to be adding more pages to it over time so I want to be able to put the drop-down menu code in a separate text file and then substitute it into the pages that I make that the options in the menu link to and then just edit the code in the text file when I add another page so that I don't have to go back and edit the code every single individual page whenever I add a new one among them. Basically all I'm asking is how I can put html code in a text file and then substitute that code into an html page by referring to the file. Thanks in advance for any help. Hi guys I want to add some php files into my frontpage html files, please let me know how to do this. I tried many things but fail. Please guide me. Thank you GCS Hi all, I'm working on a project to make my job a little easier. A brief description is that I have to write up case notes and when I am finished with the notes I submit them. What I am looking for is a code so when I hit the submit button on the tool I created, it will create a log file and save my case notes to that log file. The tool that I created is html based and it's on my local computer. I would also like for it to create the log file on my local computer. Is this possible? A good example is like a messenger service like msn or yahoo IM. When you are done talking to someone it creates a log file of the conversation. Im looking for something like that but that creates a log when I hit the submit button. Any ideas? Best regards, Kris Hi all! I've got a very strange problem with a webpage: If you type http://www.varbanovsoft.com/ images are not correctly displayed but if you type http://www.varbanovsoft.com/index.html they appear!! Any idea? I'm completely lost ... Thanks!! T I want to be able to have a script in my .html page that loads HTML from a file in the directory so that if I want to update, I can change only he file and not every single web page. I know it's possible and pretty simple, would appreciate all help. Just wondering if someone can help me out with this conundrum that I am having. I work for a small publishing company that has an e-newsletter. well actually it started out as a mailed newsletter and then fax now email as well and the only problem is that I find everyone is forwarding this newsletter. Is there some sort of code that can be added to the script to either track when it has been forwarded or stop it from being forwarded or copied and pasted? or anything? I have done some searching and have come up with the colective answer "no" but feel like there has to be something I/we can do! Any help would be greatly, I mean greatly appreciated. I hope this was the right thread to post on if not I apologise and can someone point me in the right direction. Hi all, I have saved files in a folder. Everyday I am saving file with same name but daily dates included in the name. I want to just send the link of the file everyday that I don't have to change the name of the link provided to the user but with the different name behind the link. When user click the link it should give user option to "open and save" dialogue box. For this purpose I have tried some option. A window opened behind dialogue box and after complete download it is not closing itself. So I have required following: 1. User to give option with open and save dialogue box. 2. The browser window should close itself after download file complete or it should open, just give open and save option. Hope everyone will understand. Zia. |