ajax

AJAX callback in Obj constructor

I have a class object called Location that works with Google in order to geocode a given address. The geocode request is made trough an AJAX call and handled via a callback that will initiate the class members once the response arrives. Here is the code: function Location(address) { this.geo = new GClientGeocoder(); this.addres...

JQuery ajax request returns error and status 0

I use this pseudo-class to make ajax request to server: function RequestManager(url, params, success, error){ //save this ajax configuration this._ajaxCall = null; this._url= url; this._type = params.type; this._success = function(){ alert("ok"); }; this._error = function(){ alert("ko"); }; } RequestManager.prot...

How can I implement a voting system (UP/DOWN) or (THUMP UP/DOWN) like StackOverFlow in .NET ?

How can I implement a voting system (UP/DOWN) or (THUMP UP/DOWN) like StackOverFlow in .NET ? I found PHP codes but I want something that works in .NET environment. I don't care about security issues like multi votes and such restrictions at this stage. ...

Why does Google append while(1); in front of their JSON responses?

This is something I've always been curious about, is exactly why Google appends while(1); in front of their (private) JSON responses. For example, here's a response while turning a calendar on and off in Google Calendar: while(1);[['u',[['smsSentFlag','false'],['hideInvitations','false'],['remindOnRespondedEventsOnly','true'],['hideInv...

is there a way to hold the values? - lost in postback

i have two select using as a dropdownlist for country/state everything works as i expected but when i do a postback then i lost the values from the above <select...> what is the best way to retain the values and can you show me with an example please? <asp: Button ID="Button1" runat="server" onclick="Button1_Click" Text="PostBack" /...

Jquery prettyPhoto and star conflict....DOM not loading?

I'm working on an online ordering system for photography clients: Here. (Forgive the requirement of having to sign in). After signing in, the user is able to rate pictures using the stars listed below each picture, then subsequently view 3 star pics, or 4 star pics, etc. However, when the user clicks on an image, a lightbox expands (pr...

google maps call within a For Loop not returning distance

Hi, I am calling google maps within a for loop in my javascript as I have mulitple routes that need to be costed separately based on distances. Everything works great except that the distance is only returned for one of the routes. I have a feeling that it is something to do with the way I have the items declared within the ajax call ...

How to pass javascript function as a parameter in the route values of Ajax Actionlink

Hello experts, I need to pass javascript function as a parameter value to the ajax actionlink in asp.net mvc app. how can we achieve this? Thanks in advance. ...

How to include js file in ajax call?

Hi All, I am calling a ajax method to update a div. It contains links and functions which require java script files. But these methods and functions are not getting called properly as java script files are not getting included through ajax call. For example, i am trying to call a light box function, but it gets redirected to different p...

Extjs cache JSON request

Hi i'm using Extjs and i have built a grid with editable cells. One of this cells must be a combobox that takes its options from a script that generates the json data. The code for the grid and for the combobox-cell-editor works but i want that the json request to the script is cached after the first time, is it possible? I write some c...

What happens when you add/remove current site as trusted site?

What happens when you add/remove the current site, while logged on, as a trusted site? When users do this on our website, and then try to click on a link or close the browser, they get the following JavaScript exception: "Microsoft JScript runtime error: 'type' is null or not an object" in the below library code at the line "var etype...

Implementing Google Crawlable AJAX URL's with Mod Rewrite

I'm looking to implement the Google crawlable AJAX states as described here: http://code.google.com/web/ajaxcrawling/docs/getting-started.html Essentially this requires specifying your AJAX states with a #!state value at the end of the url. This should then be passed to the application server (PHP in my case) as part of the query stri...

ComponentArt:Grid pagerbuttons not working in Firefox

The pagerbuttons of ComponentArt:Grid are not working in firefox. While everything's working fine in IE and Chrome. ...

Doing a ajax / json add to database, and have a "wait doing operation" icon

Hi. I got a part on my page I want to improve. It's a file upload that users can add their contacts from files like excel, csv & outlook. I read the contacts and place them in the database, so what I would like to do is to have a regular icon that spins while that operation is doing that, how could I do that? Ajax? I don't want progress ...

ComponentArt:Grid slider not visible in Firefox

The slider of the ComponetArt:Grid is not visible in Firefox. However its visible in IE. Following is the code <componentart:grid id="grdElectionPeriodsDetail" cssclass="grid" editonclickselecteditem="true" allowediting="true" groupingmode="ConstantRows" groupby="" groupbycssclass="" groupbytextcssclass="txt" gro...

Ajax cross domain in Safari/Chrome

Hi Folks, Firefox & IE's do have browser-settings where an user may allow those forbidden cross domain calls. My question: Is there a similar setting/option in Safari's and/or Chrome browsers? Kind Regards --Andy ...

Ajax / Internet Explorer Encoding problem

Hi, I'm trying to use JQuery's autocomplete plug-in but for some reasons Internet Explorer is not compatible with the other browsers: When there is an accent in the "autocompleted" string it passes it with another encoding. IP - - [20/Apr/2010:15:53:17 +0200] "GET /page.php?var=M\xe9tropole HTTP/1.1" 200 13024 "http://site.com/page.php"...

jquery $.ajax to php problem

hi.i have two problems with jquery $.ajax. first problem is ihave a php file named action.php and here the code: if($_GET['action']=='add'){ //rest of the code here } And i use jquery $.Ajax function to call that when form fills: $.ajax({type:"POST", url:"action.php?action=add", data:$("#form").serialize(), cache:false, timeout:1...

Cannot clear the form after Submit using the Validation plugin in jQuery

Hello, I an quite new to jQuery and I have a problem while trying to create a form. I am using the Validation plugin for validate the email (one the form's field). When I click the Submit button I want to call my own function because I want to save the data in an XML file. This is my button: (as I understood the plugin uses "submit" f...

how can i replace an image (inside a div) through jquery and ajax.

I am trying to click on an image and change it to another image through jquery. When i step through the below code, on the serverside, the controller action fires and on the client side, i can see the correct html return in firebug watch window but the image doesn't change at all. any idea why this div is not updating? original div: ...