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??
...
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...
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">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
<title>Google AJAX Feed API - Simple Example</title>
<script type="text/javascript...
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...
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?
...
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...
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...
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.
...
Consider the following Html file:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>test</title>
<style type="text/css">
</style>
</head>
<body>
<script type="text/javascript">
alert('' +
'\'test\'[0]...
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() {
....
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.
...
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.
...
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...
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...
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.
...
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 ...
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...
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...
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...