ajax

How to bold keyword in php mysql search?

I want want my output like this when I search a keyword like "programming" php programming language How to do this in php mysql? Any idea? ...

Cancel previous $.get() call

Hi guys, I'm having some problems with an ajax autocomplete field. I did the same thing before but never ran into problems as I never really had a slow internet connection. I have an input box which acts as an auto-complete field. I binded a jQuery keyup() event to that field and I'm querying a php file with each keypress on that field...

Jqury ajax responce in joomla!

Hello, I am working on joomla. i use the json code i.e. <script language="JavaScript1.2"> jQuery.noConflict(); jQuery(function() { jQuery('.text_area').change(function() { var traID = jQuery(this).val(); jQuery.getJSON('?option=com_propertyform&view=ajaxdata&format=raw', { traid: ...

Will including javascript files from googles site slow my load time?

so im trying to include this file for an application http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js would including it as this url slow the load time of my site when using an application that requires it? as opposed to downloading this file and including it locally ...

cross browsing problem in ajax call.

When i execute it in firefox mozila than this code is working well (in case of register user) but when we try it in IE (iternet explorer 8) then alert("sorry u must have to login first"); this message is comming. ( in both cases as register or gest). Another thing: for gest user returning data from server is null. means d = null, Ano...

CD solution for my xmlHttpRequest

I've got a website that I've been asked to distribute on CD that uses xmlHttpRequest. As it'll be using file:// rather than http:// I think it's going to break. What is the best way to get this to work, if at all? Thanks ...

Django ajax file upload problem csrf

I'm trying to do a ajax file upload using django. I am trying to make this example work http://www.johnberns.com/2010/07/08/using-valums-jquery-ajax-upload-with-django-1-2/ But strangely I keep getting "None" for my csrf token and even more strange is that I am doing the POST call sending the file but all I get on the server is just th...

Best Way to Prevent SQL Injection Using Javascript or C#?

Hey.. I'm currently writing an application which uses ajax on the front end and ASP.NET (C#) on the back end.. A Small Part of the application does an AJAX call to the backend code (to get entries from the SQL database) How can i prevent SQL of JScript injection? I know it is generally unsecure to validate with javascript because jav...

Regular form post/redirect for submit button with Jquery submits for other inputs (validation)

I have a form where I'm using Jquery to submit the form to create a preview output on the right-hand side of my screen (I have some complex inputs and want to use ruby to process them to create the preview). After the user has completed the form and presses the submit button, I want the form to submit normally (i.e., as if Jquery is n...

How can I create a chat in my web site

Hello. I have a web site where users register to access the content of the web site. I want to create a chat like Facebook. So when a user clicks on a button called "CHAT," it displays a list of users that are online, and so he can chat with other users. Please give me a suggestion how to create a chat like this in AJAX and jQuery. Pleas...

Is there a way to get Internet Explorer not to wait until an AJAX request completes before following a link?

I have a html page that displays some basic account information and begins a long-ish running jQuery AJAX request to retrieve more detailed data. While the Ajax request is in progress it is possible for the user to click a button that has an onclick event to navigate to a new page using location.assign. Unfortunately if the button is c...

Is Fisual FoxPro/FoxWeb Compatible with Ajax Push Engine (APE) ?

I'm researching how to setup an Ajax Push Engine (APE) but my first question is if Visual FoxPro9/FoxWeb Server environment will work with an APE. Does anyone know? ...

How do I share my asp.net identity with an ajax enabled web service

I have an Asp.net application with Forms mode authentication <authentication mode="Forms"> <forms loginUrl="Login.aspx" /> </authentication> I have also created an Ajax enabled web service to support a 'vote' function from the page.. <system.serviceModel> <behaviors> <endpointBehaviors> <behavior name="VoteServiceAspNetAjax...

Multiple ModalPopUpExtenders on one page inside a UserControl

I have 1 ModalPopupExtender inside a UserControl. Everything works great until I start adding the same usercontrol to the page. I am getting this error message in the javascript console:: Message: Sys.InvalidOperationException: Two components with the same id 'MPE1' can't be added to the application. I understand the error, it obvious...

Magento: Show the Review Step in One Page Checkout

I have not been able to figure this out for the life of me. I wanted to show the order review step(final step before processing the order) right away on the one page checkout in Magento. Any suggestions? Thanks all. ...

Jquery/Ajax cookie

Hi, I'm using the below code in order to increase the number of results that my php/mysql pulls-in through a 'more' button. My question is: Can I add a jquery cookie so that when the 'more' button is pressed, and more results are loaded, the current state is saved? The results in question are listed elements which contain links to t...

DevExpress Aspxcallbackpanel Client Side Timeout?

I've read plenty about how to handle Server-Side timeouts & errors during a Callback... but what about Client Side timeouts? here's the example. Guy fills out a web form. Hits submit & the ASPXCallbackPanel does a PerformCallback. But right then... his internet drops or his router burps. In my app, the Callback panel never returns cont...

Easy way to turn a Rails form into an AJAX form?

I have the following form in my Rails application: <% form_tag password_resets_path, :id => 'recoverPasswordForm' do %> <label for="passwordRecoveryEmailAddress">Email Address:</label>&nbsp; <%= text_field_tag "passwordRecoveryEmailAddress" %> <%= submit_tag 'Recover' %> <br /> <div id="forgotPasswordLoginLinkContainer"> ...

Using Ajax in Ruby Forms, form_remote_tag

Hello, all, I am a little stuck on a exercise I am trying while learning RoR. I have a form I want to submit to my controller and have the results populate a div tag further down. I have rails 3.0 and ruby 1.8.7. When I try the following: Ajax List Demo Listing posts <%= javascript_include_tag 'prototype' %>...

How can I work around reloading these images?

Hi, I have a simple jQuery image changer, that when you hover over it will make swap all images with their grey version except the one you are on, that one will stay colour (They are all colour to begin with) and when you hover over another image, the last image gets changed to grey and the new one gets changed to colour. However on IE...