ajax

SharePoint SOAP GetListItems VS jQuery - Need some advice on how to use Ajax to cycle through Custom List items as well as Ajax refresh the list contents...

Hello all, I am using jQuery to access Sharepoint 2007's SOAP interface via the GetListItems method to read in a custom list of anouncements in such a way as to have that list refresh once a minute (in case the owners of the list add new content, so that the new content becomes visible without having the end user refresh their sharepoin...

cakephp stop ajax submit

Hi, Is there a way to stop cakephp ajax submit to stop the submission in case the user has not entered required details and click the submit button. Regards ...

jquery and xhr.abort

When aborting an ajax request with the xhr that's passed back from the jQuery.ajax function, firebug shows that it's still trying to load that request. It doesn't block any more requests that are made, but it also doesn't show that it ever completes the request. Is this just a firebug problem? ...

ASP.NET AJAX and keeping the Session alive - What is the standard way to do it?

Long time ASP.NET Webforms developer, new to Ajax development (mostly via the UpdatePanel control !). Since no postbacks are happening the server does not reset the user’s session timeout counter, even though a user is interacting with a page and refreshing parts of it. I would like to know what is the simplest and standard way of keep...

Ajax.ActionLink, how to send the selected object in the partial view? asp.net mvc

I guess this is a noob question, but here it comes: I have a list of products: <% foreach (var item in Model) { %> <tr> <td> <%= Html.Encode(item.code) %> </td> <td> <%= Html.Encode(String.Format("{0:g}", item.date)) %> </td> <td> <%= Html.Encode(item.cate...

Usercontrol postback not working in updatepanel

I have a masterpage with an update panel: <asp:UpdatePanel ID="UpdatePanel" runat="server" ChildrenAsTriggers="true" EnableViewState="False" UpdateMode="Conditional"> <ContentTemplate> <div id="mainContent"> <asp:ContentPlaceHolder ID="ContentPlaceHolder1" runat...

how to get value of checked element in for loop

Hi I am working to get each value of the checked element and post them to php. But it only gets first value of just one checked item. here is $("#conf").click(function(){ var count = $("input:checked").length; for(i = 0; i < count; i++) { a = $("input:checked").val(); $.post("reqs.php?act=confirm", { ID: a }, fu...

addEventListener() attached to multiple buttons, but only fires once

I am writing a Facebook app in PHP/FBJS. I have some code where I attach an addEventListener() to two buttons. When I run the app, the first button I click on fires the addEventListener() and the event handler is invoked as expected. But if I click on the second button or click on the same button again, the event handler is not invoked. ...

Update Drupal views argument via AJAX

Hello, I have a request concerning Drupal 6.x I'd like to have this behaviour: imagine to have 2 columns, on the left a list of nodes (only titles for example) and on the right a view showing just one of the contents on the left. My idea would be to achieve this with an AJAX-fashion: clicking a link in the list on the left updates the v...

Force periodically_call_remote to fire immediately

I have a periodically_call_remote that I want to fire right away (as if the code was present without the setTimeout) as well as call periodically. Is there a nice way to do this use PCR, or do I have to roll my own? I'm using jQuery/jRails if it helps. ...

ASP.Net Display Different Text in Label Control At Interval

Hi Guys/Gals, I have in here an old web application written in ASP.Net 2.0 + AJAX. I have in my page a textbox control and a button and a label control which is inside an update panel. A text will be entered into the textbox and subsequently, on the textchanged event of the control, some server side processing and data validations are...

why is this page method failing?

I have my script manager with attribute enablepagemethods set to true, however, for some reason this is alert me I've failed. public partial class _Default : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { } [WebMethod()] public static string test() { return "q343242342342";...

Resources for What and how NOT to use ASP.NET AJAX?

It's very easy to put an UpdatePanel and have AJAX working. I am looking for resources on how to best use ASP.NET AJAX for maximum performance and security. Resources for best practices, guidance, design patterns, gotachas, pitfalls when using ASP.NET AJAX. I am not looking for books on ASP.NET AJAX. Amazon lists those. ...

Get result of a JS file directly? (sorta AJAX related)

As I have known AJAX in the past, it has gone something like this: a server side language (in my case PHP) file generates xHTML has JS attached. The JS queries another file, with parameters set in GET or POST. This queried file's entire output is returned to the JS, which in turn makes a change on the original xHTML. Now, I'm trying to ...

jQuery ".cycle is not a function" error - follow-up from http://stackoverflow.com/questions/1586998/

So I am trying to implement the solution suggested to me in my previous question (http://stackoverflow.com/questions/1586998/). I want to use the Cycle library found here: http://malsup.com/jquery/cycle2/ to cycle through the contents of a DIV that I am populating with rows from a custom SharePoint list. The html I am creating appears to...

ASP.Net Ajax AsyncFileUpload control not firing server side OnUploadCompleted event

Hi, I am writing an application that requires a user to upload files to the server machine. All user interaction with the user is done via JQuery UI modal popups. I created a test page to see that the AsyncFileUpload control works, and everything works fine on it. I added the AsyncFileUpload to the webform that I need it on, in a modal ...

How to select (focus) last row of paginated CFGrid?

I have a CFGrid with pagination, and have a separate form to add new row to last row of the grid. //Ajax form submit ColdFusion.Ajax.submitForm('form1', 'data.cfc?method=insertRow', formUpdateHandler, formErrorHandler); //Handler function post update function formUpdateHandler() { ColdFusion.Grid.refresh('grid', true)...

ASP.NET MVC AjaxHelpers recommended usage

It seems all the examples I come across specifiy an UpdateTargetId to render out the HTML content of the Ajax response. This is quite a bit different than how it's done in the Rails world, where the response content contains JavaScript code which manipulates the page. The Rails convention seems more powerful. What's the recommended usag...

how to found link click of multiple links using jquery

hi, i have a dynamic link ids, when ever i click on link i need to display a dynamic text area below the link, please explain how to do this using jquery. ...

call jquery load on <a > link

i have page in php and all over page i am using < a tag to link for example <?php for($i=1;$i<=5;$++) {?> <a href="abc.php?ref=<?php echo $i ?>"CLick me No. <?php echo $i ?> </a> <?php } ?> what i want to do is once we click on link jquery load function should called, like $('#div1').load('abc.php?ref=1'null, function() { ...