Is there a way to access all the object instances starting with a common string. Example: I have instances named button64, button223, button856471, button229846, etc. I have no control over how these instances are named. I want to push all these in...
I want to search for titles using shell wildcards like *.js, *.*.* etc. in js. The thing is I loop through a list of titles and I need to filter the files using a js regex test. How do I convert shell wildcards to regex in a good way or are there any...
I am trying to set up a build system for my front end work though I am running into a problem where it loops processing files over and over again. This is a problem with my js processing since I am not sure how to exclude just the files with .min as...
I'm used to jquery, but need to use the Prototype framework for this project. I have a list of images (jpg, png, and gif), some of which have are links with the <a> tag. I need to add a rel attribute only to those <a> tags that are d...
I'm using a js library inside a PhoneGap application for iPhone. I don't know what other external sites my js library contacts, so I need a way of whitelisting all connections, just for testing. How do I do that? My app just silently fails,...
I have an array of paths, let's say: /Users/alansouza/workspace/project/src/js/components/chart/Graph.js Also I have an entry in a configuration file with additional attributes for this path in a wildcard(glob) format, as in: { '**/*.js...
I'm trying to match URLs with wildcards in them to actual URLs. For example: http://*google.com/* Needs to match http://maps.google.com And http://www.google.com/maps What would be the best way of going about this? I've tried using...
I have a ton of variables to work with here, with information going back and forth between a form in HTML. The variables need to be global so that they can work across a variety of functions. So here's one sample of the list: var charDex = 0; va...
Simple example: I want to use babel (via grunt) to compile all of the files in a folder without having to specify the files one by one. How do I do this? I have looked at basically all of Babel's docs (and lots of other places) and found nothing....
I want to be able to have a pubsub mechanism similar to found in jQuery's custom events and PubSubJS (http://github.com/mroderick/PubSubJS). The problem is that each one of these pubsub libraries does an exact match on the subject. IO want to be...
©2020 All rights reserved.