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

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

[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

[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: 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: 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: 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: 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: .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: 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: 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: 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: 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] 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: 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] 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: 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: 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: 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: 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: 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: 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: 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: IE8 Selector Bug?

2009-08-13 Thread Liam Potter
If you are using 1.2.6 you need to use the @ symbol $('#Row_1 inp...@type=text]').each(function() { $(this).val(''); }); gentry wrote: Anybody know why this doesn't work in IE8 with jQuery version 1.2.6? It works in the latest jQuery version but I can't move to it yet because of some

[jQuery] Re: IE8 Selector Bug?

2009-08-13 Thread Liam Potter
ignore that Liam Potter wrote: If you are using 1.2.6 you need to use the @ symbol $('#Row_1 inp...@type=text]').each(function() { $(this).val(''); }); gentry wrote: Anybody know why this doesn't work in IE8 with jQuery version 1.2.6? It works in the latest jQuery version but I

[jQuery] Re: Hover function issue

2009-08-13 Thread Liam Potter
Simple rollovers should be done with CSS and using a sprite image rather then two seperate images. Geir wrote: Hi! ..rather new to javascript I'm making a rollover-script for my site. It works fine for one image, but not for many. How can I modify it to supprt any number of images?

[jQuery] Re: How to bind text to trigger checkbox?

2009-08-13 Thread Liam Potter
http://docs.jquery.com/Events/trigger Denis Abramov wrote: Couldn't find it in documentation. For example i have spantext/span and when someone clicks on it, it should trigger checkbox to checked or unchecked. Thanks! :)

[jQuery] Re: Slideshow Dies in 1.3.2 but works in 1.3.1 and below

2009-08-13 Thread Liam Potter
try changing $(a.sl_next).click(slNext); $(a.sl_back).click(slBack); to $(a.sl_next).click(function(){slNext}); $(a.sl_back).click(function(){slBack}); no idea if this will work btw Brad wrote: Basically, I can click the next button and go forward until it reaches the last slide then it

[jQuery] Re: toggle and logic confusion

2009-08-12 Thread Liam Potter
when you click on a button, run a function to close all the divs, and run a function to open the specified div. Bruce MacKay wrote: Yes, you are right - what I described was like an accordion, but I left out the description of the actual links on which the div's are opened/closed. The

[jQuery] Re: JSON how to transform an object into an array?

2009-08-12 Thread Liam Potter
Shouldn't you be using $.getJSON instead? Mark wrote: Hi all. I got an php page who picks up data out of my data base and puts it in a multidimensinal array. That array is being encoded to Json $event = json_encode($super_array); Then i made an javasript get funtion to get that array to my

[jQuery] Re: How can we stop the animate function?

