ajax

Stop javascript onclick 'page jumping'

Can't seem to prevent the jump to top of page behavior. I've tried everything suggested here http://stackoverflow.com/questions/1631924/preventing-onclick-page-jumps What else could be done to stop onclick page jumps? Thanks. Here's a snippet of the HTML and JS HTML: <a href="javascript: return null;" onclick='javascript:getPosts("...

Another ASP.net AJAX SYS Undefined Error

Im at my wits end here. I have an ASP.net 2.0 Web Project Developed in VS 2008. The problem occurs on my dev XP system and our Windows 2000 and 2008 servers. The project uses AJAX 1 and references System.Web.Extensions 1.0.61025.0 and AJAXControlTookKit 1.0.10618.0. I am trying to use the ScriptManager and maybe the ToolKitScriptManage...

Dynamically replace html tags

I'm trying to replace some html tags which are being generated by ajax script. Ajax script generates the following ul list: <ul> <li class="odd">some text</li> <li class="even">some text</li> <li class="odd"><hr /></li> <li class="even">some text</li> </ul> I need to replace <li class="odd"><hr /></li> with </ul><hr /><ul>. I ...

jQuery AJAX $_POST on document.ready?

I'm about a week into learning PHP, jQuery and AJAX and am picking up quickly. I'm building a new video website with a comment system that I need a little help on. The site shows a list of video thumbnails, and when the user clicks the thumbnail, jquery automatically changes the html on that page to show the correct video: $(".thumb...

Symfony Method to Turn Template to String

I use the Symfony PHP MVC framework. I'm using JSON to pass an AJAX response, and I need an action's template HTML to be one of the values passed. Does Symfony have a method along the lines of renderTemplateToString() ? Even for those unfamiliar with Symfony, is there an obvious way to do this? ...

apply plugin to a new element in the DOM (jquery)

I am using the jquery tablesorter plugin and applies it to a table with id : #table my search facility requests for results via ajax and replaces the table with a new table of the same id if my code is like this : $('#table').tablesorter(); what do I add to apply to make the plugin work on the new table? (I know of jquery's live eve...

How to get container danymicly in Jquery.post.callback

I have some form containers with a form in each, form.submit function like this: $('.form-container form').submit(function(){ $.post(url,data,callback); }); callback function: function callback(data){ container.html(data); } Question is, how can I get the container, are there any way that I can pass it from submit function...

Is there a size limit to the amount of data returned by an Ajax Request?

I've been having this problem in the Chrome browser. i use jquery's ajax post. Ajax is supposed to return a really long raw html. When I do it in FF3 and IE8 it works fine. But in chrome the data seems to be truncated. ...

ajax call with jquery - parsing incoming feedback data

I got a server-side script that I call with jQuery ajax method. It can take quite a while for it to process data set. After each row of input data is processed, it prints out a "OK <row id>" to output. The content type is plain/text. What I want is to get this output in my jquery function, parse it as it comes and display some kind of ...

rails ajax render :update in controller responds slowly

Hi, I'm working on a rails project and I experienced that the response to ajax calls are slow in both development and production. Response comes around 8 sec. I observed also that i have some actions that has a response time around 80ms. The difference in the two acitions is that the slower was rendered using render :update do |page| .....

Can you get UpdatePanel working with RichDataControls?

is it possible? say with the listview? ...

wmd editor (jquery version) over ajax forms

i'm trying wmd editor over ajax. here there is the bugged code wdm code is based on openlibrary fork on github it work very good without ajax. but when i try to display editor over ajax form it doesn't load. non ajax version produce this html: <div id="wmd-container"> <div id="wmd-button-bar"></div> <div id="wmd-button-...

Reload JsonStore making OPTIONS request

Why is a call to the reload method of a JsonStore making an OPTIONS request to the server? When running under IE, the reload makes a POST request, but under FF an OPTIONS request. Can I prevent FireFox (or ExtJS) from making an OPTIONS request? ...

Ajax-based ListView never works! (how to? help?)

... i ask this mainly because when i try to use the update panel, it does not work, i've tried placing it in itemTemplate and editTemplate and both (even tho doing this would mean having to call the whole page), however i was running out of options because when i tried to place it inside the LayoutTemplate (where it makes sense to place ...

How to handle Multiple views using ajax and asp.net

Hi all, I am developing a quiz ui where multiple views will be shown to the user viz, 1. Instructions 2. Question #1 and on clicking next Question #2 and soon 3. User can at any time end the test, and so on. I have developed this using all the views on client side and transferring only data from server side using ASP.NET . But renderin...

ajax javascripts not working correctly with .htaccess mod_rewrite

The ajax div is showing error in place of loading div. When trying http://mysite.com/a1/just-testing the div shows: The requested URL /a1/text_random.php was not found on this server. I am using this .htaccess mod_rewrite RewriteEngine on RewriteBase / RewriteRule ^a([A-Za-z0-9\-_/]*)/([A-Za-z0-9\-_/]*)$ /index.php?item=$1 [L,N...

"Stop running this script" - IE for large AJAX requests

I'm using jQuery.getJSON(...) to make a call/process response for a slightly large data set. The response time being a couple of seconds is expected(there's an animated loading graphic to placate the user). All being said, the loading graphic, response, process, etc are working fine in all browsers. In Internet Explorer(6/7/8), however,...

Run ready function on a page that is pulled in via AJAX

When I call in a page via ajax that has a ready funtion on it, I can only get it to work using this method: $('div#tab1').empty().html('<img src="Loading.gif">'); $.ajax({ url: "external.html", cache: false, success: function(html){ setTimeout(function(){$('div#tab1').load('external.html')}, 2000); } }); The problem is that ...

How to make users able to upload images in a form ?

I have a classifieds website where users must fill in a form in order to put a ad. The form consists of name, password, category, specifications etc etc. Now, I need to add a image upload function into this form, which must have the following: 1- Upload up to 5 images. 2- A 'remove image link' beneath each image if the user wants anoth...

How can I modify a page after a file is finished downloading to the browser?

Hello! I've got a simple C# ASP.NET app that generates an Excel file and sends it to the browser using the Response.WriteFile() function. I would like to disable the submit button once it has been clicked and display a message on the screen to wait a few minutes, since some of the files can take a while to generate. This works great, ...