JQuery :: Few Improvements To Autocomplete Module

Sep 9, 2009

I have done a few improvements to the autocomplete module, to fix problems and improve functionality:

Added selectOnly option to autoselect a result if there's only one. This may save you a click. Moved the loading indicator to the left side, in case the field is rtl. Requires a small plugin I made, attached here. A css entry is being added to this effect. The included css file has this, but as opposed to the main autocomplete.css, colors are given as names.

Added substrings, and substringsSeparators. As opposed to multiple, which deals with a list of elements separated by a fixed string, substringSeparators is a string made of chars, that each and any of them provide a separator between autocompletable strings. It supports editing a program with a closed list of keywords, and operators and spaces as separators.

Added extraFields, a list of names or ids (if prefixed with #) of other fields to provide as fieldname=value params to the ajax query. In case names are provided, they are expected to be inputs in the same form as the input itself. More complex relationship may be found by adding suitable callbacks to extraParams, which I'd only ask to receive the $input and the key name as parameters.

View 1 Replies


ADVERTISEMENT

JQuery :: Autocomplete Plugin - Perform An Action If No Data Is Returned From The Autocomplete Search?

Jul 19, 2010

I am using the jquery autocomplete pugin fromhttp://bassistance.de/jquery-plugins/jquery-plugin-autocomplete/

I need to perform an action if no data is returned from the autocomplete search but there seems sto be no way to do that. Any ideas pls?

View 1 Replies View Related

JQuery :: Autocomplete Trigger Event If User Rejects All Autocomplete Options

Aug 11, 2009

Does anyone have a library or patch to call a handler if a user leaves an autocomplete field without choosing one of the autocomplete options - i.e. they've entered free text. I'm working with an app that populates multiple fields from a single auto-complete value, and our latest requirement is to clear out a bunch of fields if the user's entered something manually - rejecting autocomplete suggestions. My initial attempts at hooking into onkeyfoo and onblur haven't lead anywhere productive, and I'm hoping someone else has managed to overcome the gnarly event and timing dependencies involved with onkeyfoo and blur being used for standard autocomplete behaviour.

View 1 Replies View Related

JQuery :: Changing Class On Specific Module?

Sep 24, 2010

I've got a list of modules, and when I click on one of them it expands displaying the content. When you expand them, a little image on the right changes from a down arrow (v) to an up arrow (^), but it's changing on all of the modules rather than just the one.

Here is the website: [URL]

It's pretty obvious what my question is; how do I get it so the image only changes on the module that you expand?

Here's the code for the moduleToggle function:

function moduleToggle() {
$('.content').hide();
$('.title').click(function() {

[Code]....

View 3 Replies View Related

JQuery :: Make An Effect On A Module Of Page?

Jan 18, 2011

I'm kinda stuck with jQuery. I generally write code in PHP and do simple stuff with Javascript. But I need to make an effect on a module of my page.

[Code]...

Is this even possible? I don't want/can't preload random content and have it hidden. I could probably do this the simple way with js. Emptying the old content and replacing it with the new random content but I need the animation. I'll keep "decoding" the documentation while waiting for a response.

View 3 Replies View Related

JQuery :: Using :checked Selector To Control Another Module?

Sep 19, 2011

I have a question for using checked selector does not work well.Here is my code:

$("input").click(
function(event) {
var id = $(":checked").val();

[code]....

View 1 Replies View Related

Autocomplete With Onchange After Selecting An Item From The Autocomplete Box

Feb 13, 2010

I have found two jquery plugins and i am trying to combine an action but to no avail. what i want to do is after selecting an item from the auto complete box i would like for it then to do a change function and retrieve details. Here are my 2 pieces of code.

[Code]...

View 2 Replies View Related

Rockstories Module - Image In Slideshow Does Not Load

May 3, 2011

I am using rockstories module in joomla for slide show. When I browse site with www, it works fine. But when I browse site without www, the image in slide show doesn't loads and I get a javascript error :
Security error" code: "1000
[Break On This Error] var MooTools={version:"1.2.5",build:"0...")[1]);
b.set("title","");}});}});})();
I am using mootools upgrade js.

