one line match in JS regex
What is the JavaScript equivalent of this .NET code? var b = Regex.IsMatch(txt, pattern); ...
What is the JavaScript equivalent of this .NET code? var b = Regex.IsMatch(txt, pattern); ...
I know object oriented PHP and Java, and I can code Javascript fairly well at the moment. However for the life of me I'm not sure how Google's made a game in JavaScript. It seems to be compressed (the code) so I can't really see what's going on. I thought javascript it was only single threaded too, making game development even harder...
I'm trying to build a music search using Amazon mp3 widgets to play each result. Instead of building a page full of these widgets, I'd like the user to click the album art and then the widget would load. The code that I have looks like this: function loadPlayer(asin) { var amzn_wdgt={widget:'MP3Clips'}; amzn_wdgt.tag='widgetsamazon-20'...
I am using jquery-keyfilter plugin to mask textbox inputs. However the textboxes are added to the page dynamically and I cannot figure out how to apply the key filter to them. I have tried $('#myelement').live('keyfilter', myFunction ); Also $('#myelement').live('keyfilter', /regex/); Kai: comment helps, but it seems my problem is...
Hello All, after a day trying to make this work, I finally decide to ask for help ;-), Since I'm a new at jQuery, I hope to find someone to help fix this issue. I have a portfolio page where I need to run the gallery in a growl for each single project. Everything works just fine until I'm adding a second gallery. The code that I have ...
Is there a good IP Mask plugin for JQuery? I've tried Masked Input Plugin but it doesn't IP Addresses with less than 12 digits. Then I've tried meioMask and this doesn't work with less than 12 digits either. Any suggestions? ...
Possible Duplicate: Is it a good idea to learn JavaScript before learning jQuery? I am about to start learning JavaScript. However one friend suggested me to go in for jQuery instead since he says future is jQuery. I heard that jQuery is created from JavaScript. In short, give me one simple reason why developers like me shoul...
Hi there I am attempting to use the highcharts javascript library to load charts using this function: function create_chart(success, failed, pending) { var chart = new Highcharts.Chart({ chart: { renderTo: 'graph', margin: [5, 5, 5, 5] }, title: { text: 'Message Sending St...
Hi there, I am using the highcharts charting library, i am including excanvas if the browser is ie using <!--[if IE]> <script type="text/javascript" src="<script type="text/javascript" src="excanvas.compiled.js"></script> <![endif]--> yet i still get 'G_vmlCanvasManager' is undefined ...
Hi, I have the following code to taket the querystring value and return different links depending on which filter a user selected (that reloads the page with a querystring). It works fine if a user selects a filter and the page reloads. Howver, the first time the page is loaded there is no querystring and the javascript breaks causing ...
How do I loop through all elements using regular expression in getElementByName? ...
Hello! I have some problems combining a custom marker icon with my infoWindow. Here is my js code: var micon = new GIcon(); micon.image = "/path/to/my/icon.png"; micon.iconSize = new GSize(25, 17); micon.iconAnchor = new GPoint(25, 17); markerOptions = { icon:micon } var point = new GLatLng(48.0927...
I have a feeling I'm missing something obvious, but... All my neat jQuery functions are being forced to wait by a particularly slow-moving javascript api call from within the body of the page. I'd like to have the jQuery run first, and then the api when that's done. Is there a standard way of imposing the order? ...
Hello, I'm opening a named window by using window.open function: win = window.open("xxx.html", "mywin"); After that I move to another page from the parent window, and I want to decide whether the window named "mywin" is still open or not. If I was in the parent page, I would use win.closed, but since I changed the page, I lost the ...
My friend asked me to make a registration software for his blood donation camp. He told me that he can't host an ASP.NET or PHP page. Also that since they'll be running the software in many systems, which may not be interconnected, they may not be able to use a Database server. Is there a way to store/read data from an MS-Excel or MS-...
I'm having some trouble with modifying qTip's tip size (x,y). I tried to add the style: { tip: { x:2,y:2 } } in all sorts of ways, but failed. How can I add it to the following script? // Status Tooltips Style $.fn.qtip.styles.statusTooltips = { background: '#333333', color: 'white', textAlign: 'center', border: { ...
I want to add a value to a checkboxlist using javascript /jquery.The code below is my sample code function getExpertise() { $.ajax({ type: "POST", url: "Sample.asmx/GetExpertiseBySpecialization", data: "{sId: '" + $('#<%=ddlSpecialization.ClientID%>').val() + "'}", content...
I have a client side JavaScript that generates a date in JavaScript( new Date(2007,5,1)). I need this date passed through to a hidden field that the code behind can access. My issue is that when the hidden field is converted into a DotNet datetime, the time is incorrect. This is because the JavaScript is including timezone info from th...
I have a error,how to fix it :( See my image : ...
I'm currently working on some geolocation javascripts, but am unable to test and debug them properly: My desktop machine (Running Windows, with Chrome 5 or Firefox 3) doesn't have location information and my mobile devices don't feature any debugging capabilities. How can I test geolocation scripts? Is there a tool which will fake a GPS...