ajax

cfajaxproxy with url rewriting

Hi, I've been able to successfully implement the cfajaxproxy tag where the cfc in question is located in the root directory of my site. When a page that is IN the root directory of the site, but is accessed by a rewritten url (eg mysite.com/one/two/ -> mysite.com/two.cfm), the javascript generated by cfajaxproxy does not point toward ...

cross-browser right click plugin with jquery?

i've got a context menu plugin that will show a context menu when right clicking an element. but that doesnt work on ajax embedded elements. so i have to use ajax live that trigger the context menu function when it senses a right click. is there a plugin for jquery detecting right clicks? ...

Getting wordpress to play nice with AJAX

Hey all, How do I use WP functions from AJAX calls. I've looked at the documentation for creating plugins that use ajax, but I couldn't figure out how to apply that to regular pages and posts. Is there an easy way to just load everything without using their API? I have my way I like to do ajax and would rather not use their stuff. Th...

Ajax post via https from an http page

I have an ajax call that really needs to be https. However, the page that it is being called from is http. The browser complains about restricted URI denied, presumably due to the same origin policy. Are there any known workaround for this? ...

In PHP, what is a fast way to search an array for values which contain a substring?

I have an array of street names sorted alphabetically that I have gathered from a web service. This array exists on the server side. On the client side, a user starts typing the name of the street he lives on and AJAX is used to return a list of the closest match to the partial street name, plus the next 9 street names in the array (the...

FileUpload Doesn't Work When Nested In UpdatePanel? C#

<asp:UpdatePanel ID="UpdatePanel1" runat="server"> <ContentTemplate> <asp:FileUpload onchange="clickTheButton();" ID="FileUpload1" runat="server" /> </ContentTemplate> <Triggers> <asp:AsyncPostBackTrigger ControlID="Button1" /> </...

Sending big data to server, Cross-Domain

I'm trying to send chunks of data from many different servers my app is on, to mine. Using some dummy image source, passing my data as a GET query. (img.gif?aaa=xxx&bb=yyy...) the Query is many times too long and gets cut. is there some better way for me to send the data cross-browser? ...

automatic web shop creation

In one of my prject i need automatic webshop creation. it will similer to bigcartel.com. can anyone hint me what to do? is there any tutorial available? Thanks for your comments. regards Tarique ...

jQuery 1.4 ajax callback, html() stripping external JS from response

Using jQuery 1.4 I've come across an issue with external JS in an ajax response being removed when accessing it using html(). I'm creating an endless scrolling effect for a tumblr theme using an ajax request to load the next page. Tumblr outputs JS in audio and slideshow posts to render <embed> elements (Flash players) to show the conte...

Adding ajax loading gif to script

Hi one and all, Thanks for looking, I have the below script that updates a series of drop down boxes, populated depending on the users previous answer. Data comes from SQL tables. I was wondering how I could add an Ajax loading gif to each drop down while the data is loading. I hope this makes sense, if not please ask. <script language...

ASP.NET memory problem when changing culture

I have a strange problem with ASP.NET. Several sites on my web server run the exact same application. The application has a page that contains a Tab Container from the Ajax Control Toolkit which in itself contains a Calendar control. If I set my culture in the web.config to be: <globalization culture="en-GB" uiCulture="en-GB" /> Then...

jQuery AJAX Fileupload crossbrowser support

I'm currently working on an AJAX file upload script, which works like a charm in Firefox but doesn't work in IE. this is the basic HTML I'm using: <form > <input type="file" name="FileFields" id="FileFields"/> <button type="button" onclick="uploadFile();" id="uploadButton">Upload</button> <ul id="files"/> ... other form...

ReorderList Problem with 2 ajax controls on the same page

Hi there, I have a page with a ajax accordion and a ajax reorder list. both have inputs with ReqiredFieldValidators. there 2 insert buttons for each of them. I use javascript to disable ReqiredFieldValidators when user use each of them. for eaxmple if user is trying to add data to accordion, the javascript function disbales the ReqiredF...

How to make a fullscreen iframe with opaque background?

I am able to create an iframe which occupies entire screen. But I am not able to make the contents of the background hidden, In other words, I want an iframe which is opaque. I am currently trying like this: <iframe name='myifrmae' allowtransparency = 'false' background= '#FFFFFF' id = 'myiframe' src = 'main.html' style='position:abs...

a strange $.get()

Hello everyone, I have this code, a simple jQuery GET: $.get(url, params, function(){ function_call() }) I wonder why the function_call() is never executed. The server at url is up and running and changing the function to $.ajax() shows no errors (the error option is not executed), but it's not working. Any clue? param...

Simple AJAX query in chrome/safari providing not-so-simple debugging situation.

Hi, I have a very simple jQuery/ajax script for a membership driven website. The script just checks to see if the user entered info, validates it against my database and returns 1 for a failed login attempt, and 0 if the username/password match. The function works perfectly when I run it w/o calling it from ajax. Firefox: everythin...

JQuery: Having trouble properly displaying table

Hello! Recently I've been working on a web application that is using JQuery to parse the JSON and display it in the HTML view. I cannot figure out why the table the following code outputs ends the tag immediately after the first .append method. $("document").ready(function() { $.getJSON("http://localhost:1909/encoders", function(d...

Open-source client-side JavaScript-based 2D data plotting?

I'm wondering if there are any 2D graph plotting libraries that run on the client side using JavaScript? The basic idea is that you could put up a plot in a browser and the user can change things like X and Y scales and limits, zooming in and out, without having to constantly reload the web page from the server. The data itself would b...

Update autoselect value option dynamically using Ajax.InPlaceCollectionEditor

I'm using Scripaculous' in place collection editor to present the user a with list of customers to assign to a contact dynamically. I am passing a value parameter as detailed in the documentation so when the select is generated it will auto-select the current associated customer (if there is not one already the default is provided.) Th...

AJAX Layout Blues: Rails renders full HTML where partial should be

NOOB here. I'm trying to render a partial (refresh the results when someone clicks on a check box) but for some reason rails keeps loading the full page where the partial should be! I know this must have something to do with a misplaced or nonexistent :layout => false, but I have no idea where to fix it. THanks! Code: Controller: ....