javascript

Using Bing as local search

For an ajax app I'm doing, I was using the google local search api to help enter in address info. For example, if the user needs to fill out employment information, typing in the business name would provide a list of matching businesses, then clicking one would fill out all of the address fields. However, we can't use it because of the r...

Accessing JavaScript Properties in Custom ASP.NET AJAX Server Control

I am creating a custom ASP.NET AJAX server control in which multiple instances of the control may be placed on the page. That control wraps JavaScript objects, which I need access to those objects for each individual control. For example, the JavaScript object may have a property called "x" and control1 might have x set to 5 and contro...

Strange behavior using HTML 'readonly="readonly"' vs. JavaScript 'element.readOnly = true;'

Some background So I was finishing up some enhancements in a web application that does some automatic interpolation of data. There are a handful of textboxes that the user fills out, and other textboxes in between them have values automatically calculated. The textboxes that receive automatically calculated values must be readOnly to ...

Parallel asynchronous Ajax requests using jQuery

I'd like to update a page based upon the results of multiple ajax/json requests. Using jQuery, I can "chain" the callbacks, like this very simple stripped down example: $.getJSON("/values/1", function(data) { // data = {value: 1} var value_1 = data.value; $.getJSON("/values/2", function(data) { // data = {value: 42} var v...

jQuery doesn't get loaded in client's office

I have a strange problem that is only happening in a single location. I am using jQuery and my page is working fine in my machine as well as in other locations. In a single location the page isn't working. I shamelessly asked the client to use Firefox and install Firebug and I am surprised to find that a "jQuery is not a function" error ...

Dynamically add TextAreas to a FormPanel on User Input with ExtJS

Hello. I have a FormPanel displaying a pretty basic form, essentially, it just contains a "Name" field, a "Description" field, and multiple "Rules" text areas. What I want is for the user to be able to type text into the first such Rule text area and have another empty TextField appear (when they start typing) for an additional rule. Cu...

Looking at location with Google Earth API

I am trying to use the Google Earth API to create a simple view of the globe with a search field in which the user can type a location. When they hit go, the globe will zoom in on the location they typed in. I would like the view to be looking straight down on the location they specified. I have tried the following code: var lookAt = g...

How to let resize vertically a DIV with only jQuery - no plugins?

Edit: I put this snippet of code in jsbin: http://jsbin.com/eneru I am trying to let the user resize (only vertically) a DIV element with jQuery. I read about jQuery UI, I tried it, and in some minutes, I had it working. But the library is adding a ~25KB overhead that I would like to avoid, since I only want simple vertical resizing. ...

Linux Firefox Spaces Things Differently

I am having trouble with Linux spacing of things, in multiple APIs. Thoughts? On the linked page below, there is a button with a magnifying glass on the map - in the upper left corner - directly to the right of the Home Map button. In Firefox 3 on Linux, this button appears to be on top of the Home Map button. On a Mac or Windows machi...

How did they apply Twitter oAuth here?

Hello all, I have just succeeded in creating oAuth authentication for my twitter application using PHP. I then saw this site and I am surprised how they open a new window, close that window and then continue the request in the initial window?! Can Someone explain with some Javascript (I am guessing they are using this) how they did thi...

HTML how to move through columns

Hi, I have the following code: $(document).ready(function() { var id = 'cbx'; var idPrefix = 'Arrow'; var html = '<img .../>'; // query parent row var rowq = $('#' + id); if (rowq.length < 1) { rowq = $('.' + id); VersionHeader = true; ...

Is client side (interface) development as a speciality dying out?

I'm seeing less and less of this on job boards, and I'm having trouble hiring an interface engineer who specializes in XHTML, CSS and JavaScript. Is this because designers are taking this on with their design duties, or programmers are now responsible for building out pages, or is it because this work is easily contracted out to companie...

jQuery .Noconflict Issue

Hi Guys, I have a problem that I just cannot resolve and its driving me insane. I am using the jQuery library and I am using ".noconflict". I am trying to use this on my blog with the following script - http://www.internetmarketingmonitor.org/word-press-plugins/imm-glossary-wordpress-plugin The problem is - I keep getting the follow...

Bing Maps - how to link to a push pin from a link outside the map

I have a Virtual Earth Maps (Bing Maps??) to which I have added a set of pushpins. Each pushpin is labelled 1 to n. In addition to adding pushpins to the map, I also add text to the web-page that contains the description to each pushpin. I would like to add a link to the text outside the map, that when clicked will open the balloon asso...

javascript onclick, anonymous function help

Hello everyone, I am a beginning javascript programmer. I am trying to create something similar to Lightbox 2, but much simpler. The only reason why I want to do it from scratch on my own is so that I can learn. However, I've been stuck on the last critical part where it displays the image. I believe the problem lies where I try to use o...

How to access Facebook user ID from javascript within a fb:iframe?

I am writing a Facebook application that is a simple board game which I have implemented in javascript. Facebook only seems to let javascript applications run within an iframe so I am loading the page using <fb:iframe>. I just want to be able to tell the javascript the user's id so I can tell the user if it is his turn or not but I can n...

Query String Javascript

Hi, Using javascript, how do I add some data to the query string? Basically I want to add the window.screen.height and window.screen.width info to the query string so that I can then email it with the other login info. Alternatively, how would I populate a couple of hidden fields with the same data, a form is being submitted so I coul...

How can I simulate an anchor click within iframe via Javascript

Hi, I have an iframe window that displays a report. To access this iframe, I have an expand/collapse button on the parent window. Within the iframe report window, I have a #PAGETOP anchor at the bottom of the report, i,e: <tr><td style="padding-left:45px" class="bottom" colspan="99"><div id="ptAnchor"><a href="#PAGETOP"><img src="firs...

How do I temporarily convert an ASP.NET Ajax form to not use partial page updates?

I need the ability to temporarily turn off the partial page update behavior for an ASP.NET Ajax / UpdatePanel based page. (The reason is to circumvent the issue where IE blocks "automatic file downloads" for downloads generated as a result of this postback, but I don't want to distract from my original question) I looked at the client ...

To disable image

hi guys, i have an html image .In its onclick i have written code to show calendar.I want to disable that image ,means i should not be able to click that image,but image should be visible.I want to disable the onclick event of image,Can anybody help? ...