- Strength to Increase Rep
- +7
- Strength to Decrease Rep
- -1
- Upvotes Received
- 48
- Posts with Upvotes
- 47
- Upvoting Members
- 30
- Downvotes Received
- 4
- Posts with Downvotes
- 4
- Downvoting Members
- 3
Re: [QUOTE]This code to disable ctrl (control)[/QUOTE] The bad news is that your code is not cross-browser compatible. Even in IE, it doesn't prevent copying with other keystrokes or with the mouse. It also doesn't deal with <iframe>s [and possibly <frame>s as well, but I didn't bother to test]. The good … | |
Re: Please give some examples of what the user is prompted to type and what you expect to happen (when it is valid and when it is not). | |
Re: [QUOTE]javascript did not like the fact that I was using numbers[/QUOTE] Here is a test [CODE]<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"> <html> <head> <meta name="generator" content= "HTML Tidy for Windows (vers 25 March 2009), see www.w3.org"> <script> var count = 0; for (var item = 0; item < 20; item++) … | |
Re: [QUOTE] no javascript in any browser (error shown in IE8) [/QUOTE] Save this [CODE]<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2//EN"> <html> <head> <meta name="generator" content= "HTML Tidy for Windows (vers 25 March 2009), see www.w3.org"> <script type="text/javascript"> alert('hello') </script> <title></title> </head> <body> </body> </html> [/CODE]to your desktop as an .html file … | |
Re: [QUOTE=samaru;1126022]The way it would work would be JavaScript creates an XmlHttpRequest object which fires off GET/POST method [/QUOTE] In principle XMLHttpRequest supports PUT (which be used upload a .txt file). | |
Re: Here is one example. [CODE]<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta name="generator" content= "HTML Tidy for Windows (vers 25 March 2009), see www.w3.org"> <title></title> </head> <body> <form name="myform" id="myform" action="html_form_action.asp" method="get"> First name: <input type="text" name="FirstName" value="Mickey"><br> Last name: <input type="text" name="LastName" value="Mouse"><br> </form> <button onclick="myform.submit();" value="Submit">SUBMIT</button> … | |
Re: [QUOTE]docuemnt.getElementbyId("<divid>").style.visibility:"visible" or "hidden" [/QUOTE] That code has obviously not been tested. The keyword [ICODE]document[/ICODE] is misspelled. | |
Re: The described behavior in IE8 isn't seen here with the code provided (although I may not have stumbled on the <input> that causes the problem. What DOCTYPE are you using? | |
Re: It isn't your code. A very detailed test program fails here in a similar way. I can get the w3schools hint in Safari (PC) and IE8, I can't get it in Chrome, Firefox or Opera. I strongly suspect that the problem is cross-domain blocking (which conforming user agents are supposed … | |
Re: [QUOTE]good JavaScript project for beginners?[/QUOTE] A display clock. When you tire of changing formats/styles/animation/timezones/etc. move on to a simple [unix-style] calendar: mmm yyyy d d d d d d d 1 2 3 4 5 6 7 8 9 etc Basic as they are, these will acquaint you with quite a range of language features (both good and bad) and a fair number of … | |
Re: Using a "strict" DTD effectively 'blocks' attributes and elements that are being phased out. Instead of removing the DTD completely, using an appropriate "transitional" one would also have solved the problem. | |
Re: Are the cells in columns 1 and 3 all empty? Or can they have content? If they can, could the content of any column 1 or column 3 cell be taller than the content of the column 2 cell in the same row? Can the rows vary in height? Or … | |
Re: [QUOTE]how to enable the javascript while loading the page automatically.[/QUOTE] You can't. The nearest you may get with javascript alone is to try to prevent users with javascript not enabled from accessing the page(s) in question. | |
Re: Excellent find :) Too bad you didn't post this solution when this thread was active - three years ago :( | |
Re: For a typical async exchange I see 1,1,2,3,4 in IE8 and Firefox. I don't know whether it has anything to do with your situation but in both Chrome and Safari(pc) the same exchange generates only 1,2,4. | |
Re: Your comment comes a little late. This thread has been dead for almost three years. | |
Re: [QUOTE] retaining the selected value from the drop down throughout the website [/QUOTE] The usual approach is to set a cookie. If the value(s) to be saved are only a few bytes, some stupid-html tricks can get a similar effect without all the overhead. In HTML5 [where supported] the sessionStorage … | |
Re: [QUOTE=hashimu;1213496] complete code[/QUOTE] Here is a complete implementation using css and classes. [CODE] <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta name="generator" content= "HTML Tidy for Windows (vers 25 March 2009), see www.w3.org"> <style type="text/css"> .vol {display:none} .npi {display:none} </style> <script type="text/javascript"> function showHide(cls, show) { // browser-compatibility … | |
Re: Um, 'onmouseout' by itself won't do what you want. It will keep changing the <div> as the mouse moves around regardless of whether a given radio button was selected (or deselected, or not even touched). You may find this recent post [INDENT][url]http://www.daniweb.com/forums/post1273341.html#post1273341[/url][/INDENT] (which solves this very problem) useful. | |
Re: Your answer comes a bit late. This thread had been dead for over a year and a half when you jumped in. | |
Re: [QUOTE] I'm not quite sure why it doesn't work... [/QUOTE] Here [url]http://www.pageresource.com/jscript/jpreload.htm[/url] is a recipe that works. | |
Re: VB != javascript. | |
Re: java != javascript | |
Re: Have you enquired at the TinyMCE forum? | |
Re: This[CODE]<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"> <html> <head> <meta name="generator" content= "HTML Tidy for Windows (vers 25 March 2009), see www.w3.org"> <title></title> </head> <body onload="slideshow()"> <div id='packages'></div> <script type="text/javascript"> function slideshow(src){ var picture=new Array(); picture[0]="package1.jpg"; picture[1]="package2.jpg"; var active=0; document.getElementById('packages').innerHTML="<img src="+ picture[0] +">"; } </script> </body> </html>[/CODE]fixes the immediate problem. However, … | |
Re: What are you trying to do, exactly? Are you trying to adjust the page content based on some setting? If so, that is not a Good Thing. My current keyboard configuration has nothing to do with the language(s) I want to see in pages I visit. Offer the user a … | |
Re: [QUOTE]I want to auto bookmark for the user. Any suggestions?[/QUOTE] Yes: don't do it. And if you do, don't expect universal approval. I can only hope that most users know enough to keep their toolbars and bookmarks locked. | |
Re: [QUOTE] Steps to be fllowed to write a custom Validator: [/QUOTE] I doubt that the original poster will be thanking you for your detailed sugg... suggestion - this question was asked and answered over a year ago. | |
Re: If you mean a literal popup window, don't forget that many users have them blocked. Would the hourglass cursor be enough? Between those two extremes there are plenty of choices. | |
Re: Sorry, I don't know what you are trying to describe. However, I can guess that CSS alone, or a frameset, or a table will do what you want. CSS is the professional way to do it; a table is the easy way. |