558 Posted Topics
Re: var popupWindow = window; its a hack | |
Re: I don't understand what is **Modal** about that div, if anything?! | |
Re: You'll need a **true** ***Modal Dialog*** for that; which is either a builtin browser Confirm Dialog, or the customizable *showModalDialog()* command. jQuery uses **fake** Dialogs; Which are in fact no dialogs at all, or if we cut some slack, they are at best, no more than **Modeless** imitations of app … | |
Re: that will only replace the: > index.php?editid=1; with: > "javascript:void(0)" when the link is hovered. I also am of an opinion that this kind of things should not be allowed. The client has the right to know the link value before clicking on it at all times and without having … | |
Re: [datepickerFld].disabled = true; or for browsers which don't support boolean properties in exact maner please use the following syntax: [datepickerFld].setAttribute("disabled", "disabled"); Cheers | |
Re: > How can the function make an alert with the variable pcheck when the global variable is named paycheck, I'm confused ? Well, *argument names* of the *function* would be useless if they wouldn't be able to receive value from other *pointers* or *variables*. It works because you've just passed … | |
Re: The extra equal sign is there for static-Type comparison, i.e.: to avoid the literal 0 (zero) to evaluate as a Boolean false. | |
Re: You should try function addLink(){ document.execCommand('creatLink'); } select some text of the document, click your addlink button and provide the location on the presented UI before hiting OK | |
Re: > Every time I press 'enter' within this paragraph, a new paragraph is created, rather than a line break tag (<br>). How can I force a line break tag to be created instead of a paragraph element? Have you tried SHIFT+Enter for a new line instead of a new paragraph? | |
Re: /* make the API call */ FB.api( "/{event-id}", function (response) { if (response && !response.error) { for( x in response )console.log( x + ": " + response[ x ] ); } ); than examine the log for properties returned by the event API and chose what you need. | |
Re: ...for IE versions you simply do `<form disabled ... > .... </form>` and the form including all its elements will gray out and be disbled until you decide to enable them again `<input type="button" value="edit" onclick="document.forms[0].disabled=false">` | |
Re: This is not a javascript question neither, but... Yo will need to uninstall the recent installation of firefox and reinstall your original version (Firefox 3.6.23), which as it seems can still be found on the web and with a little luck, easily be downloaded from [here](http://www.oldapps.com/mac/firefox.php?old_firefox=9531),so... Good luck! | |
Re: > output += '<img src="' + processorStock[i].image + '"/img>'; this one is wrong. will produce: <img src="imagelocation"/img> a malformed img tag. | |
Re: You'll need to serve the daniweb.com in "https" protocol so they can match , no other fix available. | |
Re: *"The .position() method allows us to retrieve the current position of an element relative to the offset parent."* Means: The current position of the nested element edge relative to its parent element edge. If element wrapper has *padding = 10px*, and the nested element has *style.left = 13px*, plus margin-left … | |
Re: >> document.observe('dom:loaded', function() { is an overhead since no form gets submited by itself. >>if((new Validation('formDance', {useTitles:true})().validate()); should suffice to allow following statements to execute, in case a form validation returns true = has validated. >>else return false to cancel the submision of invalid data; Done. | |
Re: ***alert box*** is a **modal** dialog, (meaning) 1. it should be able to freeze script executon; also 2. disallow focus to go back to the content window e.g. to further interact with the page while it (the alert box) is still open. It looks like jQuery is using the *showModalDialog* … | |
Re: function getChecked(o){ var i=0, grp={}; while(o[i])o[i].checked? grp[o[i].name]? grp[o[i].name].push(o[i]):grp[o[i].name]=[o[i]]:0, i++; return grp; } invoking this function `getChecked(myForm)` will return you an object who's property-names are the names of groups containing currently checked elements, which can be further processed (if and as required). | |
Re: There are no jQuery dialogs [except DIV's emulating dialogs] and no you can't modify the builtin browser prompt default title. | |
Re: You can emulate them using the `showModalDialog('customPrompt.htm',"", "")` on browsers that support it, but than you'll have to write them (code them, style them, script them) yourself completely. | |
Re: Siberian, this thread was solved in a blink of pritaes eye, - you should have marked it: "solved" by now. Regards | |
Re: > According to their statistics there are about 6 million websites that use JQueryUI. We should bare in mind that, -there are also as many clients times 10, who discard their cache upon app close by default. | |
Re: That's why you should be learning some basic JavaScript, so that when you start understanding JavaScript, you will instantly become aware of the fact that: AJAX,JSON and jQuery are nothing but >>JavaScript<< | |
Re: The varukorg is in the <td width="100%" height="17" **class="infoBoxHeading" **valign="middle"><a href="http://www.amberbird.se/shopping_cart.php">Varukorgen</a></td> and it only has a classname [.infoBoxHeading] that you can adddress directly on your CSS... I was unable to visually locate "SÖK" | |
Re: Why would you need to do that? IE11 passes the Acid3 test by 100% | |
Re: An implicit *extraction* instead of *matching* the data of interest would be var results = "'1962' '1963' '1964' '1965' '1966'"; results.match(/\w+/g); >>[object Array]["1962", "1963", "1964", "1965", "1966"] | |
Re: ...that should fix it (JorgeM's advice) and here is a ready to copy-paste (corrected) script... <script type="text/javascript"> function checkEmail() { var email = document.getElementById('xemail'); //alert(email); var filter = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/; if (!filter.test(email.value)) { alert('Please provide a valid email address'); email.focus; return false; } } </script> | |
Re: >Sir I am using these codes to clear all textboxes in form Have you tried the reset button? <form...> . . . <button type="reset" value="reset">clear</button> </form> or scripting: document.forms[0].reset(); | |
Re: This is my pre-AJAX (1997-, technology) a live demo at: http://www.aeneidas.com/ | |
Re: How will it know/realize who's data to fill in the given web page form? | |
Re: I think that people are not used to getting used to | |
Re: have you tried ` elem.style.display = "block"`; instead of "tr"? | |
Re: You should try adding the "bold" part at "this" point of your code: ... document.getElementById('myLuckyPost').appendChild(a); **a.click();** } </script> ... | |
Re: >var p = document.createElement("input"); >form.appendChild(p); What do you mean by: >p.name = "p"; ? | |
Re: An unreal, superstitious, boring & completely speculative article. | |
Re: `[your input field].value` | |
| |
Re: not happy to say or tell this but I suspect it is being injected by your provider. | |
Re: that's most probably because you are using a "while" loop... | |
Re: hapiscrap why would you waste your time ( and ours ) ? | |
Re: How about not trying to attach events to elements before they are created?! Put the script that manipulates the DOM where it belongs: towards the end of the document body. (the working code) <!DOCTYPE html> <html> <head> <title>Untitled Document</title> <script src="http://code.jquery.com/jquery-1.10.2.min.js"></script> <style> .none { display:none; } </style> </head> <body> <input … | |
Re: underneath Pandora lies a highly sophisticated A.I., developed and refined for almost two decades. | |
Re: (With experience) we get more pragmatic, reliable and conventional, but not better - "better" requires creativity, originality and so on... when you are experienced you tend to avoid *trials* and go strait to *results*. | |
Re: -Sorry maestro, *your* code ain't working on either one... * **Firefox** says:: *TypeError: tab[i] is undefined* * **Chrome** says:: *Uncaught TypeError: Cannot read property 'className' of undefined* * **Explorer** says:: *Unable to get property 'className' of undefined or null reference* My question to you is why are you using a … | |
Re: have you tried **screen.width** & **screen.height** or **document.width**, **document.height** ? or even **top.document.width**... | |
Re: Perhaps if you find a job that actually interests you ... | |
Re: I'm using IE 9,10 & 11 but am not being able to post a thing! (This is so almost ever since the editor was replaced/updated or something; (Not sure of exactly when!). But; Since then, I'm not being able to use the drop-down menu of the site to navigate sub-sections … | |
Re: There are lot's of occasions when I happen to be boldly notified that: "this thread is { [xx] months : years} old" etc etc I don't think that people are that blind or illiterate to not see or understand that a solved ie 5 year old thread, has a five … | |
Re: >Ban mouseovers. They are not accessible. They cause problems with people who have dyslexia. what problems? should we also ban the use of colors, because there are people with achromatopsia?! | |
Re: this old javascript code snippet is about 5-6 years older than stated... |
The End.