ajax

Populate TextBox from Database using JQuery or AJAX

Hi, I have the following scenario: An SQL 2000 database with a table containing the columns UserID and UserName. A webpage with TextBox1 and TextBox2. I need to use JQuery, plain JavaScript or AJAX to accomplish the following: When I type the UserID in TextBox1 and press the Tab key, TextBox2 will populate with the corresponding UserN...

Problem making overlay draggable

I have created a script that upon clicking a button displays an overlay which loads an html table by ajax. The problem I'm having is with making the overlay draggable. The first time I click on the button the overlay is displayed and is draggable. However when I close the overlay and click the button again the overlay is displayed but is...

how will I call the on change event of the ajax dropdownlist?

Hello All, In my MVC application I am using an ajax dropdownlist and an ajax Cascading dropdownlist I want to write the onChange event of the cascading dropdownlist please tell me what shall I do. I am posting the view page that I am using and the js file that creates the cascading dropdownlist.Please tell me where all the places I nee...

using $.get to get page content and render it into div tag

i want to call page content using $.get method that will call a page(.ascx) and render page content into div in current page(aspx) i have used something like this... didin't work.. <script type="text/javascript"> function calltemp1() { var result = ''; $get("/Views/Templates/_Temp1.ascx",result) $("#RecentstoryDiv").html(result); ...

Execute client Javascript after RadAjax callback.

I have a web form that uses the Telerik RadAjaxManager (via RadAjaxManager proxy) to update a RadGrid based on filter criteria. When the criteria change, I rebind the grid, but now I also want to resize the grid on the client, using JavaScript. How can I cause my JavaScript to be executed when I rebind the grid? The JS code already ex...

Ajax extension in .NET 2.0 ?

Question: If I want to use ajax extension with Visual Studio 2005, i have to download ajax extensions. Now here's my question: Do I need to do this only for development, or do I also need to install something on the production server if I make my project use ajax extensions? ...

How do you refresh an advert served by Google Ad Manager after a javascript event (eg ajax postback) has occured on a webpage

I want to be able to re trigger the loading of an embedded admanager advert on the page after a user has clicked an ajax link on the page (effectively showing them a new page, so it's a genuine attempt to show another impression). Preferably I want a solution that doesn't put adverts in an iFrame, uses jquery to perform the client side ...

referencing a WCF web service

Our current project uses an asmx service. We want to keep this service for now, but would like to add an additional wcf service for ajax calls. I followed a procedure i found online to set up the service and it works fine with javascript in aspx files within that particular project but i'm unsure how to reference it in javascript files ...

simulating a synchronous XmlHttpRequest

I've read some of the other related questions (http://stackoverflow.com/questions/214491/pattern-for-wrapping-an-asynchronous-javascript-function-to-make-it-synchronous & http://stackoverflow.com/questions/518880/make-async-event-synchronous-in-javascript & there may be more), but I just want to be sure to exhaust all possibilities. M...

What to avoid in php/mysql/ajax when relying on heavy reads/writes

Hi, i was wondering what the main things were to avoid when creating an webapplication that relies on heavy reads and writes every second. Think of online gaming where money is involved. For example you have an javascript that constantly updates the browser(1), There is a cronjob running that updates the db(2), There is user input subm...

How do I create and read an xml file with jquery

I know there is alot of information to do this in the internet, but I got very confused. I want to create an xml file and send it with Ajax to the server. I will need to reseve and xml file back. This is an example of the XML file I will need to create. <?xml version="1.0" encoding="UTF-8"?> <data> <item>dkfjgn</item> <item>sd...

AJAX request status returns 0

when i make a AJAX request with this code, it returns the status as 0. what did i do wrong? Also, this code is only designed to work in Firefox for various reasons. var ajax; function connectToOtherServer(server,port,userid,password){ ajax=new XMLHttpRequest(); ajax.onreadystatechange=validateConnection; params='userid='+encodeURICom...

How can i get around the same origin policy?

I need to use AJAX to get the content of another page located on a different server from the one the AJAX is loaded from. The AJAX needs to send a POST request then return the result. how can i do this? ...

asp.net AJAX Modal Popup Extender - Cancel button doesn't work after postback

The panel which my modal popup extender "shows" has an update panel within it, to handle valiation. However, after postback, the close button doesn't seem to work. It just closes the panel butit leaves the modalBackground [greyed out]. <ajaxToolkit:ModalPopupExtender ID="ActivateModalDefault" ...

Abort ajax requests before sending next one? (jQuery)

Hi there, I have a report in our internal system that can return anywhere from 1 days data to a full years. Because of this, the report can take 0.5 seconds or over 45 seconds to generate everything. The report lets you modify a bunch of filters, all which when modified, fire off an ajax request very simply: var ax = $.ajax({ type...

AJAX Controlled Multiple Select Box Strategy

I've done some reading on AJAX, and would like to create a listbox, that controls what is displayed in a separate textbox located within the same form. The backend of the website is handled in php, and the possible values and whatnot is stored within the MySQL database via php. What's the best way of obtaining the listbox values as well ...

reloading content via jquery load();

i am trying to develop a site............ my problem is that how can i reload only php page according to the tab pressed........!! please do note that i have a single div for out put content.........!! if i put a setInterval() jquery function than it reloads only the first page if any of other tabs are pressed........!! and the page goe...

how to clear the textbox value of asyncfileupload .. ?

There is one button(MyButton). OnClick of this button a modalpopup(MyPopup) appears with one asyncfileupload ajax control, Ok button and Cancel button. The browse functionality of the asyncfileupload functionality is working fine, No problem. But after postback, if I click the MyButton again, the popup appearing with the previous path i...

issue in ajax modal pop up control when used witih listbox control[which is of a javascript]

hi, i am using ajax modal pop up control. it works fine with other control. when use with listview control [ this is an control where i have a javascript code once user clicks on the listbox listof items unser it populates. but now the issue is that what ever the values that are there in listbox control are show b...

Prototype Ajax.Updater Eval Javascript Functions

I have this sample page: <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>Ajax Page</title> <script type="text/javascript"> function ajax_hello() { alert ("hello"); } alert ("Hello from JS"); </script> </head> <body> This is the Ajax page. <a href='#' onclick='ajax_hello();'>Click here to fi...