558 Posted Topics

Member Avatar for vuyiswamb
Member Avatar for chaitu11
Member Avatar for Troy III
0
276
Member Avatar for ruhestorer

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 …

Member Avatar for Troy III
0
342
Member Avatar for chaitu11

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 …

Member Avatar for Troy III
0
183
Member Avatar for chaitu11

[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

Member Avatar for chaitu11
0
235
Member Avatar for Siberian

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

Member Avatar for Troy III
0
307
Member Avatar for sagisgirl

The extra equal sign is there for static-Type comparison, i.e.: to avoid the literal 0 (zero) to evaluate as a Boolean false.

Member Avatar for JorgeM
0
287
Member Avatar for general2012

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

Member Avatar for Troy III
0
161
Member Avatar for general2012

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

Member Avatar for Troy III
0
352
Member Avatar for persianprez

/* 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.

Member Avatar for Troy III
0
109
Member Avatar for vishnu05

...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">`

Member Avatar for Troy III
0
194
Member Avatar for Gandalfs_beard

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!

Member Avatar for Troy III
0
248
Member Avatar for XTMercenary

> output += '<img src="' + processorStock[i].image + '"/img>'; this one is wrong. will produce: <img src="imagelocation"/img> a malformed img tag.

Member Avatar for Troy III
0
108
Member Avatar for Dani

You'll need to serve the daniweb.com in "https" protocol so they can match , no other fix available.

Member Avatar for jeffcogswell
0
453
Member Avatar for Violet_82

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

Member Avatar for Violet_82
1
1,000
Member Avatar for alexjewell

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

Member Avatar for Troy III
0
545
Member Avatar for SPRINGHEEL

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

Member Avatar for JorgeM
0
376
Member Avatar for klemme

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

Member Avatar for Troy III
0
148
Member Avatar for pars99

There are no jQuery dialogs [except DIV's emulating dialogs] and no you can't modify the builtin browser prompt default title.

Member Avatar for Troy III
0
137
Member Avatar for pars99

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.

Member Avatar for Troy III
0
334
Member Avatar for Siberian

Siberian, this thread was solved in a blink of pritaes eye, - you should have marked it: "solved" by now. Regards

Member Avatar for Troy III
0
3K
Member Avatar for Dani

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

Member Avatar for Troy III
0
366
Member Avatar for Linddha

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

Member Avatar for Troy III
0
334
Member Avatar for SwedishS

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"

Member Avatar for vani krishnan
0
140
Member Avatar for ultmt.punisher
Member Avatar for Yorkiebar14

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"]

Member Avatar for Troy III
0
233
Member Avatar for tqmd1

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

Member Avatar for Airshow
0
170
Member Avatar for tqmd1

>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();

Member Avatar for Troy III
1
348
Member Avatar for RikTelner
Member Avatar for Troy III
0
363
Member Avatar for saad.sarwar.33
Member Avatar for happygeek
Member Avatar for monkeytherat
Member Avatar for jonsan32

You should try adding the "bold" part at "this" point of your code: ... document.getElementById('myLuckyPost').appendChild(a); **a.click();** } </script> ...

Member Avatar for jonsan32
0
6K
Member Avatar for vishalonne

>var p = document.createElement("input"); >form.appendChild(p); What do you mean by: >p.name = "p"; ?

Member Avatar for VIDASOCIALfairfield
-1
369
Member Avatar for happygeek
Member Avatar for pars99
Member Avatar for happygeek

Congratulations JorgeM, make sure you have a good time. :) Regards.

Member Avatar for Samuel Baker
1
817
Member Avatar for SirMahlon
Member Avatar for prixat
-1
173
Member Avatar for NettSite
Member Avatar for hapiscrap
Member Avatar for jelly46

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 …

Member Avatar for Troy III
0
1K
Member Avatar for AleXHB

underneath Pandora lies a highly sophisticated A.I., developed and refined for almost two decades.

Member Avatar for Troy III
0
406
Member Avatar for theguitarist

(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*.

Member Avatar for Reverend Jim
0
386
Member Avatar for jelly46

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

Member Avatar for jelly46
0
270
Member Avatar for Dani

have you tried **screen.width** & **screen.height** or **document.width**, **document.height** ? or even **top.document.width**...

Member Avatar for Dani
0
454
Member Avatar for imBaCodes
Member Avatar for Dani

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 …

Member Avatar for Dani
0
2K
Member Avatar for Ancient Dragon

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 …

Member Avatar for Assembly Guy
0
330
Member Avatar for Larrywaz

>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?!

Member Avatar for Larrywaz
1
3K
Member Avatar for vegaseat

this old javascript code snippet is about 5-6 years older than stated...

Member Avatar for Troy III
3
600

The End.