ajax

problem in ajax modal pop control when used with an custom control

<style type="text/css"> TR.updated TD { background-color:yellow; } .modalBackground { background-color:Gray; filter:alpha(opacity=70); opacity:0.7; } </style> i am using ajax modal pop control. and i am using JQuery Check box control...

Passing control's ID to javascript via ScriptControlDescriptor

I create a control in CreateChildControls(): HtmlGenericControl mycontrol= HtmlGenericControl("li"); mycontrol.ID = "controlID"; controlId = mycontrol.ID; protected virtual IEnumerable<ScriptDescriptor> GetScriptDescriptors() { ScriptControlDescriptor descriptor = new ScriptControlDescriptor("Project.TEditor", this.ClientID);...

Gridview item preview using .net 2.0

Hi, I have a GridView control that for each item has a Hyperlinkfield with a URL to an aspx page. I want to (using AJAX libraries) to display the page preview in an inline window as the user hovers over each GridView row hyperlink. Can anyone suggest the best way to implement a preview of each row's hyperlinked aspx page as the user ...

Can I combine the .load function with fadeIn in jQuery?

I am using the .load function to load in another page using jQuery. Here is my code: $('#page1').click(function(){ $("#content").load("page1.html"); }); It's working great, but I would like to fade in the new page. Is there anyway I can combine the load and fadeIn function? I attempted it, but it's not working. Here is my...

call a php controller with ajax (how to disable layout)

Hello, I will explain more, because it might not be clear enough I want to set the ajax url to: www.domain/controller/method I already have everything in place for this with normal php. But if I have to do this with ajax, I am not getting the intended result. The result should be some json variable being echo'd back to me. It is not e...

Disable Return key outside textareas on a Asp.Net web page (containing ajax code)

Hi, I have an Asp.Net web page, having the common Asp.Net form. The outer "border" of the page (i.e. main menu, header, ...) is build using normal Asp.Net code using a master page. The content of that page uses jQuery to display dynamic forms and to send data to the server. If I push the return key on that page, I jump to a (more or le...

jquery ajax post to non-ssl page while current page is ssl

Ok, situation: an https / ssl page jquery a form submitted via ajax to a non-ssl pagge getting no usefull response the same scenario, non-ssl to non-ssl works perfect. I can view my console, but cant get any usefull info from it why the request fails... $.ajax({ type: "POST", url: form.attr("action"), data: form.serialize(), err...

IE6 UpdatePanel Must move mouse to refresh after async call

So we are using IE6, and can not migrate to any other browser. So our application is having issues where after we have a postback inside our updatepanel. The browser looks like its resetting the DOM, one select box kind of jumps up a little, but then it freezes for 10-20 seconds, then the page gets updated. Now if we move the mouse it is...

Returning an array from a PHP function to jQuery

I have a PHP function that returns an array. What is the best way to "receive" this using jQuery? ...

AJAX calls randomly timing out in IE6/7?

Some of my AJAX calls in IE6 and IE7 seem to randomly time out. It doesn't happen in any of the other browsers. Posting code won't be of much help, because it literally happens in three or four different places where the functions and code are completely different. Has anyone else experienced this issue before? ...

Double postback causes SelectedIndexChanged to fire which fires AutoPostback

I have a Gridview in a UpdateTemplate. I have four template fields in the four different columns. Each TemplateField has an UpdatePanel with a control in it. All the columns are sortable and the Gridview is page-able. Three of the template fields has DropDowns in the UpdatePanel and one has a Textbox, all these controls have AutoPostBack...

Javascript file dependencies - Selective load resource files & prevent duplicates

This might be more of a philosophical debate, but here is what I have: Two controls which share a Javascript resource library to call a webservice. They are ususally used in conjunction with each other, but not always. The javacsript file they both reference is not easily separated. The javascript file should not be added to every pa...

Self-Hosting WCF for AJAX Client

Hi, I'm trying to self-host a WCF web service and provide a HTTP endpoint with ajax support. Pretty much everything I've found about WCF and AJAX are talking about IIS, which I don't want to use. I've build a simple Console App to host the service. My service only have a single method: [ServiceContract] interface IMyService { [Op...

Pure Javascript app + Amazon S3 ?

I'm looking to confirm or refute the following: For what I have read so far it is not possible to write a web application with only javascript -- no server side logic -- served from Amazon S3 that also store data only to S3 if you need to have multiple clients with private data per client. The issue I see is the Authorization header re...

Ajax async option throwing me for a loop

I'm using ajax to do some validation on some dates passed (basically making sure that the first date/time occurs before the 2nd date/time, and neither are blank). If I have async set to true, it works, but I get a false positive because it's working at the same time as the rest of my form validation. If I set it to false, then I get an...

check if email address really exists with a service via ajax (not regularexp) real time if it reallly exists.

I like to check the validation of an email address with ajax by onblur? (asp.net,c# and...json or anyother I don't know) I thought it could be possible with json and calling a webservice. but are there any (free)services to call? or I have to write my own? Hope you understand me what I want. Thanks ...

How does "Appreciate" buton in Behance works? vote once, not (only) cookies

Hello How do you think Behance did their "Appreciate" button? (in the bottom of every page, for example: http://www.behance.net/Gallery/The-Jazz-09-Journal/349710) You can only click once, after you click it says "thanks" and if you reload the page the button disappears. If you delete the cookies, the button still doesn't show. Anyo...

Can JavaScript detect when the user stops loading the document?

I'm implementing Comet using the script tag long polling technique, based on this page. One issue (that I don't think there's a solution for) is the "throbber of doom" - the browser continues to show the document as "loading" forever and leaves the Stop button on the toolbar enabled. This kind of makes sense, because the document is sti...

Is there a way to see the final URL retrieved by an XMLHttpRequest?

I'm doing an AJAX download that is being redirected. I'd like to know the final target URL the request was redirected to. I'm using jQuery, but also have access to the underlying XMLHttpRequest. Does anyone know a way to get the final URL? It seems like I'll need to have the final target insert its URL into a known location in the he...

file tree using ajax call for branches

I`ve tried to make an animated file tree using this Ive used the way without jQuery. But the list is getting long and I thought that may use ajax to call a php script and then to add the output of it to the tree. But it dosnt work. I`ve changed the php_file_tree.js while (1) { if (node != null) { if (node.tagName == "UL") {...