Skip to content

Tag: javascript

REGEX to match only VALID EXCEL COLUMNS (A-XFD)

Ok, I have ANOTHER REGEX question for everyone. I have a field that has multiple validation steps. The first step is to ensure it isn’t blank, second is to ensure that only between 1 and 3 CAPITAL LETTERS are entered, and third, to ensure it doesn’t contain “[” (an opening bracket will…

.map() undefined is not a function in React.js

Right, I’m probably missing the obvious here but I am getting an ‘Uncaught TypeError: undefined is not a function’ I seems to be .map() that’s the problem but I can not see why. If I change it to var ideas = this.state.data I don’t get any errors, the JSON data is formatted corre…

jQuery: trigger event on tab key

I would like to call a function when the tab key is pressed within any field with the name=”notes”. I tried the following but this doesn’t fire (using IE 9). What do I have to change here to make this work at least in IE 8 and IE 9 ? Answer The problem I think is in the type of

Jquery/ajax Looping SetTimeout

Hi I’m stuck on my setTimeout function. What i’m trying to do is to loop my setTimeout for my retrieve conversation function.. I have tried this on setInterval but using setInterval is a badnews for my application which is why I switch to setTimeout.. But I cant seem to figure out how to make the …

Load different content onclick of different controls

I am trying to load different content onclick of different button controls. Since I am new to JavaScript and don’t know where I am doing wrong. It will be highly appreciated if there is any help from any one of you! The code of which is here: and the HTML code is here: and same code is on jsfiddler as