ajax

Tinymce.init interferes with windows authentication

I am retrofitting an intranet application to uses integrated windows authentication. The application is built in asp classic/vbscript. The application authenticates users by obtaining their username from the Request.ServerVariables("LOGON_USER") method, and checking the name against a list of registered users in a MSSQL database. This ...

response.Text is undefined when returning variable

Not sure if the problem is related to Ajax or something silly about JavaScript that I'm overlooking in general, but I have the following script where fox.html is just plain text that reads, "The quick brown fox jumped over the lazy dog." : function loadXMLDoc() { if (window.XMLHttpRequest) {// code for IE7+, Firefox, Chrome, Opera, Sa...

Ajax to read updated values from XML

I am creating file upload progress bar. I have a CGI script which copies the data, and here I increment the progress bar value by ONE after certain iterations. I am storing the incremented value in XML file (I also tried using plain text file). On the other side I have ajax reading incremented value from xml and depending on that it incr...

ajax aspx example

Can anyone provide a simple use of AJAX in a vb aspx page, so I can just reload a part of the page and not have to reload the entire web page? ...

ASP.NET AJAX Validation Controls

I use the ASP.NET validation controls in an ASP.NET web forms environment. Is the better approach to keep all of the validation rules server-side, such as using AJAX to validate a field, without posting the whole page back. I found one control called ValidatorCallout ( http://www.asp.net/ajax/ajaxcontroltoolkit/samples/ValidatorCallout...

Dynamic bind in Lift framework

I am newbie to Lift and I have a question on using bind, Ajax in Lift. I want to create three dropdown menus using Ajax in a dynamic fashion. I use "Address" as an example to describe what I am trying to achieve. At fist, I only have to display "Country" menu with default set to "None". The user at this point can choose to submit if she...

Javascript / jQuery $.get(url) Title Parsing not Working

Even though the following works: http://jsfiddle.net/N7D5r/ My attempt at using the same code does not correctly get the titles. They return null, for whatever strange reason: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt; <html xmlns="http://www.w3.org/1999/...

Check if there are any AJAX request alive

I do a lot of AJAX Requests at the same time. I need to know when EVERY requests are over. How do I check that? Thank you! ...

The method Open of XMLHttpRequest

What's the difference between Sync and Async in the method open(method,url,async) in AJAX. ...

Browser not handling exception from AJAX panel, ASP.NET c#

Hi, i am having trouble catching errors in an AJAX panel. Even when i throw an exception in the c# code behind the front end completely ignores it. Here is the code i have setup, can anyone see why? I ideally want to show a js alert window on error. Code Behind: protected void btnX_Click(object sender, EventArgs e) { throw new Ap...

MooTools Problem in IE with Request

I have this class method in a mootools class: getData : function(){ var r = new Request.JSON({ url : this.container.getAttribute('data-url'), method : 'post', onSuccess : function(j){ this.cards = j; this.prepareQuiz(); }.bind(this) }).send(); }, In any browser aside from IE this works fine, but in IE...

Passing a Variable into jQuery AJAX

I'm stuck in a rut. I hope some one can help. Basically, I am building an AJAX mobile web app with jQuery. I am able to parse a specific XML file just fine, but I want the option to parse other XML files based on the link they were clicked on and load them on the fly into the same DIV or UL. So: click on Link1, loads XML1 click on Lin...

JQuery never reaches success or fail on aspx returning json.

Basicaly I have my aspx page doing <% Response.Clear(); Response.Write("{\"Success\": \"true\" }"); Response.End(); %> My JQuery code is function DoSubmit(r) { if (r == null || r.length == 0 || formdata == null || formdata.length == 0) return; for (i = 0; i < formdata.length; i++) { var fd...

asp.net updatepanel inside hidden panel possible bug

Hi The javascript generated by the asp.net SciptManager control seems to have a bug and cant handle hidden UpdatePanels. A javascript error is thrown when a control within one updated panel tries to make another update panel visible. Is this a bug with ASP.Net ajax? And does anyone have any ideas how to get around this? heres is an ex...

PHP OO vs Procedure with AJAX

I currently have a AJAX heavy(almost everything) intranet webapp for a business. It is highly modularized(components and modules ala Joomla), with plenty of folders and files. ~ 80-100 different viewing pages (each very unique in it's own sense) on last count and will likely to increase in the near future. I based around the design arou...

Pass selected option to remote_function with Ruby on Rails

I have a list of options generated by the following Haml code. %select#tags{:onchange => remote_function(:url => {:action => :display_tag_cart}, :with => 'Form.Element.serialize(this)'), :prompt => 'Choose a Tag'} %option{:value=>""} Choose a Tag -Tag::TAGS.each do |t| %option{:value=>t.id} =h t.name For...

Cross domain ajax back button

Hi. I was searching for a way to implement back button in an ajax application (nothing unusual) as there are plenty of articles that cover this topic. But... But of course there are many restrictions. So my problem that is still not solved is regarding back button in IE6,7. More specifically it is regarding back button when you displa...

How to pass object in :with field for a link_to_remote call

I have an object elem that I'd like to pass to the remove_tag_from_cart method. Here is my attempt: -counter.times do |c| -elem = @tags[c] #{elem.name}#{link_to_remote image_tag('x.png'), :url => {:controller => 'questions', :action => 'remove_tag_from_cart'}, :with => {:tag_to_remove => :elem}} The :with clause isn't working corr...

ajax strange error with sending multiple parameter

hi everyone, please check with me where is the error in this ajax code to send 2 parameters: var xhr = getXhr(); // On défini ce qu'on va faire quand on aura la réponse xhr.onreadystatechange = function(){ // On ne fait quelque chose que si on a tout reçu et que le serveur est ok if(xhr.readyState == 4 && xhr.status == 200) ...

posting form with file upload

I am having trouble with uploading a file when using jquery. I have the following HTML in a form. <fieldset> <ul> <li> <div class="field"><input size="35" type="file" name="formFile" id="formFile"/></div> </li> <li> <div class="field"><input size="35" type="text" ...