ajax

Extjs AJAX Language Api

can we use google AJAX Language API with EXTjs????? i have tried example for translitration i have one html file and typemarathi.js google.load("elements", "1", { packages: "transliteration" }); function onLoad() { var options = { sourceLanguage: google.elements.transliteration.LanguageCode.ENGLISH, destinationLan...

Call web service over HTTP on HTTPS page

Hello I am having problems calling a web service using AJAX via HTTP when it's on an HTTPS page. Is this a cross-domain/protocol problem? Do I need to do the AJAX call in the same protocol as the page? Just wondering if it's the same problem as trying to do an HTTPS AJAX call when on an HTTP page, I suspect it is. Any advice appreci...

Ajax: Wont TimeOut after commenting twice?

Hello. I have this for inserting a comment: <script type="text/javascript"> function onInsertComplete(data,textstatus){ $("#insert_response").html(data); if ($("#box[value=1]").length > 0) { window.parent.showMessage("Video Is OK"); } } function DoInsert(){ $("#insert_response").html("To Sek..."); var...

html table max row and ajax navigation

Hi everybody, I have a php page that returns an HTML table like this: <table> <tr> <td>First Row data</td><td>Second Row data</td><td>Third Row data</td> </tr> <tr> <td>First Row data</td><td>Second Row data</td><td>Third Row data</td> </tr> <tr> <td>First Row data</td><td>Second Row data</td><td>Thir...

JSON data response from PHP server is empty

I'm having a hard time figuring this one out. Seems like no matter what I try, PHP always ends up returning an empty array. Here's the code of my main file(index.php): <script language="javascript" type="text/javascript"> $(document).ready(function(){ $(".ajaxlink").click(function() { callServer(); return false; //Stop link ...

Login without HTTPS, how to secure?

For a webapplication, when HTTPS is not available as a security measure, is it possible to still make the login somewhat secure? E.g.: Tokenize logins, to make repeat attacks difficult? Somehow encrypt the sent password from a HTML password field? In particular I'm using CakePHP and an AJAX POST call to trigger authentication (includ...

Should I use Ajax Timer?

I want to have a stopwatch on the site, which displays running time on the label without reloading a page. Is it possible to do this on client side? Should I use Ajax timer or smth else from .net? Website is in C#. Some links or demos would be really helpful ! Thanks ! ...

Problem loading scripts from Ajax Response

The problem is I am using get_info() to make a ajax call to Result.lasso and paste the response in div with id 'test'.I am unable to use the sendForm() function from the page where i am calling the get_info(). I have also tried using different versions of jQuery 1.1.1.3 is working fine.But i am facing the problem while using higher vers...

Debugging AJAX caching in ASP.NET MVC

Hello, I have a simple proof of concept that seems to be handling caching oddly. Here's the view: <script> $('#clickToLoad').click(function() { $.ajax({ url: "<%=ResolveUrl("~/Home/AjaxCacheTest") %>?" , dataType: 'json' ,ifModified: true ,cache: true ,success: function(sourceD...

ajax and jquery to load content

http://www.yensdesign.com/tutorials/contentajax/ In this tutorial, we see that the content of the page that is loaded by ajax slides up and slides down, but i want the content relating to the old link to slide up and content of new link to slide down.. could you please tell how to do that.. Thank you, Raj ...

Returning HTML in the JS portion of a respond_to block throws errors in IE

Here's a common pattern in my controller actions: respond_to do |format| format.html {} format.js { render :layout => false } end I.e., if the request is non-AJAX, I'll send the HTML content in a layout on a brand new page. If the request is AJAX, I'll send down the same content, but without a layout (so that it can be inser...

jquery ajax and google chrome

$(document).ready(function(){ $("#home_tab").click(function(){ $("#content").hide(); $("#content").load("php/media_body.php"); $("#content").show("slow"); }); I'm using the jquery ajax library to pull some html content from a php file on my server. The above code works beautifully in IE and Firefox but...

Loading an website content in a dialog window

Hi, I am exploring jQuery.get() ajax call to load a website content into my HTML page. The problem is that I am not too sure whether I am using the command correctly For example: I would like to load the following website content from google to my HTML page. I use the following jQuery script to do it : $.get("http://www.google.com/m...

Symfony : ajax call cause server to queue next queries

Hello, I've a problem with my application when an ajax call on the server takes too much time : it queue all the others queries from the user until it's done server side (I realized that canceling the call client side has no effect and the user still have to wait). Here is my test case : <script type="text/javascript" src="jquery-1.4....

Loading the Language Class in ExpressionEngine for PHP Scripts not loaded by ExpressionEngine

Basically, what I need is a way for a PHP script called using ajax to access ExpressionEngine's $LANG superglobal. I'm using ExpressionEngine 1.6.8 core, and jQuery for ajax. My setup is that I have an extension that uses the publish_form_end hook to add some content and javascript to the publish form. The content will be dynamically upd...

Is there a way to call a Return for a parent function from a child function in javascript?

I am having a really peculiar case. I want to return some data - data that is downloaded via ajax. So far async & sync modes don't get the data in time to the return. Is it possible I could either call return from a child function for the parent function or could a timeOut solve the issue? I can't think of another way of doing this, but ...

How do I enable UniversalXPConnect for a particular web page?

I need to test various web services which are posts that take an uploaded file as the content of the body. To do this I'd like to do quick tests using ajax call. I found the following page which describes how to do this: http://www.captain.at/ajax-file-upload.php However, it requires that the page have "UniversalXPConnect" privileges...

Replacing control with loading image on ajax call ...

I would like to replace drop down list (that has on change event that cause ajax update) control while ajax call is being executed with some loading image. Once ajax call is over I would like to restore that drop down with all event handlers intact. Any simple example or pointer would be appreciated. Thanks ...

How can I get jQuery post to work with a salesforce WebToLead.

I have a page with a form that posts to salesforce.com's webto Lead service. I am trying to make an ajax version of this using jQuery. Though the form in the page posts fine and I receive the data in my salesforce, Once I make an identical post structure to this form and then post with jQuery I get a 405. Any help with this would be gr...

Security exception with ASP.NET AJAX toolkit

I've got an ASP.NET WebForms app that I've written, which uses the ASP.NET AJAX Toolkit. I've put the MultiView control onto the web form, and it worked fine, when I had it under Vista. Well, I had to replace my machine (HD failed) and I went to Windows 7 Ultimate. I tried copying the ASP.NET app from the system (before it finally fai...