[jQuery] Re: Hello

2009-08-14 Thread Liam Potter
We need to see your code, goto http://www.jsbin.com, select the jquery library to include, paste your javascript and your html, then send us the link to see it. Praveen Alvandi wrote: Hey guys, HELP ME . . . I am struck. . . On Thu, Aug 13, 2009 at 8:44 PM, Praveen Alvandi

[jQuery] Re: Code inside click() event not firing.

2009-08-14 Thread Liam Potter
lol, niice. Ricardo wrote: wow On Aug 13, 10:56 pm, Meroe whme...@gmail.com wrote: What if you change $(a).click(function () To $(#a).click(function () -Original Message- From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On Behalf Of Patrick Sent:

[jQuery] Re: Can you put diffrent image son each of the tabs in suckerfish?

2009-08-14 Thread Liam Potter
how about, editing your html? amuhlou wrote: a good start would be to use firebug and inspect the code for the example page. On Aug 14, 8:30 am, Stockypotty andy_stoc...@hotmail.com wrote: Sorry I didn't mean that, early morning ^^ I was wondering if you had any good tutorials on how

[jQuery] Re: Hide function in IE

2009-08-18 Thread Liam Potter
IE cannot animate the opacity of a png with alpha transparency and there is no solution to this. pmni wrote: Hi. I'm building a website, and use your framework to hide/show a div. This work, but in IE when click to hide/show the div, the background became black, instead to maintaine the

[jQuery] Re: Hide function in IE

2009-08-18 Thread Liam Potter
, as long as you make sure you're applying any png hacks you're using to IE6 only with conditional comments. I could be wrong on this, though. Jonathan pmni wrote: Thank you for the explain. On 18 Ago, 08:58, Liam Potter radioactiv...@gmail.com wrote: IE cannot animate the opacity of a png

[jQuery] Re: Manipulate href

2009-08-18 Thread Liam Potter
you want to manipulate the string so, after doing what paul did. $('a').click(function() { var id = $(this).attr('href'); var orig = '/portfolio/category/' id.replace(orig, #) } But I do not see what you are trying to achieve with this? anurag pal wrote:

[jQuery] Re: Hide function in IE

2009-08-18 Thread Liam Potter
support with IE7, but I guess it shouldn't surprise me their 'fix' is buggy. Jonathan Liam Potter wrote: Nope, all versions of IE cannot animate the opacity of a PNG without the black artifact, regardless of any hacks that are applied. It's really quite annoying. Jonathan Vanherpe (T T NV

[jQuery] Re: removing table rows except the first one

2009-08-19 Thread Liam Potter
$(#tbl tbody tr:not(:first-child)).remove(); con-man-jake wrote: Can anyone please confirm the syntax of what I am doing I have a table with id=tbl, it has 4 rows. I need to remove all rows except the first one. It has tbody. Is this the way to do it $(#tbl tbody tr:gt(0)).remove();

[jQuery] Re: removing table rows except the first one

2009-08-19 Thread Liam Potter
Have fun :) con-man-jake wrote: It works! Thank you Liam. jake On Aug 19, 11:22 am, Liam Potter radioactiv...@gmail.com wrote: $(#tbl tbody tr:not(:first-child)).remove(); con-man-jake wrote: Can anyone please confirm the syntax of what I am doing I have a table with id

[jQuery] Re: Background color on images in Jquery Cycle

2009-08-19 Thread Liam Potter
Well, you have the bgcolor on bigimg set to transparent, meaning whatever is behind it will show through, so if that's the body, that's what you'll see. Just apply the colour you want it to be. I don't really understand the problem. theosoft wrote: Here's a new problem and no idea how to

[jQuery] Re: Animation Vapour Trails

2009-08-20 Thread Liam Potter
Might have something to do with cleartype? Leonard Martin wrote: Apologies, I missed the link: http://in.tellig.net/jquery.animateparam/jquery.animateparam.js and http://in.tellig.net/jquery.animateparam/ for an example. On Aug 19, 2:08 pm, Leonard Martin leonard.mar...@gmail.com wrote:

[jQuery] Re: 'Wrapping' some (not just 1 pair) HTML elements in a div?

2009-08-20 Thread Liam Potter
why would you be doing this with jquery anyway? ldexterldesign wrote: Don't you think I thought about using that straight away? How can I wrap a group of elements in the DOM when I don't know what elements will be there in first place. I'm aiming to wrap, essentially, a blog post, so:

[jQuery] Re: Get inner class of event

2009-08-21 Thread Liam Potter
This happens to me quite often, so do what I do, write the group post, but don't send it, just go back to trying to solve it, if you can't solve it then click the send button :) Michael Price wrote: Hello again folks – as per usual, I managed to get this working five minutes later! So

[jQuery] Re: Is there a jQuery script that can do automatic text sizing based on browser window size?

2009-08-24 Thread Liam Potter
would just be a function to increase the font size same as anything else, and if you are using percentages or em's would be even simpler. Tuckers wrote: I want to create a page that scales everything on it as you increase/ decrease the browser window/viewport. I can scale everything on the

[jQuery] Re: Display DIVs as Multiple Columns

2009-08-24 Thread Liam Potter
float them, with css. S2 wrote: How can I display a bunch of DIVs in multiple columns? Like Flex's TileList component. A B C C E F G A B C D E F G A B C D E F G

[jQuery] Re: Problem with js redirect when using getJSON

2009-08-25 Thread Liam Potter
What about window.location.href='http://site2.example.com/'; Grimori wrote: Wonder if anyone tried to replicate this problem... It's pretty simple to and a great deal of bug if I'm not missing something. Thanks. On Aug 17, 6:14 pm, Grimori mihaigrig...@gmail.com wrote: Yes, I have

[jQuery] Re: Chaining jQuery AJAX

2009-08-25 Thread Liam Potter
A simple way of doing it would be to use the success callback of each request. pascal.nauj...@googlemail.com wrote: Hi Group, is there a possibility to chain AJAX Requests? By now i have 5 AJAX Functions where one calls the next (Button Click - 1 - 2 - 3 - 4 - 5 - Finish) My

[jQuery] Re: AJAX and ampersand

2009-08-25 Thread Liam Potter
You need to url encode it, or just replace it with %26 Julijan Andjelic wrote: Is there any was to prevent ampersand from splitting up the passed data? For example if my data looks like: This is some textblah blah If I pass it as data it will get split up at : This is some text blah blah

[jQuery] Re: Hover Area - Change image

2009-08-25 Thread Liam Potter
It's because you have targeted the image as the hover area rather then the li, use this instead $(li.clickable).hover(function() { $(this).children(img).attr(src, $(this).attr(src).split(_off).join(_over)); }, function() { $(this).children(img).attr(src,

[jQuery] Re: save to pdf

2009-09-01 Thread Liam Potter
That's not possible. David .Wu wrote: Is there any plugin can let me save the part of pag as pdf?

[jQuery] Re: text without backspace get error in cluetip

2009-09-01 Thread Liam Potter
There is no simple, perfect way to combat this and keep the text and this happens in all browsers (as far as I know). You could look into javascript hyphenation or just hiding the overflow of the tooltip. khin wrote: Hi all, When i have: title=test|contentwithoutspacehover/a if

[jQuery] Re: Can't assign jQuery jqModal to dynamically added links

2009-09-02 Thread Liam Potter
Use live instead of bind $(#jqmodalbind).live(click, function(e){ alert('Binding JQModal'); $('#addnote').jqm({ajax: '@rel', trigger: '.addnotetrigger'}); }); neburton wrote: I've been having problems getting jqmodal modal dialogs to display on links added dynamically by client side

[jQuery] Re: .not($.browser.msie $.browser.version = 7)

2009-09-02 Thread Liam Potter
if ( !$.browser.msie !$.browser.version = 7 ) { $(div).corners(4px); } though the $.browser.msie will block any ie browser, so the bit making sure it is under version 7 is redundant. IschaGast wrote: I am having rounded corners in a site but I don't want them in IE because it does

[jQuery] Jumpstart

2009-09-03 Thread Liam Potter
http://starter.pixelgraphics.us/ Can someone explain what's happening in this plugin pattern. Thanks, Liam

[jQuery] Re: Hidden div height width

2009-09-04 Thread Liam Potter
why not position absolute ? rupak mandal wrote: Thanks for the quick reply . The problem is that i cannot use visibility:hidden or position absolute. On Fri, Sep 4, 2009 at 3:42 PM, joey santiago federico.pr...@yahoo.it mailto:federico.pr...@yahoo.it wrote: exactly... but if you hide

[jQuery] Re: Some homebrewn jQuery functionalities

2009-09-21 Thread Liam Potter
You'd be better off just removing the div entirely. $(document).ready(function() $(#needJavaScript).remove(); ); Cecil Westerhof wrote: 2009/9/21 Cecil Westerhof cldwester...@gmail.com: - a way to automatically notify people that they should enable JavaScript The way

[jQuery] Re: Autocomplete

2009-09-21 Thread Liam Potter
why not restyle the strong tag? Asa Carter wrote: How do I use the highlight function in the auto complete plugin? I wish to replace strong/strong with span class=blah../span Thanks Asa

[jQuery] Re: Recommend a JS enabled/browser growler script/plug-in?

2009-09-21 Thread Liam Potter
use noscript and conditional comments. ldexterldesign wrote: // This site works best with JavaScript enabled and not using Internet Explorer. Take your pick of the others instead: Firefox, Google Chrome, Safari, Opera... Anyone? :P Thanks,

[jQuery] Re: Way to convert DOM event to jQuery event?

2009-09-22 Thread Liam Potter
or this a href=# rel=foobarbazshow details/a $(a).click(function(){ var rel = $(this).attr('rel'); } now you have passed foobarbaz to jquery. WalterGR wrote: I want to take advantage of jQuery's cross-browser Event object, but via an onclick event handler. For example: a href=#

[jQuery] Re: [Attrib external not working...]

2009-09-22 Thread Liam Potter
Except that target=_blank is deprecated in xhtml 1.1, so to make sure you're markup validates, you need to use javascript to make links open in a new window/tab. One way to do it is like this. $(a[rel='external']).click(function(){ this.target = _blank; }); Liam Byrne

[jQuery] Re: [Attrib external not working...]

2009-09-22 Thread Liam Potter
...@googlegroups.com] On Behalf Of Liam Potter Sent: Tuesday, September 22, 2009 10:20 AM To: jquery-en@googlegroups.com Subject: [jQuery] Re: [Attrib external not working...] Except that target=_blank is deprecated in xhtml 1.1, so to make sure you're markup validates, you need to use javascript to make

[jQuery] Re: Chaining animation effects on different elements...

2009-09-22 Thread Liam Potter
I'd count how many elements have the class, and also add an id to each one, incrementing with each count. Then I would write a function, passing it a randomly generated number (within range of the element count) which would fade in the given id, with a known animation time. I would then

[jQuery] Re: Chaining animation effects on different elements...

2009-09-22 Thread Liam Potter
the last character for comparison. will have a fiddle around with that. On Sep 22, 3:50 pm, Liam Potter radioactiv...@gmail.com wrote: I'd count how many elements have the class, and also add an id to each one, incrementing with each count. Then I would write a function, passing it a randomly

[jQuery] Re: Suggest a pop up window..

2009-09-22 Thread Liam Potter
Depends what you need one for. Erik R. Peterson wrote: Can anyone suggest to me a good jquery pop up window script. Thanks. Erik

[jQuery] Re: Expandable sidebar

2009-09-23 Thread Liam Potter
$(function(){ //shrink sidebar after 5 seconds setTimeout(shrink(),5000); $(div#sidebar).bind('mouseover',function(){ $(this).animate({width: 150},500); } $(div#sidebar).bind('mouseout',function(){ shrink();

[jQuery] Re: Chaining animation effects on different elements...

2009-09-23 Thread Liam Potter
with setInterval where setTimeout doesn't, all [ i ] rndAnim() always happen simultaniously so i can't stack up a chain of animations. On Sep 22, 4:31 pm, Liam Potter radioactiv...@gmail.com wrote: ahh, didn't know you had id's already assigned, you could use the data method to store it in the dom rather

[jQuery] Re: Chaining animation effects on different elements...

2009-09-23 Thread Liam Potter
on the client for something so i've been concentrating on a review of contemporary webdesign* this morning instead, cheers for your help mate, been v.useful indeed *facebook and ebay ;) On Sep 23, 11:16 am, Liam Potter radioactiv...@gmail.com wrote: Yeah, the for loop will not wait

[jQuery] Re: .click() fires my callback more than once

2009-09-24 Thread Liam Potter
probably because you have click handlers inside the confirmAction function, which is run on click itself. Fabdrol wrote: Hi guys, I'm facing this little problem, I've got a button toolbar, and users can select rows in a table. When they have selected some row's, they can click one of the

[jQuery] Re: keepp getting NaN vlue

2009-09-28 Thread Liam Potter
I made some changes and it's now working, the problem was for the var's r2 and r3 on load there were no values for it to find, causing the NaN. here are my changes: !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN http:// www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd html

[jQuery] Re: How to add some string in attributes?

2009-09-28 Thread Liam Potter
$(function(){ $(img).bind(mouseover,function(){ $(this).attr(src,/images/menu-my-account-hover.png); }); }); but this is the worst way you can do rollovers. You should be doing this in pure CSS, and the best way would be to use an image sprite. Teddy Hong

[jQuery] Re: Deactivating parent link with JQuery

2009-09-29 Thread Liam Potter
$(li a).click(function(){ $(this).parents(ul).parents(li).addClass(className); }); osu wrote: Hi Ryan, That only affects the child of the parent. What I want to do is this: ul liLink 1/li liLink 2 *This is the link I want to add a class to* ul liLink 2a/li liLink 2b/li *This is the

[jQuery] Re: Deactivating parent link with JQuery

2009-09-29 Thread Liam Potter
to the end of each tag in your example that you're 'going down' different levels in the unordered list? This is what I have: $(li a).click(function(){ $(this).parents(ul).parents(li).addClass(nav-selected); }); Any ideas what's going wrong? On Sep 29, 10:29 am, Liam Potter radioactiv

[jQuery] Re: Deactivating parent link with JQuery

2009-09-29 Thread Liam Potter
On Sep 29, 11:07 am, Liam Potter radioactiv...@gmail.com wrote: I'm assuming you posted an example list and the real list does contain a tags? I'm also assuming you are running that script with a document ready handler? osu wrote: Thanks Liam, but that's not working... Not sure why

[jQuery] Re: Deactivating parent link with JQuery

2009-09-29 Thread Liam Potter
a).ready(function(){ $(this).parents(ul).parents(li).addClass(nav-selected); }); Thanks, osu On Sep 29, 11:35 am, Liam Potter radioactiv...@gmail.com wrote: It all works fine, except for this bit $(li ul).siblings(a).click(function(){ return false

[jQuery] Re: Binding a unique single and double click command

2009-09-30 Thread Liam Potter
in the double click function you'd have to clearTimeout on the first function otherwise it will run anyways. readysalted wrote: I'd use this approach - var clicks = 0; $('.todo_item h2').live('click', function() { // count the click click++; // only set the timeout

[jQuery] Re: remove accordion item

2009-09-30 Thread Liam Potter
$(this).parents(div.accordion).fadeOut('slow').remove(); where div.accordion is what you're trying to remove. Hundredth Monkey wrote: hi, i want to realize a delete button or link within an accordion item. is it possible to remove a special item or make the header disabled after a link click

[jQuery] Re: jQuery plugin that can do the image effects here?

2009-09-30 Thread Liam Potter
Good old Ken Burns effect, always looks good. I've used the cross-slide plugin before, and will definitely do what you want. Charlie Griefer wrote: Hi Michael: Would this do? http://www.gruppo4.com/~tobia/cross-slide.shtml http://www.gruppo4.com/%7Etobia/cross-slide.shtml On Wed, Sep

[jQuery] Re: How to add some string in attributes?

2009-10-06 Thread Liam Potter
alt=My Account src=/images/whatever.png/ On Sep 28, 9:38 pm, Liam Potter radioactiv...@gmail.com wrote: $(function(){ $(img).bind(mouseover,function(){ $(this).attr(src,/images/menu-my-account-hover.png); }); }); but this is the worst way you can do rollovers

[jQuery] Re: MooTools and jQuery

2009-10-06 Thread Liam Potter
is there a reason you need both libraries? Dennis Madsen wrote: I'm developing a site in Joomla CMS which use both MooTools and jQuery. I've created a small, clean page where you can see the problem: http://www.dennismadsen.com/uploads/mootools_jquery/ You can download the source-code from

[jQuery] Re: What is the more correct/efficient selector?

2009-10-13 Thread Liam Potter
use the second one, avoid problems from having multiple selects on the page. Mike wrote: $(select).change(function() { alert($(select option:selected).val()); }); OR $(select).change(function() { alert($(this).attr(value)); }); I

[jQuery] Re: Don't use onclick

2009-10-13 Thread Liam Potter
Rob, keeping all JS outside of the HTML is a good practice, and keeps everything nice and easy to maintain. Jonathan Vanherpe (T T NV) wrote: RobG wrote: On Oct 13, 1:34 pm, expressodschin...@gmail.com wrote: I don't think it's too hyped. Having calls to javascript in your elements

[jQuery] Re: Ideas how to build?

2009-10-13 Thread Liam Potter
simplest way is to .toggle() a div with those options in it. how much you expand upon that is up to you. Dave Maharaj :: WidePixels.com wrote: I came across this select / checkbox setup at http://monster.ca/ for job search and was wondering if anyone has seen some thing like this jquery

[jQuery] Re: password initial value without masking ****

2009-10-19 Thread Liam Potter
Here is how I do it. Just markup the form like normal (I use a definition list to lay out my forms) $(input:password).each(function(){ var $currentPass = $(this) $currentPass.css({opacity:0}); $currentPass.before('input type=text value=Password class=removeit

Re: [jQuery] Attempting to hide a div using jquery but div displays for a split second and then disappears

2009-11-16 Thread Liam Potter
This should help you http://www.learningjquery.com/2008/10/1-way-to-avoid-the-flash-of-unstyled-content Newbie wrote: I am working on an accordian side navigation jquery piece and I am unable to get it to operate exactly how I want. The menu was originally designed by Roshan Bhattarai and can

Re: [jQuery] Change all CSS background images url

2009-11-16 Thread Liam Potter
it would be a bad idea to do this with javascript. I'd recommend simply using find and replace all in your css. find url(/img replace url(/subdir/img nomen wrote: Hi all: I have a website. All my images are in /img directory. Now, my client needs to put the site in a subdirectory, so,

Re: [jQuery] Re: Change all CSS background images url

2009-11-16 Thread Liam Potter
I know it's possible, but it's a really poor way to do this as it will break the cache. You should do it with server side code then, can you not edit the html helper of cakePHP to add the sub directory for you? nomen wrote: Hi: Liam: My client needs to have the posibility to change itself

Re: [jQuery] Need jQuery expert to slightly modify plugin

2010-01-04 Thread Liam Potter
http://groups.google.com/group/jquery-en/browse_thread/thread/f550b94914d10065 On 04/01/2010 15:12, MikeTheVike wrote: I'm using the newest version of jQuery(http://www.jquery.com) and the jCarousel Lite plugin (http://www.gmarwaha.com/jquery/jcarousellite/). It is a content slider that rotates

Re: [jQuery] Re: slideDown trouble in Safari/Chrome

2010-01-04 Thread Liam Potter
On 04/01/2010 15:35, Paul Hutson wrote: Any ideas? Many thanks in advance. Without looking into it too much I can't see the cause of the problem... ... however, site design wise, would it not be better to have the buttons expand an area on the page to show the information? You could

<    1   2   3   4