javascript

Phone Number Validation

I want to validate a phone number entered by user according to his/her country which I know. I am using PHP/Javascript/MYSQL in my site. OR have anybody list of mobile number format for all countries i.e. area code,country code, minimum and maximum length?? ...

Gmap v3 and js not playing nice

Hello, first of all here is my code in question: var geocoder; var map; geocoder = new google.maps.Geocoder(); var latlng = new google.maps.LatLng(-34.397, 150.644); var myOptions = { zoom: 18, center: latlng, mapTypeId: google.maps.MapTypeId.HYBRID } map = new google.maps.Map(documen...

Load google RSS feed in IE

Hi, I'am writing a code using Google-Ajax-Feed-API to get feed from site. Here is my code for the same. <html xmlns="http://www.w3.org/1999/xhtml"&gt; <head> <meta http-equiv="content-type" content="text/html; charset=utf-8"/> <title>Google AJAX Feed API - Simple Example</title> <script type="text/javascript...

JavaScript: Retrieving the %APPDIR% Path

Is it possible to retrieve the path of %APPDIR% (in Windows XP: C:\Documents and Settings\UserName\Application Data) in JavaScript? The solution must be supported by Internet Explorer 6. Background: I want to provide the user with a link to a certain directory beneath %APPDIR%. I first tried <a href="%APPDIR%\MyFolder\"> or <a href="fi...

Using jQuery/JavaScript Code in JSP

I have jQuery code in a JSP: ${'#userid').val('admin') The app server is interpreting the jQuery code as JSP: The function val must be used with a prefix when a default namespace is not specified How do I "escape" the JavaScript? ...

Navigating with a button in sencha touch

Hello, I am taking my first steps with Sencha touch. The results are just what I am after, getting there however is a struggle to get how sencha is put together. I am slowly figuring it out but sometimes the way the code works is a bit WTF. I am trying to build a very simple app that does the following. 1) Has three tabs, Search nearby...

How is drop down being updated?

This is realated to a much more complex earlier post, where I was trying to tie together js event handlers. I realized after reviewing my earler post that I am not sure how one of the behaviors on my site works so I wanted to post it as a new topic. Basically, I am working with a commercial wordpress plugin that uses a lot of very comp...

Why does my website have a JQuery AJAX error , and there are no response headers?

When I click on "Request and Invite", you'll notice that there's a JQuery error...but it's weird. http://bit.ly/cuq5KV The code is pretty simple. The error seems to be happening on JQuery's file. I tried previous versions of JQuery (both compressed and uncompressed), but there were always problems. ...

Why does 'string'[0] behave differently on ie8 + IIS7.5 than other browsers or local file?

Consider the following Html file: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"&gt; <html> <head> <title>test</title> <style type="text/css"> </style> </head> <body> <script type="text/javascript"> alert('' + '\'test\'[0]...

Declare object and its prototype in a JSON block

I'd like to fake a namespace in Javascript. This can be done as follows: var cars = {}; cars.car = function() { ... } cars.car.prototype = { drive: function() { ... } } Works fine. My question, however, is if I can directly fill the whole namespace with JSON, like this: var cars = { car: function() { ....

javascript: how to check a property is undefined.

I have codes below. elem.onkeypress=function(e){ if( (e.which===undefined?e.keyCode:e.which)==13 ){ //dosomething } } at IE8, it occus erros: 'which' is null or not an object how to fix this problem. ...

onKeyUp event is not working in IE but works in firefox

I m trying to get what user type in text box with javascript so i used this HTML: JAVASCRIPT: function textTrack(e) { alert(e.keyCode); } this works fine in firefox but not in IE. ...

Setting up Marker Clusterer markers with info windows

Hi guys. I'm having an issue with setting up the info windows for multiple markers in google map api. Basically, Im getting the latitudes and longitudes and everything else from external Json file. I'm parsing it correctly because markers are showing on the map. However, when I'm trying to add an info window for each one of them it only...

googleMapAPI.class.php

I'm a web developer,i have a project to solve error in gmap.my client implemented googleMapAPI.class.php to show markers on gmap,but the script not showing all 36 markers,not only that but every page reload it's displaying markers randomly,and less than actual numbers of markers like 15,18 and some times 26,but can't show 36 .Can anybod...

Use JavaScript to highlight the sorted column of a dynamically sorted table.

I am using the JS from this link for sorting my tables but this JS is not highlighting the selected column. I'm not very much into JavaScript that's why i want help to do that. What i need is that on clicking the heading of the column that has to be sorted the whole column should get highlighted with the sorted data. Please help me to ...

How to autosave the data entered in a IFrame. Please suggest.

How to autosave the data entered in a IFrame. Please suggest. ...

Visual Studio 2010 debugging Javascript with IE works but not with firefox or chrome. Any solution?

Hi, I have been reading a lot of messages here at stack overflow and googling for some time without any luck. My problem is simple, I want to debug my application from visual studio using firefox or chrome, not IE, but I allways get same error at breakpoint when execute "Breakpoint will not currently be hit. No symbols have been loaded ...

how to use filament's daterangepicker with new jquery ?

I downloaded the daterangepicker available here : filament group I am using jQuery 1.4.x version in my page, and all other plugins I am using are supported only on latest version of jQuery. The daterangepicker tool fails because it is using date.js (which uses a very old jQuery). If I use datepicker, all other plugins and functionali...

I'm developing a simple cross platform system tray application. Here are the requirements, which tools should I use?

Hi all, I hope you can help! In brief, what I need is something like a cross platform web browser, with little or no chrome, that is easily distributable and allows the (local and remote) HTML pages running in it to receive messages (JavaScript?) when system global hotkeys are pressed. I'm developing a desktop application which will u...

Using debug versions of YUI2 components in YUI3

I am using YUI 2 components in YUI3 using the standard way YAHOO has provided to get accesss to the YAHOO namespace. However when YUI3 loads the yui2 components it loads teh min version which is no good for debugging. I'm having problems with the editor rendering and was hoping to try to use the code to debug. Is there a way I can f...