View 2 Replies View Related

Make The Module For Users Online In Website?

Jun 27, 2011

i'm trying to make the module for users online in my website i've used ajax to call database and update the persons table with the status of the users when he enters or leaves the page here is my code in the <body> tag :

<body onload="javascript:UpdateUserStatus(<?php if(isset($_SESSION['user_id'])) echo $_SESSION['user_id']?>,1)" onunload="UpdateUserStatus(<?php if(isset($_SESSION['user_id'])) echo $_SESSION['user_id']?>,0);">

[Code]...

View 7 Replies View Related

Ajax :: Site Navigation Module Not Loading Correctly

Jul 7, 2009

I had posted this issue previously regarding my Ajax site navigation module not loading correctly. It would load on certain parts of the site and not others. After some research I have discovered that I need to redirect from "www.mydomain.com" and make a call to "mydomain.com" instead. I thought a 301 .htaccess redirect would work but according to the site that sold me the template the script in my configure.php file must be changed. This is what configure.php looks like now.

<?php
define('HTTP_SERVER', '[URL]');
define('HTTPS_SERVER', '[URL]');
define('ENABLE_SSL', 'TRUE');
define('HTTP_COOKIE_DOMAIN', 'mydomain.com')
define('HTTPS_COOKIE_DOMAIN', 'mydomain.sslpowered.com/mydomain.com/');
define('HTTP_COOKIE_PATH', '/mydomain.com/mysite/catalog/'); .....

I am wondering what has to be changed in the script so it will make the call the the correct domain so the ajax script will load on all parts of the site.

View 1 Replies View Related

Make A Module To Swap Ads Randomly From Folder Named Ads On The Root?

Jul 12, 2009

