Actually, thanks to everybody for the replies.
I think you were all basically saying the same thing in different ways
come to think of it...
On Oct 24, 11:30 pm, Nikola wrote:
> Thanks Mike, I generally understand closures and your explanation was
> very good.
>
> I think what yo
;s what is happening in your example: You have an outer function - the
> "ready" callback - and an inner function - the "click" handler. The inner
> function can access the variable declared in the outer function, even though
> the inner function runs long after the outer
ote:
>
> > You can't. It exists for the duration of the ready function, then
> > it's gone.
>
> > On Oct 24, 7:51 pm, Nikola wrote:
>
> > > Hi, I've been trying to understand a little tidbit of jQuery here...
>
> > > Lets say
Where, is the question.
On Oct 24, 8:01 pm, donb wrote:
> You can't. It exists for the duration of the ready function, then
> it's gone.
>
> On Oct 24, 7:51 pm, Nikola wrote:
>
> > Hi, I've been trying to understand a little tidbit of jQuery here.
Hi, I've been trying to understand a little tidbit of jQuery here...
Lets say we define an object in the Document "ready" method:
$(function(){
var pen =
{
type: "Ballpoint",
color: "blue",
hasInk: true
}
});
Where in the
You could toggle classes making sure each class is styled with the
appropriate image, use the css() method to change the background /
background-image property or, if your working with an img element, you
can use the attr() method to change the images "src".
On Oct 2, 12:26 pm, Gremlyn1 wrote:
>
Hi,
I'm wondering how to access a plug-in's options from within the
initial plug-in call. Here's an example:
$("#someDiv").somePlugIn({
optionA: true,
trigger: $(this).children('#trigger'),
callback: function(){
trigger.doSomething();
}
});
That's really great... I like this.
On Jun 19, 6:16 am, GianCarlo Mingati
wrote:
> Hello everyone,
> during the initial phase in the development of amuch more complex
> zomm&pan widget, i ended up with this tiny (yet another) zoom&pan
> plugin. Since it's small and with just few functionalities
You know, you can view sites in IE7 mode with IE8 Just change the
Document Mode to IE7 standards. Also, it's not a problem with jQuery
you have a trailing comma on line 65 of your inline script:
clip: {baseUrl: 'http://www.pangeaadvisors.org'}, // <-- This
comma is the problem
On J
Give the three master radio buttons unique ID's or classes. Then,
upon clicking one of them you can add / remove classes and
attributes...
$('#masterRadioOne').click(function(){
($('.radio1').is('.on')) ? $('.radio1').removeClass('on').attr
("checked",false) : $('.radio1').addClass('on').at
Very nice.
On May 29, 7:39 pm, Panman wrote:
> This is a double post, at least going to be a double post from in the
> jQuery Plugin list. I'm being moderated yet on that list, and it
> doesn't seem to get much activity.
>
> ---
Here's a few I've come across:
jQuery Media PlugIn:
http://malsup.com/jquery/media/
jPlayer
http://www.happyworm.com/jquery/jplayer/
FlowPlayers a nice PlugIn as well but it looks like the site is down
at the moment.
On May 20, 10:02 am, SamCKayak wrote:
> Is there a cross-browser jQuery plug
Since you want to execute the text change and fadeIn after the
animation completes you need to use a callback...
$('.frame3').click(function(){
$('#story, #word1').fadeOut('fast', function(){
$('#story').text("lorem");
$('#word1').text("ipsum");
$('#story, #word
You're going to want to use callbacks...
$('#word1, #story').fadeOut('fast', function(){ $("#word 1").text
("lorem"); $("#word").text("ipsum"); $('#word1, #story').fadeIn
("slow")});
$('.frame3').click(function(){
$('#story, #word1').fadeOut('fast', function(){ $('#story').text
("lorem"); $
I experienced this, yes. In my case it was the Themeroller Dev tool
which was slowing things down. Additionally, I wasn't able to
download any themes. I'd say it's probable that the Themeroller and
Dev tool are being updated at this time.
On May 2, 4:08 pm, "Michael Geary" wrote:
> It sounds
I really like the 'Simplest Tooltip ever' by Alen Grakalic at CSS
Globe, it's a tiny script and it works well. Q-Tip is another nice
one I've used in the past as well..
On Apr 20, 5:11 pm, Jack Killpatrick wrote:
> worth a look:
>
> http://craigsworks.com/projects/qtip/docs/
>
> http://cssglobe
Is there any performance difference at all? Say between using .hover
vs. binding to mouseenter and mouseleave?
On Apr 6, 6:40 pm, James wrote:
> Yes, basically two different way to do the same thing.
> Though with bind(), you can define more than one type of events at
> once to the same callbac
n Apr 4, 12:24 am, Nikola wrote:
> Perfect. Thank you, I did try using a $.get request but I was tyring
> to replace charecters instead of injecting the data as text. This is
> exactly what I was trying to do. I thought there was a very simple
> and clean way to do it but I wasn
and then injected to $('#thisDiv').
>
> I hope this helps,
>
> Thanks,
> Abdullah.
>
> On Apr 3, 11:27 pm, Nikola wrote:
>
>
>
> > Anyone have any ideas or input on this one?
>
> > On Apr 3, 6:29 pm, Nikola wrote:
>
> > &g
What a great example, very usefull! I never thought of doing
something like that...
On Apr 3, 11:44 pm, Eric Garside wrote:
> If you get the developer build, each of the files is separated out
> into a: ui.core.js, ui.draggable.js, etc format. If you want to add a
> bit of spice:
>
> $.uinclude
Anyone have any ideas or input on this one?
On Apr 3, 6:29 pm, Nikola wrote:
> Thanks MorningZ, I gave this approach whirl and in a roundabout sort
> of way it seems to accomplish the same thing I was doing in my third
> example.
>
> $("#thisDiv").load("
Check out the amazing jQuery UI Layout plugin. Go through the demos,
I'm sure you can keep the south pane hidden and then show it on
hover. Conversly, you could always use a fixed position DIV at the
bottom of the page, hide it and then on hover use something like
slideUp to show it..
jQuery UI
Thanks MorningZ, I gave this approach whirl and in a roundabout sort
of way it seems to accomplish the same thing I was doing in my third
example.
$("#thisDiv").load("../sample.html", { }, function() {
var div = document.createElement("div");
var text = document.createTextNode($("#thisDiv
call, meaning you have no control over the
> object so soon to use the ".html()" method
>
> So with all that said (with help of some "Html Encode" code that i
> found by Google-ing):
>
> $("#thisDiv").load("../sample.html", { }, function()
Hello,
I'm trying to load an external HTML file and encode the < with <.
I've tried a number of different approaches but I haven't found the
proper method yet. Here are a few examples of how I've approached
this..
$("#thisDiv").load("../sample.html");
$("#thisDiv").text("<").replaceWith("<");
_
anks.
>
> On Mar 26, 1:59 pm, Nikola wrote:
>
>
>
> > I've found JRC and the Bullet Proof CornerZ PlugIns to be foolproof...
> > except in IE8 thus far.
>
> > On Mar 26, 11:44 am, banacan wrote:
>
> > > I'm creating a page with many div
I've found JRC and the Bullet Proof CornerZ PlugIns to be foolproof...
except in IE8 thus far.
On Mar 26, 11:44 am, banacan wrote:
> I'm creating a page with many divs that I would like to have rounded
> corners, and several problems keep coming up.
>
> When using JRC for rounding, not all eleme
That was really neat... jQuery physics!
On Mar 25, 11:40 pm, brian wrote:
> I'll second that!
>
> On Wed, Mar 25, 2009 at 9:26 PM, Rick Faircloth
>
> wrote:
>
> > Pretty cool, Kelvin!
>
> > Rick
>
> > -Original Message-
> > From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups
You might wan't to post this in the UI group..
http://groups.google.com/group/jquery-ui
You could, also, just add / remove your own 'active' class pretty
easily.
On Mar 24, 10:32 pm, MorningZ wrote:
> it's definitely possible, but would require going through the js and
> theme css and changing
Is anyone familiar with this?
On Mar 22, 10:32 pm, Nikola wrote:
> Hello,
>
> I posted this in the UI group but I'm thinking the question may belong
> here. I can't seem to get the height of Dialog titlebars in Opera.
> I've tried numerous approaches. You c
Hello,
I posted this in the UI group but I'm thinking the question may belong
here. I can't seem to get the height of Dialog titlebars in Opera.
I've tried numerous approaches. You can run the below code in Opera
with any page that contains a Dialog. It always returns 0.
Thanks
http://paste
I do this all the time...
file:///c:/myDirectory/myFile.htm #myDiv
On Mar 18, 3:32 pm, rolfsf wrote:
> I need to make a simple 'freestanding' prototype to be run locally. I
> used a simple load() to grab a div from another file:
>
> $('#ajax-panel').load("../myDirectory/myFile.htm #myDiv");
>
>
Very interesting!
On Mar 18, 2:14 pm, xwisdom wrote:
> Hi Jack,
>
> Yes, Raxan is still in alpha stages right now but we're anticipating a
> beta and then a final release very soon.
>
> donb,
>
> The grid system used by Raxan is based on BluePrintCSS which include a
> lot more than layouts but i
Hi, I noticed that the API browser @
http://www.nicolas.rudas.info/jquery/finder/api.html
isn't displaying the info. Is it being updated for 1.7 maybe?
Thanks...
On Mar 5, 5:37 pm, Nicolas R wrote:
> All right, I added IE6 support.
>
> Latest files (ui.finder.js,ui.finder-min.js, and ui-finder
Thanks again, I understand what's happening now and I've been able to
correct my code. The plugin I'm working on is functioning perfectly -
I no longer need to filter out results or toggle classes.
On Feb 21, 4:20 pm, Nikola wrote:
> Oh
>
> Thank you! I
orTwo}); };
>
> > $(this).hover(function () {
> > hover_in();
> > },function(){
> > hover_out();
> > });
> > });
>
> > return this;};
>
> >
Hello,
I've written a simple function for a hover event but I can't seem to
specify what $(this) is properly. Here's a little example I put
together, any input would be great.
Thanks..
http://jsbin.com/ezeye/edit
I made a typo it's 'zIndex' not 'zindex' - disregard the quotes
there...
On Feb 20, 2:32 pm, Nikola wrote:
> You can use a callback which will be executed when the animation is
> finished, like this:
>
> $("#i2").animate({left: "+=
You can use a callback which will be executed when the animation is
finished, like this:
$("#i2").animate({left: "+=110px"}, 1500, function(){ $(this).css
({zindex:19}); } );
On Feb 20, 7:06 am, "paul.mac" wrote:
> Hi, A newie to jQuery although I do have quiet a lot of JavaScript
> experience.
e only somewhat reliable rounded corners plugin is imho:
>
> http://labs.parkerfox.co.uk/cornerz/
>
> Rusco.
>
> On 30 jan, 07:57, Nikola wrote:
>
> > I just discovered how nice jQuery Curvy Corners is. It works well in
> > Firefox but only seems to work in IE7 when using
king. Any input or advice is greatly appreciated.
http://blue-anvil.com/jquerycurvycorners/test.html
Thanks,
Nikola
Happy New Year to our Chinese friends! Long life and good health to
you!
22, 4:12 am, Liam Potter wrote:
> you would need to have the javascript with the php in the same file so
> it would be something like this
>
>
>
>
> $(function () {
> $("#someDiv").append("Some value is:<b><?php $var ?></b>");});
Hello, I am trying to figure out how to .append a php session $var to
a given div. I'm not sure what the correct syntax is. I was trying
something along the lines of how I'd display the var in HTML:
$("#someDiv").append("Some value is:'.$var.'");
I'm not sure the best way to go about this. An
One hour.
I am betting that an individual with beginner to intermediate skill
could "find and replace" the conflicting class names in the HTML, CSS
and js. That is the cleanest, most logical and most professional
solution in my opinion. It makes sense to make sense out of one's
code especially
Super plug-in! the first thing that came to mind when I tried it out
was the new jQuery 1.3 API...
Well done!
Ahh, sorry about that UI always comes to mind when I think of visual
presentation, ie. fading, exploding, animating etc..
What about doing something similar to what Karl Swedberg did in his
animated scrolling example?
http://www.learningjquery.com/2007/09/animated-scrolling-with-jquery-12
Also, you might want to try posting questions like this one in the
jQuery UI group as .animate is part of jQuery UI.
http://groups.google.com/group/jquery-ui?hl=en&pli=1
with
setTimeout.
setTimeout ('$(this).animate({},speed)', 400);
Hope that helps.
Nikola
I see, you set a js var to equal the var in php, that's very good to
know. Thank you.
I'm validating a form in php and am wondering how I can bind a jQuery
function to a successful validation or how to check a var set in php
with jQuery.
Thanks for the info duck, I thought it was something along those
lines... good to know.
Well, that was really strange. The problem was somewhere in the
validate plug-in, I'm still working on this and not exactly sure what
happened... but, all is well.
I was using 1.3b2 with UI1.6rc4 on one particular project I'm working
on. I threw 1.3rc1 in to try it out and for some reason my tabs are
all over the place. It will really take me some time to put a minimal
case together but I'll try to narrow this down a bit tomorrow. Are
there any particular
I was using 1.3b2 with UI1.6rc4 on one particular project I'm working
on. I threw 1.3rc1 in to try it out and for some reason my tabs are
all over the place. It will really take me some time to put a minimal
case together but I'll try to narrow this down a bit tomorrow. Are
there any particular
I'd like to start testing in IE8b2 as well but I can't seem to get it
working. Has anyone else had difficulties with it? My PC is running
Windows XP sp3. I installed IE8, rebooted, but IE8 wouldn't start
up. I checked the version to confirm it was actually installed and it
was. I re-installed
I'd like to start testing in IE8b2 as well but I can't seem to get it
working. Has anyone else had difficulties with it? My PC is running
Windows XP sp3. I installed IE8, rebooted, but IE8 wouldn't start
up. I checked the version to confirm it was actually installed and it
was. I re-installed
I'd like to start testing in IE8b2 as well but I can't seem to get it
installed. Has anyone else had difficulties getting it up and
running? I'm running Windows XP sp3. I installed IE8, rebooted but
IE8 wouldn't start up. I checked the version to confirm it was
installed and it was. I re-inst
That's very true and in fact that's how I'm learning JavaScript
myself. jQuery is an awesome way to learn, it's smart, fun and
powerful.
Why not integrate the basic "JavaScript Fundamentals" in each jQuery
lesson. You could show some general examples and explain the
rudimentary JavaScript principal (I'm thinking a 15 minute
introduction...) then teach the jQuery and demonstrate how and why
jQuery is the "write less, do more" JavaS
Why not include basic "JavaScript Fundamentals" in each jQuery
lesson. Show some general examples and explain the general JavaScript
principal of the lesson works (I'm thinking a 15 minute
introduction...) then teach the jQuery and illustrate how and why
jQuery is the "write less, do more" JavaSc
I'm thinking now that I'll use jQuery validation methods from the
start which can make the form more interactive and interesting. If
the form validates within jQuery then I'll pass it to my php
validation method. In this case, I'll use to php to re-validate the
form under stricter criteria and e
I'm thinking now that I'll use jQuery validation methods from the
start which can make the form more interactive and interesting. If
the form validates within jQuery then I'll pass it to my php
validation method. In this case, I'll use to php to re-validate the
form under stricter criteria and e
Great information, I have some very strong ideas of when and how I'll
impliment jQuery and php validation now.
Thanks much,
Nikola
Thanks for the info, I was thinking along the same lines but wasn't
altogether sure.
I am wondering what the relative advantages / disadvantages are of
validating purely in php vs. in jQuery.
Thanks much, I'm going to try these all out later today.
I haven't really found a good solution for debugging in IE7. Any
suggestions or recommendations?
Thanks,
Nikola
I learned a lot from that bit of code, great example.
Indeed, thanks much... this is an extremely versatile and useful
selector. Sorry for the double post. I deleted my initial message to
fix a typo then had to re-post.
Sure does, thanks much... this is an extremely useful and versatile
selector. Sorry for double post. I deleted my initial message to fix
a typo which in turn removed the entire message and I had to re-post
it so now we have two.. ;)
Off the top of my head, why not just use one list and append the
relevant text?
That is a thing of beauty! Thanks much.
along the lines of:
Anchors that don't have "#" as the first character in their
reference..
$("a:not "#" as the first character in their href").someaction
Any ideas?
Thanks much,
Nikola
r in their
reference..
$("a:not "#" as the first character in their href").someaction
Any ideas?
Thanks much,
Nikola
The image thumbs don't stay active when selected for some reason. I
still haven't really dove into Galleria yet as I'm working on some
things with Dialog at the moment but I thought I'd mention it...
@Deaven Select "Edit my membership" and choose your notification
preferences...
Thats great info... I did the same but in my case the caption text is
missing where as the prev/next buttons are ok.
Has anyone had any problems with Galleria and jQuery 1.3b1? Galleria
seems to be incompatible with 1.3B1. I'll try to dig into later and
see what I come up with...
Thanks Ricardo, I forgot to link to UI in my minimal case but I do
have it included in the project I am working on so that wasn't the
problem. I was, however, unaware of the "borderSideColor" color
animation. Sometimes the answers can be right under ones nose.
Thanks much... now if I could just
You can play around with it more here:
http://jsbin.com/anala/edit
ion it would be great to control what aspect of the border we
wish to animate, just the size, size and color, just the color etc..
Animating individual border colors can be very useful...
MINIMAL TEST CASE: http://paste.pocoo.org/show/96878/
Thanks,
Nikola
God Peace Christ is born! Merry Christmas from America to all!
In any case the main question is: is there a way to catch the
middleclick?
On Jan 17, 3:39 am, RobG <[EMAIL PROTECTED]> wrote:
> Control + click or command + click also opens links in a new tab for
> some settings in some browsers. I can also set Firefox to always open
> new windows in a tab, trying to stop that is futile.
Absolutely correct. There are many ways to o
Hello,
I'm working an a very simple behavior: capturing clicks on anchors.
Binding the click event and doing the rest of the logic is easy.
Problem is the middle click (opens the link in a new tab) and both
available options in the context menu: open in new tab/open in new
window.
While it's har
How about integrating it in the core? After if ( console ) of course
nsole.log( p ); // --> [li]
}
jQuery version is: 1.0.4 and unfortunately I can't change it
Now, let's hope I've managed it to be more precise about my
thoughts :)
Greetings
-- Nikola
parents of the curent element. But the problem
remains - other variables inside the same function are changed and all
the same: parents( 'li' )
Thank you.
Nikola
I have the following funtion:
function foo() {
console.log( arguments ); // --> OK
var e = arguments[0];
console.log( e );// --> OK
var p = arguments[0].parents( 'li' ); // --> problem occurs ONLY if
this selection is empty
I have the following funtion:
function foo() {
console.log( arguments ); // --> OK
var e = arguments[0];
console.log( e );// --> OK
var p = arguments[0].parents( 'li' ); // --> problem occurs ONLY if
this selection is empty
92 matches
Mail list logo