[jQuery] Re: show/hide with embed

2009-10-17 Thread ngreenwood6
Yeah that is what I actually ended up doing. On Oct 17, 6:01 pm, Charlie wrote: > instead of hide(0 which is basically display:none,   you could move it off > screen. This sort of issue comes up a lot with > tabshttp://jqueryui.com/demos/tabs/#Why_does...

[jQuery] Re: what does this selector mean ?

2009-10-17 Thread Michael Geary
$('div',this) is simply a confusing way of writing $(this).find('div'). The only reason it exists at all is for "historical reasons": it was added to jQuery before the .find() method existed. Never use $('div',this) in your code. Always use $(this).find('div') instead. It is easier to read and fas

[jQuery] Re: what does this selector mean ?

2009-10-17 Thread Karl Swedberg
It's a little confusing, but the difference is that the "contextual selector" is a second argument, whereas the "or selector" is a comma within a single argument. So, if we forget about "this" for a moment: $('.myclass, #myid') -- matches all elements that have a class of "myclass" or id="myi

[jQuery] How to achieve this animation?

2009-10-17 Thread Eric Chen
Hi, this is Eric from Shanghai China, sorry for my bad English. I am a jQuery Fans. My site is now under building, the page of the animation is: http://www.imczy.com/EN/support-me.html The codes I achieve this animation are as follows: //like goadddy $.fn['_fadeOut'] = function(){ this.css('o

[jQuery] Re: what does this selector mean ?

2009-10-17 Thread lampy
I know Karl's answer is correct, but from the docs ( http://docs.jquery.com/Selectors/multiple#selector1selector2selectorN ) I would've thought the comma meant "select all div elements, and this". Is there any documentation that would help me understand this? On Sep 29, 10:03 pm, MorningZ wrot

[jQuery] Re: applying effect to certain div.

2009-10-17 Thread Charlie
your code works fine  http://jsbin.com/eqole must be something in your css Martijn wrote: Hi, Im trying to get a sliding down div, that pushes another div further down as it slides. I created the following code. However, the 2nd div doesnt appear at all. What is the proper way to say onl

[jQuery] Re: How to: Cycle back to beginning of gallery? At my wits end!

2009-10-17 Thread Charlie
the script is working fine in firebug   problem is you have a bunch of images in markup that don't exist at path you are calling them from josh wrote: Im simply trying to cycle back to the first picture of the gallery. Im on my 3rd day of trying to figure this out. I posted a link below.

[jQuery] Refreshing an element using set of interval

2009-10-17 Thread Julius
Dear all I'm trying to refreshin a div content using set of interval, but I don't know how to do that in jquery. How I make the code to do this task? Please help me I am new in jquery. Thx Sent from my BlackBerry® powered by Sinyal Kuat INDOSAT

[jQuery] jQuery form plugin

2009-10-17 Thread Boray Eris
http://www.pidizayn.com/virtualsub/jqform First form is ok. But second one that pulled with jquery not working. What's wrong?

[jQuery] Cycle plugin: centering images of variable width?

2009-10-17 Thread David Collins
I didn't see this as an option, so I decided to give it a try on my own. I was able to add some lines of code (shown with the > in the margin below) to the jquery.cycle.js script to read in the width of each image and center the slide within the slideshow container // set position and zIndex

[jQuery] FF "needs a moment" to calculate element width()

2009-10-17 Thread David Balažic
Hi! I have some scripting foo where I add some element dynamically and the want to query the width of it. NOTE: The reason I want width is for centering. If anyone knows a way to center a DIV element without knowing its width, just say so and the below problem is irrelevant. (same goes for heigh

[jQuery] Cycle plugin: using the addSlide option for multiple slideshows on the page?

2009-10-17 Thread David Collins
I have a page that has 9 tabs of content, with each tab having its own slideshow of about 8 images each. I was hoping to reduce the load time of the page by only starting with two images per slideshow, and then using the addSlide option to add the rest. A few questions: 1. Is this the best way

[jQuery] How to: Cycle back to beginning of gallery? At my wits end!

2009-10-17 Thread josh
Im simply trying to cycle back to the first picture of the gallery. Im on my 3rd day of trying to figure this out. I posted a link below. I checked the html code multiple times and the images and thumbs are in order. But after the 22nd pic, it brings up a broken link. The site is not mine, bu

[jQuery] applying effect to certain div.

2009-10-17 Thread Martijn
Hi, Im trying to get a sliding down div, that pushes another div further down as it slides. I created the following code. However, the 2nd div doesnt appear at all. What is the proper way to say only the div with class "x" should be affected? The basic tutorial doesnt really cover this. http://

[jQuery] AJAX API without XML?

2009-10-17 Thread kidburla
Hi, I understand that normally when you want to load a page into an area of the page, you would use the ajax.load function within jQuery's AJAX API. However what happens if you have an old-fashioned server which does not support XML over HTTP? In other words it expects to receive name=value param

[jQuery] Re: HELP!!! css & content filters

2009-10-17 Thread huntspointer2009
Thanks (Bi Jing), You offered the best solution, I tried using all of the code that was offered, but the following code was the only one that it made it work: $("li:even:odd, li:odd:odd").addClass("test_css"); I also like the fact that it's a minimal amount code, written in one line. Thanks to

[jQuery] Re: show/hide with embed

2009-10-17 Thread Charlie
instead of hide(0 which is basically display:none,   you could move it off screen. This sort of issue comes up a lot with tabs http://jqueryui.com/demos/tabs/#Why_does... ngreenwood6 wrote: Anyone at all? On Oct 16, 6:34 pm, ngreenwood6 wrote: I tried adding in return false at

[jQuery] Re: JSpec and jQuery fadeOut

2009-10-17 Thread finneycanhelp
To add to this: I know I can use the callback argument of the fadeOut method. However, I would like to avoid adding that callback argument to the method I am testing which calls fadeOut. It seems weird to add a parameter just so I can test the method. http://visionmedia.github.com/jspec/ and "S

[jQuery] Re: How to obtain Object (key) names?

2009-10-17 Thread mkmanning
The problem with something like the desired approach: if (option.name == "Option1") { is that 'name' is a valid key, so if you had an object like {'name':'john'} option.name would equal 'john' (same problem if you tried option.key). Also, though your example only has one key, an object can ha

[jQuery] Re: $('a:link') Selector?

2009-10-17 Thread mkmanning
A couple things. First off, the syntax you're using won't get you the anchor's color: $('a:link',this).css('color'); This is a shortcut for: $(this).find('a:link').css('color') which basically means find the anchors inside this anchor. If you want the anchor's original color, just use: $(this

[jQuery] locally run ADDRESS BOOK using JQ? UI? suggestions? jquery addressbook plugin?

2009-10-17 Thread yvonney
Hi, after a lot of thought I am seriously thinking about creating a webpage, sorta like tiddlywiki though really basic and just for keeping my contacts/addresses/phone-numbers/email addys in. So, on first google I found http://www.asual.com/jquery/address/ you know how it goes though. I need t

[jQuery] Re: Replace image with SWF onClick

2009-10-17 Thread knal
Not onLoad, but onClick. The behaviour i'm looking for is similar to the one in your link. Might be interesting for me te look into. Thanks a bunch! On 17 okt, 20:45, Sam Sherlock wrote: > you want to replace them when the user clicks the anchor tag? > or replace the anchor tag onload? > > http

[jQuery] JSpec and jQuery fadeOut

2009-10-17 Thread finneycanhelp
In doing BDD / TDD testing using JSpec, how can one sense/capture that jQuery's fadeOut has been called? Thanks. Mike Finney

[jQuery] Re: Replace image with SWF onClick

2009-10-17 Thread Sam Sherlock
you want to replace them when the user clicks the anchor tag? or replace the anchor tag onload? http://flowplayer.org/documentation/users-guide.html - S 2009/10/17 knal > > Hi group, > > I'm trying to achieve something (which doesn't se

[jQuery] Re: show/hide with embed

2009-10-17 Thread ngreenwood6
Anyone at all? On Oct 16, 6:34 pm, ngreenwood6 wrote: > 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 wrote: > > > if the problem is reload then add "return false" at the end or the fun

[jQuery] $('a:link') Selector?

2009-10-17 Thread Steven
Hello, I'm trying to make a basic, "dynamic" link color fader. Since I have multiple link colors for different classes and divisions and such, I'm trying to make it "dynamic." To do so I need to grab the original color and the hover color. Here is my code: // Fading links $('a').hover( /

[jQuery] Replace image with SWF onClick

2009-10-17 Thread knal
Hi group, I'm trying to achieve something (which doesn't seem to difficult to me) but i can't get it to work; I want to embed video's through a swf-videoplayer on my website. The idea is that i have (say 750 * 400 px) images wrapped in links. The links point at the videofile. If the user clicks

[jQuery] Re: Get parameters from URL

2009-10-17 Thread ReynierPM
brian ally wrote: The google shows several implementations: http://www.mathias-bank.de/2007/04/21/jquery-plugin-geturlparam-version-2/ http://jquery-howto.blogspot.com/2009/09/get-url-parameters-values-with-jquery.html http://projects.allmarkedup.com/jquery_url_parser/ On Sat, Oct 17, 2009 at

[jQuery] Re: Get parameters from URL

2009-10-17 Thread mkmanning
There are several plugins: http://plugins.jquery.com/project/parseQuery On Oct 17, 7:41 am, ReynierPM wrote: > Hi every: > It's possible to get values from URL with jQuery like PHP? For example > suppose you have this URL: form.html?s=ok&val=rperezm. In PHP is simple: > [code] >   echo $_GET['

[jQuery] jQuery cookie solution in Liferay

2009-10-17 Thread Fynci
I am unsure of where to start with this one, and so I'm hoping one of you good people will be able to assist. I am using Liferay, and on the calendar settings there is a value called "event-selector". At present when you click to view events, the default is always the top value "All Events". What

[jQuery] Re: Get parameters from URL

2009-10-17 Thread brian ally
The google shows several implementations: http://www.mathias-bank.de/2007/04/21/jquery-plugin-geturlparam-version-2/ http://jquery-howto.blogspot.com/2009/09/get-url-parameters-values-with-jquery.html http://projects.allmarkedup.com/jquery_url_parser/ On Sat, Oct 17, 2009 at 10:41 AM, ReynierPM

[jQuery] Re: jquery cycle site is down

2009-10-17 Thread Mike Alsup
> the cycle site is down since yesterday, i get a 403 and 404 error, ??? Hosting problems. Content is temporarily available here: http://www.malsup.com/jquery/cycle2/ Mike

[jQuery] Get parameters from URL

2009-10-17 Thread ReynierPM
Hi every: It's possible to get values from URL with jQuery like PHP? For example suppose you have this URL: form.html?s=ok&val=rperezm. In PHP is simple: [code] echo $_GET['s']; // return ok echo $_GET['val']; // return rperezm But I don't know if this is possible in Javascript and also with

[jQuery] persistent scroll bar in resizable div

2009-10-17 Thread hsfrey
I have a div which is resizable (using ui.resizable.js). I would like a vertical scrollbar to appear only if the text is truncated as the div is resized. If I use a style = overflow-y:scroll, or overflow-y:auto I get the same result - the scroll bar is Always there, even if the div is far large

[jQuery] Re: superfish set hover on onload...

2009-10-17 Thread Charlie
I believe you need to adjust your template. "active" class is being applied to the Home tag, but your "active-trail" class is needed on the parent li instead can do this failry easily also in jQuery adding following: $(".menu a.active").parent().addClass("active-trail")/// tested this in fi

[jQuery] Re: IE: call function defined in ajax loaded page

2009-10-17 Thread Eric Martin
Michael, Is it possible to provide a link or post some code examples of what you are trying to do. If it is undefined in IE, it may be caused by the way you are loading the scripts or the order you have them in. You might also try putting all of your code inside a document ready block to make su

[jQuery] Re: Simple Modal Close Event

2009-10-17 Thread Eric Martin
If you use the onClose callback, you must call $.modal.close() to remove the dialog elements from the DOM. If an onClose callback has been used, calling $.modal.close() will not trigger the callback again, it can only happen once. I suggest using the onShow callback to bind your second event base

[jQuery] Superfish and .htaccess

2009-10-17 Thread MIke
I've installed and set up Superfish on a Joomla site and it works great with the exception of 1 issue. When I'm not using "Search Engine Friendly URLS", it works fine. When I turn on "Search Engine Friendly URLS" in the Joomla global settings, and change the htaccess.txt file to .htaccess -- any

[jQuery] Re: Treeview - Custom hyperlink click event

2009-10-17 Thread philsturgeon
It's not a normal event as its handled by the plugin. Here is the code im using: http://pastie.org/658654 On Oct 12, 1:47 am, Shawn wrote: > are you returning false from your event handler?  That *should* stop all > other event processing. > > You could also try to capture the event objec

[jQuery] Re: How to check is the object with the css property?

2009-10-17 Thread Richard D. Worth
Here are two options: $('div').each(function() { if ($(this).css('position') == 'absolute') { //do something with this } }); /// var $divPosAbs = $('div').filter(function() { return ($(this).css('position') == 'absolute'); }); //do something

[jQuery] superfish set hover on onload...

2009-10-17 Thread .wired
Hi guys, i am wondering if it's possible to apply the hover class already when the site is loading. Precisly look at http://www.templatebomb.de/ where the home button should have the class "active" but it's applying it just after hovering one of the menu points. Sorry for my bad english, by the wa

[jQuery] jquery cycle site is down

2009-10-17 Thread daft01
the cycle site is down since yesterday, i get a 403 and 404 error, ???

[jQuery] How to check is the object with the css property?

2009-10-17 Thread David .Wu
$('div').each(function() { // How to know the div have position property or not? });