Jump to content

vmars316

Members
  • Content Count

    368
  • Joined

  • Last visited

Everything posted by vmars316

  1. That wasnt intentional, i copied from Jarte and into TinyEdit,and it ended as above.I'll try and Edit it...vm
  2. Ok, thanks: Here are a couple of methods I found for copy/paste clipboard: http://www.brighthub.com/internet/web-development/articles/24628.aspx http://www.dynamic-tools.net/toolbox/copyToClipboard/ http://www.rahulsingla.com/blog/2010/03/cross-browser-approach-to-copy-content-to-clipboard-with-javascript http://msdn.microsoft.com/en-us/library/ms535220(VS.85).aspx ...Vernon
  3. How about: 2) Or can it be copied to clipboard?3) Can I dump textArea into an email?4) Some other clientSide method. Thanks...vm
  4. Greetings,I would like to be able to save clientSide textArea contents to a file? 1) A *.txt file would be nice. 2) Or can it be copied to clipboard?3) Can I dump textArea into an email?4) Some other clientSide method. Thanks...Vernon
  5. Ah, yes, good aim.Which led me to : http://www.w3schools.com/js/js_ex_dom.asp http://www.w3schools.com/js/js_examples.asp But I am not asking 'how to open a window'. I am saying 'given the code above', (see line 30.) He uses no OPEN , and still he manages to open a window,or at least clear orig window, then writeln to print a receipt. Anyways, Thanks for the link...vmars316 almost forgot, I combine both openWindows into one, in case there are other newbies, like me reading here:<html><!-- http://www.w3schools.com/jsref/met_win_open.asp --><head><script type="text/javascript">function openWin(){myWindow=window.open('','','width=200,height=100');myWindow.document.write("<p>This is 'myWindow'</p>");myWindow.focus();}function open_win() {window.open("http://www.w3schools.com");}</script></head><body><form><input type="button" value="Open little window" onclick="openWin()" /> <input type=button value="Open URL Window" onclick="open_win()" /></form></body></html>
  6. Greetings;In the following, what causes the js to create a new page, for writing the "document.writeln" onto: 31: document.writeln("Price: $" + total_price + "<br>");....Thanks...vmars316---START--1: <html>2: 3: <head>4: <title>JS input example.</title>5: <script language="JavaScript">6: <!--7: /* Start of round_total function.8: */9: function round_total © {10: var pennies = c * 100;11: pennies = Math.round(pennies);12: var strPennies = "" + pennies;13: var len = strPennies.length;14: return parseFloat(strPennies.substring(0, len - 2) + "." + strPennies.substring(len - 2, len));15: }16: // End of round_total function.17: 18: /* Start of generate_page function. */19: function generate_page (form) {20: tax = 0.08;21: delivery_p = 2.99;22: var odate = new Date();23: var qty = form.quantity.value;24: var product_v = new String(form.product.value);25: var total_price = product_v.substr(product_v.indexOf("$") + 1, product_v.length - product_v.indexOf("$"));26: var price_without_tax = round_total(qty * total_price);27: var ttax = round_total(price_without_tax * tax);28: var delivery = round_total(qty * delivery_p);29: var total_p = round_total(price_without_tax + ttax + delivery);30: document.writeln("Quantity: " + qty + "<br>");31: document.writeln("Price: $" + total_price + "<br>");32: document.writeln("Tax: $" + ttax + "<br>");33: document.writeln("Delivery: $" + delivery + "<br>");34: document.writeln("Total: $" + total_p + "<br>");35: document.writeln("Order placed on: " + odate.toGMTString());36: }37: // End of generate_page function.38: 39: -->40: </script>41: </head>42: 43: <body>44: 45: <form>46: <p>Product: <select name="product" size="1">47: <option value="Brown Jacket - Size 35 - $58.99">Brown Pants - Size 31 - $58.99</option>48: <option value="Blue Shirt - Size 32 - $69.99">Blue Shirt - Size 32 - $69.99</option>49: </select><br>50: Quantity: <input type="text" name="quantity" size="18" value="1"><br>51: <input type="submit" value="Submit" name="submit" onClick="generate_page(this.form)"><input52: type="reset" value="Reset" name="reset"></p>53: </form>54: </body>55: </html>
  7. Yes, that's exaclty what I want to do, Locally. But for all Browsers!The next best thing is ClipBoard. But I haven't yet found a way to make ClipBoard 'Browser independent'.Do you know of a way?So, I think that leaves 'Save stuff via cookies'. Which seem to be Browser independent.Am I right about that?Thanks...vmars316
  8. Greetings;How can I view a javascript that is referenced in an *.html ?. For example, something like this in an *.html : ../johnDoe/dough.js I want to study the script.Thanks...vmars
  9. 1) Can a server-side language run on client-side?2) If so, which ones? Browser independent?3) I guess I want to rePhrase my request:"How to write to a *.txt file, FROM a TEXTAREA and/or FROM an iFrame"? 4) Since my original request, I did find this(untested):var fso,filefso = newActiveXObject("Scripting.FileSystemObject")file=fso.CreateTextFile("C:\\a.txt")file.close(); 5) But I want to write the 'whole text' FROM a TEXTAREA and/or FROM an iFrame,NOT just one line. If I have to write a line at a time, Can TEXTAREA and iFrame be accessed by index. Thanks...vmars
  10. swan52:I am learning too:would you be willing to Post your working example?Thanks...vmars
  11. Greetings;How to write to a *.txt file, Browser independent.I can read it into iFrame: (not sure about TextArea though) <iframe src="vmars.txt" style="float: right; width: 260px; height: 130px; margin-left: 12px; border: 1px solid black;" name="#vmarsTXT"></iframe>but how to write it back out? Into *.txt . Not into Cookies, but a real *.txt file.Thanks...vmars
  12. Greetings;I read your article on js_cookies @http://www.w3schools.com/js/js_cookies.aspAfter running the example, I noticed there were no directions on "how to delete a cookie".Pls, how do I delete this cookie?Thanks...vmars
  13. I am writing a pgm to generate ComboBox dropDown Menus User enters three parms: menuname<>(1) , linkname<>(1) , linkaddress<>(1) , linkname<>(2) , linkaddress<>(2) , .... menuname<>(2) , linkname<>(1) , linkaddress<>(1) , linkname<>(2) , linkaddress<>(2) , .... I would like to create an html page with three equal columns using only <div>.I would like to create an html page with three equal columns using only <table>.I would like to create an html page with three equal columns using only <css>.I would like to create an html page with three equal columns using only <xml>.In other words, 4 separate html pages. Probably there is an example of this somewhere. BTW: Is there a place on w3schools to post user created webTools(freeware)? Thanks...vmars316
×
×
  • Create New...