[jQuery] Re: Help with jQuery Suckerfish 2-tier navigation

2008-11-07 Thread FudgeCat
Many thanks Geuis, i forgot to post my css too, so here it is :) /* Nav --- */ #navContainer {background:url(../images/navBk.jpg) repeat-x;width: 680px;height:28px;float:right;position:relative;z-index: 300;margin:-178px 0 0 200px;padding:0;} #nav , #nav

[jQuery] $(this).next() doesn't work

2008-11-07 Thread diego
Hi all. how can i addClass from the clicked element lia to the next li? i've tried this $('.first li a').bind('click',function() $(this).next('li').addClass('second'); }); but won't work, the original code : div class=first ul lia href=#img//a/li lia href=#img//a/li lia href=#img//a/li lia

[jQuery] R: [jQuery] $(this).next() doesn't work

2008-11-07 Thread diego valobra
I forgot to say that i need to use $('.first li a').bind('click',function() 'couse with the  var pathImg = $(this).attr('href'); i get the href of the clicked element. Diego --- Ven 7/11/08, diego [EMAIL PROTECTED] ha scritto: Da: diego [EMAIL PROTECTED] Oggetto: [jQuery] $(this).next()

[jQuery] Re: Understanding JQuery/Javascript.

2008-11-07 Thread [EMAIL PROTECTED]
It merges the new function into jQuery, meaning you can then apply all of the library's methods to it. Try http://docs.jquery.com/Plugins/Authoring if you haven't yet seen it. I often write tiny add-ons in basic style, eg function menutoggle () { do stuff }; But these only serve one purpose;

[jQuery] Re: Finding id and setting as variable

2008-11-07 Thread MorningZ
but this doesn't work. Care to elaborate?do you get an error? unexpected results? something else? On Nov 7, 7:19 am, Liam Potter [EMAIL PROTECTED] wrote: Hi guys, this should be a quick one I have a div, which has a unqiue id (pulled from the database) so something like this. div

[jQuery] Re: Finding id and setting as variable

2008-11-07 Thread Liam Potter
ok, this has stopped the error, but it was only returning the id of the first div.msg it found, I changed it to this var uid = $(span#yes+ inc).parent().parent().parent().attr(id).replace('msg', ); which is now working. Thanks for the help guys. Richard D. Worth wrote: Change

[jQuery] Re: validate : help with required code

2008-11-07 Thread Jörn Zaefferer
In this case you need a custom required-method. Your check makes the field required, but its still valid to the required method (it has a value). Jörn On Thu, Nov 6, 2008 at 6:45 PM, Chuck Cheeze [EMAIL PROTECTED] wrote: I have a form field that by default has the value First. When the user

[jQuery] Re: slideDown animation jumps - even without padding set.

2008-11-07 Thread Rik Lomas
Hi Jon, This article might help you: http://jqueryfordesigners.com/animation-jump-quick-tip/ Rik 2008/11/7 jonhobbs [EMAIL PROTECTED]: Thaks Liam, Unfortunately it will hold dynamic content from a database so I don't know the height and can't explicitly set it. (although I did try it and

[jQuery] Re: slideDown animation jumps - even without padding set.

2008-11-07 Thread jonhobbs
Hi Rik, Thanks for that, but unfortunately as I said I knew about that problem already and I'm not using any padding/margins. I have managed to work round the problem by getting and setting the height of the element usign jquery dimensions before doing the slideDown $('#heading').toggle(

[jQuery] Superfish Click-Problem

2008-11-07 Thread subco
Hi all, I got a little problem with superfish. The links in the sub menu don't work every time. That means if I click on a sub menu link it doesn't work some times and some times it works. I didn't change the superfish.js. But I have another JS-Function that blurs every link on my page. It

[jQuery] add child to ul very simple question!

2008-11-07 Thread jfk
Ok, this probably just needs someone to slap me towards a tutorial, however I couldn't seem to find one! I'm trying to use jquery to add a child to part of an unordered list, so can anyone explain how to make a new sub-child of the id 'test' appear? (see below) SCRIPT: function

[jQuery] Re: animated robot cartoon with jquery

2008-11-07 Thread CodingCyborg
I just noticed, after looking over the code again, that since you have all three pieces of the robot that are bouncing bounce at the same time the line of code can be condensed into one. As well as the two that bounce together at the beginning. This:

[jQuery] slideDown animation jumps - even without padding set.

2008-11-07 Thread jonhobbs
I know jquery sometimes has a problem calculating the heights of elements that have padding/margins which can cause jumpy animations when using slideDown. Unfortunately I have now come across the same problem without using margins/padding and I've managed to create a very simple test case which

[jQuery] Re: slideDown animation jumps - even without padding set.

2008-11-07 Thread jonhobbs
Actually, that solution only works in IE anyway as .height() is reporting the wrong height in safari and chrome. So I guess now I'm trying to find a solution to get the correct height of an element in all browsers. Jon On Nov 7, 1:58 pm, jonhobbs [EMAIL PROTECTED] wrote: Hi Rik, Thanks for

[jQuery] Re: Superfish Click-Problem

2008-11-07 Thread Joel Birch
Hello, It looks like you have found the problem. Superfish does attach menu-closing functions to the blur event of the anchors inside the menu, so when you trigger a blur event upon focus the menu must be closing before the click action occurs. The solution (aside from simply not blurring the

[jQuery] Re: Link in an iFrame changing Parent window elements

2008-11-07 Thread tlphipps
If the div is 'printed' via PHP, then jquery will 'see' it when it runs. If it's not 'printed', then jquery will NOT see it. But I think your problem may be your selector. Looks like you have a space between 'div' and '.contacts'. If you are trying to target a div with a class of 'contacts',

[jQuery] Re: traversing with jQuery - complex selector causing brain pain

2008-11-07 Thread Karl Swedberg
Hi there, Try this: $('#navigation li ul:not(:has(a.selected))').hide(); --Karl Karl Swedberg www.englishrules.com www.learningjquery.com On Nov 6, 2008, at 12:45 PM, w1ntermut3 wrote: My nav bar consists of a single UL containing LI elements that each contain a single A.

[jQuery] Re: Can't figure out why click function won't work for lifeimage

2008-11-07 Thread Warren
Neither works, The problem seems to be in that it is not recognizing the click event. I can replace the action inside the function with anything, including a simple alert, and it won't work, so the problem must be with trouble reading the click event.

[jQuery] Re: add child to ul very simple question!

2008-11-07 Thread Rik Lomas
You can do: $('#test').after('liHello/li'); or: $('#test').parent().append('liHello/li'); Rik 2008/11/7 jfk [EMAIL PROTECTED]: Ok, this probably just needs someone to slap me towards a tutorial, however I couldn't seem to find one! I'm trying to use jquery to add a child to part of an

[jQuery] Re: How to select a group of similar named objects?

2008-11-07 Thread Liam Potter
$(.class).show(); $(.class).hide(); nmiddleweek wrote: Hello, Is there a shorthand way of setting the visiblity to hidden and display to none? and a shortcut for the other way round? perhaps .show() that includes the display:inline; Cheers, Nick On Nov 6, 9:19 pm, jquertil [EMAIL

[jQuery] Re: Select all options on button click

2008-11-07 Thread Liam Potter
why not have an all option in your select box and do the rest server side? JQueryProgrammer wrote: Hi All, I am trying to write a JQuery function which would select all my options in the select control with the click of a button. I am able to do it with the following function:

[jQuery] [validate] Triggering Validation using a button instead of submit

2008-11-07 Thread Justin Kozuch
Hi There, I've been using the validation plug in for a while now and I love it, but I am stuck on something. I am trying to validate a form using: input type=button id=submit name=submit value=Submit / instead of the usual: input type=submit id=submit name=submit value=Submit / I tried

[jQuery] Re: How to select a group of similar named objects?

2008-11-07 Thread nmiddleweek
ah, ok, that's what I had but didn't think it was doing the display:inline/none bit?... will try again. Thanks, Nick On Nov 7, 3:29 pm, Liam Potter [EMAIL PROTECTED] wrote: $(.class).show(); $(.class).hide(); nmiddleweek wrote: Hello, Is there a shorthand way of setting the visiblity

[jQuery] Re: LiveQuery with Tipsy (tooltip) help

2008-11-07 Thread Brandon Aaron
Your very close... Try this instead: $('a[title]') .livequery(function() { $(this).tipsy({ fade: true, gravity: 'w' }); }); No need to return false. -- Brandon Aaron On Thu, Nov 6, 2008 at 9:14 PM, idealists [EMAIL PROTECTED]wrote: Im got a section of my page which updates via ajax

[jQuery] Re: Triggering Validation using a button instead of submit

2008-11-07 Thread mbraybrook
Try using the triggerhandler function: var validator = $(#sourcing).validate(); $(#submit).click(function() { validator.triggerHandler('submit'); }); Not tested... HTH M On Nov 7, 3:41 pm, Justin Kozuch [EMAIL PROTECTED] wrote: Hi There, I've been using the validation plug in for a

[jQuery] Re: How to select a group of similar named objects?

2008-11-07 Thread Liam Potter
it switches between display:block and none. nmiddleweek wrote: ah, ok, that's what I had but didn't think it was doing the display:inline/none bit?... will try again. Thanks, Nick On Nov 7, 3:29 pm, Liam Potter [EMAIL PROTECTED] wrote: $(.class).show(); $(.class).hide(); nmiddleweek

[jQuery] span tag is width:80px but is only showing the width of contents?

2008-11-07 Thread nmiddleweek
Hello, I've got a SPAN tag which is set to 80px... span style=width:80px; background-color:#00FF00;A/span The contents of the SPAN is a single character and when rendered on screen, the green SPAN is showing as only approx 15 pixels in width. How can I force the width to be 80px? Thanks,

[jQuery] Re: span tag is width:80px but is only showing the width of contents?

2008-11-07 Thread mbraybrook
try: span style=width:80px; background-color:#00FF00; display:block;A/ span Does that work? M On Nov 7, 3:45 pm, nmiddleweek [EMAIL PROTECTED] wrote: Hello, I've got a SPAN tag which is set to 80px... span style=width:80px; background-color:#00FF00;A/span The contents of the SPAN is a

[jQuery] Re: span tag is width:80px but is only showing the width of contents?

2008-11-07 Thread Andy Matthews
Span is an inline element and cannot have a width applied to it, unless you display it as a block, which would sort of defeat the purpose of having it inline. -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of nmiddleweek Sent: Friday, November

[jQuery] Re: span tag is width:80px but is only showing the width of contents?

2008-11-07 Thread nmiddleweek
Ah right, ok... Cheers for the replies... I'm guessing applying display:block is the same as just making it a DIV? On Nov 7, 3:48 pm, Andy Matthews [EMAIL PROTECTED] wrote: Span is an inline element and cannot have a width applied to it, unless you display it as a block, which would sort

[jQuery] Re: Triggering Validation using a button instead of submit

2008-11-07 Thread mbraybrook
Correction: validator.triggerHandler('submit'); change to $('#formid').triggerHandler('submit'); M On Nov 7, 3:45 pm, mbraybrook [EMAIL PROTECTED] wrote: Try using the triggerhandler function: var validator = $(#sourcing).validate(); $(#submit).click(function() {        

[jQuery] Re: LiveQuery with Tipsy (tooltip) help

2008-11-07 Thread idealists
Hi Brandon Thanks, so much for your reply I had actually tried that too. And yes this does work..However, strangely, ONLY when I have mouse overed ANOTHER link (with title attrible a['title']) that is OUTSIDE the part of the page that is refreshed when the ajax pagination occurs. If I

[jQuery] Re: span tag is width:80px but is only showing the width of contents?

2008-11-07 Thread nmiddleweek
Yes that works... What I'm trying to do is display a SPAN atg at the end of an Input text field of a fixed size. If I set the display to block, it is forcing itself to be on the next line. Have you got any idea on how I can do this? Cheers, Nick On Nov 7, 3:48 pm, mbraybrook [EMAIL

[jQuery] Re: Triggering Validation using a button instead of submit

2008-11-07 Thread Justin Kozuch
No joy there... Here's my code: // validate signup form on keyup and submit var validator = $(#sourcing).validate(); $(#submit).click(function() { validator.triggerHandler('submit'); rules: { }, // end rules messages: { ... } // end messages

[jQuery] Re: Selectors with :has and with variables

2008-11-07 Thread [EMAIL PROTECTED]
I owe you an apology, Hector - I'd been looking at the same lines for so long, I'd stopped seeing what I'd written ... and was doubling-up my selector. This DOES work: $( '#themenu' ).children( 'li[id]' ).hover( function() { var theID = $(this).attr('id');

[jQuery] Creating an image thumnail rotator help!

2008-11-07 Thread idealists
Hi Guys This is my first attempt at doing anything jQuery (that is partly my own). So please don't shoot me down :) I would like your help, improving, my simple thumbnail rotator script. It is something I'm sure most jQuery gurus could code in a matter of minutes, but has taken me the better

[jQuery] multiple toggle classes within one ID

2008-11-07 Thread carbon
Hi, I'm trying to implement multiple toggle classes within one ID. When you toggle 1 class, the intial span 'view details' would hide and the hidden span 'hide details' would display. the problem i'm having is i'm unable to specify the text toggling to happen just to the current class. its

[jQuery] Re: Link in an iFrame changing Parent window elements

2008-11-07 Thread CodingCyborg
Wow, I feel like a complete idiot. It was the selector. Thanks for the help! I'll try not to make that mistake again . On Nov 7, 8:21 am, tlphipps [EMAIL PROTECTED] wrote: If the div is 'printed' via PHP, then jquery will 'see' it when it runs.  If it's not 'printed', then jquery will NOT see

[jQuery] Re: Scrolling inside a div with mousemove

2008-11-07 Thread Dan
Ah ok, So does that mean I need to calctulate how far up or down it can scroll? On Nov 7, 7:34 am, Jeffrey Kretz [EMAIL PROTECTED] wrote: Ah, This part of the code: // Use the e.clientX and e.clientY vs this.tempPosition // to determine how much to move the scrollbars according // to

[jQuery] Re: Triggering Validation using a button instead of submit

2008-11-07 Thread mbraybrook
It's my understanding that the validation plug-in listens for a form to be submitted before performing its checks. If this isn't the case then this won't work, but, in your sample code you've used: validator.triggerHandler('submit'); which will need to be changed to:

[jQuery] Anyway to make flexigrid liquid ?

2008-11-07 Thread yabdab
Anyone know a way to make this flexigrid liquid? What I mean is, if it is in a browser window, it resizes with the window? It has grab tabs for this, but then you have to resize twice, first the browser, then the grid. http://www.webplicity.net/flexigrid/

[jQuery] Re: LiveQuery with Tipsy (tooltip) help

2008-11-07 Thread Brandon Aaron
Are you using jQuery for the AJAX? Live Query really only works automagically if you are using jQuery to modify the DOM. If you aren't using jQuery for the AJAX, there are a few options. Live Query has an API doing things a little more manual. After you load in the content from the AJAX call run

[jQuery] Re: span tag is width:80px but is only showing the width of contents?

2008-11-07 Thread mbraybrook
This works: input type=text style=float:left;/span style=width:80px; background-color:#00FF00;display:block;float:left;A/span However... I feel bad telling you that - this is bad markup - perhaps you could explain why you are trying to do this, or what the bigger picture here is? As stated by

[jQuery] Re: span tag is width:80px but is only showing the width of contents?

2008-11-07 Thread Hector Virgen
Wrap the input in a div with and set the div's position to relative. Then, add the span as as a div, set the width, and position it absolutely. Its absolute position will be relative to the container div, not the page. div style=position: relative; input type=text name=name style=width:

[jQuery] urgent please help; if statement not executing

2008-11-07 Thread claudes
i'm sorry to double post but i'm at my wits end with this. i once had this code: if ($('li.panel:not(:only-child)')) { var $this = $('li.panel:not(:only-child)').parent().parent(); ($this).append('ul class=nav-carousel/ul'); // build

[jQuery] Re: Anyway to make flexigrid liquid ?

2008-11-07 Thread mbraybrook
Someone here may yet come up with an answer, but perhaps this question would be better in http://groups.google.com/group/flexigrid? Sorry i can't be any more use than that. M On Nov 7, 4:21 pm, yabdab [EMAIL PROTECTED] wrote: Anyone know a way to make this flexigrid liquid?  What I mean is,

[jQuery] Re: Scrolling inside a div with mousemove

2008-11-07 Thread Jeffrey Kretz
Yeah. There is some personal tastes too, like do you want it to constantly move around, or only move when you mouse to the edge, etc. JK -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Dan Sent: Friday, November 07, 2008 1:53 AM To: jQuery

[jQuery] Select all options on button click

2008-11-07 Thread JQueryProgrammer
Hi All, I am trying to write a JQuery function which would select all my options in the select control with the click of a button. I am able to do it with the following function: $(#btnAll).click(function() { $(#myselect *).attr(selected,selected); }); But the problem is my select list

[jQuery] clueTip plugin mouseOutClose with sticky:true problem

2008-11-07 Thread Ollie
The clueTip plugin mouseOutClose option does not work fully if you hav sticky set to on. it only closes the cluetip if you hover over the cluetip itself. It should also close when the mouse moves out of the element that fired the cluetip (but not when the mouse is moving into the cluetip).

[jQuery] Thank you (for all the fish?)

2008-11-07 Thread tlob
I just wanted to say: Thank you jQuery, John Reisig (http://ejohn.org/) and all the Team (http://docs.jquery.com/Contributors) behind it! Great work guys. Nokia and M$ ist just the beginning for world Domination ;-) http://jquery.com/blog/2008/09/28/jquery-microsoft-nokia/ Thank you Thank you

[jQuery] Re: slideDown animation jumps - even without padding set.

2008-11-07 Thread jonhobbs
Thaks Liam, Unfortunately it will hold dynamic content from a database so I don't know the height and can't explicitly set it. (although I did try it and that did solve the problem) I'm wondering if it might be possible to get the height using a more reliable method and then set it explicitly

[jQuery] Help jquery.history!!!

2008-11-07 Thread blueangel2008
hi everyone i'm using jquery.history to manage history with ajax page i'm using this script script type=text/javascript src=http://localhost/js/jquery-1.2.6.pack.js;/script script type=text/javascript src=http://localhost/js/jquery.history.js;/script script type=text/javascript function

[jQuery] Re: validate : help with required code

2008-11-07 Thread Chuck Cheeze
I understand that, I am asking for help writing that custom method. I can't get it to work. So, if name_first = First then its required, if it is anything else it is valid. Thanks On Nov 7, 4:48 am, Jörn Zaefferer [EMAIL PROTECTED] wrote: In this case you need a custom required-method. Your

[jQuery] Re: Can't figure out why click function won't work for lifeimage

2008-11-07 Thread ben taleb Aymen
i replace it by an alert, it works fine.if there is any trouble with the click event it would be the same in firefox wich is not the case. 2008/11/7 Warren [EMAIL PROTECTED]: Neither works, The problem seems to be in that it is not recognizing the click event. I can replace the action

[jQuery] Re: Selectors with :has and with variables

2008-11-07 Thread [EMAIL PROTECTED]
Having - finally! - finished this, I thought I'd post my code. I'm very sure it could be more compact, but I'm a bit of a Javascript dork and thought others might benefit from my step-by-step approach ;) // menu show/hide $( '#themenu' ).children( 'li[id]' ).hover( function() {

[jQuery] Re: LiveQuery with Tipsy (tooltip) help

2008-11-07 Thread idealists
jQuery.livequery.run() worked wonders! You are right, not using jQuery to do ajax (yet). Will probably port to it though. Thanks champ! On Nov 8, 3:26 am, Brandon Aaron [EMAIL PROTECTED] wrote: Are you using jQuery for the AJAX? Live Query really only works automagically if you are using

[jQuery] Re: span tag is width:80px but is only showing the width of contents?

2008-11-07 Thread Andy Matthews
That's a LOT of markup. You could actually use an input field if you just want to set a background color an some text. It might look like this: input type=text name=name style=width: 100px; / input type=text name=name value=some text style=width: 80px;background: #ff; border: 0px;height:

[jQuery] jQuery Ajax Data url encoding

2008-11-07 Thread M_h
Hello, Im doing a simple ajax request: $.ajax({ type: 'POST', data: 'action=linklink=' + v, url: getLocation('?switch=link'), dataType: 'json', success: function(json) { showMessage(json.msg, json.status); } }); v in data is url like http://localhost/pub/file? a=g=1746p=00s=13;

[jQuery] Jquery Cycle Plugin Problem

2008-11-07 Thread Jorge
There is a problem with pc memmory when the plugin is working ( Tested in a few pcs). At Least you need a 2 core duo for a not problem experiencie, but try in a pentium 4 with 1gb of ram... and you will Khnow. Open the task administrator and test de memmory. Any Solution for this?

[jQuery] Re: jQuery Form Plugin - success callback function isn't called

2008-11-07 Thread jscheel
Hrm, I'm having the same problem. Anybody have any ideas? On Oct 23, 6:34 am, Sebastian [EMAIL PROTECTED] wrote: Hey guys, I'm working with the jQueryFormPlugin and I'm having some trouble with it. In my HTML I have a button, which, when clicked, inserts aformvia jQuery. To then register

[jQuery] Re: Select all options on button click

2008-11-07 Thread JQueryProgrammer
Thanks for the reply. But this does not resolved my issue. I think client side code is always faster than server side code. Also I do not want to do a post back. I have also tried it with server side code but its even slower than the above code. Any other code would be appreciated. On Nov 7,

[jQuery] Re: $(this).next() doesn't work

2008-11-07 Thread Rik Lomas
You need to do: $(this).parent().next().addClass('second'); As the element the click is attached to is the a, so you need to traverse up the DOM tree first Rik 2008/11/7 diego [EMAIL PROTECTED]: Hi all. how can i addClass from the clicked element lia to the next li? i've tried this

[jQuery] Re: span tag is width:80px but is only showing the width of contents?

2008-11-07 Thread Liam Potter
the most simple way to do this, is to simply apply display:block on the span. span style=display:block;width:80px;background:#00FF00;A/a that will fix it all. Andy Matthews wrote: That's a LOT of markup. You could actually use an input field if you just want to set a background color an

[jQuery] Re: Creating an image thumnail rotator help!

2008-11-07 Thread idealists
Ok..I've tried to have a go at doing the image preload. Updated script below. Even though this works, I'm sure it could be coded much neater. For one, I am not sure I am implementing jQuery Timers (http:// jquery.offput.ca/every/) properly. Thanks script type=text/javascript var start_image;

[jQuery] Re: span tag is width:80px but is only showing the width of contents?

2008-11-07 Thread Andy Matthews
Actually that will NOT fix it all. That makes the span into a block level element which will force it to the next line. andy -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Liam Potter Sent: Friday, November 07, 2008 11:08 AM To:

[jQuery] Re: span tag is width:80px but is only showing the width of contents?

2008-11-07 Thread Liam Potter
display:inline-block; Andy Matthews wrote: Actually that will NOT fix it all. That makes the span into a block level element which will force it to the next line. andy -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Liam Potter Sent:

[jQuery] Re: span tag is width:80px but is only showing the width of contents?

2008-11-07 Thread Liam Potter
no, in IE it works only on things that are natively inline. For Firefox 2 you will need to use |display:-moz-inline-stack; but FF3 supports inline-block, opera, safari and konqueror all support it.| nmiddleweek wrote: Hi Liam, Thanks for your input... Is inline-block IE only? On Nov 7,

[jQuery] window.onbeforeunload fires in IE when a JQuery UI Dialog is opened

2008-11-07 Thread Sarge
This is very frustrating. I have the following code $(window).bind(beforeunload, function() { // get's instances to all three editors var edMainT = FCKeditorAPI.GetInstance('edMain'); var edSecondaryT =

[jQuery] Collection of Shekar kammula Movies

2008-11-07 Thread 24hrsmovies
http://newmegamovies.blogspot.com/

[jQuery] Re: How to select a group of similar named objects?

2008-11-07 Thread nmiddleweek
Hello, Is there a shorthand way of setting the visiblity to hidden and display to none? and a shortcut for the other way round? perhaps .show() that includes the display:inline; Cheers, Nick On Nov 6, 9:19 pm, jquertil [EMAIL PROTECTED] wrote: aslo,

[jQuery] Re: jQuery Form Plugin - success callback function isn't called

2008-11-07 Thread Mike Alsup
The form submits as it should, using an AJAX call. When I add a beforeSubmit callback function to the options array, that gets called as well, as it should. Only the success callback (the alert) isn't called and I don't know why. Maybe the call wasn't successful. Can you post a link?

[jQuery] Re: span tag is width:80px but is only showing the width of contents?

2008-11-07 Thread nmiddleweek
Hi Liam, Thanks for your input... Is inline-block IE only? On Nov 7, 5:20 pm, Liam Potter [EMAIL PROTECTED] wrote: display:inline-block; Andy Matthews wrote: Actually that will NOT fix it all. That makes the span into a block level element which will force it to the next line. andy

[jQuery] Re: span tag is width:80px but is only showing the width of contents?

2008-11-07 Thread nmiddleweek
Why is this bad markup? it works... On Nov 7, 4:27 pm, mbraybrook [EMAIL PROTECTED] wrote: This works:  input type=text style=float:left;/span style=width:80px; background-color:#00FF00;display:block;float:left;A/span However... I feel bad telling you that - this is bad markup - perhaps

[jQuery] Re: Finding id and setting as variable

2008-11-07 Thread Richard D. Worth
Change $(.msg).id to $(.msg).attr(id) - Richard On Fri, Nov 7, 2008 at 7:27 AM, Liam Potter [EMAIL PROTECTED] wrote: The error I get in firebug is $(.msg).id is undefined basically what I'm trying to do is pass this into an ajax post to delete the message, so it's vital the id is the

[jQuery] Re: Finding id and setting as variable

2008-11-07 Thread Liam Potter
The error I get in firebug is $(.msg).id is undefined basically what I'm trying to do is pass this into an ajax post to delete the message, so it's vital the id is the same one from the database. MorningZ wrote: but this doesn't work. Care to elaborate?do you get an error? unexpected

[jQuery] Re: validate : help with required code

2008-11-07 Thread Jörn Zaefferer
$.validator.addMethod(customRequired, function(value, element) { return value.length 0 value != First; }, $.validator.messages.required); Jörn On Fri, Nov 7, 2008 at 4:05 PM, Chuck Cheeze [EMAIL PROTECTED] wrote: I understand that, I am asking for help writing that custom method. I can't

[jQuery] Re: LiveQuery with Tipsy (tooltip) help

2008-11-07 Thread idealists
Could this one be wrritten any better: $('a.thumb_link') .livequery('mouseover', $.thumb_change ) .livequery('mouseout', $.thumb_reset ); This is in regards to: http://groups.google.com/group/jquery-en/browse_thread/thread/d057e0311367e1d5 Thanks.

[jQuery] Re: Understanding JQuery/Javascript.

2008-11-07 Thread Balazs Endresz
$.fn.extend extends $.fn if you pass only one parameter. It's useful if you're adding more methods (plugins) but if you just want to add a single plugin it's the same as $.fn.tablesorterPager = function(){ ... } Accordingly $.extend extends $, which is the same as $.tablesorterPager=function(){

[jQuery] Finding id and setting as variable

2008-11-07 Thread Liam Potter
Hi guys, this should be a quick one I have a div, which has a unqiue id (pulled from the database) so something like this. div class=msg id=msg%#Eval(PrimaryKeyID)% /div and I'm trying to get the id number from it like this var uid = $(.msg).id.replace('msg', ); as I'm running a similar

[jQuery] Re: slideDown animation jumps - even without padding set.

2008-11-07 Thread Liam Potter
does the div have the have no height? if not set a height on the div, if it needs to be expandable then someone who knows more about this will need to help you. Though looking into the dimensions plugin may help. http://brandonaaron.net/docs/dimensions/#sample-2 jonhobbs wrote: I know

[jQuery] Re: animated robot cartoon with jquery

2008-11-07 Thread anthony.calzadilla
Hi, I changed the 'bounceHim' function a bit so that the different pieces of the robot look like they are separated and bouncing individually: function bounceHim(){ $(#sec-content,#branding).animate({top:-=5px}, 150).animate({top:+=5px},150);

[jQuery] Re: Jquery Cycle Plugin Problem

2008-11-07 Thread Mike Alsup
There is a problem with pc memmory when the plugin is working ( Tested in a few pcs). At Least you need a 2 core duo for a not problem experiencie, but try in a pentium  4 with 1gb of ram... and you will Khnow. Open the task administrator and test de memmory. It's not clear to me whether

[jQuery] DIV width:100px; is different to INPUT width:100px;

2008-11-07 Thread nmiddleweek
hello, What is the best way to work out the real width of an object? I'm toggling the display:inline/none of a DIV and an INPUT field so one or the other is displayed but I've just check ed the visual appearance of the two objects and the DIV is not as wide. This will likely cause my interface

[jQuery] Re: animated robot cartoon with jquery

2008-11-07 Thread Andy Matthews
Anthony... Is the robot supposed to do anything other than drive across the screen? I'm looking for buttons which might cause him to do things, but not seeing them. Is this part of what you're working on, and it's just not in place? This is really well done by the way. I might show this to my

[jQuery] Re: animated robot cartoon with jquery

2008-11-07 Thread Andy Matthews
He's only saying that so he can get out of responsibility. :) -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Mike Alsup Sent: Friday, November 07, 2008 12:04 PM To: jQuery (English) Subject: [jQuery] Re: animated robot cartoon with jquery

[jQuery] Re: $(this).next() doesn't work

2008-11-07 Thread diego valobra
Rik, tnx you gave me the right inputi'm solving it Diego 2008/11/7 Rik Lomas [EMAIL PROTECTED] You need to do: $(this).parent().next().addClass('second'); As the element the click is attached to is the a, so you need to traverse up the DOM tree first Rik 2008/11/7 diego [EMAIL

[jQuery] Re: jQuery Problem - Animated scrolling for in page links

2008-11-07 Thread mrleesimpson
Thanks for this Ariel. Managed to get this working. On Oct 30, 9:10 pm, Ariel Flesler [EMAIL PROTECTED] wrote: Try this plugin: http://flesler.blogspot.com/2007/10/jquerylocalscroll-10.html -- Ariel Fleslerhttp://flesler.blogspot.com On Oct 30, 9:01 am, mrleesimpson [EMAIL PROTECTED]

[jQuery] Re: DIV width:100px; is different to INPUT width:100px;

2008-11-07 Thread Hector Virgen
Padding and borders are added to the width. Is that the difference you are seeing? -Hector On Fri, Nov 7, 2008 at 10:16 AM, nmiddleweek [EMAIL PROTECTED]wrote: hello, What is the best way to work out the real width of an object? I'm toggling the display:inline/none of a DIV and an INPUT

[jQuery] Re: span tag is width:80px but is only showing the width of contents?

2008-11-07 Thread nmiddleweek
Thanks... I was just playing with float but I set the input to float:left and the span to float:right thinking it was something to do with justification. I kind of got it working but it didn't look right in Chrome. Perhaps your way works better but I'll sack it off if it's bad coding... Thanks

[jQuery] Re: jquery validation: manually set the form validity state?

2008-11-07 Thread kedr
Would using resetForm() help me in any way? On Nov 6, 3:11 pm, kedr [EMAIL PROTECTED] wrote: I have a form that is split into 3 different tabs. You can only move to the next tab if the part of the form on the current tab is valid. I have 3 separate validator code sections each with their own

[jQuery] find expression and removing from the page

2008-11-07 Thread Dan B.
So lets say I have this simple HTML structure someonwheres in my document: ul id=bigul li id=placeholder some text /li /ul and I want to remove the place holder. I guess I'm trying something like this: $find(#bigul#placeholder).remove(); Is that some what on the right track?

[jQuery] Re: find expression and removing from the page

2008-11-07 Thread MorningZ
There is no $find object (unless you made one) it'd be $(#bigul #placeholder).remove(); On Nov 7, 1:56 pm, Dan B. [EMAIL PROTECTED] wrote: So lets say I have this simple HTML structure someonwheres in my document: ul id=bigul    li id=placeholder        some text   /li /ul and I

[jQuery] Re: animated robot cartoon with jquery

2008-11-07 Thread Rick Faircloth
Are you kidding! I'm still so basic in jQuery that I'm just now getting ready to try and implement my first modal dialogue! I'm always behind everyone else! I just moved to ColdFusion 8 from 4.5 a few months ago! :-D Andy Matthews wrote: He's only saying that so he can get out of

[jQuery] Re: animated robot cartoon with jquery

2008-11-07 Thread Rick Faircloth
Unfortunately, I only get to dabble with jQuery. Just enough to get done what I need for the moment. Too many projects and too much ColdFusion programming to do. So, mostly, I contribute by asking the most basic questions that others are embarrassed to ask! :-) Mike Alsup wrote:

[jQuery] [offtopic] [article] domWrite() lazy loading ads: external code using document.write() - execution AFTER the page has rendered

2008-11-07 Thread Rene Veerman
Friend of mine wrote this article that might be of interest to you: Often there is advertizing code to be implemented in a page, and there are 2 problems one may face: (1) the website hangs due to a lag on the code delivering server (2) you normally cannot lazy load the script since

[jQuery] problem with z-index and INPUT objects

2008-11-07 Thread nmiddleweek
Hello again :) I've put together a test page that shows a table grid with INPUT fields in each cell. When you click on a field, it shows a blue tab to the right. Click the tab and it hides the field and shows a green panel. I'm having problems on IE in that the blue tab sits underneath the

[jQuery] Mutiple slideshows

2008-11-07 Thread philco
- http://thisworldover.com/jquerytest/index2.php Hi, i'm working on developing this great script out so that i can have the left side load as normal, but then have the 'previous' and 'next' buttons navigate a slideshow within the slideshow. Fr'instance, a click on ad1 would load the first image

[jQuery] [tooltip] HTML in the tooltip?

2008-11-07 Thread samtherobot
I have a problem where Drupal is outputting HTML that is for the tooltip. Any quotes however are ending the title attribute and then just appearing in the page. Is there a way to show html tags in with attributes in the tooltip?

[jQuery] superfish z-index problem

2008-11-07 Thread Caveman
I am using the superfish menu on a page that also has a google map on it. I have tried to change the z-index of different elements many different ways. my current code looks like this: !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN http://

[jQuery] Need help traversing an unordered list

2008-11-07 Thread Logictrap
How do I access just the titles (ie 'Title 1', 'Title 2')? Every method I tried also includes the content. I tried using: not('[li]) parent() This is an example list structure. I want to be able to get just the titles: (ie Title 1, Title 2, Title 3) ul id=mylist li Title 1 ul

  1   2   >