ajax

When loading a page via javascript/XHR, hitting back causes unwanted scrolling

I am working on an existing website that we're adding some additional functionality to. A large number of users visit the site in the following manner: Page A -> Page B -> Page C -> back button to page B -> Page D -> back button to page B, scrolling -> Page C -> back button to page B, scrolling -> Page E, etc, etc. There is an alter...

update panel progress in ajax.

<asp:UpdateProgress ID="updateprogress1" runat="server" DisplayAfter="0" AssociatedUpdatePanelID="updatepanel1"> <ProgressTemplate> <asp:Panel ID="pnlUpdateProgress" runat="server" CssClass="updateProgress"> <img src="Images/ajax-loader.gif" class="loadingImage" alt="Processing" ...

$.ajax() get body only

i have script like this <html xmlns="http://www.w3.org/1999/xhtml"&gt; <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <title>Testing Ajax</title> <script type="text/javascript" src="jquery.js"></script> </head> <body> <a class="test" href="getthis.php">click here</a> <div class="get"></div> <script type="t...

assign tooltip behaviour to repeating links

HTML below is generated via ajax call into "purchase_content". I want to apply tooltip to each link in each row, can be up to 100 rows. This is code at moment but with no success. If I rollover each link twice tooltip appears but wont ever appear again. Any thoughts on addressing link on each row? <div id="purchase_content"> <div id...

Cannot update .Text property of asp:TextBox inside asp:UpdatePanel

I have several dropdownlists and textboxes inside an <asp:UpdatePanel>, which should let me edit some details after selecting an item inside an <asp:GridView>. The grid is not inside the updatepanel. From the UpdatePanels' .Load() method, I change the .Text of a few <asp:Label>, <asp:TextBox>, and I set the .SelectedValue of some <asp:D...

Does Ajax inevitably result public API?

I am using AJAX to generate actions on my website. For example, a "search results page" calls Ajax which initiates "/getResults.php". This PHP file returns a JSON with 20 entries that contains the results. The HTML Page calls the callback function and re-builds the DOM with the results from the JSON. It thus seems inevitable that using ...

JQUERY getJSON / ajax response not being processed

I am sending a json request to a server as below: $.getJSON("prod_search.php?type=getCustInfo&custID="+custID, function(json) { alert(json.address); $("#invAddress").html(json.address); $("#currency").html(json.second); }); Using firebug to check, the response is below, but the alert shows 'undefined' and no values are inserted....

Someone to explain a part of this jQuery code to me using the dhtmlxcombo plugin.

I have this code fragment var combo = new dhtmlXCombo("combo_zone4", "alfa4", 230); combo.loadXML("create_store2.php"); combo.attachEvent("onChange", onChangeFunc); combo.enableFilteringMode(true, "select_store.php"); function onChangeFunc() { var d=combo.getSelectedValue(); var product=$("#selProduct"); ...

Select from database after string entered in AJAX (ASP.NET)

This is probably simple, but I'm unsure of which tools to use for the job. Basically, the user needs to enter either an account number or name (same text box), and when they click search their account details will appear below in detailsviews and gridviews. What tools do I use so all this can happen on the same page? ...

Strange behaviour

I have the following script which works kind of... $(document).ready(function(){ // add or remove from favorites $("input:checkbox").change(function() { if($(this).is(":checked")) { $.ajax({ url: 'favorite.aspx', type: 'POST', data: { ID:$(this).attr("id"), St...

How do you call a JavaScript (AJAX) function when the user reaches the end of a page to load new content?

Hi.. On twitter (new twitter) and facebook they now have the the ability to load new tweets and posts when you hit the bottom of the page.. Is there a JavaScript / jQuery event that you can call / add to a div so when the browser hits the bottom it does some ajax call to get the new data? Thanks Daniel ...

How can I use Ajax Toolkit AutoComplete Extender to make AutoComplete textBox

Hi, I have tried this example http://www.asp.net/ajaxlibrary/act_AutoComplete_simple.ashx but it is not working in the demo or in my project can any one help me please Thanks in Advance ...

control appears multiple times asp.net

i have to two buttons in aspx page. i added ajax functionality to the page. but now thesee two button appears twice when i run the page. whats the problem? ...

ajax jqery updating div problem

I am trying to use ajax to update the views which simply checking results in database if there are results found, my html div will updated with section in that div if not found result, it will check after some time. the code is working without if else section but the client browser will crash at the certain point, the browser is froz...

Ajax Log-in or Auto-login with J2EE Container-Managed Security (FORM-based auth)

I have a J2EE webapp which uses standard FORM-based authentication, using a login.jsp page, which works okay, apart from a couple of glitches: If username/password are incorrect, the login error page auto-redirects back to login.jsp, but unfortunately "j_security_check" then appears at the end of the URL - which I know is sub-optimal. ...

Is the MSFT AJAX Animation control the correct one to do this animation:

I need to have a stack of 10 text lines, possibly div's, and insert a line arbitrarily somehere in the list. In addition I'd like to fade in a highlight (for the new line) and fade out. Is MSFT AJAX the correct tool to use for this? ...

AutoCompleteExtender questions

Hi, I'm using an AutoCompleteExtender for an ASP.NET project of mine, and it's pulling the fields to be shown fine. However, when the user chooses an autocomplete suggestion, I need the function to pull another field from the row (the 'ID' column which is the primary key), as that what is the necessary field used to display the relevant ...

Scope of variables in Javascript

I'm having trouble understanding the scope of 'this' in this scenario. I'm able to call each one of these functions like: this.startTracking(); from within the time tracker switch object. However, when I try to execute the code: Drupal.timeTracker.prototype.stopTracking(); It loses all scope of variables and my GET request becomes undefi...

Dynamic iFrame height not working with Ajax!

Hello, I am developing a web application with ASP.NET 3.5 with C# and Telerik Ajax Control. I have a iFrame in my master page. Application load other pages in iFrame dynamically and iFrame height adjust the dynamically when page load. I uses RadScriptManager , RadAjaxPannel, RadAjaxLoadingPannel in my page. The problem is when ajax "call...

how to know if the request is ajax in asp.net mvc ?

anybody how can I know if the request is ajax ? (I'm using jquery for ajax) ...