i want to make a module to swap ads randomly from folder named �ads� on the root like,, the advertising are either .swf, or .gif all that i need is to play the swf (when one is finished it starts the other one.. till the display of all swf's)..

[URL]

The folder �ads� is supposed to have 5 ads, when it finished number 1... it start randomly until it finish displaying all the advertising swf... i dont want to display only one of the five ... but display all in a random way..may be i have to know the length of the swf (in seconds ) and when it is finished i want to display the second and third .... etc

View 1 Replies View Related

JQuery :: Using Autocomplete With .net And Sql?

Oct 20, 2010

i've been looking for a solution for few days and never found it. i'm using the jQuery autocomplete and i want to take the data from a sql table cell.

the table pretty much looks like this :

word_id |
word_q
1
where

[Code].....

View 1 Replies View Related

Build An "I Liked These" JS Module?

Apr 11, 2010

This probably already exists, but I am not sure what to call it to Google for it.

What I want to do is put a checkbox beside each thumbnail and product description on the section pages of the website. I want to put a "I Liked These" section at the top of the right column, and each time a user clicks a checkbox beside an item, add a copy of it to the "I Liked These" list on the right.

Is there something already out there I can start with, or do I need to code this up from scratch?

View 7 Replies View Related

JQuery :: Autocomplete With A Textfield And Its Id?

Apr 11, 2011

Actually I have this html interface;

<input type="text" size="20" name="brandname" />
<input type="hidden" name="brandid" value="" />

And this is my jquery;

$('#brandname').autocomplete("searchbrandnames.jsp", {
minChars: 3
});

[code]....

View 1 Replies View Related

JQuery :: Cannot Select Autocomplete?

Mar 16, 2011

I have autocomplete showing up where I type into the textbox but when I try to select one with my mouse or keyboard it does not fill in the textbox with the option selected. Code is below.
<
script type="text/javascript">
$(
function() {[code]....

View 1 Replies View Related

JQuery :: Creating Autocomplete Row By Row?

Dec 30, 2011

I am using telerik autocomplete in my application, I want to create the another autocomplete when i click the add button using jquery, can any help me in solving this issue.I need the jquery to create the autocomplet.

View 1 Replies View Related

JQuery :: Autocomplete Not Working In IE?

May 26, 2011

i am using this code in my site it is working good in FF but not working in IE

<link rel="stylesheet" type="text/css" href="<?php echo LINK_PATH;?>css/jquery.autocomplete.css" />
<script type="text/javascript" src="<?php echo LINK_PATH;?>js/jquery-1.4.2.min.js"></script>
<script type='text/javascript' src='<?php echo LINK_PATH;?>js/jquery.autocomplete.js'></script>
<script type="text/javascript">
var cities=["abc","xyz","ccc"];

[Code]...

View 1 Replies View Related

JQuery :: Autocomplete With GMaps

Jun 25, 2009

Exist this: [url] in jquery?

View 1 Replies View Related

JQuery :: UI Autocomplete ExtraParams?

Mar 25, 2011

I have a jQuery autocomplete application where the user types a query into a text box and autocomplete suggestions are returned. (It's working fine.) I would like to restrict the suggestions that are returned by passing the value of the selected option from a drop-down list (#deptField3) to the PHP script that does the autocomplete look-up.

[Code]...

View 4 Replies View Related

Using Jquery :: Autocomplete With A Php Array?

Dec 6, 2011

I have the following array:

Code:

$given_themes = array("ActionScript", "AppleScript", "Asp", "BASIC", "C", "C++", "Clojure", "COBOL", "ColdFusion", "Erlang", "Fortran", "Groovy", "Haskell", "Java", "JavaScript", "Lisp", "Perl", "PHP", "Python", "Ruby", "Scala", "Scheme");

I want to use these items in the following autocomplete script, but it is not working... How do I get it to recognize the array values? I am sure it has something to do with how I call the variable $given_themes...

Code:
<script>
$(function() {
var availableTags = [ <?php $given_themes; ?>];[code]....

View 1 Replies View Related

JQuery :: Autocomplete With Onchange?

Feb 14, 2010

I have found two jquery plugins and i am trying to combine an action but to no avail.what i want to do is after selecting an item from the auto complete box i would like for it then to do a change function and retrieve details. Here are my 2 pieces of code.

Code:
$().ready(function() {
$(".fullname").autocomplete("js/search.php", {

[code]....

View 2 Replies View Related

JQuery :: Autocomplete And Large Data Set?

Oct 29, 2010

I have a coldfusion data component that receives two arguments and runs a stored procedure and returns a large data set. I want to use a textbox with autocomplete its data is that result set. I do not want to convert the result set to an array for performance.

View 1 Replies View Related

JQuery :: Autocomplete Menu Goes Behind ASP Control

Oct 11, 2009

I am using the autoupdate plugin. I have a listbox(asp.net control ) just below the autocomplete textbox. In IE6, the autocomplete menu goes behind the asp.net control. This happens only in IE6. It works fine in IE7.

View 2 Replies View Related

JQuery :: Autocomplete On A Click Of Button?

Jun 14, 2010

I am using JQuery Autoplugin 1.1, I want to activate the autocomplete on a text box on click of a button besides the box.Currently I am trying to use the following option, but it is not working.

Here try is the id of button and try1 is the id of text box

$("#try).click( function() {
$("try1").autocomplete( months, {
minChars: 0,
max: 5,

[Code]....

View 1 Replies View Related

JQuery :: Autocomplete On Select Function?

Aug 22, 2009

I have a autocomplete box using this plugin[URL]... Returns results no problem. I can't get my head round how to add an event when a selection is made. Basically when someone selects one of the autocomplete options I want to redirect to a specific page (index.php?cms&p=tpl&s=edit&tplid='id of selected option')

$(document).ready(function(){
$("#searchfield").autocomplete('index.php?acms&s=ajax&amod=tpl&ajax=search');
});

hope this makes sense, guessing its really simple and I have just been trying to over complicate things.

View 1 Replies View Related

JQuery :: Autocomplete Plugin Is Not Working On ASP.NET MVC?

Apr 12, 2011

I am trying to create a web application using ASP.NET MVC and I want add auto complete functionality to one of my text box. So I have added below C# code into my HomeController class to return the data as JSON objects.

public class HomeController : Controller
{
public ActionResult Index()

[code]....

View 5 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved