ajax

How to get specific row text field value using php and jquery?

Hi i want to do the update function where each staff balance is listed in a row of the table. When the form is submit, it will only submit the specific row. Something like this. Preview I am newbie to jquery, can someone give me a direction? <table id="rounded-corner"> <thead> <tr> <th scop...

Javascript/jquery to download file via POST with JSON data

I have a jquery-based single-page webapp. It communicates with a RESTful web service via AJAX calls. I'm trying to accomplish the following: Submit a POST that contains JSON data to a REST url. If the request specifies a JSON response, then JSON is returned. If the request specifies a PDF/XLS/etc response, then a downloadable binary ...

How to pass an array of strings from PHP to Javascript using $.ajax() ?

I have a PHP script that retrieves names (strings) from database. I would like to pass this array to Javascript using $.ajax(). I cannot understand how should I encode the array in PHP and then decode it in Javascript. Could someone give an example code for this ? Thanks a lot !! ...

DOM exception thrown when the network cable is removed.

The exception NS_ERROR_DOM_INVALID_EXPRESSION_ERR is being thrown in the web application when the network cable is removed. The web app constantly sends and receives message from the server. Can anyone tell what could be causing this error and how to fix this issue? ...

Ajax response always coming up undefined

Here is my JavaScript code: $('check_username').addEvent('click', function(e) { var req = new Request({ url: 'Namecheck.php?name='+$('user_name').get('value'), method: 'post', onRequest: function() { alert('Namecheck.php?name='+$('user_name').get('value')); }, onComplete: function(response) { alert('The response is the...

How to pass textbox value to another script on link click event.

I have a form like this: one.php <form id='myFormId' name='myFormName'> <input type='text' name='myTextField'> <a href='two.php'>Show Value</a> </form> Question: I want to pass 'myTextField' textbox value to two.php and want to echo it on screen. I can't use submit button and also can't submit the form. Is there any trick ? Tha...

How to make a post method ajax call by passing the entities in javascript?

I need to make a post ajax request, where in i need to pass entity classes as parameter. for eg: [OperationContract] [WebInvoke(Method = "POST", BodyStyle = WebMessageBodyStyle.Wrapped, ResponseFormat = WebMessageFormat.Json )] public bool SaveEmployee(Employee employee) { //inserting the d...

rails3 rails.js and jquery catching success and failure of ajax requests

Previously, in rails 2.3.8 i used the prototype-helpers link_to_remote and form_remote_for (amongst others). These had the option :update as follows: link_to_remote "Add to cart", :url => { :action => "add", :id => product.id }, :update => { :success => "cart", :failure => "error" } (an example from the documentation). This exam...

Replacing asp.net ajax controls with jquery

I have a solution that uses accordian and tab controls , amongst others. Is it worth swapping these out and using the jquery controls. What are the benefits. Is it best practice to load one tab at a time with data? Thanks ...

jQuery.Load() not triggering Request.IsAjaxRequest in ASP.NET MVC2

Hi I'm using the Jquery full calendar plugin, and i want to be able to click on an event and the details of the event to be populated via AJAX into a div with the id of #details. here is my controller action that i'm trying to load. When debugging, the action does not consider the incoming request to be AJAX and returns the full view ...

What is to be included when we want to create a login form validation with the help of ajax with struts 1.2?

I want to use the ajax tech to get the login form validation by the user. I am new with AJAX.So could you help me out? It's urgent reply as soon as possible.Bcoz i am working on project. ...

communicate between two web browsers instances in jsf

HI I need to embed two web browsers in one form of a windows application (design wise, I have to separate them). I also need to "communicate" between both - when the user clicks on a button in one web control, I have to disable a component in the other one. I thought of using ajax:poll and push from primefaces, but I think that it's t...

How do I auto-select the text inside a textbox that is part of an AJAXContolToolkit Popup Control?

I've built an ASP User Control that implements the AJAX Control Toolkit PopupControlExtender. It pops up a div containing a text box, and an OK/Cancel button. The idea is that the user can click a "rename" icon, which displays the popup with a message saying "Please enter the new name" and a text box with the old name already populated ...

How can I make ALL links load pages dynamically? (Even links in dynamically loaded pages)

So I have a script like this <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.min.js"&gt; </script> <script type="text/javascript"> $(document).ready(function(){ $("a[href*='http://']:not([href*='"+location.hostname+"'])").attr("target","_blank"); ...

Download a file using Ajax

Hi All , I have written to make a zip file , now I want to trigger that servlet using Ajax and prompt the download dialog to the user , i can trigger the servlet but i dont know how to get the save dialog. Thanks in Advance . Vinay ...

Checking to see if AJAX response is empty and other problems

I'm currently trying to check if the response I'm getting is empty. Now what I think will work is below: $.ajax({ type: 'GET', url: '<%=Url.Action("FindTransaction", "Calls") %>', data: { companyID: $('#CompanyDDL').val(), storeID: storeNo, tranDate: $('#Tr...

jQuery load default page issue

I have this page which loads quotes. It has a search form wherein if the user types in the search keyword, it will load the results via ajax. Now, if I click on the link which should load the default page with the Quotes, instead of the search results page, nothing happens. If I am on the home/default page itself, and click on the link...

Coda Slider: Slide panel plus an external div elsewhere on page

I'm looking for an easy solution to show/hide/slide (whichever is easiest) an external div elsewhere on my page at the same time my corresponding coda panel slides into view. So essentially I am trying to slide a panel into view while also sliding another panel further down on the page that is NOT in the same container. I'm using this s...

Submitting a form with JQuery Ajax results in multiple requests (and submissions)

Hi. I have run into an issue with JQuery form submissions and have found no answers anywhere . If someone could shed some light on this, it would be highly appreciated. The issue: The first time I submit the form, it works fine. But if I submit the same form a second time, it sends 2 requests, 3 requests the third time, and so forth. ...

Redirect to page with loading animation

I already know this solution. (transfer the slow loading page to a loading-interim-page which shows the animation and then redirects to the actual page) But I would really like to solve this without a redirecting page. Any clue how ? The redirect will be triggered from codebehind... ...