2009-08-12 Thread Liam Potter
use .stop() $(document).ready(function(){ $(div#button1).click(function(){ $(#box).stop().animate({ margin-left : 150px }); }); $(div#button2).click(function(){ $(#box).stop().animate({

[jQuery] Re: Malsup FormPlugin - doesn't Ajax!

2009-08-12 Thread Liam Potter
can you not set the form to display:none through the javascript? Anxiro wrote: Hi there! I'm using the Form Plugin by Malsup (http://malsup.com/jquery/form/). I'm using this a lot, so I'm used to all the configs and settings. That's not a problem. My problem is, that my DIV (where the FORM

[jQuery] Re: How to POST using jQuery?

2009-08-12 Thread Liam Potter
well, on the post callback, forward the browser to the page? window.location=/page.php Mark Smith wrote: Hi, I know you can use jquery to post data from a json object ajaxly. However I want to redirect the browser to the new page (like submitting a form) only passing the values explicitly

[jQuery] Re: How to POST using jQuery?

2009-08-12 Thread Liam Potter
no parameters posted to it. On Aug 12, 3:50 pm, Liam Potter radioactiv...@gmail.com wrote: well, on the post callback, forward the browser to the page? window.location=/page.php Mark Smith wrote: Hi, I know you can use jquery to post data from a json object ajaxly

[jQuery] Re: Error when trying to download jquery

2009-08-12 Thread Liam Potter
you don't open and run jquery...what are you attempting here? mrbutler wrote: IE7 version 7.0.5730.11 Open and run jquery-1.3.2.min.js Error pops up: --- Windows Script Host --- Script: C:\Documents and Settings\it.mjb\Local

[jQuery] Re: add class and remove class from perspective element

2009-08-12 Thread Liam Potter
img class=images img class=images img class=images $(function(){ $(img.images).click(function(){ $(img.images).css({border:'none'}); $(this).css({border:'1px solid #f00'}); }); }); runrunforest wrote: Hi, I have 3 image, in turn called img1,

[jQuery] Re: Add extra content to the title attribute

2009-08-11 Thread Liam Potter
something like this var origTitle = $(a.newWindow).attr(title); $(a.newWindow).attr(title, origTitle+ - This link will open in a new window); Paul Collins wrote: Hi all, This is hopefully simple. I have a bunch of links with titles, like TITLE=Facebook and so on. I am adding JQuery to

[jQuery] Re: Refresh DIV with full page refresh

2009-08-11 Thread Liam Potter
Be nice :p, obviously his first language is not English. you should be using jQuery's ajax functions. http://docs.jquery.com/Ajax Charlie wrote: $(div).refresh() that function should give you as much success as trying to understand the *details* of your request. bharani kumar wrote: We

[jQuery] Re: How to specify a default value...

2009-08-11 Thread Liam Potter
Your concatenation is broke, (I'm assuming the logic behind this is actually working) this ' + (row[19] ? '+ row[19] + ' : 'N/A') + ' should be ' + (row[19] ? ''+ row[19] + '' : 'N/A') + ' As for what is going on here, it's just an if statement shortened down, and could be written like

[jQuery] Re: How to specify a default value...

2009-08-11 Thread Liam Potter
oi, don't be skipping over my answers :p lol Rick Faircloth wrote: And finally, to continue today’s live, public coding experiments… The answer appears to be that a second set of ‘ ‘ are needed for the conditional: ’ (row[19] ? ‘ ‘ + row[19] + ‘ ‘ : ‘N/A’) + ‘ Instead of: ’(row[19] ? ‘

[jQuery] Re: attr doesn't work in IE6 and Chromium

2009-08-11 Thread Liam Potter
wow... I'm not even sure what your are trying to achieve with thisno need for doing this through the onclick attribute, and I can't think why you are trying to set the onclick with some javascript? Julijan Andjelic wrote: script type=text/javascript $(#sitemap

[jQuery] Re: How to specify a default value...

2009-08-11 Thread Liam Potter
- From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On Behalf Of Liam Potter Sent: Tuesday, August 11, 2009 11:24 AM To: jquery-en@googlegroups.com Subject: [jQuery] Re: How to specify a default value... Your concatenation is broke, (I'm assuming the logic behind

[jQuery] Re: Fade in / Out

2009-08-07 Thread Liam Potter
$(div).fadeIn(300).animate({opacity:1},5000).fadeOut(300); Dave Maharaj :: WidePixels.com wrote: I was wondering how do you make text fade in for a specific amount of time then fade out. I have the fade in / out part..i just cant figure out the duration so it stays there after fading in for

[jQuery] Re: HTML5 video tag available?

2009-08-07 Thread Liam Potter
try it? quiKe wrote: Hi, do you know if it is possible to use selectors for a video tag? For example: $(this).find('div.misc').find('ul').addClass('thumb-fila').find ('li').find('video').each(function(){ }); to capture the video tags on a li? Thanks

[jQuery] Re: jQuery animate marginTop jerky in IE

2009-08-07 Thread Liam Potter
Have you tried animating just the top position instead? touch_the_sky wrote: Hi everyone! I have an issue with IE which has been driving me absolutely mad for like last 2 days. Basically all works awesome, crossbrowser, etc. apart from one floated div, when I am trying to animate it's

[jQuery] Re: HTML5 video tag available?

2009-08-07 Thread Liam Potter
try adding document.createElement(video); before your jquery script quiKe wrote: tried (doesn´t work) but i wanted to know if maybe i was on a mistake. On Aug 7, 12:52 pm, Liam Potter radioactiv...@gmail.com wrote: try it? quiKe wrote: Hi, do you know if it is possible to use

[jQuery] Re: Bug? -- toggle() of TR broke in IE8

2009-08-05 Thread Liam Potter
1.2.6 * You can call show() and hide() on the TRs and it works in IE8 (see http://jsbin.com/ifiqa/edit ) For these reasons, I did not think it was inappropriate to ask (I did use a question mark in the subject) if this was a possible bug. Thanks, Dave On Aug 4, 11:18 am, Liam Potter radioactiv

[jQuery] Re: xpath not returning objects

2009-08-05 Thread Liam Potter
, in a big red box it says This is an old version of the *Selectors* API: *View the Current API http://docs.jquery.com/Selectors* Old Orange Juice wrote: IF that's the case, http://docs.jquery.com/DOM/Traversing/Selectors#Using_CSS_and_XPath_Together should be changed. That page says:

[jQuery] Filament Group date range picker

2009-08-04 Thread Liam Potter
http://www.filamentgroup.com/lab/date_range_picker_using_jquery_ui_16_and_jquery_ui_css_framework/ Got a problem with the dateFormat options. I have it set the the uk date format (d/m/yy) and this outputs the date correctly, but I have two inputs with the initial values populated with

[jQuery] Re: Bug? -- toggle() of TR broke in IE8

2009-08-04 Thread Liam Potter
It's down to the way IE handles tables, nothing to do with a jquery bug (people are so quick to shout out that word). Boiled down, you can't do a lot of things to tr's in IE, and display none is one of the things you can't change. - Liam Fontzter wrote: bump? Can anyone confirm this? On

[jQuery] Re: Newbie Question

2009-08-04 Thread Liam Potter
script type=text/javascript function _ajaxInit() { $(a.group).fancybox( { 'overlayShow': true }); }); window.onload = function () { $('.sliderGallery').each(function(){ var id_parts = $(this).attr('id').split('_'); var id = id_parts[id_parts.length - 1];

[jQuery] Re: Newbie Question

2009-08-04 Thread Liam Potter
'); }); }); return false; }); Dave -Original Message- From: Liam Potter [mailto:radioactiv...@gmail.com] Sent: August-04-09 12:50 PM To: jquery-en@googlegroups.com Subject: [jQuery] Re: Newbie Question script type=text/javascript function _ajaxInit() { $(a.group).fancybox

[jQuery] Re: Google Maps inside jqModal

2009-08-04 Thread Liam Potter
can you post an example? anush wrote: Has anybody tried embedding Google Maps inside jqModal ? The maps aren't getting displayed properly. $().ready(function() { $('#dialog').jqm(); }); Would be great of somebody could help me out

[jQuery] Re: Newbie Question

2009-08-04 Thread Liam Potter
happening. dave -Original Message- From: Liam Potter [mailto:radioactiv...@gmail.com] Sent: August-04-09 1:19 PM To: jquery-en@googlegroups.com Subject: [jQuery] Re: Newbie Question yeah, use the modified script and add _ajaxInit(); to the callback; $('a.profile_data').click(function

[jQuery] Re: On mouse events / style switch

2009-08-04 Thread Liam Potter
$(div).toggleClass('className'); http://docs.jquery.com/Main_Page Everything you need right now is in there, only ask questions if it isn't on there, or google. I'm not trying to be an ass but too many people expect to have their hand held while learning anything, and being told the answers

[jQuery] Re: Newbie Question

2009-08-04 Thread Liam Potter
page2.js script type=text/javascript /script Since Page 2 is going to be loaded into page 1 DIV do I move the page2 scripts to page 1? Dave -Original Message- From: Liam Potter [mailto:radioactiv...@gmail.com] Sent: August-04-09 1:34 PM To: jquery-en@googlegroups.com Subject

[jQuery] Re: a select question

2009-08-03 Thread Liam Potter
I think he just wants to select anything without a certain class eg $(div:not('.abc')) Michael Lawson wrote: mmm a little more information in regards to what exactly you want to do but $('div').eq(i); where i is the index of the div you want to access alternatively you could also do

[jQuery] Lazy Load plugin

2009-07-30 Thread Liam Potter
Hi All, The www.appelsiini.com site is down, and I can't find any where else to download it. Can someone who has to full package (looking for uncompressed code to study) upload it somewhere for me to download from please. Thanks, - Liam

[jQuery] Re: jqm and livequery issue

2009-07-29 Thread Liam Potter
uncomment the return false jjshell wrote: Hi, Please consider the code below. It should open a modal everytime a link of a given class is clicked. But... it does not. //get the url of the link clicked var url; $('a.edit').livequery('click',function(){ url= $(this).attr('href'); });

[jQuery] Re: Advice needed on jQuery page to be built

2009-07-29 Thread Liam Potter
of 4 ($arrXML[4]). TIA! Liam Potter wrote: divs, updated using ajax.

[jQuery] Re: Advice needed on jQuery page to be built

2009-07-29 Thread Liam Potter
just seen Brian's solution, which is similar but cleaner, don't know why I didn't think of just leaving the data in the href. Liam Potter wrote: Hi gnet, I've not really done much with arrays, so this is more theory but you should be able to build upon it. You will need a separate file

[jQuery] Re: can i use .load to return HTML but not inject in to dom?

2009-07-29 Thread Liam Potter
$.load(../+myModule+/+navTitle+/folders/index.php, function(e){ console.log(e); $('#folders').replaceWith(e); return false; }); try that robing wrote: I don't know if this is possible or not but i would like to use the .load method to return the

[jQuery] Re: can i use .load to return HTML but not inject in to dom?

2009-07-29 Thread Liam Potter
then I'd say use the ajax function. http://docs.jquery.com/Ajax/jQuery.ajax#options robing wrote: Hi Liam, i got $.load is not a function, any other suggestions?? On Jul 29, 9:57 pm, Liam Potter radioactiv...@gmail.com wrote: $.load(../+myModule+/+navTitle+/folders/index.php

[jQuery] Re: stop jquery script until image is load

2009-07-29 Thread Liam Potter
not tried this, but I'm assuming. $(img).ready(function(){ // do stuff here }); Matthieu wrote: Hi Id like to now if its possible to stop a jquery script and continue it only when an image is load and disolayed? thks

[jQuery] Re: jqm and livequery issue

2009-07-29 Thread Liam Potter
(){ $('#modal-test').jqmShow(); return false; }); On 29 juil, 10:44, Liam Potter radioactiv...@gmail.com wrote: uncomment the return false jjshell wrote: Hi, Please consider the code below. It should open a modal everytime a link of a given class is clicked. But... it does

  1   2   3   4   >