ajax

ASP.NET Ajax - simple clientside communication example?

I need to use javascript to request some data from the server in a.NET 3.5 Webforms demo app. It comes to mind that I have only ever done this with AJAX.NET, jquery, and updatepanels. I don't want to involve external technologies, nor do I want to do even a partial postback. Can anyone point me at an example of the simplest way to do t...

Standard way to include javascript library from javascript.

I'd like to pull in the jquery library from my javscript include. Does this work 100% of the time? Is there a better way? (function() { var loadJquery = function (cb) { var addLibs = function () { if (typeof(document.body) == "undefined" || document.body === null) { setTimeout(addLibs, 100); return;...

Changing a user created control based on content of input from JS tied textbox

I want to change a user created control based on content of the input inside of textbox tied to JS. My user control has an attribute field titled "userInput" where I pass the content of the textbox. My page looks like this: The textbox has an autocompleteextender and a Javascript function runs when an item from the dropdown is selecte...

Manually calling __doPostBack('myUpdatePanelId','mycustomeventarg')

In my Javascript I am manually calling __doPostBack('myUpdatePanelId','mycustomeventarg') It works fine except the EventArgs in my protected void Page_Load(object sender, EventArgs e) is always empty. Do I have to cast it to something else somehow? ...

jQuery - Getting returned data from ajaxStop

Hi guys Just wondering if anyone knows how I can get the returned json data from ajaxStop... I know there is a data property within event object, but it is undefined, even though data is being returned correctly... Cheers Anthony UPDATE: When using Success or complete I can see that the responseText within request is populated, b...

Javascript Ajax JQuery

Hello evryone. Here's my issue. I have a javascript function that update a div when i click the proper link. And it is working. Since i have cliked the link my div content is updated with another Javascript. This time to close it. Its fairly simple but i cant get it to work and i dont know why! Here is the code that is in the page ...

Theory behind designing a html editor preview feature

Can someone describe and a high level (with detail ofcourse) how one goes about designing a html editor preview feature? (like on this site) What do you have to do really? ...

How can I send jqgrid data by ajax post method to the server??

Hi... I haven't found how to send programatically with jquery all the rows in the jqgrid for be processed in the server. I've only found one method called getRowData(id) but it doesn't helpme because i don't have the id. that's why i want to send all the data Any help will be appreciated. ...

Ajax popup extender - why will it NOT work with a submit button

I want to use a popup where I want to update 2 fields, either manually entered or populated from a drop dow list. So I need a popup with a submit button. I am experimenting with the code from the "How do I" videos. In the video they show a field being updated from a popup with a radiobutton list. I decided to change it so that instead of...

AJAX and prediction of actions.

Hello, I'd like to ask your opinion on this. This is a theoretical question. I'm in a situation where I have an interface shown to a user that uses AJAX to talk to the server. The server-side language does not matter here. I have a form with fields and each of them are deletable. If the user selects a few "delete" -checkboxes and press...

fckeditor fileupload freeze, with autosave.

i work with asp.net and use the fckeditor. i got autosave with ajax updatepanel on my page and when i use the fckeditor fileupload it freeze, i cant do nuthing it stays open and i cant close it. i dont know why? i was thinking maby do a javascript that could detect if it was open then not run the autosave at that moment, you think that...

AjaxControlToolkit Accordion and databinding

I'm using the HeaderTemplate and the ContentTemplate of the Accordion control and binding it to a datatable. For some reason it doesn't display any data. If I bind the datatable to a datalist it works as ecpected, is this a known issue or am i doing something completely wrong. I'm binding the accordion control in the code behind if this ...

Binding time to a textbox

I am using a Masked Editor which is great and simple to use, but I was wondering. Is there a way to bind the time to a textbox that has a masked editor and cause the AM or PM to show up? I know if you type an A or P AM and PM will show up, but how to you get it to appear to a bound textbox of time? <asp:TextBox ID="txttime" runat="serv...

Custom Authorize attribute not working on expired ajax requests.

Hi. I have a custom authorize attribute on my controllers and it is not being called on expired ajax requests. I'm using forms authentication, and call controller methods via $.ajax (jQuery). The ajax request returns my login page and I don't seem to be able to intercept this. Thank you. UPDATE: I figured out why: I commented the auth...

Asp.Net MVC load a partial view using ajax from a JQuery UI tab

Hi I have several action methods on my controller that return a partial view (ascx), and I want these partial views to be rendered when clicking on the different JQuery UI tabs. The tabs are defined like this: <div id="tabs"> <li><a href="#FirstTab" title="First tab">First tab</a></li> <li><%= Html.ActionLink("General", "General",...

jquery scripts inside a page called via an ajax call

So, these script don't want to work. Not sure what to do. If i run the page B by itself, everything works fine. If the page A makes an ajax call to page B, none of the scripts within there would work. What do i do? thanks in advance. the code in page B: chkBox = function() { jQuery("#docheckchildren").checkboxTree({ collap...

ASP.NET UpdatePanel PostBacks

I created a marker interface: public interface ISupportAJAXPostsBacks{} I added it to my Page.. public partial class MyWebForm : PageBase, ISupportAJAXPostsBacks I have this check in my PageBase class... if(this is ISupportAJAXPostsBacks) { ... do some stuff ... } If I step through via the debugger, "this is ISupportAJAXPosts...

Ajax Request Results in form being submitted aswell

As the title states my Ajax call is actually causing the form to be submitted to its default action, why? I've never come across this before, all my other ajax calls have never done this. function newAjax(t,u){ //t = type(post/get), u = url var resource = null; if (window.ActiveXObject) { resource = new ActiveXObject("Mic...

How can I debug ajax functionality with web services in Visual Studio 2005?

I have a web application project and a web service project in the same solution, and I want to be able to use Javascript (jquery) to make calls back to the web services. How can I do this in a way that wont require me to change the code for production, since it debugs on a different port so I can't just use a normal path to it. Thoughts...

Creating a DataTable object with dummy data

I am trying to databind a DataTable to an accordion and I have found that If I retrieve the DataTable from a database using a table adapter it binds to the accordion perfectly however what I want to do is create a dummy table (for testing purposes if I don't have access to my database) the code to create the dummy table is below: Da...