ajax

Postback a linkbutton in a grid that's under an UpdatePanel

as my title says... How do you make a LinkButton fire a POSTBACK (not ASYNCPOSTBACK) which is inside a GridView and is under an UpdatePanel? My Scenario is this, I have a grid. say table A, which populates a Linkbuttons with link to do Server.Transfer calls from Page1 to Page2. I have a good reason why i am using a Server.Transfer be...

Ajax Post method using jquery

<script type='text/javascript'> $("#cart").click(function() { var loadUrl = "ajax_redirect.php"; var val = "2"; $.post(loadUrl, { page: "cart", data: val }, function(data) { alert(data); alert("Course added to Cart"); } ); }); </script> <body> `<a class="button" id="cart" href="#" title="Apply"><img src="images/button....

Handling successive Ajax requests - JQUERY

Hi guys, I have a search textbox where upon keppress an ajax call is made to return search results for the inputted text. The thing is that this results in an Ajax call being made for like every single keypress - so if I wish to type in lets say airport I get 7 ajax requests each searching for a, ai, air, airp, airpo, airpor, airport re...

Is it possible to post data from one url to another url?

This is my ajax code, For example URL 1 : www.text1.com and URL 2 : www.text2.com/check.asp Here i wand to post data from text1.com to text2.com.... Is it possible? <script type="text/javascript"> function ajaxFunctionSearch() { var xmlHttp; try { xmlHttp = new XMLHttpRequest(); } catch(e) { try { ...

How to update multiple labels in an WebMethod (Asp:net / Ajax)

Hi Guys, I have around 20 labels to update. In relation to performance and padeload-weight, I choose WebMethods to realize it (Much smaller then updatepanel + timer). So, how to update a lot of values in the WebMethod? (My First intention was to access them normaly as I do: lbl1.Text = "1"; lbl2.Text = "2".... but the method is stati...

Techniques to reduce data harvesting from AJAX/JSON services.

I was wondering if anyone had come across any techniques to reduce the chances of data exposed through JSON type services on the server (intended to supply AJAX functions) from being harvested by external agents. It seems to me that the problem is not so difficult if you had say a Flash client consuming the data. Then you could send en...

Populating a SELECT element using AJAX on page load and on change

I have a SELECT element in a form which I'm populating using AJAX when the select option changes. This works really well using the following code: $(function() { function populate() { $.getJSON('/action/' + $(this).val(), {}, function(data, textStatus) { var el = $('select#two'); el.html(''); // empty the select ...

Is it possible to customise drupal node reference and pass your search and a argument from another field

I'm trying to create a bespoke form in drupal, with a node reference field. I'd like to add a little extra functionality to the node reference auto complete. I've created a view, that contains an argument. I'd like to be able to pass that argument from a drop down as well as the typed text into the autocomplete script. Does anyone know...

Ajax not supported?

I have a page that uses an AJAX request (using Prototype's Ajax.Request()) to validate something. We keep very detailed logs of all of the requests. Occasionally customers will complain that they are entering something and it is not being validated. In such a case I check the logs searching for their IP address, time of their email, a...

jquery .text doesn't render HTML elements into the DOM

Hi I am loading a list of images into a div with the following bit of jQuery : var jewellerDdl = "<%= JewellerDropDownList.ClientID %>"; var filter = $("#" + jewellerDdl).val(); $.ajax({ type: "POST", url: "popup.aspx/GetJewellerAssets", ...

AJAX FIle Upload: Filename doesn't appear in textfield of type file

Hello all, I am making use of Andrew Valums awesome AJAX file uploader. I am having a problem with it though, its a small issue. I want the file that was selected by the user and uploaded to be shown in the textfield. But it never seems to appear it just uploads. How can I do this or why is this happening? Thanks all ...

Httpcontext working problem with AJAX

I am currently using AJAX control and also using httpcontext to redirect the page if the user is not authenticated.if two users are logged in at the same time and one deltes the other one. The other logged in user is getting exception page while clicking on the same AJAX control. So Looks like HttpContext is not working with AJX. I have...

Could you show me a site where ajax-driven country-region-city drop down list is used?

Could you show me a site where ajax-driven country-region-city drop down list is used? ...

AJAX/Javascript Error Ruby on Rails...

Ok so here is where I am at. I have three different things here and I am very close to getting it to work. I have a form with a checkbox = value of 1 that collects a "vote" for a "post" and sends it to the database with the post_id. This works great. I have a partial template that rendors that particular posts votes back underneath t...

Displaying record count - Ruby on Rails - Ajax

I am new to rails so sorry if sometimes I don't make much sense. Here is what I am trying to do. I am trying to build a vote system. So next to a blog post there is a link that says 'vote' (will probably say like later). So far I have working: when the vote button is clicked, a value of '1' is delivered to the vote table and then that pa...

How to get django and jquery .ajax to play nice - not triggering success

At this all evening and can't see what I'm missing: JS: $(document).ready(function() { $("#form").submit(function () { var txt = $('textarea[name=text]').val(); $.ajax({ type: "POST", url: "/parse_text/", data: {"text": txt}, dataType: "text", success: fun...

Examining AJAX HTTP requests using Web Inspector

Is there an easy way to examine the HTTP GET/POST/OPTIONS/HEAD etc requests being made by jquery ajax calls using WebKit's Web Inspector? I'm hand crafting responses and am looking for a simple way to monitor the back and forth traffic. ...

Zend Form: How to create a 'create account form' that checks for unique username?

I have a form where a user can create an account. The username column is unique in the database. If a user tries to create an account with a duplicate username, it throws an exception. This ends up looking pretty ugly. I'm thinking about doing some sort of check before inserting in the database (possibly with ajax) to see if the desired...

JQuery AJAX .load - flash chart doesnt load in IE

Hello, An IE issue has me completely stumped. I have a coldfusion page that uses JQuery's AJAX .load function to load in a new flash file that is generated by coldFusion's cfchart tag. This works completely fine in firefox: the new flash file and new html elements load. However in IE: all of the html elements that are geneated with the ...

Ajax show div if variable is set

So I'm using jquery to POST some items and save into the database. I have two optional fields, if they're not empty, I'd like to fadeIn in a related div in the success function. You'll notice the #picCheck.fadeIn. Right now that fades in if the stuff is submitted, but like i said, I'd like for it fadeIn only if the variable "picvault" fr...