ajax

Ajax Control Toolkit CalendarExtender not closing when form body clicked.

I am trying to simply have the calendar close when a user clicks anywhere on the page. I have downloaded the most recent version of the toolkit and I can not get this functionality to work. I am not sure if I am missing a property but the functionality works as expected on the asp.net sample toolkit page. Here is the code: <asp:Toolki...

How to execute another action after generated by ajax with jQuery?

I have this ajax function with jquery. (http://pastie.org/798788) The outputs is the following. <div class="content"> <h1>Latest Messages or Task To Do</h1> <ul style="display: block;" id="message_ul"> <li class="86"> <div class="listbox"><span class="user"> <strong>Administrator</strong></span> <span class="date">2010-01-...

ajax memory leak

I am experiencing a slow memory leak in both IE and Firefox using a combination of ASP.NET AJAX and jQuery. My scenario is very similar to the one described here : http://stackoverflow.com/questions/276087/preventing-ajax-memory-leaks except using jquery and asp.net AJAX, not protyotype: I have a webpage displaying data in an UpdatePane...

PageRequestManagerParserErrorException nightmares, fear

Hi all, I get PageRequestManagerParserErrorException error in my app: Sys.WebForms.PageRequestManagerParserErrorException: The message received from the server could not be parsed. Common causes for this error are when the response is modified by calls to Response.Write(), response filters, HttpModules, or server trace is enabled. Det...

Drupal - Redirect success message to shadowbox

I've got a typical webform that submits using the ajax module. How can I redirect the success message to a shadowbox? ...

Reference calling DOM element in jQuery.ajax() with dataType 'script'

Let's say I have the following scenario: <form action="/something.php" method="GET">Click me</div> <script type="text/javascript"><!-- $('form').submit(function(e) { $.ajax({ url: this.action, method: this.method, dataType: 'script' }); return false; }); //--></script>...

Which language offers the most portability in terms of tabbing a webpage menu?

This may be a subjective question, I am new here so keep that in mind... I have searched and searched and been unable to determine what the best way is the do a tabbed menu for a webpage. The webserver is Unix based, so anything .NET is out of the question. It seems that AJAX/javascript is the 'nicest' way to go, but I've heard there ...

jQuery (or maybe the browser) is cache-breaking ajax loaded scripts

I'm loading a view page via an $.ajax() call with jQuery. I'm explicitly setting the "cache" option to true. Nowhere in the application are we using $.ajaxSetup() to specify otherwise. Here's the ajax request setup: $(".viewDialogLink").click(function() { $.ajax({ url: $(this).attr("href"), dataType: "html", ...

Understanding JQGrid column width behaviors

I have a tree grid with many columns, all with specified width. And boy, it looks terrible since headers are out of synch with columns below, even if I have short data in them. Specifically, if column Header title is shorter than this column width, Header shrinks down to the the size of text in header. How can I make header be exactly ...

Javascript AJAX failing when put in to a function

I've written the following code to get JSON data with a POST request. $.post("http://example.com/songs/search_api/index.php", "data[Song][keyword]=Stereophonics", function(data){ /*$("#results").append(data);*/ alert("test"); var songdata = JSON.parse(data); //$("#results").empty(); ...

Rails and jQuery producing 406 error

I am getting 406 Not Acceptable error when submitting my form with jQuery. I have tried the common fix found on the web: jQuery.ajaxSetup({ 'beforeSend': function(xhr) { xhr.setRequestHeader("Accept", "text/javascript"); } }) This hasn't fixed the problem. request.format outputs text/html. I have been racking my brain all d...

UpdatePanel wrapped around a user control

I have a user control which contains some buttons and a placeholder. Those buttons cause controls to be added/removed from placeholder. Everything works fine. Now I want to put this user control in a page, and wrap it in an updatepanel like so: <asp:UpdatePanel ChildrenAsTriggers="true" ID="UpdatePanelFoo" runat="server" ...

Blog post comment without page refresh (ajax)

Hello everybody, I'm trying to make comments on my page just like the ones in wordpress. When you press post comments your page updates without reload. How can I do that? I understand I have to use jquery post, and I've had several attempts but for some reason my web page keeps reloading. I have a form like this : <form name="postForm...

Javascript Dojo AJAX (XHR) Requests with Custom Headers in Firefox

I'm trying to make a request using dojo.xhrGet to grab some XML data from a server. I'm using dojo 1.4.0. The server requires that I pass credentials through a custom HTTP header called Myauthtoken. Everything works fine in Safari. The code pops up a dialog showing [object Document]. But in Firefox, the dialog shows null. Somewhere ...

How to "stream" json from server to client using javascript

I'm familiar enough with Ajax and JSON that I can send a request and get a parse a JSON request. Ideally I'd like to receive multiple response to periodically update a progress bar. This way clients can have a positive feedback. I've heard of JSON streams but have not found a good resource on how to implement this. Does anyone know of a...

jQuery deep linking & ajax loading in multiple containers (sub containers)

Hi! I currently developing a site and have bumped into a problem.. (ajax loading stored urls) Thought someone could help.. First here is sample page layout: <div id="main-container"> <div id="top-menu"> <a href="/link1" rel="ajax" />Link 1</a> <a href="/link2" rel="ajax" />Link 2</a> </div> <div id="content"> <div id...

Bookmarkable URLs after Ajax for Wicket

There is this well-known problem that browsers don't put Ajax request in the request history and cause problems for bookmarkability, forward/back button, and refresh. Also, there is a common solution to that problem that appends the hash symbol # and some additional parameters to the URL by using Javascript window.location.hash = .... ...

Is there a way to see a trace of the executed JavaScript in Firefox without using Firebug?

Update: Thanks for the responses so far. To clarify, I'm not really looking for a logger, but more of a debugger/tracer -- I want a dump of every piece of JavaScript that executed and when it executed. I tried Venkman earlier today but it isn't very stable. My theory is that something is going wrong deep in the Dojo code, or even the Fir...

returning a4j:included content using bean-generated rich:dropDownMenu

I may be missing a couple of points, but I've hacked together a jsf/richfaces app and want to be able to do the simplest ajax-based nav: main page contains ref to my backing bean's menu <h:form> <rich:dropDownMenu binding="#{PrismBacking.nodeMenu}" /> </h:form> this refers to the code for the b...

jQuery AJAX POST New Line Problem

So on our site we currently have a textarea for commenting on certain items. The site uses AJAX so the user can press the button and see their message fade in (Imagine a Facebook style commenting.) The jQuery/AJAX: $(function() { $("input#comment_submit").click(function() { var comment = $("#comment_box").val(); var dataString = 'comme...