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...
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 ? 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.
...
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...
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" /...
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...
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 ...
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.
...
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...
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 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...
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...
The pagerbuttons of ComponentArt:Grid are not working in firefox. While everything's working fine in IE and Chrome.
...
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 ...
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...
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
...
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"...
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...
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...
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:
...