ajax

Which is the new recommended standard of HTML & JavaScript?

From all those: HTML, XHTML, DHTML which one is the present standard? Which one to use for better browser compatibility? Similarly, what are the recommendations for JavaScript and Ajax? Edited: I design my applications using Aptana Studio. How to know which version of HMTL/JavaScript/Ajax it is using and how to change it? ...

Internal widget action not executing in Zend Framework when ajax is used.

Hi all, I am working on a youth group social network site and everything has gone smooth for the most part. Most problems I have been able to solve myself or google came through. This one is above me and google ain't helping! :( Can I do this during an ajax request from a view script? <?php if($this->tools):?> <?=$this->action('postfo...

Lock a button while an AJAX call.

On click of a button, I am saving the record to the database. I don't want to refresh the page, it must be handled through AJAX. I have the code for AJAX, I just want to know how to enable/disable the Submit button? ...

jQuery ajaxError() handler fires if user leaves page before page finishes loading

We use jQuery's global ajaxError() handler to alert the user of any AJAX failures: $(document).ajaxError(function() { $("There was a network or server error. Please try again later.").dialog({ title: "Error", modal: true, resizable: false, buttons: { 'Ok': function() { (this).dialog("close")...

Javascript Bookmarklet

Hi, I've coded a bookmarklet that opens a new window at a certain URL and sends some variables to a PHP using GET. The problem is I need to have it load the same php and send the same variables but inside a div this time. Could anyone point me in the right direction please? ...

jquery prepend + fadeIn

I have this code: $.ajax({ url : url, data : {ids : JSON.stringify(jsonids), hotel_id: hotel_id}, success : function(response) { $('#be-images ul').prepend(response).fadeIn('slow'); }, dataType: 'html' }); but the fade In does not work...I want the content to be prepended...

ajax solr question

i followed the ajax solr tutorial, and in step one i wrote this code. header.php: <script type="text/javascript" src="static/js/ajax-solr/core/Core.js"></script> <script type="text/javascript" src="static/js/ajax-solr/core/AbstractManager.js"></script> <script type="text/javascript" src="static/js/ajax-solr/managers/Manager.jquery.js">...

Dynamically fill entry form

I have two tables on my page and they appear side-by-side. The first one contains an entry form and the second one contains a grid that displays rows of records. When the user clicks on a row, the data related to that row must appear on the boxes of the form in the first table. I know how to call a .php file through AJAX. But when I h...

ASP .NET MVC, Unknown runtime error in IE (nested forms)

Hello! i have view which looks something like this : <% using (Ajax.BeginForm(new AjaxOptions { UpdateTargetId = "someDiv", HttpMethod = "Post")) {%> <%= Ajax.ActionLink("Add new", "AddNewItem", new AjaxOptions { UpdateTargetId = "divAddNewItem", HttpMethod = "Get" })%> <div id="divAddNewItem"> </div> <input type="submit" valu...

Using ASP.NET MVC and jQuery to render partial view/submit a form without page refresh

Hi, I'm new to ASP.NET MVC and jQuery, so I thought I'd share how I implemented loading of partial views and submitting forms in a way that doesn't require for the entire page to be refreshed. I hope to get some critique from the experts if there's a better way to do this :) All the magic is done by 3 javascript functions which I bin...

jquery ajax work in mozilla, but not IE

I know jquery/ajax in IE is a common problem. There is a lot of great advice here on stack overflow but none of it has worked for me yet. The following code works just fine in firefox, but does not in IE: $.ajaxSetup({ cache: false }) $.ajax({ url: 'FunDataService.asmx/' + funDataMethod, type: 'POST', dataType: 'html', cache: false, ...

How would you manipulate an html list on the server side?

How would you create a new html li element dynamically in the code behind (server side)? How would you access an li in an existing ul element on the server side? I need to FindControl get all li items and then add new li item. Update I'm using jquery ajax to access server side, so I must use static WebMethod. FindControl is non/static...

Incomplete rendering of AJAX UpdatePanel using OutputCache

I have a panel with certain properties nested within an UpdatePanel I use for AJAX: <asp:UpdatePanel ID="updPanel" runat="server"> <ContentTemplate> <asp:panel ID="Panel2" Width="106" defaultbutton="ibSearchSubmit" runat="server"> Usually, the panel renders correctly as follows: <div id="ctl00_Panel2...

jQuery AJAX call to web service producing empty response

Hello, I'm using jQuery to make an AJAX call to a remote server, but with the code as it is (and ostensibly correct) I get an empty response. If I change the dataType to "script," I get the expected XML in the response, but I'm unable to do anything with it. Here's some pseudocode I'm working with: function sendData(data) { $.ajax( ...

Ajax Minifier Visual Studio include all javascript files

I am using the Ajax Minifier http://www.ajaxprojects.com/ajax/tutorialdetails.php?itemid=766 and have embedded it in the csproj file for use in Visual Studio 2008 (not the free version). I have two folders, Content and Scripts, directly under the root of the project. Also, the Content folder has subfolders, and would like to include all ...

How to create a neat AJAX enabled with ASP.Net MVC web application

Hi , I am new to ASP.Net MVC. I am trying to create a google type of search functionality for my drop down list, which has a hugh amount of data. It means when I type the characters the related search items will be filtered. I am not finding the correct parth to do it in ASP.NET MVC environment.This is part of a Data entry form. The fo...

Send data to XML via AJAX jquery

I have a small script, where on change I am getting the ID of a select, I then want to take that ID and send it via "data:" through the jQuery AJAX call. I am using XML for my data and I am sending this ID for it only returns results with that specific ID? I understand how to do this with PHP, but never worked with XML and jQuery befor...

call function on link

i have one function in jquery like this $("#Button_save").click(function() { Save Command; }); this work fine with image <img src="save.png" width="16" height="16" id="Button_save" style="cursor:pointer"/> i want to call same function on text hyper link i use this <a href="#" onclick="javascript:Button_save();">...

JavaScript returned by AJAX is not working. How to work with JavaScript?

hi this is my page Test1.asp <html> <head> <meta http-equiv="Content-Language" content="en-us"> <meta http-equiv="Content-Type" content="text/html; charset=windows-1252"> <title>New Page 1</title> <script type="text/javascript"> function Alex() { var xmlHttp; try { xmlHttp=new XMLHttpRequest(); } catch (e) { try { ...

jquery - javascript variable not holding value

I'm using this code to submit a form to a php script: var valid = 'true'; $(document).ready(function(){ $("#contact").submit(function(){ $.post("process.php", $("#contact").serialize(), function(data){ if(data.email_check == 'invalid'){ valid = 'false'; //<---not set! $("#email1").addClass('...