javascript

ASP.NET/jQuery Post-Back, but not when using browser's "Back" button

Hi all I'm working on an ASP.NET Web Project with some AJAX magic. As my GridView's data needs up to 15 seconds to be gathered, I send the page to the client and fire an asynchronous update of an UpdatePanel via jQuery/JScript (see below). This works well, so far. Now I'd like to skip this step when the user navigates to the next page ...

Use JavaScript to call a SOAP web service that requires authentication

Can I call a SOAP web service from JavaScript? The SOAP web service in question is a member of the Exchange Web Services platform. I have found the Exchange Web Services OSX Widget but that uses Curl to do the actual SOAP call. So I am wondering if there is a limitation in the JavaScript abilities to interface with SOAP using authenticat...

re-catcha / zend / javascript question

I generate a recaptcha box on a form like this. <?php $recaptcha = new Zend_Service_ReCaptcha("key", "key"); echo $recaptcha->getHTML(); ?> and perform form validation using javascript. I would like to change the captcha phrase each time user unsuccessfully submits form. Can this be done using javascript? thanks ...

how to traverse a 2-d javascript array both hierarchically and vertically - recursively

A tree is formed from a 2-d javascript array. The first dimension is the no of levels in the tree (vertical) and the second dimension is the the no of nodes in each level.Every node in the tree has got a check box.A node will be shown as checked if all its children are checked.All that code is written. Now, if some nodes in the tree are...

jqtouch, paraller scrolling with ipad.

Im having a question regarding jqtouch and ipad device. Is it possible to achieve parallarer scrolling with jqtouch and ipad? im thinking of creating 1:1 size images related on ipad screen and would want that whole viewport is scrolling. To define paraller scrolling with this case, some objects moves in different speed (in depth), than...

Open multiple child windows and keep track of them all

So here is the situation. I have a button on one of my extjs pages. This button opens a child window as a pop-up. This child window has a .method attribute as well as a .ref attribute, and also a .id. I need the functionality to open another window with the SAME template, everytime I click that button. I was thinking set the childwindow...

Air2.0, Error while accessing Native process API.

I am using native process API of Air2 in HTML/Js framework. The problem comes when i try to make object of NativeProcessStartupInfo. Here is mine code if(air.NativeProcess.isSupported){ var nativeProcessStartupInfo = new air.NativeProcessStartupInfo(); Whenever i try to execute this code i got this error. TypeError: Result of e...

What is going wrong with this XHR request in IE8?

I have a photographer's gallery here. In my friends, Firefox and Safari, everything is smooth. However, IE8 seems to not call the callback after the XHR has loaded (if it has, I tried checking with Fiddle, but couldn't get my head around whether it has actually loaded or not). It just seems to sit there loading forever. I'm not sure wh...

how to set all links(href) in the page to "#" with javascript

how to set all links(href) in the page to "#" with javascript ...

How to extend IXMLDOMElement using 'prototype'?

I have some code, which was written couple of years ago and works only in IE. I would like, to make it work with browser now. So, code receives XML by XHR, and then reading its content. And I have a "collection" of elements. In FF it type is Element, in IE is IXMLDOMElement. To make reading text value unified (FF uses textContent prope...

Google Transliterate translation in a rich faces page using java script

Hello, I am trying to use google transliterate and translate some text from english to a diffrent language. I am able to do this using the following code in the javascript. var options = { sourceLanguage: google.elements.transliteration.LanguageCode.ENGLISH, ...

asp.net page reloading on javascript onclick function

Hi guys, Novice question I guess: The Scenario: I have an asp.net page that contains 6 divs and 6 hyperlinks which are linked to javascript function: function showdiv(divname) { hideallcontentdivs(); var targetdiv = document.getElementById(divname); targetdiv.style.display="block"; } var alldivs=new Array(); function hideall...

How to use Filter in Google Search ?

I have converted a textbox search to Google Search using : location.href = "http://images.google.com/search?q=" + val; But, I want options of Web Search, Image Search, Local Search & News Search. I do have : <tr height="40"> <td width="80%" align="center" ><input id="searchText" type="text" size="100"/></td> <td class="searchbox" wi...

Help please? When the element gets picked up by the drag, it only gets picked up from the middle?

I have a div for example, and when you pick it up to start dragging, it snaps the div so the cursor/mouse is in the middle of it. This is the code.. // DEFINE DEFAULT VARIABLES var _target=null, _dragx=null, _dragy=null, _rotate=null, _resort=null; var _dragging=false, _sizing=false, _animate=false; var _rotating=0, _width=0, _height...

JavaScript to show extra form fields

I have a form that has a block called "Product", containing text inputs. Inside that block, the user can press "add item" and have the JS show one more field. Till now everything works. I've tried to add a function for adding a new "Product" block but no luck. Do you have any hints for me? Product Item: <input> Price: <input> Item: <in...

javascript google maps api - one one infowindow open at a time..

Hey guys, this questions relating to infowindow in the google maps API v3.. Currently I loop this function and place markers.. function addPostCode(zip, html) { geocoder.geocode( { 'address': zip}, function(results, status) { if (status == google.maps.GeocoderStatus.OK) { map.setCenter(results[0].geometry...

How to use JQuery to Disable "specific" Dropdowns

My Goal: Checking radio button will disable the 'same' column of dropdownlist in a number of separate tables. I understand you can assign ID's and act on those ID's, or using by Tag Name. However, I am new to ASP and have a unique situation that neither of these options appear at the surface to work for me. I have a web form, that h...

Div's Class not persisting when 'back' button is used

I have an ASP.NET page that contains two div's. Both have search fields and a search button contained within each of them. When I first come to this page, Div A has the class 'SearchDiv' while Div B has 'SearchDivDisabled'. These classes change the appearance so the user knows which search type they currently have enabled. When Div B i...

Get Javascript test output into hudson

Hi, I'm writing an automation program for a Web Application. I am accessing the Web Application through a javascript API and have wrapper functions with custom assertions that currently just write output to a table in an HTML page. Now I need to get the data output into my hudson (https://hudson.dev.java.net/) automation, where I have a...

Shortcut to load multiple stylesheets/scripts in the same folder.

Dear experts, I have been working on a web page and would like to load multiple stylesheets in an external library. Unfortunately, this library has many CSS files spread under the same folder. The names are complicated and its such a pain to manually link it one by one. As it <link type="text/css" href="site/libraries/folder/highli...