Hi everyone. I need a regular expression to match a very specific sentence format. The format is as follow:
word(that can contain ,()[]&^%# and whitespace), word(that can contain ,()[]&^%# and whitespace), word(that can contain ,()[]&^%# and whitespace)
So basically it's a word, word, word but every word can contain some special charac...
Hi,
I'm writing a jQuery plugin that works on a piece of JSON data object.
This data needs to be calculated by the plugin only once, so I want to calculate it on the first call to the plugin and store it to be used in every subsequent call.
My questtion is whether there's a standard and accepted methodology for storing data used by jQuer...
hello, beginner here...
what am i missing?
i define a global variable that is a reference to an html element:
var x=document.getElementById("xxx1");
then, inside a function a try to reference that variable to navigate the dom:
x.innerHTML="dsfgfdgdf";
...doesn't work; if i define the variable inside the function ...
Hi All,
I don't know if what I need is applicable or not , But I know that there is a lot of Date picker controls (asp.net , Ajax , Javascript , ... etc) , But Can I find a Time picker control looks like a Watch and enable me to select time from it or that is impossible
Thanks in Advance
...
Ok I'm not sure the title of this post is the correct way to refer to what I mean and I'm pretty sure I already know the answer to this question but I just wanted some clarification.
If I have an oject like this
var myObj = {
settings : {
domObj = document.getElementById('elem1');
},
myFunc1 : function () {
return this.do...
i,
I purchased a WP theme recently.
Seems that this theme is injecting a footer link in a sophisticated way that I can't find how to remove.
usually it link to WP theme sites (wp2blog.com/ , themes.weboy.org/ ) , which aren't related to me at all.
I tried to see if this is a CSS or JS injection - but I just can't find where this code...
I need my MasterPage to be able to get ControlIDs of Controls on ContentPages, but I cannot
use <%= xxx.CLIENTID%> as it would return an error as the control(s) might not be loaded by the contentplaceholder.
Some controls have a so called BehaviourID, which is exactly what I would need as they can be directly accessed with the ID:
[Asp....
I'm using the .length method in a conditional statement that polls the page for the presence of an externally-loaded object (I can't style it with jQuery until it exists):
function hackyFunction() {
if($('#someObject').length<1)
{ setTimeout(hackyFunction,50) }
else
{ $('#someObject').someMethod() }}
Is length the best way t...
Possible Duplicate:
Javascript === vs == : Does it matter which equal operator I use?
Hi
I am not clear why there are two == and === comparator operators in java script.
...
So I have this one CakePHP web application that I'm trying to refactor.
There is a large portion of code that usually works like this:
E.g. "Flag":
User clicks flag button
Redirect the user to the flag action
Flag action flags post
Redirect user to post that was just flagged.
I am also trying to enhance it with JavaScript like so:
Use...
I'm creating a web-app for the upcoming Chrome Web-store... Is there a way to simulate F11 being pressed? Or simply a command that will make the current window go full screen (HTML / Javascript) ???
...
Hello,
I have a question about selecting selectboxes with Javascript. I have upload the files on http://www.mikevierwind.nl/javascript/risicoinventarisatie.htm Here you see a table with a lot of questions and radiobuttons. Every question have 2 radiobuttons, yes and no.
When you go to the first question. "Diabetes" Than you choose for...
Hi,
I often need to create single events that are not needed after they have run once. The way I do is something like:
A.prototype.someMethod = function () {
var me = this;
this.onWindowMouseUpFunction = function () {
me.onWindowMouseUp.apply(me, arguments);
};
window.addEventListener('mouseup', this.onWindowMou...
Hello,
I have a column of input boxes and have a button for the last row to add more input boxes below the last input box. Is there a best way to do this ?
...
If I disable javascript on a site using Chrome's javascript settings, does this prevent extensions from running content scripts on it?
...
Dear all,
I'm pondering switching to protovis for visualizations. One thing that keeps me skeptical however - since protovis creates its output as a div in a browser, I wonder if there is any at least semi-automatic way for me to create a bunch of images at once without opening each one and pressing "print" manually.
So the question w...
Is there a shortcut in Textmate for quickly adding/removing comments in HTML/JavaScript?
...
As mentioned in a previous question, I'm coding a crawler for the QuakeLive website.
I've been using WWW::Mechanize to get the web content and this worked fine for all the pages except the one with matches. The problem is that I need to get all these kind of IDs:
<div id="ffa_c14065c8-d433-11df-a920-001a6433f796_50498929" class="areaMap...
I am trying to implement the Facebook Like Button but its not working. In short I can press the like button and it will say that I liked this. But nothing comes up on my profile and when I post a comment, nothing happens. It is also creating a javascript error: "Error unterminated string literal".
Here's the page I have it implemented o...
I am writing an html5 app which manipulates video on a canvas.
I am also showing a custom (self-drawn) mouse cursor over it.
To update my app I am calling the setInterval function to draw stuff to the canvas.
As I am manipulating video I need: Very high refresh rates + Lot's of processor time to draw. (~50ms per frame).
My draw functi...