ajax

Google Chrome Extension - How can I include a content script more than once?

I've been working on Chrome Extension for a website for the past couple of days. It's coming along really nicely but I've encountered a problem that you might be able to help with. Here's an outline of what the extension does (this functionality is complete): A user can enter their username and password into the extensions popup - and...

Sending several JSON requests creates a 500 error

This JSON post works, but if I start clicking them quickly, they start returning 500 errors. I'm guessing this is because they're not queueing correctly, and they fall apart when they can't go out one by one. Is there a way to queue this in JSON? Here's my button in HAML : = f.check_box :has_sticker, :style => 'width: 20px;', :class =>...

jQuery find "div" element in returned from ajax call html content

Trying to find div element with "result" id in returned from ajax call html content with no luck. Here is my code: $.ajax({ url: url, cache: false, success: function(response) { result = $(response).find("#result"); alert(response); // works as expected (returns all html) alert(result); // returns [o...

Disable button programmatically in oracle apex using javascript/jquery

Hi Everyone: I'm trying to disable a button inside of a form region in Oracle Application Express (Apex v3) in an ajax-ified manner. I'm using jQuery to accomplish the ajax part. $('#P16_MYBUTTON').hide(); Doing a view source on the rendered page I noticed that the button doesn't have an ID even though in Apex I've given it a name...

php load page page into div ,java script not working

hey there i am using ajax to load pages into a div the page is loading fine but i cant run the php and javascript in that loaded page in server i am loading the page like this file_get_contents('../' . $PAGE_URL); in the browser i am setting the content of the div using eval("var r = " + response.responseText); and setting ...

Basic JQuery Help

Need basic help using JQuery and AJax. I have an ul <div id="topics"> <h1><a href="index.html">JQuery</a></h1> <h3>A Working Primer</h3> <ul> <li><a href="articles/includingJQuery.html">Including JQuery</a></li> <li><a href="articles/tools.html">Tools of the Trade</a></li> </ul> </div> An empty div where I like the Aja...

jQuery ajax is not working on Mozilla only

I have following script $.ajax({ type:"GET", url:"views/jquery/js/private/visual_constructor/proxy.php", data:null, timeout:55000, dataType:"xml", error:function(XMLHttpRequest, textStatus, errorThrown){ alert("error="+XMLHttpRequest+" error2="+textStatus+" error3="+errorThrown); }, success:function(res...

Is there any good solution to update page content with ajax using codeigniter?

Im currently using codeigniter to build a messaging system and im trying to stay within the MVC guidelines, however I can't seem to find a way to easily update dynamic page content without having the HTML dynamically generated in the controller; which I believe is frowned upon when using an MVC framework. Currently I am using ajax to r...

Jquery function creation vs. no library problem

I have code that relies on jquery that works here: $(function() { var referrer = document.referrer; var dataText = 'client='+client+'&referrer='; dataText = dataText + referrer; // Create the AJAX request $.ajax({ type: "GET", url: "http://www.myurl.com/project/thecollector...

jquery ajax + inline Javascript

Hi guys, hopefully this will be an easy fix.. I use this script to load content into a Div wih Ajax... $(document).ready(function() { $('.top_nav a').click(function(){ var toLoad = $(this).attr('href')+' .content'; $('.content').hide('slow',loadContent); $('#load').remove(); $('#header_resize').append('<span id="load">Pleas...

what kind of technology is node-chat using

This is the node-chat I'm inquiring about: http://github.com/scottgonzalez/node-chat How are the messages being passed to the server? websocket comet ajax? How does it work? Is what it's using scalable? Thanks. ...

Session timeout and AJAX in ASP.NET

I have a button that executes a script using AJAX. Normally when a session is still active the script will return some data that will be placed inside the parent page. If the session expired the AJAX will return the login screen which gets placed inside the parent page which looks really odd. How would I be able to detect a session time...

Javascript via Ajax

Hi. How can i start javascript via ajax ? html file <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>FusionCharts 3.0 Dashboard</title> <script language="JavaScript" src="../FusionCharts.js"></script> <script language="JavaScript" src="../PowerMap.js"></script> <script type="text/javascri...

My AJAX script is working fine in a 32 bit O/S and is giving error in a 64 bit OS

We are working on password recovery with a security question and it is giving error access denied when running on a 64-bit machine. But with a 32 bit machine it is working fine. We used AJAX script for coding.Can you explain why is this error. ...

Dynamically loading a jQuery based script and the ready event.

Hi, I'm using the ASP.NET MVC Framework, jQuery and Ajax calls to do some Partial view rendering based on client input, my issue is that some of the scripts requires by the partial view rely on the ready event, raised by jQuery. The scripts, both external, and on in the view are being loaded without issue, but as the page is already lo...

PHP: session_cookie over subdomains?

Hey guys, I'm rather new to PHP and sessions. I've actually never worked with them before and I'm having quite a few problems working with them with AJAX over a subdomain. I'm on http://www.example.com/whatever and I'm setting the cookie with: session_set_cookie_params(0, '/', '.example.com'); session_start(); if(!isset($_SESSION['pass...

Perl AJAX stripping html characters out of string!!?!

I have a Perl program that is reading html tags from a text file. (im pretty sure this is working because when i run the perl program on the command line it prints out the HTML like it should be.) I then pass that "html" to the web page as the return to an ajax request. I then use innerHTML to stick that string into a div. Heres the pr...

Populating a JSP dropdown list with folder names

How do I populate a dropdown list (in a JSP page) dynamically with all the folders present in the same directory as the JSP page, on Apache Tomcat? ...

How AJAX requests work on Android 2.0 vs. Android 2.2

I'm testing out a web page on the Android 2.0 and 2.2 emulators, and the jQuery.ajax() requests that the app makes have slightly different behaviors regarding HTTP Authentication Headers. The server I'm making requests to requires basic authentication, and the ajax requests in 2.2 send the proper auth header. In 2.0, I am debugging with...

ASP.NET:Adding a collection of controls dynamically

here is the requirement: i have a lable a textbox, and two buttons(+ and - button) on my asp.net page. so when i click on the plus button it should add the the whole collection of controls to the page(i.e. lable, textbox and two buttons). And when i click on minus button it should remove the collection. This should go on.meaning w...