[jQuery] Re: newbie - need help finding element

2007-12-13 Thread Marc Jansen
Hi, try this: (untested) $( document ).ready( function (){ $('#gallery ul li').click( function () { // resetting other images $( '#gallery ul li' ) .removeClass('selected') .removeClass('thumb-hover') .find('img').fadeOut('slow'); //

[jQuery] Re: Concatenation

2007-11-26 Thread Marc Jansen
Hi Llaurick, not sure if I understand you correct, but isn't array.join() what you search for? var a = ['foo', 'bar', 'humpty', 'dumpty']; var s = a.join(','); // s is now 'foo,bar,humpty,dumpty' -- Marc Llaurick schrieb: I would like to know if there is a function (or any other way)

[jQuery] Re: Problems with $.post and $.ajax

2007-09-28 Thread Marc Jansen
Hi Oscar from Sweden, works loke a charm for me (using PHPs superglobal $_POST), it seems as if you just forgot to add a callbackfunctionthat is going to handle the servers response. $( document ).ready( function () { $( a#go ).click(function () { $.post(test.php, { namn: $(

[jQuery] Re: Partial .load()

2007-09-24 Thread Marc Jansen
Hi, untested: $(#topic).load(help.html #topic-example *); -- Marc Smith, Allex schrieb: I'm going nuts with a fairly simple selector issue. $(#topic).load(help.html #topic-example); I want to get the contents of #topic-example, but only the children, not the container itself. What is the

[jQuery] Re: IE bug or rookie mistake?

2007-08-09 Thread Marc Jansen
Hi Kyle, seems as if IE does not fire the click-event on a option-element. have you tried $('#chairHours').bind('change', function () { alert('yo'); }); -- Marc Kyle schrieb: Hi, I am having trouble getting events to trigger on a select/option box in IE. Let me preface the link with a

[jQuery] Re: Rows hidden by CSS then shown after page load ignore colspan attribute

2007-07-19 Thread Marc Jansen
Rob Desbois schrieb: Hi, I have a table where some of the rows have a single cell spanning the whole table, containing a sub-table with different data. These rows need to be hidden on page load which is easy enough with display:none, but doing a .show() on them after that breaks the layout

[jQuery] Re: Listing methods of an object

2007-07-19 Thread Marc Jansen
Robert James schrieb: On 7/19/07, *Klaus Hartl* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Robert James wrote: Is there a way to list all the methods that a particular JavaScript object has? Or is there a tool that can do this? Speaking of tools, I

[jQuery] Re: Strange behavior

2007-07-12 Thread Marc Jansen
Hi Mario! You might try this: jQuery(document).ready(function() { $(#fragment-2 .pager .pager-list a).each( $(this).attr(href, this.href + '#fragment-2'); ); // other calls to be fired afterwards }); untested as usual -- Marc Mario Moura schrieb: Hi Folks I wrote: $(#fragment-2

[jQuery] Re: Select radio button item

2007-07-12 Thread Marc Jansen
Hi Oscar: Try this: $( 'form input:[EMAIL PROTECTED]'nameOfYourRadios'[EMAIL PROTECTED]''] ) untested as usual -- Marc Oscar esp schrieb: I have a radio button group with 4 items, each one has a value (1,2,3,''). On click in a button of my form I would like the check the radio button

[jQuery] Re: Calling jQuery from within a ThickBox

2007-07-12 Thread Marc Jansen
GreboGuru schrieb: Hi, I'm guessing that I'm doing something wrong ... I've want to be able to collpase some DIVs on a form but when the form is in a thickbox it doesn't work, when it isn't it does. Any help would be appreciated. Thanks! Hi, I#m not exactly sure, but isn't an iframe

[jQuery] Re: Select radio button item

2007-07-12 Thread Marc Jansen
I had a typo: $( form input:[EMAIL PROTECTED]'nameOfYourRadios'[EMAIL PROTECTED]''] ) Marc Jansen schrieb: Hi Oscar: Try this: $( 'form input:[EMAIL PROTECTED]'nameOfYourRadios'[EMAIL PROTECTED]''] ) untested as usual -- Marc Oscar esp schrieb: I have a radio button group with 4

[jQuery] Re: Best way to use an ajax comment system?

2007-07-12 Thread Marc Jansen
inVINCable schrieb: Hey everyone, I am using the form plugin (great btw) and the .load function (I need to because i am using cakephp) I was wondering, what is the best way to go about updating the comments? So far I have just been updating the whole div that contains all of the comments. I

[jQuery] Re: addClass only works once

2007-07-12 Thread Marc Jansen
Hi stef, Maybe you should explicitly removing the class 'show' before asdding the class hidden: $(#dimensions).removeClass(show).addClass(hidden) -- Marc stef schrieb: Im using the code below to display / hide form fields depending on what value is selected from a drop down list

[jQuery] Re: Show / hide options based on class

2007-07-12 Thread Marc Jansen
Michael Price schrieb: Hi all, I've got two select boxes side by side - initially the right hand side box has ALL options in it - and the left hand box can be used to filter the options displayed. Probably not the best way to do it (in fact, defintiely - it doesn't work in IE) but the

[jQuery] Re: jquery book

2007-07-11 Thread Marc Jansen
james_027 schrieb: hi, what javascript books are using jquery? thanks, james Hi James, at least the following 4. Quoting from the jQuery-Blog: http://jquery.com/blog/2007/07/01/jquery-113-800-faster-still-20kb/ jQuery Books We’re now up to 4 jQuery books being written and, just as

[jQuery] Re: resize columns!

2007-06-25 Thread Marc Jansen
Hi, mabe this is exactly what you are searching: http://spindrop.us/2007/05/22/equal-height-columns-with-jquery/ -- Marc Simpel schrieb: Hi there has anyone seen a demo or something that can resize the width of several div:s? What I'm looking for can be found on netvibes.com. They have a

[jQuery] Re: Need help with a jQuery Conflict

2007-06-20 Thread Marc Jansen
Hi AJ, just a quick thought, have tried to include the IndexTool via the dynamically adding of a script-tag to your page? something like this: script type=text/javascript var s=document.createElement('script'); s.setAttribute('src',

[jQuery] Re: manipulate xml in IE6 isn't compatible?

2007-06-18 Thread Marc Jansen
Hi Mike, mike yao schrieb: I try to via ajax calling back xml object and manipulate, but IE6 can't get nodes infomation. Is jquery compatible under IE6? It should be working with IE 6. What exactly are you trying to do? Could you post a small example? -- Marc

[jQuery] Re: IE6 class swapping problem

2007-06-13 Thread Marc Jansen
Hi Gordon, is the class specific enough (in terms of the CSS Cascade, maybe IE is misinterpreting somnething there) to take precedence over styles defined elsewhere? If you add the class manually, do you get the expected behaviour/appearance in IE 6? Your JS looks IMO OK at first glance.

[jQuery] Re: parsing xml

2007-05-17 Thread Marc Jansen
gendruwo schrieb: All, if i have an xml file like this Records Record Field id=1 name=Name value=My Full name /Field Field id=2 name=Address value=My Address /Field Field id=3 name=Telephone value=12345678 /Field Field id=4 name=Age value=27 /Field Field

[jQuery] Re: Controlling Scroll bars ...

2007-05-17 Thread Marc Jansen
ZebZiggle schrieb: Hi there ... I'm working on a site with a sort of Google Reader feel to it, but when you vote on the articles they go away with .hide() The problem is this causes the screen to be in the wrong position (skipping past several unread articles) ... I'd like to set the vertical

[jQuery] Re: help troubleshooting a text field focus problem

2007-05-17 Thread Marc Jansen
Hi, just a quick guess: isn't focus() a pure DOM method? Maybe this works: $(this).find(input)[0].focus(); [EMAIL PROTECTED] schrieb: Hi, I wanted to get some advice on how I can troubleshoot this problem. When I click on an particular block of text, I'd like to have that text