ajax

AJAX Firing OnUnload Twice

All, thanks in advance. I'm using the ASP.NET AJAX Control Toolkit to create 2 CascadingDropDowns. The problem is the base OnUnload is firing twice when I load the page. Any idea how to stop this? See code snippets below. Update: I've determined a workaround but if anyone knows of a way to suppress, I would be interested to hear! <%@ ...

How to send the dyanmically generated <tr> to the next page

I am implementing a shopping cart site. When the user add the item, it will automatically add to cart with the product name and the price as a div. the code is below <div class="food_menu_add"><a href="#" id="ad"><img src="images/add.gif" onclick="addcart('Sliced Orange')" /></a></div> <table id="placehold"> </table> function addcart(n...

Why does ModalPopupExtender not work when I move its target panel's style from hardcoded to CSS?

I have a ModalPopupExtender set up on a page and working great. It's tied to a panel with some style attributes hardcoded into its tag. I'm trying to get all my styles out of my markup into CSS, but when I move these styles into a class, the popup fails to work. What's going on? Styles in CSS: .class1 { border: solid 1px black; ...

Why is jQuery not getting the returned json info from my ColdFusion CFC in this code?

I have a CFC that cycles through a folder and deletes any files in said folder, sort of a 'clean-up' function after an image is uploaded and saved. In that same CFC I have a function that updates text in a database. Bot functions are fired through a jQuery post. The text function returns some a confirmation to my jQuery function, no prob...

PHP form to excel mailer

While I do understand php, I'm more of a sysadmin than a programmer. Add that I really hate HTML and never used AJAX nor javascript :) I'll have to do a php page that gets data from an HTML form and sends it as an Excel attachment via email. Of course I'd like to reuse as much code as possible from already-made solutions. It's kind of "...

How to free memory after an Ajax request

Hello, I have a very basic ajax slideshow on my website. On every scroll, the new images and response content continually increase the amount of memory used by the browser. I've done my research and tried all suggestions to reset the XHR object on each new request, but this does absolutely nothing to help. The slideshows are basic bu...

jQuery History Plugin Error: $.history is undefined

I'm not exactly a novice, but I can't for the life of me figure out why something so simple isn't working. I'm getting an error $.history is undefined when trying to run this jQuery plugin... http://www.mikage.to/jquery/jquery_history.html here is my page... http://hupcapstudios.com/includeTest/getit.php can anyone tell me what I'm ...

Facebook App, Ajax, and Internet Explorer

I have been playing around with facebook for the past few days and have written a simple app that asks the user a question about a random friend. I am using ajax to change the question and I though I had it working until I tried it in Internet Explorer. Please bare with my code since I am learning :-D This work perfect in Firefox and C...

How to load iframe on top of content in a neat sticky window with jquery

Im integrating a simple chatbox application into my site, which is simply added by iframeing chat.php I dont have a static place to put this on the webpage, and I want to load the iframe on top of the site's content on the top right (with ajax), which would remain visible unless I X it out at the top. Auto-triggering the chatbox to lo...

AJAX UpdateProgress not working on server?

I am trying to show an animated image while data is loading into a gridview after a button click. It works great on localhost, but when I deploy it, it doesn't. I have searched through posts, and I have not made any of what seem to be the most common mistakes ... ie. putting the updateprogress inside the updatepanel, etc. However, I a...

Dynamic Content & SEO: Create 2 Separate Pages?

On a website, there are many pages with a component for users to leave comments. To reduce page load time and since few users use the commenting system, the commenting component is loaded via AJAX after the page is loaded. The issue: how can we get Google to index dynamic content that is loaded via AJAX on page load? Many other pages on...

How to retrieve error message from an AJAX error callback in Grails ?

I am sending the following AJAX request : $.ajax({ type: 'POST', data: $(this).parents('form:first').serialize(), url:'/myapp/comment/saveOrUpdate', success: function(data,textStatus) {insertNewComment(data)}, error: function(xhr, textStatus, errorThrown) {alert(xhr.responseText);} }) ...and my controller action looks like this ...

Cannot Pass All jQuery 1.4.2 Ajax Unit Tests With my Plug-in

I've created a plug-in that duck-punches the jQuery Ajax function. One problem that I cannot locate when running the Ajax unit tests for 1.4.2 It will not pass the two tests Ajax events with context jQuery.ajax context modification Test one has a test that always fails: function callback(msg){ return function(){ equals( this, ...

Google Search Injection

Hi I'm writing a chrome extension to inject information into google search results. The only problem is that searching is now done through ajax instead of http. This means my code is only being executed once. This is a problem because my script needs to render on each new page. The only way to make it work is by refreshing the page manua...

Jquery - .click not triggering on submit button

Well, I can't seem to figure out why this isn't working. (there is a description of the error at the bottom) <script type="text/javascript"> $(document).ready(function(){ $('#submit').click(function(){ $('input[type=checkbox]:checked').each(function(){ ajax=$.ajax({ type: "POST", url: "rollcall_submitvote.php", data: '...

Resolving conflict between multiple jQuery files

I have multiple jquery files in my project. I am using facebox using jquery1.4.2 but i need prototype and scriptacolous scripts too. I have used jQuery.noconflict(); in my code but its not working. this is the url http://mlep.com/~avalon/wordpress/ideas-and-insights/case-studies/. ...

Is it possible to detect whether text has been cut and pasted into a textbox on a webpage?

Is it possible using some sort of client side code to detect cut and paste? The only solution I can think of is to constantly get the text length and if it changes drastically over a certain period, then assume text was pasted. ...

DropDownList inside a gridview that is inside an AJAX UpdatePanel requires "WithEvents"?

I don't recall ever running into this problem, but I have a gridview inside an UpdatePanel. The gridview has a DropDownList in a templated column. The DropDownList is populated during a RowDataBound event by binding to a generic list of strings. On the ASPX side, I have the templated row setup with a AutoPostBack="True" and a OnSelect...

Could not load file or assembly 'AjaxControlToolkit'

I have this error on website today Could not load file or assembly 'AjaxControlToolkit' or one of its dependencies. There is not enough space on the disk. (Exception from HRESULT: 0x80070070) ...

How do you make a DropDownList work within a GridView inside an UpdatePanel?

I seem to lose the postback, even if i have AutoPostback="true" and OnSelectedIndexChanged="grid_SelectedIndexChanged". Anyone ever get this to work? -Romel Evans ...