ajax

Call JQuery function from code behind (aside) ASP.Net and C#

I need to disable JQuery tabs programmatically. The tabs are inside an update panel (Ajax) and the update panel is in an ASP.NET page. Code: <link type="text/css" rel="stylesheet" href="http://ui.jquery.com/testing/themes/base/ui.all.css" /> <script type="text/javascript" src="http://code.jquery.com/jquery-latest.js"&gt;&lt;/script&gt...

Encode dataview value in ASP.NET MVC Actionlink

I am using the Microsoft Ajax Template DataView to bind values to a template. I can do this and it works as you'd expect: <h3>{{ID}}</h3> <p>{{Address}}</p> However I am trying to build an action link that has the ID in it. <h2><%= Html.ActionLink(Html.AttributeEncode("{{Name}}"), "Index", "Restaurant", new { Id = Html.AttributeEncod...

Trouble with Ajax toolkit CalendarExtender Crashes IE6

Hello I have a weird problem with the CalandarExtender on my web project. When someone click on the little calandar icon IE6 crash! I think i properly implemented it <%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %> [...] <asp:TextBox ID="txtDateDebut" runat="server" CssClass="TextBox"><...

Multiple Classic ASP SessionID's when using both AJAX and standard HTML POST requests.

I'm using Classic ASP and a bit of AJAX to post the contents of a form back to the page on which the AJAX form lives. Upon AJAX POST the page saves one of those fields (email, to be specific) into a Session variable. The user then goes about their business - perhaps requesting the page again via normal HTTP. However, this leaves my brow...

How can I highlight a subset of the text in an input box?

I'm trying to figure out if it's possible using Javascript to highlight a specific range of data in a text field. textfield.select(); That ^^ works to select the entire text, but for all my googling I haven't stumbled upon a way to select, for example, characters 2 through 10 of the entered text. Is this possible? Thanks! ...

Passing Hebrew encoded text by AJAX (windows 1255)

When making an AJAX call from the client, the server responds with Hebrew text. The PHP page that returns the result is in Windows-1255. For some reason, the result encoding is not Windows-1255, and all I see is gibberish instead of Hebrew. The result purposely contains HTML tags. I've tried urlencoding, base64 encoding, nothing works...

Dynamically fill in form values with jQuery

I know how to do this with pure PHP but I need to do this without reloading the page. Is there anyway with jQuery to effectively pull back some database results (based on what a user has input in the first text field on a form) then populate some of the remaining fields with data pulled back from a db query? Essentially I would like to...

When is it appropriate to use AJAX?

When is it appropriate to use AJAX? what are the pros and cons of using AJAX? In response to my last question: some people seemed very adamant that I should only use AJAX if the situation was appropriate: Should I add AJAX logic to my PHP classes/scripts? In response to Chad Birch's answer: Yes, I'm referring to when developing a "stan...

How can I monitor users clicking on links via Javascript?

I've been tasked with determining if it's possible to detect link clicks with javascript. I'm aware of the onclick attribute, which gets me part of the way there. Other then that, I don't know what the best approach is. I've already told my boss that it will likely involve some form of ajax, which probably involves a big library, which...

AnimationExtender - close by clicking ouside the div

I've just started working with the animationextender. It is being used for a login dialog that ideally will disappear if the user clicks outside of the login dialog. As in, the user hovers over a button, dialog appears. Users clicks the little X, it disappears. User clicks anywhere eles on the page, dialog disappears. Right now, th...

jQuery JSON Problem...

I want to populate form fields with values from a database immediately after the user enters a value in the #sid field. Here is my jQuery/HTML example: <script src="jquery-1.3.1.min.js"></script> <script type="text/JavaScript"> $(document).ready(function() { $('#sid').bind("change", function(){ $.getJSON("test.php?sid=" + $("#sid...

How do I set the don't cache header for an html file using apache?

I'm doing a little bit of ajax where I get a static html file that is actually changed on the disk from time to time. Of course IE has a problem where it wants to help out by caching the file which I don't want. I know how to fix this when grabbing a dynamic file: you just change the header in the dynamic file. But how do I do this fo...

Default radio button not triggering an UpdateControl postback

I have three radio buttons on a form - A, B, C. Each of these selections populates a dropdown list with data specific to the option. When the form loads, I set option A to be checked (as the default). When I select buttons B or C, the AsyncPostBack triggers fine and the dropdown is populated. BUT, subsequently selecting A from either B...

php count error

As you see I have created drop down and give it name the field name, and I have also the count function. What I want to do is, if some select drop down menu..show the how many result found in number like 10, 20,.. if the second dropdown selected it will check the two drop down selected and pass the result count..like that continuous..if...

jQuery tablesorter - loss of functionality after AJAX call

I have recently been experimenting with the tablesorter plugin for jQuery. I have successfully got it up and running in once instance, and am very impressed. However, I have tried to apply the tablesorter to a different table, only to encounter some difficulties... Basically the table causing a problem has a <ul> above it which acts as ...

JQuery "parsererror" when trying to use Ajax in IE 6

When using jQuery Ajax, I am receiving a parseerror in IE 6, Firefox works just fine. My code is like this: $.ajax({ url: 'test.xml', type: 'GET', dataType: 'xml', error: function(XMLHttpRequest, textStatus, errorThrown) { alert('Error: ' + textStatus + ", " + errorThrown); }, success: function(xml){ ...

How many concurrent AJAX (XmlHttpRequest) requests are allowed in popular browsers?

In Firefox 3, the answer is 6 per domain: as soon as a 7th XmlHttpRequest (on any tab) to the same domain is fired, it is queued until one of the other 6 finish. What are the numbers for the other major browsers? ==== Update: ==== Here's the list so far -- please help complete it! Number of concurrent requests of any type (including...

How to iterate headers of sys.net.webrequest (ajax)

How can I iterate over the headers in the sys.net.webrequest object. The documentation says it is a dictionary, but there seems not to be an easy way to iterate over the dictionary. ...

Return value from function with an Ajax call

Can someone tell me how to return the value of status as the function's return value. function checkUser() { var request; var status = false; //create xmlhttprequest object here [called request] var stu_id = document.getElementById("stu_id").value; var dName = document.getElementById("dName").value; var fileNam...

thickbox ajax URL in hotspot Response.Redirect

Hey all, I'm creating a loop in C# to define that each hotspot in an imagemap, opens a ThickBox inline content windows.This is the code for the ThickBox inline content link: <a href="#TB_inline?height=155&width=300&inlineId=hiddenModalContent&modal=true" class="thickbox">Show hidden modal content.</a> Here's my code behind the imagema...