Posts
 
Reputation
Joined
Last Seen
Ranked #1K
Strength to Increase Rep
+7
Strength to Decrease Rep
-1
92% Quality Score
Upvotes Received
48
Posts with Upvotes
47
Upvoting Members
30
Downvotes Received
4
Posts with Downvotes
4
Downvoting Members
3
21 Commented Posts
1 Endorsement
Ranked #857
Ranked #254
~169.73K People Reached
Favorite Tags
Member Avatar for Q8iEnG

[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 …

Member Avatar for π™ΉπšŠπšœπš–πš’πš—πšŽοΌˆγƒ€γƒΌγƒͺン)
1
14K
Member Avatar for ekseks

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).

Member Avatar for JonyGreen
0
3K
Member Avatar for momoh

[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++) …

Member Avatar for Z3tbrVZSvmnh
0
6K
Member Avatar for Dragoonqueen

[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 …

Member Avatar for Troy III
0
4K
Member Avatar for ErlendHL

[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).

Member Avatar for Donald_2
0
20K
Member Avatar for niche1

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> …

Member Avatar for razvysb
0
944
Member Avatar for still_learning

[QUOTE]docuemnt.getElementbyId("<divid>").style.visibility:"visible" or "hidden" [/QUOTE] That code has obviously not been tested. The keyword [ICODE]document[/ICODE] is misspelled.

Member Avatar for xdpi
0
4K
Member Avatar for cloud09

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?

Member Avatar for Wagaweze
0
161
Member Avatar for johndoe444

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 …

Member Avatar for bharathivkmani
0
12K
Member Avatar for ultimatebuster

[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 …

Member Avatar for stultuske
0
782
Member Avatar for jmonit

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.

Member Avatar for sacarias40
0
2K
Member Avatar for Emiliya

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 …

Member Avatar for I'mHere
0
169
Member Avatar for rejisha

[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.

Member Avatar for jdjdjks
0
655
Member Avatar for brainbox

Excellent find :) Too bad you didn't post this solution when this thread was active - three years ago :(

Member Avatar for ana10192000
0
264
Member Avatar for PaliGap

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.

Member Avatar for fxm
0
1K
Member Avatar for BalagurunathanS
Member Avatar for @developer
0
1K
Member Avatar for sgweaver

[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 …

Member Avatar for azegurb
0
264
Member Avatar for agr8lemon

[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 …

Member Avatar for Jackson TKL
0
3K
Member Avatar for technopup

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.

Member Avatar for Mary 2
0
175
Member Avatar for bdicasa

Your answer comes a bit late. This thread had been dead for over a year and a half when you jumped in.

Member Avatar for tarmin68
0
1K
Member Avatar for nizuya

[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.

Member Avatar for fxm
0
221
Member Avatar for jmaddy10
Member Avatar for raul8
Member Avatar for valonesal
Member Avatar for bsewell

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, …

Member Avatar for fxm
0
266
Member Avatar for masoudnia

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 …

Member Avatar for fxm
0
3K
Member Avatar for webdev5

[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.

Member Avatar for fxm
0
167
Member Avatar for nish123

[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.

Member Avatar for fxm
0
2K
Member Avatar for jimmiller96

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.

Member Avatar for jimmiller96
0
159
Member Avatar for nizuya

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.

Member Avatar for almostbob
0
153