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 DOM
...@comcast.net wrote:
You can't. It exists for the duration of the ready function, then
it's gone.
On Oct 24, 7:51 pm, Nikola nik.cod...@gmail.com wrote:
Hi, I've been trying to understand a little tidbit of jQuery here...
Lets say we define an object in the Document ready method
, then
it's gone.
On Oct 24, 7:51 pm, Nikola nik.cod...@gmail.com wrote:
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
- 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 function has returned.
-Mike
On Sat, Oct 24, 2009 at 5:23 PM, Nikola nik.cod...@gmail.com wrote:
It has to be stored somewhere though...
Say
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 nik.cod...@gmail.com wrote:
Thanks Mike, I generally understand closures and your explanation was
very good.
I think what
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
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 giancarlo.ming...@gmail.com
wrote:
Hello everyone,
during the initial phase in the development of amuch more complex
zommpan widget, i ended up with this tiny (yet another) zoompan
plugin. Since it's small and with
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
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) :
Very nice.
On May 29, 7:39 pm, Panman rpann...@gmail.com 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 s...@elearningcorner.com wrote:
Is there a
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);
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,
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 m...@mg.to wrote:
It
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 j...@ihwy.com wrote:
worth a look:
http://craigsworks.com/projects/qtip/docs/
Is there any performance difference at all? Say between using .hover
vs. binding to mouseenter and mouseleave?
On Apr 6, 6:40 pm, James james.gp@gmail.com 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
4, 12:24 am, Nikola nik.cod...@gmail.com 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't
Hello,
I'm trying to load an external HTML file and encode the with lt.
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(lt);
__
= document.createElement(div);
var text = document.createTextNode($(#thisDiv).html());
div.appendChild(text);
var EscapedHTML = div.innerHTML;
});
On Apr 3, 5:05 pm, Nikola nik.cod...@gmail.com wrote:
Hello,
I'm trying to load an external HTML file and encode the with lt.
I've
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 =
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
Anyone have any ideas or input on this one?
On Apr 3, 6:29 pm, Nikola nik.cod...@gmail.com 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(../sample.html, { }, function
What a great example, very usefull! I never thought of doing
something like that...
On Apr 3, 11:44 pm, Eric Garside gars...@gmail.com 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:
pm, Nikola nik.cod...@gmail.com wrote:
Anyone have any ideas or input on this one?
On Apr 3, 6:29 pm, Nikola nik.cod...@gmail.com 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
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 banaca...@gmail.com 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
, 1:59 pm, Nikola nik.cod...@gmail.com 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 banaca...@gmail.com wrote:
I'm creating a page with many divs that I would like to have rounded
corners
That was really neat... jQuery physics!
On Mar 25, 11:40 pm, brian bally.z...@gmail.com wrote:
I'll second that!
On Wed, Mar 25, 2009 at 9:26 PM, Rick Faircloth
r...@whitestonemedia.com wrote:
Pretty cool, Kelvin!
Rick
-Original Message-
From: jquery-en@googlegroups.com
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 morni...@gmail.com wrote:
it's definitely possible, but would require going through the js and
theme
Is anyone familiar with this?
On Mar 22, 10:32 pm, Nikola nik.cod...@gmail.com 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 can run the below code
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
Very interesting!
On Mar 18, 2:14 pm, xwisdom xwis...@gmail.com 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
I do this all the time...
file:///c:/myDirectory/myFile.htm #myDiv
On Mar 18, 3:32 pm, rolfsf rol...@gmail.com 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
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 ruda...@googlemail.com wrote:
All right, I added IE6 support.
Latest files
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
();
});
});
return this;};
$(.hover_me).simpleFunction();
});
===
On 2009-2-22, at 上午3:06, Nikola wrote:
Hello,
I've written a simple function for a hover event but I can't seem to
specify what
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 nik.cod...@gmail.com wrote:
Oh
Thank you! I've tried so
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 paul.mcma...@uuconstruct.co.uk wrote:
Hi, A newie to jQuery although I do have quiet a lot of
I made a typo it's 'zIndex' not 'zindex' - disregard the quotes
there...
On Feb 20, 2:32 pm, Nikola nik.cod...@gmail.com wrote:
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
rounded corners plugin is imho:
http://labs.parkerfox.co.uk/cornerz/
Rusco.
On 30 jan, 07:57, Nikola nik.cod...@gmail.com wrote:
I just discovered how nice jQuery Curvy Corners is. It works well in
Firefox but only seems to work in IE7 when using jQuery 1.2.6. I did
a quick search
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!
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:b'.$var.'/b);
I'm not sure the best way to go about this.
Nikola wrote:
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:b'.$var.'/b);
I'm not sure the best way
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!
I see, you set a js var to equal the var in php, that's very good to
know. Thank you.
with
setTimeout.
setTimeout ('$(this).animate({},speed)', 400);
Hope that helps.
Nikola
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=enpli=1
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
Ahh, sorry about that UI always comes to mind when I think of visual
presentation, ie. fading, exploding, animating etc..
Thanks for the info duck, I thought it was something along those
lines... good to know.
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.
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
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
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
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
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
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 haven't really found a good solution for debugging in IE7. Any
suggestions or recommendations?
Thanks,
Nikola
Thanks much, I'm going to try these all out later today.
I am wondering what the relative advantages / disadvantages are of
validating purely in php vs. in jQuery.
Thanks for the info, I was thinking along the same lines but wasn't
altogether sure.
Great information, I have some very strong ideas of when and how I'll
impliment jQuery and php validation now.
Thanks much,
Nikola
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.
I learned a lot from that bit of code, great example.
That is a thing of beauty! Thanks much.
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.. ;)
..
$(a:not # as the first character in their href).someaction
Any ideas?
Thanks much,
Nikola
Off the top of my head, why not just use one list and append the
relevant text?
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
Thats great info... I did the same but in my case the caption text is
missing where as the prev/next buttons are ok.
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...
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
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
You can play around with it more here:
http://jsbin.com/anala/edit
God Peace Christ is born! Merry Christmas from America to all!
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 open
In any case the main question is: is there a way to catch the
middleclick?
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
How about integrating it in the core? After if ( console ) of course
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
the same function are changed and all
the same: parents( 'li' )
Thank you.
Nikola
( 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
87 matches
Mail list logo