Ok so I found an issue with using embed code and jquery's show()/hide
() method. I am using embed code inside of a div. so it looks
something like this:
div id=test
embed
whatever here
/embed
/div
now on that I want a user to be able to click a button to show/hide
the content. so i create a
Try to use this method:
script type=text/javascript
function showEmbed(){
if($(#test).css('display') == 'block'){
$(#test).css('display','none');
} else {
$(#test).css('display', 'block');
}
}
/script
Gk___
2009/10/16 ngreenwood6 ngreenwo...@gmail.com:
try to use this function
script
function test(){
var ind = 0;
$('ul').find('li').each(function(){
if (ind == 2){
$(this).css('test_css');
ind = 0;
}else{
ind++;
}
});
}
/script
Gk___
Sent from Minsk, Belarus
2009/10/16 huntspointer2009
Thanks a lot, Karl. Your code dit it.
Now are several events (like key strokes and checkbox changes) for
which the same code must be run.
So, I would like to retrieve the siblings from within a function.
The problem I encounter with the code below is how to retrieve in
jQuery the caller
nobody? :(
Hi, I have see a plugin : Fade transition plugin for jQuery
Please see demo:
http://www.robpoyntz.com/blog/?m=200905
I want when i mouse over then Fade transition stop and when i mouse
out then it start.
I create a code:
$(.container).mouseover (function() {
$(this).stop();
});
but it's not
the callback of load function is called when the ajax request is complete
(this not include waiting images to load). You have to use some plugin to
preload images.
On Fri, Oct 16, 2009 at 08:26, kknaru isai...@gmail.com wrote:
nobody? :(
Something like this perhaps:
http://jsbin.com/enuxu
source code: http://jsbin.com/enuxu/edit
- Richard
On Wed, Oct 14, 2009 at 2:28 PM, DekiR roncevic.de...@gmail.com wrote:
HI,
I am new to jquery and I am trying to calculate a value based on two
sliders.
Can somebody help me or point
Oh, and if you have any future questions about jQuery UI plugins, note
there's a separate list for those:
http://groups.google.com/group/jquery-ui
http://groups.google.com/group/jquery-ui- Richard
On Fri, Oct 16, 2009 at 8:28 AM, Richard D. Worth rdwo...@gmail.com wrote:
Something like this
I tried doing that as well and it still does the same thing. It must
be changing the display that makes it reload. To test all you have to
do is create a div with embed code and call show/hide on it and you
will see.
On Oct 16, 3:02 am, Evgeny Bobovik bobo...@gmail.com wrote:
Try to use this
You have an unnecessary n in your code.
var test_css = {'background':'#000'};
$(ul li:nth-child(3n)).css(test_css);
should be
$(ul li:nth-child(3)).css(test_css);
Liam
huntspointer2009 wrote:
- Can someone please help me solve the following issue?
- How can I select and apply a
if the problem is reload then add return false at the end or the function
On Fri, Oct 16, 2009 at 6:02 PM, ngreenwood6 ngreenwo...@gmail.com wrote:
I tried doing that as well and it still does the same thing. It must
be changing the display that makes it reload. To test all you have to
do is
How to validate the form fields written in php file(for this file i
applied php templet)
I'm having install superfish problems, says the xml is missing. I
found this post:
I'm a newbie and can't install the zipfile superfish 1.4.8 using the
joomla install function. I keep getting an error message stating that
the xml.is missing. Do you have any suggestions how I might be
able
Please try this
$(ul
li).each(function(i){this.addClass(['','','test_css','test_css'][i%4])})
OR..you can try to use another one:
$(li:even:odd, li:odd:odd).addClass(test_css);
On Fri, Oct 16, 2009 at 3:07 PM, Evgeny Bobovik bobo...@gmail.com wrote:
try to use this function
script
Hi,
I'm experiencing somewhat the same issues (http://groups.google.com/
group/jquery-dev/browse_thread/thread/14fd5703aeb8653d)
Did you already make progression on this?
Could you let me know please?
Thanks a lot!!
On 19 aug, 11:49, ryan.j ryan.joyce...@googlemail.com wrote:
Apologies for
You should use
*$(#test).is(:visible)*
to confirm whether the div is shown or hidden.
Best,
BeCoDeR.
On Fri, Oct 16, 2009 at 3:02 PM, Evgeny Bobovik bobo...@gmail.com wrote:
Try to use this method:
script type=text/javascript
function showEmbed(){
if($(#test).css('display') ==
On 10月16日, 上午5时29分, James james.gp@gmail.com wrote:
You use setInterval in Javascript to execute a callback function every
so milliseconds:
window.setInterval(doSomething, 1000); // 1000ms = 1sec
function doSomething() {
// code to change images
}
On Oct 15, 11:25 am, -e-train
Firstly, define a new css class , selected_tab , as following:
//Style code
.selected_tab{
background-color:#ccc;
color:#000;
}
//Script code
//$(.tab) indicate all of your tab elements.
$(.tab).click(function(){
$(.selected_tab).removeClass(selected_tab); // clear current select
tab style
I'm using the simpleModal plugin to display dialog windows. I have a
callback on the onclose event which fires another event.
Is it correct that the $.modal.close() does not fire the onclose
callback. If this is correct is there a way i could workaround this?
Hi Julien,
May I propose a different way?
$('input:checkbox, input:text').bind('change focus', function(event) {
if (event.type == 'change' || this.type == 'text') {
$(this).parent().nextAll().find('input:text').doSomething();
}
});
This selects all checkboxes and text inputs and binds
can you give me some good references? i'm trying to understand the
process so i don;t want to use a plugin
the code that you used will take UL's with more than 10 list
items(li's) and hide items greater than 10
it seems from your html you are wanting to do something different since
you are hiding complete lists(UL's) already
here's an example of the exact same code working fine BUT with minor
Anybody ?Please
On Oct 16, 5:32 pm, Tan it_qn2...@yahoo.com wrote:
Hi, I have see a plugin : Fade transition plugin for jQuery
Please see demo:http://www.robpoyntz.com/blog/?m=200905
I want when i mouse over then Fade transition stop and when i mouse
out then it start.
I create a code:
superfish is jQuery( _javascript_) and CSS that performs on html markup.
Any xml related to it would be part of Joomla and have nothing to do
with superfish script or the superfish css.
Suggest researching this on joomla forums as it's totally non related
to anything jQuery or to do with
http://jqueryfordesigners.com/image-loading/
On Fri, Oct 16, 2009 at 10:48, kknaru isai...@gmail.com wrote:
can you give me some good references? i'm trying to understand the
process so i don;t want to use a plugin
Hi Karl,
Thanks for your interesting alternative approach.
On my side I was trying to set a jQuery variable using the argument
that was passed to the function.
But something seems broken if we don't use jQuery from the very
beginning for the selection.
$.tmp = caller;
alert($.tmp);//
Hi,
to double check the user input I also do a server side validation. The
result of that validation is represented as an errorLabelContainer
that is generated by the validation plugin: an ul-container with li-
label children.
My problem is that when the inputs are updated by the user the
On Thu, Oct 15, 2009 at 4:44 PM, pixeline aplennev...@gmail.com wrote:
Hi!
I'm trying to use the jeditable plugin to update a lot of different
strings coming from various part of the database.
I would like to set it like this:
$(span.editInPlace).editable($(this).attr('rel'), {
Try to use this code for mouse events processing
$(.container).bind(mouseenter,function(){
Trans.pause();
}).bind(mouseleave,function(){
Trans.pause();
});
... and replace your plugin code on this code:
(function ($) {
$.fn.fadeTransition = function(options) {
var
Thank you for your quick response! In the meantime I tried something
similar, I thought there is a solution which doesn't require that much
code. (Imagine you have 10 tabs!)
On Oct 16, 3:57 am, Bi Jing beco...@gmail.com wrote:
Firstly, define a new css class , selected_tab , as following:
I have developed the autosuggestion plug-in.
Looks pretty cool (for me). I actually made is like it's done on
Facebook. (code is 100% mine).
Please take a look and leave me comments/feedback.
Only list of names are working as autosuggestion. Other fields on the
form are just for example.
Also
I imagine you wouldn't need any more code than Bi Jing has given you to
handle even 100 tabs, since it uses classes, not IDs.
- Richard
On Fri, Oct 16, 2009 at 10:53 AM, lukas animod...@gmail.com wrote:
Thank you for your quick response! In the meantime I tried something
similar, I thought
Karl,
I choose to keep my original approach as it was better for code
clarity in my case.
From within my function, I could select the text input passed as
argument with variable $currentField.
I could also get the list of other text inputs located after it.
$afterFields.length correctly counts
Hi, Evgeny Bobovik.
Thanks you .
I have modify files js to:
(function ($) {
$.fn.fadeTransition = function(options) {
var options = $.extend({pauseTime: 5000, transitionTime: 2000},
options);
Trans = function(obj) {
var timer = null;
var current = 0;
var pause = 1;
Thank you! But how do you memorize the state of the tabs? When you
click a tab it will work until the refresh of the page is finished and
the original mark-up is effective again.
On Oct 16, 11:15 am, Richard D. Worth rdwo...@gmail.com wrote:
I imagine you wouldn't need any more code than Bi
Thank you! But how do you memorize the state of the tabs? When you
click a tab it will work until the refresh of the page is finished and
the original mark-up is effective again.
On Oct 16, 11:15 am, Richard D. Worth rdwo...@gmail.com wrote:
I imagine you wouldn't need any more code than Bi
So if I add return false it won't reload the data?
On Oct 16, 8:37 am, rupak mandal rupakn...@gmail.com wrote:
if the problem is reload then add return false at the end or the function
On Fri, Oct 16, 2009 at 6:02 PM, ngreenwood6 ngreenwo...@gmail.com wrote:
I tried doing that as well
Thank you! But how do you memorize the state of the tabs? When you
click a tab it will work until the refresh of the page is finished and
the original mark-up is effective again.
On Oct 16, 11:15 am, Richard D. Worth rdwo...@gmail.com wrote:
I imagine you wouldn't need any more code than Bi
Sounds like you may want to look into using a tabs plugin, if you don't want
to implement this all yourself. For example:
http://jqueryui.com/demos/tabs/
http://jqueryui.com/demos/tabs/- Richard
On Fri, Oct 16, 2009 at 12:58 PM, lukas animod...@gmail.com wrote:
Thank you! But how do you
I wanted to avoid loading another plug-in. I helped myself with
setting cookies but this makes the code a bit long. I hoped there was
a simple trick memorizing the state of the tabs. Thanks again!
On Oct 16, 1:10 pm, Richard D. Worth rdwo...@gmail.com wrote:
Sounds like you may want to look
I was just wondering, why doesn't jQuery have color animations built-
in to the library? JavaScript has hexadecimal number literals
(0xaabbcc), so it could be the way to define colors in the params
argument object. An array literal could also be used to set colors.
Why is it that jQuery hasn't
jQueryUi has color animations
http://jqueryui.com/demos/animate/
Sam wrote:
I was just wondering, why doesn't jQuery have color animations built-
in to the library? _javascript_ has hexadecimal number literals
(0xaabbcc), so it could be the way to define colors in the params
argument
I have a very simple script that fails on macintosh only (works on PC
browsers) when I include the ajax.js file. I am not even using it
(not in my simple script anyway, shown below). When I include that
file, the drag and drop no longer works on a mac.
Any help is greatly appreciated
You can
I have a xml file which has the data to be loaded in the treeview.
First of all, I would be really glad if treeview can read any xml.
Then I can convert my xml to that sort. Secondly, if I have to provide
an unordered list, which I can generate from the xml; what will be the
way of dynamically
Very responsive, George!
I'll definitely take a look at this. I have been wanting to implement
autocomplete, but just haven't gotten around to it.
Thanks for sharing!
Rick
-Original Message-
From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On
Behalf Of George
Sent:
Well why don't they bundle this in with the jQuery standard library?
On Oct 16, 11:21 am, Charlie charlie...@gmail.com wrote:
jQueryUi has color animationshttp://jqueryui.com/demos/animate/
Sam wrote:I was just wondering, why doesn't jQuery have color animations
built- in to the library?
Well, it does not support AJAX yet. the list comes from Javascript
array already in the page.
So responsiveness probably has something to do with it.
I just like the way how it looks. I would actually call it tokenizer
and not the autosuggestion.
George.
On Oct 16, 2:53 pm, Rick Faircloth
It's fairly easy to add. I will do that later this week.
I just wanted to iron out all visual/appearance bugs.
So you can check this link next week.
George.
On Oct 16, 3:23 pm, Rick Faircloth r...@whitestonemedia.com wrote:
Thanks for letting me know. I would definitely need ajax support.
Because filesize is at a premium, and not enough people (80-95%) need this
feature almost every time they use jQuery (80-95%). That's the point of
plugins. I wrote something on the subject some time ago, and I think it sums
it up well. See
Looks like you have an extra there
see this line: UL id=listB class=connectedSortable
Might be a problem
On Oct 16, 10:10 am, wogahnct cheryl.jo...@yale.edu wrote:
I have a very simple script that fails on macintosh only (works on PC
browsers) when I include the ajax.js file. I am not
We tried that as well, and still no go.
On Oct 15, 1:01 pm, MorningZ morni...@gmail.com wrote:
$(#tabs).tabs(select, idx);
where idx is the numeric index of the tab to select
On Oct 15, 11:53 am, Collectonian collecton...@eclectic-world.com
wrote:
We are using the jQuery UI's tabs
Looking at the example for the values.jquery plugin I would think that
I would not only be able to copy values from one id to an other but
that I would also be able to switch the values as well.
Here is the working example -
http://jquery-values.googlecode.com/svn/trunk/jquery.values.htm
Thanks, good catch.
I actually found that I also needed to update the file I was using for ajax.js.
Once I updated to version 1.6.1 from www. Prototypejs.org, the problem went
away! Go figure!
Thanks George!
-Original Message-
From: jquery-en@googlegroups.com
Thanks for letting me know. I would definitely need ajax support.
Rick
-Original Message-
From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On
Behalf Of George
Sent: Friday, October 16, 2009 3:09 PM
To: jQuery (English)
Subject: [jQuery] Re: new autosuggestion
Thanks...let us know on the list when the ajax is done!
Rick
-Original Message-
From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On
Behalf Of George
Sent: Friday, October 16, 2009 3:26 PM
To: jQuery (English)
Subject: [jQuery] Re: new autosuggestion plug-in. need
Found it! It needs to be:
$('#tabs').tabs().tabs('select', 1); // = 0 with the extra tabs(). :-
D Got it working now! Thanks,
Summer S. Wilson
Collectonian on Yahoo! Messenger ~ Facebook (http://www.facebook.com/
Collectonian)
An Eclectic World (http://eclectic-world.com) ~ LiveJournal
Anybody got an idea with this one .
On Oct 15, 10:44 am, factoringcompare.com
firstfacto...@googlemail.com wrote:
Hi,
I’m using jQuery: form wizard plugin (http://home.aland.net/sundman/)
with a password strength meter plugin
Hi,
I've an input field in the form which is displayed based on the user
selection. Initially it is set to 'display:none' and I do have a
validation rule for that field.
How do I skip validation on this hidden input field and only validate
when its displayed on the page.
Thanks for the help!
I would think something similar to this (untested):
myFieldName: {
required: function() {
return !$(this).is(':hidden');
}
}
Not sure if $(this) actually references the field. Might want to test
that out.
On Oct 16, 10:18 am, buntu buntu.w...@gmail.com wrote:
Hi,
I've an
Over in http://groups.google.com/group/google-maps-api/, I got a
suggestion that seems to work consistently: use Google's Ajax loader
to load the Maps API code asynchronously.
script type=text/javascript src=http://www.google.com/jsapi?
key=MY_API_KEY/script
script type=text/javascript
thanks for your help, that is a very good article
To be honest, I'm not entirely sure what's going on here. I'm trying
to figure out someone else's code, so I'm just going on a hunch about
what the problem might be. I have some data stored in an html file
that represents locations on a map. When the script tries to load the
file, I get a 405
Hello,
I have the following anchor:
a href=http://www.example.com/files/map.pdf; onClick=javascript:
pageTracker._trackPageview('/downloads/map');
How can I add
onClick=javascript: pageTracker._trackPageview('/downloads/
map');
To all anchors of CSS class Download using JQuery?
Thanks,
$(.Download).click(function() {
pageTracker._trackPageview('/downloads/map');
});
On Oct 16, 11:51 am, shapper mdmo...@gmail.com wrote:
Hello,
I have the following anchor:
a href=http://www.example.com/files/map.pdf; onClick=javascript:
pageTracker._trackPageview('/downloads/map');
I tried adding in return false at the end of my function, however that
did not fix the issue. Any other suggestions?
On Oct 16, 8:37 am, rupak mandal rupakn...@gmail.com wrote:
if the problem is reload then add return false at the end or the function
On Fri, Oct 16, 2009 at 6:02 PM,
Tks Dave and Karl, it helped!
Fred~
On Thu, Oct 15, 2009 at 7:05 PM, Dave Methvin dave.meth...@gmail.comwrote:
There are a lot of ways to accomplish this. Karl's post demonstrated
one way to create larger fragments directly with jQuery. In addition
to .append() you can look at using the
Hi,
I;m looking for a way to obtain key names from a JSON object:
eg
options: [
{Option1 : [Value1, Value2]},
{Option2 : [Value3, Value4]},
{Option3 : [Value5, Value6]}
]
so, i'd like to consume this JSON in a way similar to this:
$(.Download).each(function(){
$(this).attr('onClick', javascript: pageTracker._trackPageview('/
downloads/map'););
});
On Oct 16, 5:51 pm, shapper mdmo...@gmail.com wrote:
Hello,
I have the following anchor:
a href=http://www.example.com/files/map.pdf; onClick=javascript:
Hi Gang,
I've been wasting time trying to figure this out to no avail. Here's
my function:
//Toggle
$(#type_new).hide();
toggle = function(){
$(a.toggle).unbind('click').click(function(){
var aIndex = $(a#type).index(this);
Hi.
I have hidden div, that i want to show by sliding it in from top
border.
The problem is that i don't know how to make it slide in instead of
wipe in.
I want it all to move with it's content instead of showing more and
more of it.
Regards
Expose:
http://flowplayer.org/tools/demos/expose/index.html
Hello. I'm relatively new to jQuery and wrote a simple script that
hides a block of text and displays a read more link that when clicked
shows the hidden text. Everything works fine except in Safari where
the hidden text is initially displayed for a second or so before being
hidden. I did some
give the div absolute position that is above the page ( something like
.top:-1000px), then use
var pixelsFromTop= 100;
var displayTime=1000;
$("#yourdiv").animate({"top": pixelsFromTop},displayTime)
if you are using jQueryUI already in page can also do this with
$switchClass which can
this line threw me for a loop. var aIndex =
$("a#type").index(this);
reason: ID's have to be unique so indexing $("a#type") can only
return 0 as there can only be one of them
therein lies a big part of your problem, your select and a tag use same
ID
didn't look a lot further
you could even make it a mini-plugin:
;(function($) {
$.fn.valueswap = function(selection, opts) {
var hold = $(selection).values(opts),
On Fri, Oct 16, 2009 at 2:16 PM, johnHoysa johnho...@gmail.com wrote:
Figured it out, only tested on FF.
$('.toleft').click(function() {
oops. hit send too early:
;(function($) {
$.fn.valueswap = function(selection, opts) {
var $right = $(selection)
r = $right.values(opts),
l = this.values(opts);
$right.values(l, opts);
this.values(r, opts);
return this;
};
This has served me well:
http://www.learningjquery.com/2008/10/1-way-to-avoid-the-flash-of-unstyled-content
--Karl
Karl Swedberg
www.englishrules.com
www.learningjquery.com
On Oct 16, 2009, at 4:53 PM, derek allard wrote:
Hello. I'm relatively new to jQuery and wrote a
78 matches
Mail list logo