If you bind idTabs using click (by default) then you can use the
following to trigger it via hoverIntent:
$("a[href*=#]").hoverIntent(function(){ $(this).click(); }, function()
{});
~Sean
On Oct 29, 5:08 am, Ettiene <[EMAIL PROTECTED]> wrote:
> Hi there,
>
> I've implemented idTabs on a website
> 1. Is jQuery 1.2.3 a requirement?
An excellent question, as I only tested with 1.2.3... but it's highly
probably that it works with older versions too. I'll try to test it out
later.
> 2. What do each of the individual files do? For example, there is a
> notice to download jQuery.idTabs.min.js
It's been a long time since I released idTabs 1.0 and I'm happy to say that
a lot more people than I was expecting are using it.
As time has passed, so has my programming style. I have completely recoded
the structure and added a few options people requested.
idTabs can now be bound dynamically, an
var mb3 = $(this);
On that line, the this is referring to the scope of the function which is
not inside of an $.each(..) or $.fn.foo(..)
~Sean
Jason,
Based on your response I would recommend allowing the user to enter either
format using the watermark plugin to suggest the format of the input, then
if they enter it lazily (ex: Month 9) when they tab out of the input box,
correct their format. The reduces any server side validation and gi
Excellent app.
Visual programming is a lot of fun and great for creating quick mashups and
data analysis.
Is there a way to separate the "visual code" and the results it produces?
~Sean
You could try $('tr:has(td):even')
[hasElement] support was removed in ~v1.2(perhaps earlier) in favor of
:has(element)
~Sean
Awesome work Michael.
I love the title font, excellent choice. Glad to see it's library
independent.
~Sean
On Jan 25, 2008 3:45 AM, mjijackson <[EMAIL PROTECTED]> wrote:
>
> Hello all,
>
> I'm putting the finishing touches on a media viewer application that I
> coded up recently (think Thickbox
Great release, love the changes. Thank you
~Sean
> Wow, the "digg this story" thing worked. :)
> >
> > http://digg.com/programming/Getting_jQuery_into_Big_Corporations
> >
> > Glen
> >
>
> > On Dec 6, 2007 10:12 AM, Sean Catchpole <[EMAIL PROTECTED]> wrote:
> >
> > > 1. Is jQuery goi
> 1. Is jQuery going to be here for the long term?
Yes, with a large and active community jQuery is in it for the long
run. Help is always easy to find.
> 2. Why not use prototype, what are the benefits of jQuery over it?
jQuery simplifies and reduces code size, and offers a plugin system
that ra
Do you have a demo page or some sample code?
~Sean
On Nov 25, 2007 8:17 AM, ogurec <[EMAIL PROTECTED]> wrote:
>
> Hi,
> when i try to initialize idTabs on successful ajax request it fails in
> IE6, but works in FF2, Opera 9 and Safari for Windows. Anyone else had
> such problem? Is there a solut
Is there a good reason why placing scripts at the bottom of a page is
a bad idea?
By placing them in the head all javascript files must be downloaded
before the rest of the page can render. This seems odd since most of
the time the javascript needs to wait for the page to be loaded
anyway. Other
I believe animation between classes is in the works as part of the UI
or similar package.
~Sean
Hi Robert,
I doubt the load time of jQuery is very significant. Downloading files
take much much longer than it does to execute. Regardless, I
personally would not use frames since then the url will never change.
~Sean
I think you got the jist of it. Syntax looks just fine. The filter
isn't necessary, but I doubt it will be depreciated in future
releases.
function getRecord(id,URL){
jQuery("#ResultsTable tr .selected").removeClass("selected");
jQuery("#"+id).addClass("selecte
yay \o/
~Sean
Very Cool.
~Sean
Looking good Tane. The only changes I'd make are CSS related, but since it's
still beta I'll cut ya some slack. =P Keep up the good work.
~Sean
That's great! Excellent plugin. I've been using it to present idTabs:
http://www.sunsean.com/idTabs/
~Sean
On 9/26/07, Andrea Ercolino <[EMAIL PROTECTED]> wrote:
>
>
>
> Chili is now much faster than before. Try it!
>
> http://noteslog.com/post/chili-19-released-today/
>
> --
> View this message
jQuery has native a slide effect, but I am looking for something similar one
could call shift.
The content actually moves, not just the border.
jQuery Slide: A->AB->ABC
Shift Slide: C->BC->ABC
Is there a plugin other than interface that does this?
~Sean
Hiya,
You bet, try this:
HTML
Tab
JAVASCRIPT
$("#textcontent").idTabs(function(id,list,set){
$("a",set).removeClass("selected")
.filter("[EMAIL PROTECTED]'"+id+"']",set).addClass("selected");
for(i in list)
$(list[i]).hide();
$('.'+id.substr(1)).fadeIn(2000);
return false;
Anyone can test with the latest version of jquery by grabbing a nightly
build.
http://code.jquery.com/nightlies/jquery-nightly.js
The issue is rather that plugin authors don't have the time to update their
plugins right when the new version comes out.
I believe there are already some plugins labe
Hi Rob,
.ready() won't work in Rhino since there is no page to wait if it's ready.
Everything else should work just fine.
~Sean
On 9/12/07, Rob Desbois <[EMAIL PROTECTED]> wrote:
>
> Ok I've enlightened myself a little: I tried it with jQuery 1.2 and
> discovered that the line number changed - i
Excellent, I'll look into this.
~Sean
On 9/12/07, Felix Geisendörfer <[EMAIL PROTECTED]> wrote:
>
> Here is an interesting blog post that I came across:
>
> http://blog.stevenlevithan.com/archives/faster-than-innerhtml
>
> The synopsis basically is that one can gain dramatic speed improvements o
No, this is not built into jQuery. There is however a plugin that can do
this for you.
http://jquery.com/plugins/project/XSLT
~Sean
On 9/12/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
>
> Is there an option to apply XSL stylesheets to XML recieved via
> jQuery.ajax()? I have some templated
You could try this trick:
var stripme ="HTML string";
var stripped = $("").html(stripme).text();
~Sean
On 9/11/07, AnandG <[EMAIL PROTECTED]> wrote:
>
>
>
> I retrieve a lot of strings from a JSON file. These strings can contain
> HTML
> tags.
>
> I would like to show the strings (for example a d
yay \o/ Congrats!
~Sean
I will take this opportunity to remind everyone that there is also a firefox
plugin.
http://www.sunsean.com/jquerydetect/
~Sean
/drool
~Sean
On 9/4/07, Rey Bango <[EMAIL PROTECTED]> wrote:
>
>
> Yep, I'm feeling pretty special right about now with my new
>
> JQUERY MUG & COASTER SET!! wut!!!
>
> http://www.reybango.com/images/jquery/jquerymug8x6.jpg
>
> http://www.reybango.com/images/jquery/jquerycoaster8x6.jpg
>
> L
I'll try to pull out the time later to write a more thorough response, but
for now this is how you would code than line your pasted:
$("label").not(":contains(' ')")
~Sean
On 9/4/07, Andy Matthews <[EMAIL PROTECTED]> wrote:
>
>
> Anyone have any input on this? Surely someone has written a tute
This could be very useful on large pages. Great work
~Sean
This can be done using map&reduce or other functions, but they are only
supported in Firefox atm.
Writing a double for loop is easy to code and wider supported.
~Sean
On 8/28/07, Potluri <[EMAIL PROTECTED]> wrote:
>
>
>
> Is there a jquery way to compare two arrays without looping.
>
> like I hav
This plugin may be of assistance:
http://jquery.com/plugins/project/XSLT
~Sean
On 8/28/07, Nico <[EMAIL PROTECTED]> wrote:
>
> $(this).children("span").children("a").html("it works");
>
I would have chosen the following
$("span a",this).html("it works");
~Sean
hem to stay in jQuery SVN.
>
> --John
>
> On 8/27/07, Sean Catchpole <[EMAIL PROTECTED]> wrote:
> > An interesting post, thank you.
> > I have created a revised version that uses only one image:
> > http://dev.jquery.com/view/branches/sean-dev/pro/pro.html
&
An interesting post, thank you.
I have created a revised version that uses only one image:
http://dev.jquery.com/view/branches/sean-dev/pro/pro.html
~Sean
On 8/27/07, Alexandre Plennevaux <[EMAIL PROTECTED]> wrote:
>
> if anyone is interested, Stu Nicholls, one of the most creative css
> hackers
On 8/27/07, Rey Bango <[EMAIL PROTECTED]> wrote:
> I know you guys have been busting your tails...
Thanks Rey, it's been a lot of fun.
On 8/27/07, Smith, Allex <[EMAIL PROTECTED]> wrote:
> This may be a dumb question... But is there any release info about
> jQuery UI out yet? Screen shots or othe
Excellent work Brandon, I can't wait to give it a try.
~Sean
o why
> I didn't think of this before). Much improved:
> http://dev.jquery.com/~john/ticket/animatetest/
>
> --John
>
> On 7/9/07, Sean Catchpole <[EMAIL PROTECTED]> wrote:
> >
> > On 7/9/07, Glen Lipka <[EMAIL PROTECTED]> wrote:
> > > A big qu
Pretty cool Yehuda, I'll have to give it a shot so I can give ya some
feedback.
~Sean
I wrote a fun dom creation plugin, but in the end it's not much better than
the built in dom creation:
http://jqueryjs.googlecode.com/svn/branches/sean-dev/jquery.dom.js
~Sean
On 8/17/07, John Resig <[EMAIL PROTECTED]> wrote:
> $(...).onclick().toggle().end();
I really like this idea John.
~Sean
Hi,
Are aware that there are tabs plugins?
To answer your question:
$(function(){
$("#tabs li a").click(function(){
$("#tabs li").removeClass("select");
$(this).parent().addClass("select");
});
});
~Sean
Looks great Christian. I've been using tablesorter for a while, very useful
for adding quick sort functionality.
~Sean
Looks great Blair, excellent plugin. Thanks
~Sean
Congrats Brandon!
~Sean
You bring up an interesting point Willi.
You stated that $() runs 2 times, which is correct, except that the first
time there is significantly more work being done. The first time it has to
search through the DOM collecting all the DOM elements and matching them
against the selector. This is a lot
Loading different pages with .ready's is just fine. If the page has already
loaded then all .ready functions will be executed immediately. Also, there
is probably not a scoping issue. You might want to make sure that the html
you are trying to change ( tags) have all been loaded at the point your
c
There was recently one just made called Moonbox although I cannot find a
link at the moment. Keep your eyes open for it.
~Sean
On 8/12/07, iblastoff <[EMAIL PROTECTED]> wrote:
>
>
> Hi,
>
> I've searched to no avail thus far. Does anyone know if theres been a
> port of slimbox (or something simil
Great Plugin!
~Sean
Mootools tries be a bit more C-like, where jQuery uses javascript OO like
peanut butter and jelly.
//jQuery version
var ajax_request = function(options) {
op = { }; //default options
$.extend(op,options); //overwrites defaults
//more code here like $.ajax()
}
~Sean
he current item?
>
> --
> *From:* jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] *On
> Behalf Of *Sean Catchpole
> *Sent:* Friday, August 10, 2007 3:35 PM
> *To:* jquery-en@googlegroups.com
> *Subject:* [jQuery] Re: Using jQuery to parse a string
>
Quick:
x is each item of the array.
Short:
$.each is similar to Array.map
$.each calls the function for each item in the array. If the function
returns false then it stops.
This is different from a map function in that a map function will replace
the value in the array with what is returned by the
Hi, This might be a fancier solution:
var s = "title.string1-color.string2-size.string3";
h={};
$.each(s.split('-'),function(x){
var t = x.split('.');
h[ t[0] ] = t[1];
});
~Sean
On 8/10/07, cfdvlpr <[EMAIL PROTECTED]> wrote:
>
>
> That's just the kind of help I needed. Here's what I hav
On 8/10/07, Sam Collett <[EMAIL PROTECTED]> wrote:
> http://www.texotela.co.uk/accordiontest.php
You could try this:
$("#menu").Accordion({header:'li.haschildren[strong]'});
~Sean
Hi Sam,
With your html I was able to get this to work:
$('#menu').Accordion({ header: 'li strong' });
~Sean
Congrats Jörn!
~Sean
That's really cool Stephan, thanks for sharing. HTML needs a
refresher. Classitisis is everywhere and it would be nice to have a
few more useful tags to play with. Then again I use XML so I just make
tags up anyway =P.
~Sean
On 8/9/07, Mike Alsup <[EMAIL PROTECTED]> wrote:
> http://www.malsup.com/jquery/cycle/
Nice plugin Mike, when did you release this?
Haha, that's fun. Thanks for posting it.
~Sean
This would be a wonderful application for a download builder.
The core should remain exactly that, a core.
~Sean
Mtich,
I like to toggle checkbox states by emulating a click. This allows for any
bound events to also trigger.
$(":checkbox").click()
~Sean
On 8/3/07, Matt Penner <[EMAIL PROTECTED]> wrote:
> If I wanted the 2nd row 3rd cell the following works:
> $("tr:eq(1), td:eq(2)")
This will return the entire 2nd row and 3rd column.
On 8/3/07, Ganeshji Marwaha <[EMAIL PROTECTED]> wrote:
> I would use $("td:eq(2)", $("tr:eq(1)"))
This works, but
Hi Lucemia,
The problem your having is that window in plugins is not referring to the
same thing as javascript in a page.
I used this page to guide me:
http://developer.mozilla.org/en/docs/Code_snippets:On_page_load
In that example they use doc to refer to the document. So $("body",doc)
would sele
Hi Matt,
You've touched on a interesting topic and everyone has their own way of
doing it.
Personally I split my code into two sections, backend and frontend, or
rather data and presentation.
With this in mind I consider javascript to be on the frontend and therefor a
designers tool.
On 8/2/07,
vi
On 8/1/07, jayturley <[EMAIL PROTECTED]> wrote:
> currentItem = ' style="display:inline;">';
> $('#content p').append(currentItem);
$('')
.css("display","inline").append(
$('')
.attr("id",j.items[0].item_id)
).click(...).appendTo("#content p")
That's just one of many ways of doing it.
~Sean
On 7/30/07, John Resig <[EMAIL PROTECTED]> wrote:
> As of jQuery 1.1.3 you can now do:
> $("tr:nth-child(3n)")
I knew it! I couldn't remember which selector did it, but I thought I
had seen it before. Thanks John.
~Sean
The following code will set index.html#num=2#foo=bar to num=2; foo="bar";
(function(){
var l=window.location.hash.split('#').slice(1)
for(var i=0; i
Dmitrii, the code Erik Beeson pasted works, here's another option:
$.extend({expr:{":":{mod: "i%m[3]==0"}}}); //adds mod selector
$("tr:mod(3)")
~Sean
Kia,
It would be very easy to create a repeating animation, simply call the
same animation again the callback function.
More importantly, I believe that this is a prefect situation for a gif
animation. Doing javascript animations is very hard for the browser
and slows down old computers. Gifs ha
Great article. Those are some wonderful plugins (including Round 1).
~Sean
Rick, you could try zoomi.
http://www.sunsean.com/zoomi/
~Sean
Looks great Jay! Keep up the hard work.
~Sean
On 7/26/07, Mitchell Waite <[EMAIL PROTECTED]> wrote:
> This going will make me sound really dumb but what is the difference
between
> using single quote versus double quotes in jQuery, e.g.
Mitchell, the concept of single vs double quotes is more of a javascript
question.
The simple answer is tha
On 7/24/07, voltron <[EMAIL PROTECTED]> wrote:
Whoa! Just what I was looking for, can one dynamically assign content
to the tabs using Ajax? Great plugin
Sure you bet. Passing a click function can allow for many
possibilities to idTabs, including things entirely different from
tabs. I suppose
Rob,
If I understood you correctly, then idTabs does exactly what your asking for.
http://www.sunsean.com/idTabs/
If I misunderstood, can you clarify?
~Sean
A Great Story Michael, thank you.
~Sean
On 7/19/07, Jeremy Dunck <[EMAIL PROTECTED]> wrote:
Since work on .ready() is ongoing, is trunk stable?
I doubt the trunk is stable (even if it should be). I recommend doing
what you can with 1.1.3.1 for the time being.
~Sean
I believe I made a typo on the this.href.substr(1). Here's is the revised
sample:
$("a").click(function(){
$.get("test.php", { id: this.id,
action:this.href.substr(this.href.indexOf('#')+1)
} );
});
~Sean
On 7/19/07, Sean Catchpole <[EMAIL PROTECTED]
You could save the id in the html. Here's an example.
$("a").click(function(){
$.get("test.php", { id: this.id, action:this.href.substr(1) } );
});
~Sean
I know several of you are working on creating a plugin for this. I thought
I'd join the fun. =P
The syntax might be a little different, so I don't want to discourage anyone
from making their own.
Check out the source here:
http://jqueryjs.googlecode.com/svn/branches/sean-dev/jquery.dom.js
And a d
I have better suggestion for children than the one presented in that
article.
DOMdom way: { 'div': [ 'span', 'span' ] }
my suggestion: "div (span,span)"
The ( and ) are for grouping. This allows for multiple children, making text
easy:
$("body").domAppend("p (#this, b #is, #fun)");
~Sean
On 7/13/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
function serialize(s)
{
serial = $.SortSerialize(s);
alert(serial.hash);
var hash = serial.hash;
var temp = hash.replace(new RegExp( "sort1\[\]=", "gi" ),'');
};
Perhaps this will work:
function serialize(s
Kim,
Just as general rules for speeding things up. Saving results rather than
searching multiple times will always speed things up. As I said though, it's
hard to give specific suggestions without seeing more code.
~Sean
Kim, tablesort should be able to handle a table that big. Do you have a live
example?
~Sean
jQuery returns an array of DOM elements, so try this:
$('#postedText')[0].scrollTop =
~Sean
$('#myid table').find('th:first-child, td:first-child').remove();
~Sean
I really like this idea. It could be very powerful.
~Sean
Great work guys. Looks awesome.
~Sean
The problem is with this line:
sound=window.open(url,'soundbumbam','height=50,width=150');
Try declaring sound at the top of the
Cool news, thanks for the info Rey.
~Sean
On 7/10/07, Andy Matthews <[EMAIL PROTECTED]> wrote:
Why add the class "disabled" Sean?
In case someone wanted to change the CSS when it is disabled.
On 7/10/07, Jonathan Sharp <[EMAIL PROTECTED]> wrote:
You're missing your return statement in this revised version (for the
noob's: which is ne
On 7/10/07, "Sebastián V. Würtz" <[EMAIL PROTECTED]> wrote:
Wich is the best way to know if a element for example a div is defined?
We get this question a lot. jQuery returns the DOM in an array like fashion.
This is standard:
if($("div").length) ...
or sometimes:
var div = $("div")[0];
if(div)
On 7/10/07, cfdvlpr <[EMAIL PROTECTED]> wrote:
That works very well. Could you also grey out the unchecked
checkboxes after 3 are checked?
$.fn.limit = function(n) {
var self = this;
this.click(function(){
(self.filter(":checked").length==n)?
self.not(":checked").attr("disabled",true
On 7/9/07, Stephan Beal <[EMAIL PROTECTED]> wrote:
Do you happen to know if that's documented anywhere? i can find no
mention of it on the jquery site, and using the on-site search engine
returns (as usual) "No page title matches".
I doubt it's documented, I just dug it our of the source (which
$('#span1').bind('click', function() { return $(this).next("span"); });
or
$('#span1').bind('click', function() { return $("~ span",this); });
~Sean
On 7/9/07, cfdvlpr <[EMAIL PROTECTED]> wrote:
I have about 10 checkbox input elements with the same name and I'd
like to not let the user select more than 3 of them. How can I do
this with Jquery?
You can try this:
$.fn.limit = function(n) {
var self = this;
this.click(function(){ return (se
On 7/9/07, Jörn Zaefferer <[EMAIL PROTECTED]> wrote:
I can't find the initial branch of this thread. Could someone repeat
what exists() is supposed to do?
$.fn.exists = function() { return !!this.length; }
~Sean
1 - 100 of 269 matches
Mail list logo