Hello,
I badly need an Autocomplete Plugin. So I would like to ask you, what
is the best solution to go with?
Thanks for your help,
Stefan Sturm
Well, if you just want to loop through the array to change the
background color, you don't really need toggle then. Try this:
$(#item_list li div a).click(function(){
var arrValues = ['rgb(9, 128, 0)','rgb(0, 255, 255)','rgb(0, 0,
255)','rgb(128, 0, 128)'],
bgcolor =
For each click of the DIV I'm hoping to change the BackgroundColor,
make some updates in the Database (depending on which array selection
it's on) and that's about it.
So, the first click of the DIV = Change BG to 'green', update DB
field to 'XXX'
the second click of the DIV = Change the BG to
Yeah, the snippet I wrote updates the color; you can add an ajax call
to update your db as well, if the value your updating in the db is the
color, or else the value is in an array that's indexed the same.
On Oct 22, 12:10 am, The Danny Bos danny...@gmail.com wrote:
For each click of the DIV
Hi *,
Is there a way to stop a load call in the callback?
like return false prevent new text to be injected into the element?
Bye!
Cheers, Richard - very useful.
I usually use $.ajax because I return JSON, and, as you say, then I
start 'munging' :-) I like the load call (for straight content insert
applications) because it's way simpler and easier to read - I was just
wondering if there were any performance differences,
Awesome -- I thought there was something like that, now will it pickup
on the jquery functions (like trim) or do I need to program that into it?
mkmanning wrote:
Operations like .val() return a string, so If you need to extend a
string you have to use String.prototype:
String.prototype.slug =
yes.
http://github.com/kswedberg/jquery-socialize
2009/10/22 Ricardo ricardo.soaresdel...@gmail.com
I've visited this site(http://www.intomobile.com/2009/10/09/hands-on-
I was just wondering if there were any performance differences
.load, like *any* Ajax call in jQuery, ultimately uses the $.ajax
method, so other than a hit of one method calling another (which is
like nothing), there is no performance hit
On Oct 22, 4:55 am, Hogsmill i...@hogsmill.com wrote:
Thanks so much man,
That'll work well ... One more thing, how would I change it to point
to classes instead of direct colours?
var arrValues = ['c1','c2','c3','c3'],
Thanks again,
On Oct 22, 6:27 pm, mkmanning michaell...@gmail.com wrote:
Yeah, the snippet I wrote updates the color; you
It's our own existing auth service (and I'm not on the implementation team).
Most other usages of this service are not directly from the browser, but
from the back-end via java. I thought about proxying it via my service, but
my service isn't SSL, so proxying still doesn't give me security anyway.
Hi all,
I'm having the following error when opening a dialog
$.Event is not a function js/jquery/ui.core.js Line 345
I don't really understand what's happening since i'm using this code to load
dialog in many places in my application an it's the first time that i'm
having this problem...
If
That pretty much sums up the beauty of jQuery. :)
- Richard
On Thu, Oct 22, 2009 at 1:51 AM, BradW brad...@gmail.com wrote:
Aha! So if I understand the implications of this, a selector always
returns a wrapper object that acts like BOTH a javascript array and
like a single DOM element –
Hi,
i am using the table of contents function of rebecca murphey. The
script works fine, but i need to extend itin two ways.
1. set a number for each toc element?
2. set exactly this number to he h1 inner html in fron of the text?
So that the result is:
1. Head 1
2. Head 2
…
…
1. Head 1
Hello,
First of all, thanks for this great plugin, i love it!
But ... im having isues with the auto expand of the treeview when i
add '#something' at the end of the url. The menu doesnt auto expand at
all when an anchor is added to the current url.
Do you have any idea how to solve this
Hello,
I'm trying to parse a Json string received by $.getJSON().
I can receive the string but firebug gives me an invalid label
error.
I think it is because the string is an hash array with a number as
first label, but I'm not sure.
This is the string:
{15:{id:15,x:0.4589937586135409,y:
Got a new menu going with superfish and hoverintent and all looking
good (not uploaded yet). Works fine with firefox, safari and chrome
and surprise surprise having a small issue with IE.
It is a small issue and hoping it is a recognised problem so will hold
off uploading code examples...using
I have a problem with jquery and ie - the code for my webpage is
broken down in three parts - script, style and body. the body is just
tables of images. All the images have been tagged with a div id that
should render them invisible using the jquery hide function. When you
load the page all
I've got a page that uses Ajax to submit the contents of a feedback
form without refreshing the page. It all works fine with IE7 and
Firefox on Windows but not with at least one user's Firefox on Mac
platform. The web server is IIS6.
The code I'm using is contained in a script file referenced in
I have read the posts concerning tablesorter and ajax and have tried
the tips but to no avail.
I have a div container that is used to specify where the table I
retrieve via ajax is placed $(#div_reveal).html(AjaxResponse).
I have tried to add an onSuccess function to update the table function
Got a new menu going with superfish and hoverintent and all looking
good (not uploaded yet). Works fine with firefox, safari and chrome
and surprise surprise having a small issue with IE.
It is a small issue and hoping it is a recognised problem so will hold
off uploading code examples...using
sorry, but I don't know Rebecca Murphey. Why can't you just wrapper the head
tag in an ol? or do you need to change the h tag level to a different level?
- Original Message -
From: bc04Inc. bc04...@googlemail.com
To: jQuery (English) jquery-en@googlegroups.com
Sent: Thursday,
I have an inline datepicker on my page...I need two things:
1.) I've implemented the onSelect method, but what I really want to
do is do a non-modal popup for the user to see what calendar events
from the database that are on the date selected. I've worked out all
the database and json parts,
So here is the function:
script type=text/javascript
(function($) {
$.toc = function(tocList) {
$(tocList).addClass('jquery-toc');
var tocListArray = tocList.split(',');
$.each(tocListArray, function(i,v) { tocListArray[i] = $.trim
(v); });
var $elements =
It's our own existing auth service (and I'm not on the implementation team).
Most other usages of this service are not directly from the browser, but
from the back-end via java. I thought about proxying it via my service, but
my service isn't SSL, so proxying still doesn't give me security
I have tried to add an onSuccess function to update the table
function
(){ $(table).trigger(update); }
but the table does not sort
If #div_reveal is filled with the actual table html,all of it,
upon successful return from the Ajax call, then the tablesorter
functionality is *not* wired up to
try giving the carousel UL a huge width , say 10,000 px, and carousel
wrapper set height, width and overflow : hidden
this is done by the script also but until script fully fires your css
should make up for it
Sam wrote:
I'm not entirely sure that some of these fixes apply to my
if you are using jsonp, then you have to wrap the JSON inside a
function
so for instance, on the docs page they have this Ajax call (and i'll
remove some code for brevity):
$.getJSON(
http://api.flickr.com/services/feeds/photos_public.gne?
tags=catformat=jsonjsoncallback=?,
Hi all,
I'm having the following error when opening a dialog
$.Event is not a function js/jquery/ui.core.js Line 345
I don't really understand what's happening since i'm using this code
to load dialog in many places in my application an it's the first time
that i'm having this problem...
If
I usually do so:
By your page empty div: div id=temp style=display: none / div
and use the following method:
$.ajax({
url:'/index.php',
type:'GET',
success: function(data) {
$('#temp').html(data);
$('body').html($('#temp').html());
$('#temp').html('');
}
})
Gk___
Can you provide a link to the page where you see this error?
--
Ariel Flesler
http://flesler.blogspot.com
On Oct 22, 1:32 pm, Maskime maxime.f...@gmail.com wrote:
Hi all,
I'm having the following error when opening a dialog
$.Event is not a function js/jquery/ui.core.js Line 345
I don't
Sorry no...
But i can give you the code that is generting the error :
var sDialogId = divPleaseActionDialog;
var sDialog = ;
var oButtons = {};
oButtons[aTranslations[ok]] = function(){
$j('#' + sDialogId).dialog('destroy');
};
sDialog += 'div id=' + sDialogId + '' +
Could be that you're using an old version of jQuery (prior to 1.3.x?)
On Thu, Oct 22, 2009 at 1:03 PM, Maxime FAYE maxime.f...@gmail.com wrote:
Sorry no...
But i can give you the code that is generting the error :
var sDialogId = divPleaseActionDialog;
var sDialog = ;
var oButtons
Nope :
jQuery JavaScript Library v1.3.2 that's what the jQuery.js file says :)
2009/10/22 Ariel Flesler afles...@gmail.com
Could be that you're using an old version of jQuery (prior to 1.3.x?)
On Thu, Oct 22, 2009 at 1:03 PM, Maxime FAYE maxime.f...@gmail.comwrote:
Sorry no...
But i can
Still no go... below is my code. I just want to pop a dialog to ask
the user if they are sure they want to leave the company name blank.
The field is not required. I thought it would be easier than this? I
can't get teh addMethod to work or fire at all on validation.
//validates the form
I built a site for a client and somewhere along the line, I added some
code that slowed down the jQuery performance. I thought it was my
crusty old laptop, but my brand new quad core PC also shows the
animations quite slowly and choppily. Thus, the problem is with my
code.
tO MAKE IT MORE
In regards to the 9/9/9 release; it seems like the fxFn is set to null
in the resetState function and not being set back. I am invoking the
script with:
$(document).ready( function() {jQuery
('#cf73b7c6341940210VgnVCM10288ea8c0').cycle({
pagerEvent: 'mouseover',
timeout: 4500,
pager:
Hi
I'm new to jQuery (a couple of weeks). I'm trying to nest the jQueryUI
tab control. It works fine until the nested tabs are in an external
file then I get an exception thrown in the jQuery source. This seems
to be a timing issue to a certain extent, because if I place alert
boxes in the
One thing is your method name and other is your field name. If the name of
your field is company and your method is company so:
rules:{
company:{
company:true
}
}
Maybe is better rename your method to not confuse.
On Thu, Oct 22, 2009 at 13:24, JMan jbeck...@gmail.com wrote:
In regards to the 9/9/9 release; it seems like the fxFn is set to null
in the resetState function and not being set back. I am invoking the
script with:
$(document).ready( function() {jQuery
('#cf73b7c6341940210VgnVCM10288ea8c0').cycle({
pagerEvent: 'mouseover',
timeout: 4500,
Thanks Leonardo...
I figured it out after digging through several examples. The
documentation for this plugin has a huge gap in it. It shows an
example of how to define a custom validator but no where does it
explain how to use it. The trick being as you mentioned, defining it
in the Rules or
thanks i'll give it a try
Something like this (untested):
var arrValues = ['c1','c2','c3','c3'],
cnameIndex = $.inArray(this.className,arrValues)+1;
this.className = cnameIndex===arrValues.length?0: cnameIndex ];
if you can live with only one classname, otherwise you'll have to add
code to remove the old classname from
What I want is
$('select').change and?? $('input').blur do the
same action with write function only once.
Thank you.
Paisal.
Is there anyway that I can access the specific carousels of an element
outside the callback function? i.e. jQuery(#id).jcarousel.scroll(3);
Charlie,
Thanks for the reply, unfortunately the changes you suggested do not
seem to make a difference. Please refer to my previous link to see the
same issue happening with the changes applied.
On Oct 22, 7:21 am, Charlie charlie...@gmail.com wrote:
try giving the carousel UL a huge width ,
Hi,
I need to get the filename, basename, dirname using jQuery. Can anyone
please let me know if there is any utility that will take care of
windows/mac/linux file paths.
Thanks
jquery ajax and php
On Thu, Oct 22, 2009 at 8:47 PM, Buntu J buntu.w...@gmail.com wrote:
Hi,
I need to get the filename, basename, dirname using jQuery. Can anyone
please let me know if there is any utility that will take care of
windows/mac/linux file paths.
Thanks
Thanks man!
On 22 out, 08:33, Jon Banner banali...@googlemail.com wrote:
yes.
http://github.com/kswedberg/jquery-socialize
2009/10/22 Ricardo ricardo.soaresdel...@gmail.com
I've visited this site(http://www.intomobile.com/2009/10/09/hands-on-
jquery isn't loading right in IE 6 7 on http://centermassshootingschool.com/
you can look at the source code, but essentially this is where the
problem is ...
script type=text/javascript
$(document).ready(function(){
$(#tabs).tabs({fx:{opacity:'toggle'}});
I've inherited some code that uses the clock picker plugin however it
doesn't seem to work in IE 8 and Firefox 3.5. This is the code for
the picker.
$('img/')
.attr('alt', 'clockpicker')
.attr('src', '/community/tournamentsystem/images/clock.png')
Hi all,
I would like to implement a login functionality to my website. I've written
a login form like this:
http://web-kreation.com/demos/Sliding_login_panel_jquery.
The problem is: how can I send the username and password to the server in a
securely way? I mean, if the server sends the whole
Hi everyone
I have a problem with the use of an ajax call in a function. I want to
get the result of the ajax call for processing to the return of the
function.
I've tried something like that
function checkUsername(s)
{
TO_RETURN = $.ajax({
type: POST,
Need help. Stumped.
I'm using jQuery and Ajax/serializeArray to read a form to get JSON
object.
However, it is in a format of:
{name: firstname, value: Mary}
while I'd like to see it as
{firstname: Mary}
to put it into couchdb and another application.
Of course I have to use json2.jx from
mojoeJohn,
You have an extra trailing comma in speed: 4000,, which is
definitely going to give you trouble in IE. IE is less forgiving of
JS syntax errors than, for example, FF.
You might find this useful: http://www.jslint.com/
Hope that helps.
Mark
IE is (rightfully) less forgiving of
Hello I'm just a starter and I'm looking for a function I can't find.
What I want:
I want the row number of the row i clicked of the item list.
For instance I click on third row then I want that var i returns 2.
My code:
html
head
script type=text/javascript
I might be considering XML for a job that would be better accomplished
with a database, but I'd like to make sure.
What I'm trying to do is use jQuery to call specific items from the
XML - so if the XML is composed of hundreds of label items, I want
to call just one, with a name tag inside whose
Hello, i am having problems with finding the next element after (this)
here is the html
tr
td class=oneName/td
td class=inputinput type=text //td
td class=infospan style=display:none;the help/span/td
/tr
tr
td class=oneUname/td
td class=inputinput type=text //td
td
hmmm... may not be the best way, but it will for sure work with that
HTML
$(input).focus(function(){
$(this).parent().parent().find(td:last span).show();
});
this may work as well, but i admittedly don't use .next() ever
$(this).parent().next().find(span).show();
On Oct 22, 5:10 pm,
Hi Gang.
I'm working with ClueTip and have run into some oddities.
In particular, I want to show ClueTip when a textbox receives focus.
The source shows me that I can use activation:'focus' for this and that
will result in the cluetip showing on focus and disappearing on blur.
Showing the
Check out .index():
http://docs.jquery.com/Core/index
the example is just like what you want, except they are div's
On Oct 22, 4:21 pm, frank frankp...@gmail.com wrote:
Hello I'm just a starter and I'm looking for a function I can't find.
What I want:
I want the row number of the row i
I've been getting some buggy behavior with IE7 when using a new line
character as the multipleSeparator. Here is my sample code:
textarea name=search[movies] rows=4 cols=20
id=search_movies/textarea
$('#search_movies').autocomplete(
'ajax_movie_autocomplete', {
Hi, I needed events calendar for my site. This calendar should :
1. highlight date that had events
2. If i click it, it'll go to events page or show alert about what
events that occur that date.
I try to use datepicker to do this. For #2 i can do it using onSelect
(dateText). But i can't figure
Is it just me or does anyone else have the hardest time finding
plugins on the jquery.com site?
jquery is an awesome library and I do not plan on using anything else
anytime soon but the manner in which they catalog plugins on the site
is terrible. I know these guys are capable of much better.
Thanks man,
I'll give it a whirl ... Thanks for all your time and energy.
d
On Oct 23, 4:19 am, mkmanning michaell...@gmail.com wrote:
Something like this (untested):
var arrValues = ['c1','c2','c3','c3'],
cnameIndex = $.inArray(this.className,arrValues)+1;
this.className =
Hi,
I'm building an application in which pages are loaded dynamically with
JQuery's load(file) function.
When i call the load(file) function from that main page, new elements
with new IDs are dynamically loaded in the main page. these DIVs are
new and no actions are bound on them since the
Hi,
I have been tracking down a memory leak in my web app which
dynamically removes and adds anchors which have cluetip tooltips
attached and I think that I may have narrowed down the problem to the
main closure in cluetip which attaches the cluetip to the node (line
32: var link = this, $this =
I have a simple drag and drop completed and works well.
Next I would like be able to trigger a hover event when dragging over
items I have already dropped into the drop area. So far I can only get
the hover to work onmouseover, not while dragging an item.
Here is what I am trying:
I don't know if this is an error in the plugin or in my
implementation. (This plugin could use documentation on how it
functions)
Using plugin: http://plugins.jquery.com/project/issues/history
I have a program that creates a form divided into various pages. Each
page is denoted with a specific
I built a site for a client and somewhere along the line, I added some
code that slowed down the jQuery performance. I thought it was my
crusty old laptop, but my brand new quad core PC also shows the
animations quite slowly and choppily. Thus, the problem is with my
code.
The Firebug
Hi every:
I have two input fields and I want the second updated every time I
change a value in the first. I wrote this function but it doesn't work
until the first element lost focus (for example I clic anywhere or press
TAB button)
$('#order').change(function(){
In other words, i have a main page with a menu that loads external
files in the #content div with the load(file) function. The external
file contains a DIV, and i want to bind a function to it $
(#mynewdivfromexternalfile).click(function() {alert ('it worx!'} );
You can use a callback in the
Hi,
I used toggleClass method to toggle the colors of my message when the
user clicks a button. toggleClass() worked well if I didn't specify
any duration i.e. instanteous switch from white background to red
background. The problem arises when I added a duration of ,say, 2s. If
the user clicked
Thanks for writing, Dave. I appreciate it.
Yes, the accordion animation makes 2 panels move a once - one closes,
the other opens. I never did figure out how to make them synch
better, but the client seems OK with the amount of jitter. Many
accordion plugins have the same problem. Any
74 matches
Mail list logo