HTML - Outputting Grand Total On Another Html Page.
Hello,
I am doing a coursework which involves adding sub-totals to a grand total. <javascript> function update_total() { $total = 0; $total = parseFloat(document.getElementById('adult_single_cost').value) + parseFloat(document.getElementById('adult_return_cost').value) + parseFloat(document.getElementById('adult_allday_cost').value) + parseFloat(document.getElementById('senior_single_cost').value) + parseFloat(document.getElementById('senior_return_cost').value) + parseFloat(document.getElementById('senior_allday_cost').value) + parseFloat(document.getElementById('student_single_cost').value) + parseFloat(document.getElementById('student_return_cost').value) + parseFloat(document.getElementById('student_allday_cost').value) + parseFloat(document.getElementById('child_single_cost').value) + parseFloat(document.getElementById('child_return_cost').value) + parseFloat(document.getElementById('child_allday_cost').value); document.getElementById('total').value = $total.toFixed(2); </javascript> I want to output the grand total on another html page, i have tryed doing this by <script type="text/JavaScript"> <!-- function MM_popupMsg(msg) { alert(msg); } function MM_goToURL() { var i, args=MM_goToURL.arguments; document.MM_returnValue = false; for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'"); } </script> <h3>Cost:<? echo$_GET['total']; ?></h3> If anyone can help me, i will be very greatful. Thank you, Jeeves. Similar TutorialsHi all. I have a problem with forms I could use some help with. Here is how I want the section of it I am having problems with to look. Code: <input type="select" name="inst1img"> <option value="NULL" selected>None</option> <option value="<img src="http://www.****.com/images/arrowlr.gif">">Left/Right arrows </option> <option value="<img src="http://www.****.com/images/arrowud.gif">">Up/Down Arrows </option> </select> and so on and so forth. The point of this is, I have a game site and I am making a php/html admin section to quickly add games and their instructions to the site. However, when I use a code like shown above, the form is screwed up and it shows the images in the middle of it. Can anyone suggest some way I might be able to get this to work? The best I could come up with so far is to use a text box input, and leave out all the html elements, such as the <img src=" and just fill that in each time, but as you can immagine, that is BEYOND a pain in the rear. The other thing is, when this data is put through to mysql database, it has to show up as perfect html otherwise it won't work right on the page when I include it. Thank you in advance! Jax2 I'm trying to make a small page that reads a CSV file (exported from excel) that gives me a list of my DVDs with an img that is a link to the file to start the movie. It actually works fine (needs some formatting tweaking), but as it is below, it lists the movies vertically (up & down). Anyone know how I can make it list them horizontally? For whatever reason I prefer it that way. Any help would be appreciated. I'm testing using IE btw. movies-test.html ===== <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html> <head> <title> Graphical list </title> </head> <body bgcolor=#C0C0C0> <object ID=data classid="clsid:333C7BC4-460F-11D0-BC04-0080C7055A83"> <param nAme="DataURL" value="movies-test.csv"> <param nAme="UseHeader" value="true"> </object> <table CELLSPACING=25 datasrc='#data'> <tr> <td><center> <a href= <span datafld='location'> </span><img width=290 height=400 src=<span datafld='picture'></span> </a><br> <span datafld='name'> </span> <span datafld='time'></span> </center></td> </tr> </table> </body> </html> movies-test.csv ===== name,time,picture,location 8mm,123,C:/DVDs/images/8mm_cs.jpg,D:/8mm/video_ts/video_ts.ifo 12 Monkeys,131,C:/DVDs/images/12_monkeys_cs.jpg,E:/12_monkeys/video_ts/video_ts.ifo Thirteen Ghosts,91,C:/DVDs/images/13_ghosts_CS.jpg,E:/thirteen_ghosts/video_ts/video_ts.ifo 13th Warrior,102,C:/DVDs/images/13th_warrior_cs.jpg,D:/13th_warrior/video_ts/video_ts.ifo 16 Blocks,105,C:/DVDs/images/16_blocks_cs.jpg,H:/16_blocks/video_ts/video_ts.ifo hi guys, I have this code he 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> <meta http-equiv="Content-Type" content="text/html; charset=windows-1251" /> <title>Under construction</title> </head> <body style="background-color:#121212"> <div style="background: url(under_construction.jpg) no-repeat center top ; height: 1024px; margin: auto;"> </div> </body> </html> the image under_construction.jpg is basically the page itself, it has a size of 1680x1024. As of right now the page doesn't adjust automatically to the users screen. Please help me change the code so that it'll adjust automatically to the user screen Hi, Background: I have a small page that need to be embeded into a bounch of other html pages. Help needed: 1. Please provide the html chunk that I can use to embed the small page in to other html pages. 2. Is there a way of not using iframe? Can I use <Object> or <embed>? How? --------------------------- mba colleges in london hospitality management diploma HI everyone, I am in process of creating a sample page. I need to pass values from one HTML page and i should get those values in other page. For example i have used two sample pages like, sample.html l<html> <head> <title> My first page </title> </head> <body> <a href="sample1.html" id="1001">Welcome to html </a> </body> </html> sample1.html <html> <head> <title> My second page </title> </head> <body> <a href="sample1.html">Sample HTML page values came here</a></body> </html> I have used those two sample pages and i need to get the value of id="1001" in sample 1.html page could anyone help me to solve this problem. Thanks in advance Regards, Martin I believe in thread titles that get to the point. I have a basic page, when the page loads I want people to see the top of the page for a few seconds while a flash starts to load but then I want the page to scroll down a bit so the visitor can see the flash load progress status. I just want code that I can copy into my page. I don't have access to the flash code. Greg (the page under design) www.mytcanada.com/designer.html I have a programmer in the US who starts pages for me and then I much around with them until it's looks like I want. He helps me when I get stuck but he's on holidays. Any help would be great. Hey all, me and my friend have a cleaning company and we deciced to make a webpage. It's been a good 6 years since i have worked on a website. My biggest accomplishment so far was getting the contact form to work properly on the site. It does, i feel like i've done alot lol. Anyway, the current design is a rough layout (suggestions are welcome). It still needs a lot of little touches to make it look more "full". My biggest concern now is when your clicking from page to page the table jumps around. In firefox, the Contact Us and Services page are perfect, nice and centered. The image i'm using where the navigation buttons are is in place as well. When you go to the other pages though the table moves a bit and it looks like the image i'm using where the navigation buttons are starts to repeat. In Internet Exploder, everything doesn't look centered. There seems to be more space on the right than on the left, but the image i'm using for the navigation buttons seems to be fine, it's not repeating. I dunno what's causing this. I know different browsers display stuff in different ways but i'm far from having a good understanding as to why (that's why i'm here). I even copied txt from one of the messed up pages and pasted it on one of the pages that is ok and that didn't work. I assume it's a CSS thing. Also, try and avoid saying things like "Table designs are for teh n00bz!11!" or "This is why CSS is better than using a table design!!!". This is how i did it. Im ok with CSS but i don't have a thorough understanding of it to design an entire website using CSS. I'm hoping this is an easy CSS fix, or maybe something else? The website is www.gocleantoday.com. Thanks. I am stuck with this stupid code that i have been trying to fix for an hour! Please help. Heres my problem...: I want to embed a webpage within another and scroll it to the bottom of the page automaticly because i want the information at the bottom which is updated frequently. I also dont want a scroll bar, so all that is seen is the table. the website is www.totalfta.com. I want from below the ENTER|EXIT sign to the bottom of the table. I have attached what i have so far. ***I have the embed into another page, and the no scroll bar... i just want to make it auto scroll to the table..**** Thank you..! <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-... <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Tester</title> </head> <iframe height="410" width="100%" frameBorder="0" src="http://www.totalfta.com" mce_src="http://www.totalfta.com" scrolling="no" body onLoad="for (i=0;i<window.screen.availHeight;i++) {window.scroll(0,i); }"</iframe> <body> Hi, Is there any possible to show a HTML or ASP page inside the table. I have tried with frames but i dont know how to execute exacltly. Thanks Hello Friends, I need a tool which can remove HTML comments from an HTML page. I don't want to create a regular expression to remove HTML comments rather I need a tool which should have command line support also so that it can be integrated with build process. Please advice. Thank you. How to link one page to another page in HTML? ------------------------------------------------------ Hello I have a custom made template which is done using html. I also have phpproxy which uses .php and I would like on my index.html page to call the index.php in the table created for text content. i have tried to use the include comand however it doesnt have any effect. any and all help appreciated. Thank you This is The template This is phproxy Hi, I am new to HTML coding and am not aware of all the options that are available with HTML, my requirement is as below I have a page 1.html on the server to which i don't have the edit access, I have some data which I check on this page at regular intervals of 10 seconds...... Now my problem lies here since this page is not editable i cannot change the refresh settings for 1.HTML My query : Is there an option available wherein I create my own page 2.HTML on my local desktop and write a code in 2.html such that page 1.HTML is refreshed every 10 seconds and obviously 2.html being open all the while.. Any kind of suggestions will be appreciated.... Thanks, Jay Can I put an HTML page within a html page in a table? I have this template that I need to email to people, it will not be on my website. Wow ever I need to change the information in one table every few days. The information is live I think it's called. It's like if I place google adsense in that table and decide to change it to ad-clicks later, I can't send everyone a new template, I need to be able to change just the information within that table. I'm going to go read up on frames, haven't used them in years. Any ideas! ~eDee I just got into the whole HTML/CSS thing, and to be honest I don't know a whole lot...I know it's something that I want to master and continue to expand on, but I just started learning some of the stuff a couple of weeks ago... My myspace page : http://myspace.com/santana32 I thought looked pretty decent in IE because of the image filters and the comment box... I just got Firefox, and recieved a rude awakening...the filters were no longer there, my music player wasn't there and the gif image that was in my comment box isn't static, it moves with the page itself.... I just want ask if anyone could help me to get my Firefox version of my page to look more like the IE one...it would be greatly appreciated. I'm trying to create a website with fields that our accounts can just add in the numerical value and the formulas will do the rest. It's for a company intranet site. its a server running Windows Server 03 using IIS to run the site. kinda like a web based excel sheet, with out the spreadsheet look. Hello, total newbie here so please be gentle. The start of my source code is: <head> <title>INSERT TITLE HERE</title> <meta name= "description" content="INSERT DESCRIPTION HERE"> <meta name="keywords" content="INSERT KEYWORDS HERE"> </head> <style type="text/css"> <!-- body { background-image: url(.. What I am finding is when I load the page and save it via FTP to the hosting server, everything before the line <style type="text/css"> disappears totally from the souce code... What am I doing wrong? Thanks, Pete I don't see anyone else doing this so please, for the love of pete, don't get me in trouble for it if it is not ok. I am not some pro trying to post this for some alt. motive and get away with it. I think that will be evidenced by how basic the help is that I need. Here is what's up. I bought a template website from a company called Miva. They have some HTML pages that I can adjust. This is part of an email template that gets sent out when someone purchases something from my site. (I am not posting my site or links or anything here. I did read that that was against the rules and would get me banned first post) What I need is help removing the price out of the table. The reason I need help with this is that this email automatically goes to the manufacturer when an order is processed. The manufacturer then drop ships the order to the customer. The manufacturer lets me sell the products for whatever I want but I can't advertise below the price he sets. Basically ALL of my sales are less than his minimum but I don't advertise or display the lower price without the customer being logged in. That being said I don't want to rub it in his face that all my orders are lower. So what part of the HTML below is the price? I have tried to remove some of the code but I either break it so the table doesn't show up at all or nothing happens. So here is the HTML: Again if that isn't alowed just say so. Thanks for your help. HTML Code: <table> <tr class="basket-heading"> <td class="item-name">Item</td> <td class="item-quantity">Qty.</td> <td class="item-price">Item Price</td> <td class="item-total">Total Price</td> </tr> <mvt:foreach iterator="item" array="order:items"> <tr> <td class="item-name"> <div class="special-offer"><mvt:if expr="l.settings:item:upsold">(Special Offer)</mvt:if></div> <div class="item-name"> &mvt:item:name; - <span class="item-code"> &mvt:item:code; </span> </div> </td> <td class="item-quantity"> &mvt:item:quantity; </td> <td class="item-price"> &mvt:item:formatted_price; </td> <td class="item-total"> &mvt:item:formatted_subtotal; </td> </tr> <mvt:foreach iterator="option" array="item:options"> <tr class="item-options"> <td class="item-name"> <mvt:if expr="l.settings:option:option_id"> &mvt:option:attr_code;: &mvt:option:opt_code; <mvt:elseif expr="NOT ISNULL l.settings:option:data"> &mvt:option:attr_code;: &mvt:option:data; <mvt:elseif expr="NOT ISNULL l.settings:option:data_long"> &mvt:option:attr_code;: &mvt:option:data_long; <mvt:else> &mvt:option:attr_code; </mvt:if> </td> <td class="item-quantity"> </td> <td class="item-price"> <mvt:if expr="l.settings:option:price"> &mvt:option:formatted_price; <mvt:else> </mvt:if> </td> <td class="item-total"> <mvt:if expr="l.settings:option:price"> &mvt:option:formatted_subtotal; <mvt:else> </mvt:if> </td> </tr> </mvt:foreach> </mvt:foreach> <mvt:foreach iterator="charge" array="order:charges"> <tr class="basket-charges"> <td colspan="2"> </td> <td class="charge-description"> &mvt:charge:descrip;: </td> </tr> </mvt:foreach> <tr id="basket-totals"> <td colspan="2"> </td> <td class="total-prompt"> Total: </td> <td class="formatted-total"> &mvt:order:formatted_total; </td> </tr> </table> <div class="clear"></div> Hi All, I have never built a webpage before and my html knowledge is pretty much ziltch but I wanted to build a site for my husbands business. So, I sat up for 7 hours last night and built my first page with Dreamweaver. I was really happy with it but somehow today I lost it I have all the page content so I can easily replace it and I have a jpeg of the site when I first finished building it so can copy it with no problem, my only real problem is getting the lines back how I had them before, I haven't a clue how I did it the first time and have wasted my whole day trying to get three simple (ha!) lines in place but with no success. I feel so frustrated it's driving me mad... Could someone please tell me how to do it ? This is the site I built... http://i21.photobucket.com/albums/b2...ebpagecopy.jpg These are the lines I just can't do no matter how I try... http://i21.photobucket.com/albums/b2..._2604/line.jpg Any help really really appreciated!! Debby. Ok, newbie here... I have two questions about background pics... I downloaded an image which I want to use as a background pic. The pic is located in the same folder as the my html script (Wordpad). I can get it to display but the pic is "broken up"; the image basically cuts off on the right, and then starts over. How can I fix it? This is a page for my sister-in-law; I wanted to email her a sample page but when I test-emailed it to myself, the background pic didn't display. I am pretty sure it has to do with the path; any recommendations? Thanks so much for your help! S. |