javascript

how to control zooming out in google maps

how to control zooming out in google maps. I just need no zooming out ...

Looking for Mongoose "hello world" example

I've been trying to create a database/model with Mongoose which is basically just a user database where the username is unique. Sounds simple enough, but for some reason I've been unable to do so. What I've got so far is this: var mongoose = require('mongoose').Mongoose, db = mongoose.connect('mongodb://localhost/db'); mongoose.mo...

How to load kml file in Google Maps using code?

How to load kml file in Google Map using code? (C#, javascript, .Net) ...

Cannot understand node.js.

Hi, From someone with few experience in JS, what do you recommend for learning Node.js? I read a lot in the forum about event driven, non-blocking , async, callbacks, etc but I don't know what's that! Where can I learn the basics in order to understand all that terms and in the future, node.js? Thanks! ...

asp.net in chrome getting a strange focus_change nikkomsgchannel error

Very recently I started to get some strange focus_change errors show up in the console window in chrome when navigating through my asp.net web application (details below), I cant find anything on the internet that references a "nikkomsgchannel" and have no idea why my application is making a request to this external resource (it never us...

Check javascript error in selenium

I have Selenium tests in PHP under PHPUnit run via CruiseControl. Is it somehow possible to check if there was a JavaScript error on the page? ...

JavaScript + ClassicASP Button press+recognition doesn't work?

Hi I want to fire a button using a JavaScript, I founded several references on the web, but on the implementation I have an issue. I will use it for several buttons, the result if I press the real button is that I can "get" the information of what button was pressed using asp request("submit"), but if the JavaScript fires the button, the...

Javascript performance in Sharepoint with IE7

I am using Javascript to display an 8*8 grid in a Sharepoint page. The code basically fetches the data from an array, creates a table with the data and adds it to the page when it first loads. It also adds onmouseout and onmouseover attributes to each cell of the table, which call 2 different Javascript functions: to add a description...

jQuery's AJAX call to a javascript class method

Hi there, I'm a newbee about jQuery's workflow and I would like to setup a javascript class that uses an internal method to make an AJAX request. When the request returns with success, the jQuery AJAX callback should invoke a method owned by the class itself. That's the code: function IXClock() { this.m_intervalID = 0; this.sta...

Display marker on top of other markers on google map

I am looking for javascript code that display marker on top of others. May be there is any method of GMarker that set marker on top (z-index kind of). For solution, I destroy marker and created again. The solution works before some time (when I tried this solution) but not right now. ...

how to know whether window is opened - PHP/Javascript ?

There is a chat button, and when users click on that chat button a new window will be opened and both the users can chat how can i know, whether chat window is still open or not, when any of the user logged out from the application ? and give a message, "chat window still open" and close the chat window... name of the chat window : ch...

How to Escape Single Quotes in Python on Server to be used in Javascript on Client

>>> sample = "hello'world" >>> print sample hello'world >>> print sample.replace("'","\'") hello'world In my web app I need to store my python string with all single quotes escaped for manipulation later in the client browsers javascript. Trouble is python uses the same backslash escape notation so the replace operation as detailed ab...

Executing shell commands on linux using javascript

Hi All, I have a scenario in my webapp where i want to execute some shell command on the client , so is their any way i can achieve this using javascript. Their is a method "exec" in php but i think that will execute command at the server end. Thanks in Advance, Vinay ...

The best way to abstract a JavaScript library?

What would be the best way to abstract away any given JavaScript framework (jQuery, MooTools etc.), that sits on the bottom of the framework stack? Essentially, I would like to have a situation where I could swap out the library, do changes only to one layer of the framework (not to every module, for example), and the whole thing could b...

javascript: getElementById problem in IE

I am trying to attach a click event to a check box using JavaScript. Shown below is the HTML and JS. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title></title> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> </head> <body> <input type="hidden" nam...

Input validation check

In my website I have a forum, and I want to avoid cross site scripting. Do you know a good input validation script? ...

Speedometer in Jquery

Hello, I need to show a speedometer on a page, whose status will be based on the value passed to it. I came across JQuery Speedometer plugin at http://plugins.jquery.com/project/speedometer, but i couldnt find the download link for the same. Please help Thank You. ...

Browsers with JS disabled

Years ago I used to design with JavaScript disabled browsers in mind. How important is it nowadays? Is it really something you need to worry about? I've never come across a user in real life who has JavaScript disabled. Anyone got any figures? ...

bind function when command s is pressed (OSX)

Hi I found a couple of keypress scripts but I need a key binding in Chrome and Safari for command key and s (like saving files in desktop applications). Does anybody know about such a script or plugin? jquery is in place but pure JavaScript solutions are also welcome! thanks ...

How do I change a hardcoded path to a dynamic one in javascript?

I'm using the jpicker color picker widget with my theme. Inside the js file I've had to hardcode the reference to the jpicker's images folder like so... images:{clientPath: '../wp-content/themes/MyThemeFolder/js/jPicker/images/', I would like to redo this to by more dynamic in case the user changes the name of the theme folder. Any i...