javascript

v8 source code build - is there a python 3.1 version of sconstruct file?

Or can you only build v8 with python 2.x? I have tried 2to3.py but it still freaks! ...

WebSocket WCF Transport Binding

I recently discovered WebSockets and their possible usage in my project. Currently, I use raw web sockets, but I have been exploring the possibility of making a custom transport binding/channel that would handle everything and allow me to host it in IIS. I've started work on this, but I'm having issues figuring out how to get IIS to for...

Toolbar in Javascript

I want to study how to develop a toolbar using Javascript Can anyone please post some useful links to develop a toolbar. If any one have sample code, please share it. ...

Select range in contenteditable div

I've got a contenteditable div and a few paraprahs in it, as the code below. <!DOCTYPE HTML> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> </head> <body> <div id="main" contenteditable="true" style="border:solid 1px black; width:300px; height:300px"><div>Hello world!</div><div><br></div><div>This is a...

IIS 7.5 no images css js showing

I have 2 Windows 2008 R2 x64 servers NLB, ARR with shared configuration. I have the application files in a network share. ASP.net pages (.aspx) come up fine but no css,images,js work. I also have a .htm file shows css and images just fine. In the iis log I do see a 401.3 message. So it seems to be permissions but not sure what else to...

Making JavaScript call across domains

Here's the goal: Hand off a script tag that references a JavaScript file on a remote server. That JavaScript file should return HTML that will then be displayed on the calling HTML page. I've attempted to approach this in two ways: First, I attempted to use XMLHttpRequest in JavaScript to call this remote server. In IE, it would wor...

How to create OOP Class in Javascript

I'm hesitant to use just any tutorial because I know how those tutorials can end up being, teaching you bad ways to do things. I want to setup a class in Javascript, so that I can just do var vehicle = new Vehicle(el); var model = vehicle->getModel(); These functions would read the HTML and get and manage the elements on the page. I...

JavaScript Inheritance

If I have an object that I want to "inherit" methods from a "super object" to ensure consitency. They will be intermingling variables. REVISED ParentObj = function() { var self = this; this.interval = null this.name = ""; this.timeout = 1000; this.stop = function() { clearInterval(self.interval); }; ...

Show depot markers on a Google map having entered a postcode.

I have a requirement to allow a user to enter a postcode on a webpage and then show that postcode on a Google map along with a number of markers around that postcode showing the location of depots local to that postcode. I have a database holding a list of depot's but only want to show the depots on the map that are local to the postcod...

How do pass forms-based authentication form iphone app to website?

I am working on creating an iphone application which logins to we website and retrieves a table, and displays the content within the app. To view the table a Login is required. It seems the site is using Form-Baseds Authentication. WebSite's Login Screen So How do I pass the login ID and pass from xcode to the to the site and retain the...

Google Maps API Business Search

I have been looking through the documentation for the API and not sure if it is possible to list multiple select stores near the submitted address. Ultimately something like the following website: http://www.evolutionofsmooth.com/locator/ It seems like they have each location stored in a db but I can't see it that likely since it would...

Using HTML markup instead of classes in a JavaScript drop-down menu

Hello, I got a piece of JavaScript from a training video, but I do not like how the HTML that associated with it is built. It's an accordion-style drop down menu, and it uses classes on each of the menu items that initiate the drop-down effect. I'll post my code and explain after... <script type="text/javascript"> window.onload = initA...

Firefox css cursor property in anchor tag

In Firefox 3.6.10 and 3.6.7 when a page is first loaded and the mouse pointer is over a link it turns into a hand. But when I set the anchor tag cursor style to auto by javascript and hover the mouse pointer over that same anchor tag now it shows as it was over pure text. In IE8 and Chrome it works as expected (by me). Do I understand i...

Set the Tab-Index dynamically in javascript

can i dynamically set the tab-index of a control in javascript?? is there any attribute like tab-index?? CONTEXT : i am making a particular section in a web form visible or invisible depending on some condition where i want to set the tab-index manually when that particular section is visible...... Thanks Kishore ...

How to show Presentations on website like slideshare.net

Hello friends, My question is: I want to show presentations uploaded by my user on my website(like slideshare.net) so please suggest me how can i do this. is there any player available for this? But the player must be open source so i can understand it better. if there is any tutorial showing presentation on website then suggest me...

javascript/jQuery code generator

I'm wondering if there is a tool out there that does any javascript code generation. I'm asking because the team I'm on are not web developers. They are VB6 developers. We are looking at a AJAX, JavaScript/jQuery, JSON, webservices model and was wondering if there were any tools that would provide the basics for JavaScript template...

open a new window, and call javascript function

Hi, I am new to javascript. I would like to know how a new window can be opened from a javascript method, and then call it's javascript methods. The url of the window, is in another domain (can cause a security problem !?), and I don't have control over it. For example, a code that should behave as the followings: handler<-openAWi...

myVar = !!someOtherVar

Can I get some clarification on why I would want to use this? myVar = !!someOtherVar; ...

what is the direct url of metacafe video to play in a div ?

Can someone please help me by providing the "Direct Url" for playing metacafe videos in a div. ...

JQuery making ajax options dynamic

right now in my $.ajax({ ..}); call I have the following option: data: { param0: param0, param1: param1} Say I want the number of parameters to by dynamic (based on a variable passed to the function in which the ajax call is made). How do I provide data: a dynamic set of parameters? I think I need to somehow construct an object (?) ...