ajax

is there a better way to show loading message with jquery ui tabs ?

using jquery ui tabs, when you load a tab in ajax, the tab changes message to say "Loading . ." i think this is a little subtle. Is there anyway you can do something in this content area of the tab similar to what block ui does when you are loading a call in ajax. ...

Jquery functions. Should I hold it in one file or is it okay to intersperse it?

So, I have a lot of php files where I use jquery functions. Do I need to create a seperate .js file for all jquery functions or I can put it together with php files or it actually doesn't matter at all? ...

Using jQuery to auto-populate a form field from another form field

Has anyone used jquery to take data from one form field and put it into another? I'm trying to create a form that when one text input is filled out a second is auto-populated with the first letter of the word that is in the first text input. I'm thinking I can limit the second text input to one character to help get the desired result, b...

Ajax create div dynamically+javascript

Greetings, The question relates to ASP.NET MVC I am creating some divs dynamically using AJAX (some views render dynamically). Inside these views a have some JS code. When user click on link i would like to open dialog box with google map. However, because these views are rendered dynamically it does not work because js code is not inj...

How can I make an AJAX link work once it is moved out of the iFrame?

Hi, I am using an iFrame with a form that return some content with an AJAX link. I am then moving the returned content out of the iFrame into the main page. However, then the ajax link does not work and the error "Element is null" is created once the link is clicked. How can I move content from the iFrame and still have the AJAX link ...

Why updatepanel triggers another updatepanel?

I have two update panels at my ajax page. This is first time I'm using updatepanel and I don't know what is wrong. I think only btnFilter's Click event must trigger the second update panel's content but changing combo values (which also hides/unhides btnFilter button) makes second updatepanel change content (at least I see transferred da...

ajax to populate an input type text

I have an <input> of type text that I want to populate with a value from a database using AJAX. First, I define my text zone like the following: <td><input type=text id='st' value=" " name='stname' onclick="donnom();" /></td> In javascript, I do the following: xhr5.onreadystatechange = function(){ if(xhr5.readyState == 4 && xhr5...

how to populate input type tesxt with ajax

hi, I want to know how can i populate a value of input type text with ajax. Thanks. ...

Fetch and load a whole page with AJAX

I realize that it's generally not a good idea to do this but the reason why I want to is because it's a really heavy page and I want to show the user progress of the download and when it's done load the page. I can either do this with some kind of spinner but is it possible for me to show the actual progress? Can I see how much and what ...

How to parse this xml document?

Having gotten such a XML document with the help of ajax (var data = request.responseXML;), how do I parse the contacts?: <?xml version="1.0" encoding="UTF-8"?> <Alladresses xmlns="http://somedomain.org/doc/2007-08-02/"&gt; <Owner> <ID>gut74hfowesdfj49fjsifhryh8e8rta3uyhw4</ID> <Name>Mr.Bin</Name> </Owner> <Contacts> <Person> ...

Synchronous calls with jquery

Hello Guys, Can i make use of jquery ajax API and make a synchronous calls? Best Regards, Keshav ...

Get Xml Data Cross-Domain with JQuery

Hey guys, is there a way to load XML Data Cross-Domain with JQuery (= client side)? $.get('http://otherdomain.com/data.xml', function(xml) { } The above doesn't work - do I have to rely on JSONP, or is there a way to load XML? ...

how to empty() live ajax?

i have $("#sendbid").live("click", function() { //here will be the ajax //after success: $("#personaltab").empty(); }) the personaltab is in the original code. the content is created on ajax and then when the user continue i want to check with live and empty the div not working - i have tried it all!!! ...

How can i get Plain text from Ajax Editor?

I need to get both plain text as well as html text from Ajax Editor. I'm able to get the html text and not able to retrieve plain text. i'm not supposed to eliminate html tags from the editor to retrieve plain text. Is there any property, which gives plain text from ajax editor? Sample code from my app: i'm able to get rich html te...

Why does Firefox + My code Destroys FireFox refresh

I am soo angry right now. I lost hours and i dont know why this happens. Its a semi rant but i'll try to keep it short My code would not work, even after refreshing it was broken I fixed my code or so i thought because it stops working without me changing anything (you would think i am imagining this...) I somehow decide to make a new ...

Onreadystatechange callback behaviour for XMLHttpRequest

Hello Colleagues, If XMLHttpRequest is used with asynchronous mode, then are the onreadystatechange callbacks for 0,1,2 states called in UI thread only or in the background thread? And is it possible that this behaviour could be different in different browsers? Best Regards, Keshav ...

ASP.NET MVC 2 Post AJAX from from JavaScript

Hi, I got control with strongly typed View, with Ajax.BeginForm(). Now I would like to change submit method from <input type="submit" id="testClick" value="Submit" /> To some javascript method DoSubmit(). What I tried is : Invoke click on that submit button Invoke submit on form ('form1').submit(), document.forms['form1'].submit...

parent.history.go(-1) not triggering event in opera browser.

...

Using rails plugin auto_complete

Hi, i am using the rails plugin auto_complete http://github.com/rails/auto_complete. I have followed the examples, and its all working well, but with one small problem. After submitting an auto completed text field, and then hitting the back button, the text field does not retain the previously selected value. Does anyone have a soluti...

how to achieve drag and drop folder to some region or area in asp.net c# ..?

I want o upload the folder to server .. for that when user drag and drop the folder the i will get the path at that time ui will zip it uploadedd to the folder.. ...