[jQuery] Re: [hacking] animating a div with fuzzy png borders

2008-10-29 Thread Rene Veerman
Well i hacked something into the animate() and custom() functions but actually calling the 'fix-function' during the animation resulted in a flickering animation. I haven't been able to get rid of it, so i'm reverting to std jquery hard borders for elements that i animate, for now.. If i

[jQuery] Plugin code needs comments and optimization

2008-10-29 Thread Nic Hubbard
Hey everyone, I have a small plugin that I wrote that makes a normal form into an ajax form. I also want the user to be able to pass some ID's to the plugin so that they can return specific content in the server response and place it on the page. But, if the user chooses to leave that blank

[jQuery] Re: Validate Plugin - Multiple Requirements? [validate]

2008-10-29 Thread Jörn Zaefferer
No, I'm proposing to write your own custom method, using $.validator.addMethod. Custom methods allow you to extend the validation with your application specific requirements. Jörn On Wed, Oct 29, 2008 at 12:38 AM, Validatorian [EMAIL PROTECTED] wrote: Maybe I misunderstood you, but it seems

[jQuery] Re: Galleria Thumbnails not generating in Firefox

2008-10-29 Thread Giovanni Battista Lenoci
Cosmo Kramer ha scritto: Can anyone please explain why in FF the thumbnails are displaying as full images and the main image is not displaying at all. Works fine in opera and safari. Link: http://cmphotographer.com.au/category/wedding/ Working well for me on firefox 3.0.3 --

[jQuery] Re: [validate] Problem with validation on a form pulling in with Ajax

2008-10-29 Thread ryanhavoc
Yes, $(#attendee_editForm) is the id of the form being pulling in. It's difficult to create a test page as it's linked to confidential data at the minute. On Oct 28, 11:01 pm, Jörn Zaefferer [EMAIL PROTECTED] wrote: Does $(#attendee_editForm) match any elements? A testpage would help. Jörn

[jQuery] Re: [validate] Problem with validation on a form pulling in with Ajax

2008-10-29 Thread Jörn Zaefferer
Yes, thats why its called a testpage. You need to strip anything unrelated so that we can focus on the actual problem. Jörn On Wed, Oct 29, 2008 at 10:16 AM, ryanhavoc [EMAIL PROTECTED] wrote: Yes, $(#attendee_editForm) is the id of the form being pulling in. It's difficult to create a test

[jQuery] Re: [validate] Problem with validation on a form pulling in with Ajax

2008-10-29 Thread ryanhavoc
OK, I've created a test page getting rid off all the over javascript i'm using. http://common.leeds-art.ac.uk/validate/openday_bookings/test.php Same problem. I've got a link at the top that loads the form in a dialog box from a seperate file, test_add_attendee.php And I've also put that same

[jQuery] Re: [validate] Problem with validation on a form pulling in with Ajax

2008-10-29 Thread Jörn Zaefferer
Okay, that helps. So far I couldn't find anything obvious though, really weird issue. Please replace the minified files with normal source files, but makes debugging possible. Jörn On Wed, Oct 29, 2008 at 10:59 AM, ryanhavoc [EMAIL PROTECTED] wrote: OK, I've created a test page getting rid off

[jQuery] jeditable, tablesorter work slow with livequery

2008-10-29 Thread tomek_swat
Hello, I have some problems, with these 3 plugins, jeditable and tablesorter works very good when I use it without livequery but when I want these 3 plugin to work, they work very slowly and sometimes crash the browser, I have to use livequery because data is loaded from this function: function

[jQuery] Re: [validate] Problem with validation on a form pulling in with Ajax

2008-10-29 Thread Jörn Zaefferer
Looks like the validation is basically working, though you messed something up: The submit button has a click handler which always returns false, preventing any submit validation to occur. On the other hand, if you enter something into a required field, then blur, then remove and blur, you'll get

[jQuery] Re: [validate] Problem with validation on a form pulling in with Ajax

2008-10-29 Thread ryanhavoc
Okay, I've replaced the minified files with uncompressed. Refresh. Thanks Ryan On Oct 29, 10:08 am, Jörn Zaefferer [EMAIL PROTECTED] wrote: Okay, that helps. So far I couldn't find anything obvious though, really weird issue. Please replace the minified files with normal source files, but

[jQuery] Re: Select an element in an ancestor selector

2008-10-29 Thread André
Thanks a lot for the answer, Tim, but it did no work either. It's 5 levels up and there are different tags on the way... I think that's the reason it's getting that hard. Maybe I'm to focused in the li and the solution is in a different path... André On 28 out, 18:59, tpb976 [EMAIL PROTECTED]

[jQuery] JQuery Countdown

2008-10-29 Thread B3
I'm trying to get the countdown from http://keith-wood.name/countdown.html working but i just dont understand the directions. is you scroll down some to the Usage section step 3 is where I get confused. Could someone explain what the directions mean by Connect the countdown functionality to your

[jQuery] Dialog box that auto expands depending on content

2008-10-29 Thread ryanhavoc
I have a form that I pull into a dialog box. I've set the dialog to have an auto height as an option and it sets the height when the form is pulled in. However I'm also using the validate plugin which when displaying an error message adds additional height the the form. However the dialog

[jQuery] Re: sortable links

2008-10-29 Thread andre
Which version of jQuery and jQuery UI worked for you? I tried with jQuery 1.2.6 and jQuery UI 1.5.2 stable and 1.6rc2 and still have the same issue.

[jQuery] Want a demo of sliding Text..please help

2008-10-29 Thread @n!L...Reddy
Hi Friends.. A very Good MorningI am new to this group .i found this while searching... I want a Demo script of sliding Text . Please help If u have any idea of this. Thanks -Ani-

[jQuery] Re: [validate] Problem with validation on a form pulling in with Ajax

2008-10-29 Thread ryanhavoc
Your a legend. Thank you. Works now. On Oct 29, 10:24 am, Jörn Zaefferer [EMAIL PROTECTED] wrote: Looks like the validation is basically working, though you messed something up: The submit button has a click handler which always returns false, preventing any submit validation to occur. On

[jQuery] Re: text after a radio button

2008-10-29 Thread edzah
I had the same problem just now. Try this: input name=joe type=radio value=1 id=val1 /span id=val1txt1/span input name=joe type=radio value=2 id=val2 /span id=val2txt2/span ... Then when you want to hide/show both the radio button and the text: $('#val1').show(); $(#val1txt).show();

[jQuery] idTabs and hoverintent

2008-10-29 Thread Ettiene
Hi there, I've implemented idTabs on a website and used the mouseover event to toggle between the tabs. Now I've been thinking of also integrating the hoverintent plugin, so the tabs only change when it looks like the user wants to hover there. Can anybody please help me with this? I've tried

[jQuery] Re: Select an element in an ancestor selector

2008-10-29 Thread André
I got it!!! You helped me to get closer to the solution, Tim. The only one thing that was missing in your code was to erase the li from the parentheses. For the guys who may face the same problem as I did, this is the path that worked (for the HTML I placed in my first post):

[jQuery] Re: Dialog box that auto expands depending on content

2008-10-29 Thread Ettiene
Well I see in Firefox (using Firebug) that if you set div class=dialog_box ui-dialog-content ... to have height: auto then it'll expand as the content in the dialog expands. You using a Jquery UI dialog plugin? Ettiene On Oct 29, 12:51 pm, ryanhavoc [EMAIL PROTECTED] wrote: I have a form that

[jQuery] Re: Want a demo of sliding Text..please help

2008-10-29 Thread [EMAIL PROTECTED]
Hi! Look at this http://docs.jquery.com/Effects/slideToggle There are many useful examples in official jQuery site http://jquery.com On 29 окт, 12:11, @n!L...Reddy [EMAIL PROTECTED] wrote: Hi Friends.. A very Good MorningI am new to this group .i found this while searching... I want

[jQuery] Re: Dialog box that auto expands depending on content

2008-10-29 Thread ryanhavoc
Yeah the jQuery UI Dialog plugin. On Oct 29, 11:43 am, Ettiene [EMAIL PROTECTED] wrote: Well I see in Firefox (using Firebug) that if you set div class=dialog_box ui-dialog-content ... to have height: auto  then it'll expand as the content in the dialog expands. You using a Jquery UI dialog

[jQuery] Re: Dialog box that auto expands depending on content

2008-10-29 Thread ryanhavoc
I've fixed it. Set a line of jQuery to set the height to auto for ui- dialog-content. Wouldn't work through just CSS. Cheers On Oct 29, 12:01 pm, ryanhavoc [EMAIL PROTECTED] wrote: Yeah the jQuery UI Dialog plugin. On Oct 29, 11:43 am, Ettiene [EMAIL PROTECTED] wrote: Well I see in

[jQuery] Re: blockUi and Jquery animate function problem (IE7 of course)

2008-10-29 Thread asiarlis
On Oct 29, 1:32 am, Mike Alsup [EMAIL PROTECTED] wrote: Recently i decide to use theanimatefunction ofjQueryto pop up an absolute position it window that holds form data. The problem is that when i use theanimatefunction to pop up the window the blockUi in Internet explorer 7 cannot

[jQuery] Multiple Events

2008-10-29 Thread Tallu
I am trying to show and hide a div once some data is processed by the php.but the second event is not working.What am i doing wrong? $(document).ready(function(){ //alert(Document is Ready); $(form#FormID).submit(function(){ //alert(Form is submitted);

[jQuery] Configurable jQuery Components

2008-10-29 Thread Santosh
If you are interested in creating jQuery components using config options have a look at my post here. http://santrajan.blogspot.com/2008/10/configurable-jquery-components.html

[jQuery] linkSelect - the width of the options container

2008-10-29 Thread snobo
Hi, 1st of all thanx and kudos to the creators of mighty LinkSelect plugin! I stumbled upon the situation, which seems confusing to me. In my app, I noticed that the LinkSelect used to create the container for its option list which is too wide. I read the docs and found the option fixedWidth.

[jQuery] callback after insertBefore or insertAfter is complete;

2008-10-29 Thread gryzzly
Hello. I need to call function after $(#element).insertBefore(a href=#' title='prev'prev/a). I was trying $(#element).insertBefore(a href=#' title='prev'prev/ a, callback_function); but it didn't work. What can I do to achieve this? Thank you.

[jQuery] Getting width of broken image?

2008-10-29 Thread Andy Matthews
I'm loading in a batch of images dynamically. Some of the images might not exist and I'm wondering how I might test for that image using jQuery (1.2.6). All I really want to do is to remove that img from the DOM so that it doesn't show on the page. I thought at first it would be simple enough to

[jQuery] Re: callback after insertBefore or insertAfter is complete;

2008-10-29 Thread Richard D. Worth
Regular DOM manipulation events (that is, not .load(), which uses Ajax) are synchronous, so you can simply call your function on the next line. - Richard On Wed, Oct 29, 2008 at 9:22 AM, gryzzly [EMAIL PROTECTED] wrote: Hello. I need to call function after $(#element).insertBefore(a href=#'

[jQuery] $.fn.data() is significantly slowed down by $.fn.trigger().

2008-10-29 Thread Tim Molendijk
$.fn.data() internally uses $.fn.trigger() for whatever reason. When using $.fn.data() heavily, $.fn.trigger() starts to slow down the code. In my situation Firebug profiler tells me 20% of the time is consumed by $.fn.trigger() as a result of $.fn.data() calls. Shouldn't it be possible to get

[jQuery] Re: callback after insertBefore or insertAfter is complete;

2008-10-29 Thread gryzzly
Thank You a lot. On Oct 29, 3:55 pm, Richard D. Worth [EMAIL PROTECTED] wrote: Regular DOM manipulation events (that is, not .load(), which uses Ajax) are synchronous, so you can simply call your function on the next line. - Richard On Wed, Oct 29, 2008 at 9:22 AM, gryzzly [EMAIL

[jQuery] focus element after some effect

2008-10-29 Thread Min
Hi, Im using slidetoggle effecto to show/hide some form (form1), and hide/ show other form (form2). So when form1 is hiding, form2 is showing. Now Im trying to focus some input when the effect has finished, for example form1.myInput, but im not able... When I try to do it in a callback, it

[jQuery] jCarousel and proportional scaling help needed

2008-10-29 Thread snlsn
Hello; I wish to make a small-ish photo gallery, combining jCarousel ( http://sorgalla.com/jcarousel/ ) and Galleria ( http://devkick.com/lab/galleria/ ). The issues for me are that - my images aren't square (in fact they are mixed horizontal and vertical), - I'm not using Flickr or some

[jQuery] Grading a list (1-10)

2008-10-29 Thread Caoimh
Hi, I have a list of 10 items and I wish the user to be able to grade each one from 1-10. I need to make sure not more than one item has a particular grade i.e once the 'rating 5' has been used up it can't be used again unless the item that currently has it is changed. I have been using 10 combi

[jQuery] Re: Getting width of broken image?

2008-10-29 Thread Andy Matthews
I meant to write img. All that's on the page are images. For every img on the page I was trying to alert it's width so that I could test it. To no avail though. It kept outputting as 0. Regarding the 404 suggestion, these are images not under my domain. I'm pulling in an image from a 3rd party

[jQuery] Re: Getting width of broken image?

2008-10-29 Thread weidc
hi, eh.. did you copy your code? 'Cause you wrote {'img'). On 29 Okt., 14:30, Andy Matthews [EMAIL PROTECTED] wrote: I'm loading in a batch of images dynamically. Some of the images might not exist and I'm wondering how I might test for that image using jQuery (1.2.6). All I really want to

[jQuery] Re: Grading a list (1-10)

2008-10-29 Thread Glen Lipka
How about using the sortables part of jQuery UI? http://docs.jquery.com/UI/Sortables Glen On Wed, Oct 29, 2008 at 7:09 AM, Caoimh [EMAIL PROTECTED] wrote: Hi, I have a list of 10 items and I wish the user to be able to grade each one from 1-10. I need to make sure not more than one item has

[jQuery] event handlers on appeneded code?

2008-10-29 Thread Martin Sarsini
Hi to everyone I am having problems with appended code generated from an ajax post request. The code is appended correctly, but the problem is that the anchors in the appended code do not work. The ancors should return false and should work with a jquery function but they don't don't and clicking

[jQuery] Re: blockUi and Jquery animate function problem (IE7 of course)

2008-10-29 Thread asiarlis
On Oct 29, 1:32 am, Mike Alsup [EMAIL PROTECTED] wrote: Recently i decide to use the animate function of jQuery to pop up an absolute position it window that holds form data. The problem is that when i use the animate function to pop up the window the blockUi in Internet explorer 7

[jQuery] Re: blockUi and Jquery animate function problem (IE7 of course)

2008-10-29 Thread asiarlis
On Oct 29, 2:19 pm, asiarlis [EMAIL PROTECTED] wrote: On Oct 29, 1:32 am, Mike Alsup [EMAIL PROTECTED] wrote: Recently i decide to use theanimatefunction ofjQueryto pop up an absolute position it window that holds form data. The problem is that when i use theanimatefunction to pop up

[jQuery] Re: Getting width of broken image?

2008-10-29 Thread weidc
naa. i mean the bracket is wrong. ${'img').each(function(){ alert( $(this).width() ); }); you got 3 { 2 times you open the { and one time you close it } and i guess it have to be $('img').each(... you know what i mean? On 29 Okt., 15:20, Andy Matthews [EMAIL PROTECTED] wrote: I meant

[jQuery] Change the active tab of jquery ui tabs

2008-10-29 Thread [EMAIL PROTECTED]
Hello, I was wondering if it's possible to change the active tab. When you load a page he will always show the first tab as active. Is it possible to change the active tab. For example on the index he shows the first tab as active, thats fine. When i go to users.php he has to show the User tab

[jQuery] Re: Want a demo of sliding Text..please help

2008-10-29 Thread Ariel Flesler
Maybe something like this ? http://demos.flesler.com/jquery/serialScroll/ -- Ariel Flesler http://flesler.blogspot.com On Oct 29, 8:17 am, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi! Look at thishttp://docs.jquery.com/Effects/slideToggle There are many useful examples in official

[jQuery] Re: $.fn.data() is significantly slowed down by $.fn.trigger().

2008-10-29 Thread Ariel Flesler
Yeah.. I sort of agree. I know that these events are heavily used by jQuery UI... but indeed, $.data is called a lot (most function calls when I tested) and it's always calling trigger. -- Ariel Flesler http://flesler.blogspot.com On Oct 29, 11:02 am, Tim Molendijk [EMAIL PROTECTED] wrote:

[jQuery] Re: linkSelect - the width of the options container

2008-10-29 Thread Dan G. Switzer, II
Snobo, I stumbled upon the situation, which seems confusing to me. In my app, I noticed that the LinkSelect used to create the container for its option list which is too wide. I read the docs and found the option fixedWidth. To my bewilderment, it didn't work. I fired the Venkman and analyzed,

[jQuery] Re: Selecting option of select with different ID using same code

2008-10-29 Thread ricardobeat
Not sure I understand what you're trying. With $('#colorSelector dl dd.last select').change(function() { var src= $(this).val(); $('image').attr('src',src); }); You can change the image depending on the option selected. On Oct 28, 2:25 pm, Franky [EMAIL PROTECTED] wrote: Please take

[jQuery] Re: Select an element in an ancestor selector

2008-10-29 Thread tpb976
I'm glad that helped you out Andre. It seems kind of weird because it seemed to work for me with the li in there. Feel free to contact me anytime. -Tim On Oct 29, 6:16 am, André [EMAIL PROTECTED] wrote: I got it!!! You helped me to get closer to the solution, Tim. The only one thing that

[jQuery] closing tag bug in jQuery 1.2.6?

2008-10-29 Thread Jay
Has someone else already posted this bug? The following code shows jquery failing to detect the termination of a tag. Load the page and click on the word login. The selector should find the empty div and display the html content (nothing). Instead shows the span closing tag and the javascript

[jQuery] Re: Change the active tab of jquery ui tabs

2008-10-29 Thread Klaus Hartl
A quick look into the documentation gives us the solution: $('#example').tabs({ selected: 1 }); // activate second tab The only thing you need to do is mapping your pages to tabs. --Klaus On 29 Okt., 15:39, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hello, I was wondering if it's

[jQuery] Re: Change the active tab of jquery ui tabs

2008-10-29 Thread tpb976
Yes, there is a way to change the active tab. From the documentation of jQuery tabs, you would use something like the following: $(.selector).tabs(select, 1); Where the second parameter is a zero-based index of the tabs or you could use a selector to select a certain tab. To help you out,

[jQuery] Re: Event.target is Parent Child in IE but in Firefox it is child Element

2008-10-29 Thread ricardobeat
In your code you could just attach the event handler to the menu items themselves, $('.subMenu').hover(...). Or take a look at the LiveQuery plugin (http://brandonaaron.net/docs/ livequery/), it handles event delegation for you. cheers, - ricardo On Oct 29, 2:56 am, csplrj [EMAIL PROTECTED]

[jQuery] Re: Getting width of broken image?

2008-10-29 Thread ricardobeat
Besides the bracket weidc mentioned, is your document valid? I get the correct image width by using width() on both IE and FF. Alternatively you can check for the offsetWidth attribute. $('img').each(function(){ alert(this.offsetWidth500); }); On Oct 29, 11:30 am, Andy Matthews [EMAIL

[jQuery] Re: Multiple Events

2008-10-29 Thread ricardobeat
$(button#hide-btn) selects nothing, it's an input element not a button. There is a ':button' pseudo-selector in jQuery, but if you are selecting by ID the tag name is unncessary and may even be slower. $('#hide-btn'), $('#FormID'), $('#display-div') - ricardo On Oct 29, 10:19 am, Tallu [EMAIL

[jQuery] Re: closing tag bug in jQuery 1.2.6?

2008-10-29 Thread John Resig
I'm fairly certain that's incorrect syntax (putting a div inside a span - especially one that's self-closing). The browser will automatically force the div outside the span. --John On Wed, Oct 29, 2008 at 11:38 AM, Jay [EMAIL PROTECTED] wrote: Has someone else already posted this bug? The

[jQuery] Re: closing tag bug in jQuery 1.2.6?

2008-10-29 Thread Jay
On Oct 29, 10:46 am, John Resig [EMAIL PROTECTED] wrote: I'm fairly certain that's incorrect syntax (putting a div inside a span - especially one that's self-closing). The browser will automatically force the div outside the span. Why does it work as I expected if the tag is not self closing?

[jQuery] Re: closing tag bug in jQuery 1.2.6?

2008-10-29 Thread chris thatcher
Hey Jay, I remember having some confusion about the span tag at some point. the html specs do significantly limit the types of tags that can be used inside it and browsers will do unexpected things if you try. definitely look at the w3c site to get some more specifics. On Wed, Oct 29, 2008 at

[jQuery] Re: closing tag bug in jQuery 1.2.6?

2008-10-29 Thread Jay
On Oct 29, 11:08 am, chris thatcher [EMAIL PROTECTED] wrote: Hey Jay, I remember having some confusion about the span tag at some point. the html specs do significantly limit the types of tags that can be used inside it and browsers will do unexpected things if you try.  definitely look at

[jQuery] Re: text after a radio button

2008-10-29 Thread ricardobeat
You can reach it with DOM properties: $('input').each(function(){ while (this.nextSibling this.nextSibling.nodeType == 3) { $(this.nextSibling).remove(); } }); - ricardo On Oct 28, 7:01 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Working with  Lotus Notes developer -

[jQuery] Hiding and Showing Elements on a page with mouse over

2008-10-29 Thread gogojuice
Please can someone help me toggle page elements. I have some elements on a page and if they have a class of edit I am wrapping some edit tags around the element and hiding it when the page loads. For example:- div id='blurb_7' class='edit' Some Text /div!-- end of blurb_7 -- At run time gets

[jQuery] Re: Getting width of broken image?

2008-10-29 Thread Andy Matthews
Okay... I figured out why it's not working. My code is firing before the images are fully loaded, therefore the width of the image is zero until the browser downloads the image. I installed a click event on each image which reported the actual width correctly. So, how might I only run this

[jQuery] Re: closing tag bug in jQuery 1.2.6?

2008-10-29 Thread Robert Koberg
On Oct 29, 2008, at 12:10 PM, Jay wrote: On Oct 29, 11:08 am, chris thatcher [EMAIL PROTECTED] wrote: Hey Jay, I remember having some confusion about the span tag at some point. the html specs do significantly limit the types of tags that can be used inside it and browsers will do

[jQuery] Re: closing tag bug in jQuery 1.2.6?

2008-10-29 Thread Richard D. Worth
On Wed, Oct 29, 2008 at 12:04 PM, Jay [EMAIL PROTECTED] wrote: I'll go read up on what the span tag is supposed to do. It seems valid to me that if I wanted to apply format attributes to a bunch of elements I could surround it with a span. A div is a better fit than span in that case. -

[jQuery] Question about Anchor-based URL navigation with jQuery

2008-10-29 Thread McKaulick
Hello, I am currently working on a jquery slider for a customer's portfolio. The project is nearly done, but I am having an issue and I was wondering if someone could enlighten me with a problem that I am having. If you go to this page: http://sonata.websitewelcome.com/~tiptop/logo_design.php

[jQuery] disable all element in a table?

2008-10-29 Thread soni2926
hi, i have a table which has elements in it, input, dropdown, and i want them disabled at certain times, can i do this is jquery? any examples? suppose table is like: table cellpadding=0 cellspacing=5 border=0 id=testTable tr td class=Column Phone: /td td class=Column

[jQuery] Superfish - removing arrow from top-level

2008-10-29 Thread macpaul
I'm loving Superfish, especially that I still get a great menu system with it switched off! How can I remove the arrow indicator from the very top-level only? I want it on submenus but my main menu consists of images and I don't want the arrow overlayed. I've tried editing the arrows png and

[jQuery] how to bind a form to json data

2008-10-29 Thread Jan Limpens
hello, I know how to make a form return json, but how can I bind a form to json, so that all textfields, selects etc. show the correct value? form input type=text name=id select name=choice option value=oneone/select option value=twotwo/select /select form then I get from somewhere

[jQuery] [tooltip] New wrapper around #tooltip

2008-10-29 Thread Toccamonium
Hi, How can I add extra content to this line? Current code: helper.parent = $('div id=' + settings.id + 'h3/h3div class=body/divdiv class=url/div/div') New code structure: helper.parent = $('div id=' + settings.id + 'div id=tooltip_contenth3/h3div class=body/divdiv class=url/div/div/div') I

[jQuery] BlockUI: unblocking when clicking in the darkend area?

2008-10-29 Thread jQuery
I want the darkened area that when clicked, it restores the UI (unblocks it), what's the best approach? It seems like something like this would work, but doesn't... $('.blockUI').click(function() { $.unblockUI(); }); Thanks for any help...

[jQuery] [validate] Dependent fields - blank selector

2008-10-29 Thread carter
I have a feedback form where if the user checks the 'Reply required' checkbox (replyCB) then they must complete either the email field (emailTF) or the phone field (phoneTF). I've searched through a lot of posts and tried some different ways of doing this with the validation plug in but can't get

[jQuery] Strange AJAX + jquery refresh problem

2008-10-29 Thread j0llyr0g3r
Hey folks, i am really getting desperate here. I use jquery (current version) with RoR 2.0. Now i have a problem with a login-mask for users. I fetch and submit typed in username and password like this: CODE -- jQuery(#index_login_submit).click(function(event){

[jQuery] Unbinding Event Handler

2008-10-29 Thread doors
I am unable to unbind an inline onchange event hander for a check box with jquery. - please note this is only on FireFox. code script type=text/javascript $(function() { $(checker).unbind(); }); /script /code code form input type=checkbox idchecker

[jQuery] Some help with adding form elements to dom in array notation

2008-10-29 Thread bytte
I have a form that contains input elements whose name is in the array notation e.g.: input name=example[news][1] .../ input name=example[news][2] .../ ... I use jQuery to dynamically add new input elements to the dom by copying the previous element. However, that leaves me with the following:

[jQuery] load() and sortable()

2008-10-29 Thread Guillaume
Hi everybody, I can't load content from a page and use sortable afterwards ! The problem lies in the 'afficher_rubriques' function. When content is loaded (unordered list ul/ul with id=rubriques) I whish to use sortable. But nothing happens. I have to use my function sortable with a click action

[jQuery] Re: Hiding and Showing Elements on a page with mouse over

2008-10-29 Thread tpb976
I would maybe try something like this after the line $ (ptotoggle).hide() $(this).mouseover(function() { $(this).find('p').show(); } ).mouseout( function() { $(this).find('p').hide(); } ); You may need to mess with the size of the box to make sure the mouseover area is where

[jQuery] Re: Getting width of broken image?

2008-10-29 Thread Josh Nathanson
Andy - window.onload is called only after all images are loaded, so you can do this: $(window).load(function() { $(img).each(function() { alert( this.offsetWidth500 ); }); }); -- Josh - Original Message - From: Andy Matthews [EMAIL PROTECTED] To: jQuery (English)

[jQuery] Re: Select an element in an ancestor selector

2008-10-29 Thread Dan G. Switzer, II
(this).parents().find(a.apImg).addClass(apImgOn).removeClass(apImg); You could trim this to: (this).parents(a.apImg).addClass(apImgOn).removeClass(apImg); -Dan

[jQuery] Re: Hiding and Showing Elements on a page with mouse over

2008-10-29 Thread gogojuice
OK that now shows and hides all the elements. I'm not sure that find will work as there is something that I forgot to mention. Elements can be nested inside other elements. So basically you can have a section with some text inside which in turn can have another section with more text inside

[jQuery] Re: datePicker with rjs (on rails)

2008-10-29 Thread macsig
I GIVE UP. after a whole day trying to solve it (and sevral posts around the web without answer) I will implement it without jquery and ajax stuff. Have a good 1! On Oct 27, 12:41 pm, macsig [EMAIL PROTECTED] wrote: UP, Please, any idea about that ? THANK YOU On Oct 26, 6:38 pm,

[jQuery] Re: closing tag bug in jQuery 1.2.6?

2008-10-29 Thread Jay
What? no rules were used when you coded in assembly? There are always rules in everything. In assembler they're predictable and absolute though. With html a lot of things are only 'hints' and it invisibly does whatever it wants without telling you what happened. Add to that different browsers

[jQuery] Re: closing tag bug in jQuery 1.2.6?

2008-10-29 Thread Jay
On Oct 29, 11:34 am, Richard D. Worth [EMAIL PROTECTED] wrote: A div is a better fit than span in that case. Thanks Richard. That works as well as what I had and I'm closer to good practice.

[jQuery] Re: Strange AJAX + jquery refresh problem

2008-10-29 Thread Jay
- When i click on the logout-button directly after i logged in, the click-event is not captured via javascript. How is the click event being attached to the logout button after it's created? - A quick look into the generated page source tells me why: The logout- button is _NOT_ existent in

[jQuery] Re: Strange AJAX + jquery refresh problem

2008-10-29 Thread ricardobeat
What browser are you using? IE6 doesn't update the code to reflect DOM changes, but the element should be accessible via JS. On Oct 29, 1:56 pm, j0llyr0g3r [EMAIL PROTECTED] wrote: Hey folks, i am really getting desperate here. I use jquery (current version) with RoR 2.0. Now i have a

[jQuery] Re: closing tag bug in jQuery 1.2.6?

2008-10-29 Thread Robert Koberg
Care to share a link to what you use for xhtml validation? I use my editor, but if you don't have a validating editor, you could use: http://validator.w3.org/

[jQuery] Re: how to bind a form to json data

2008-10-29 Thread Jay
On Oct 29, 10:30 am, Jan Limpens [EMAIL PROTECTED] wrote: hello, then I get from somewhere [{id:1,Choice:two}] Then the form should get into this state: form input type=text name=id value=1 select name=choice option value=oneone/select option value=two selected=selectedtwo/select

[jQuery] Re: closing tag bug in jQuery 1.2.6?

2008-10-29 Thread ricardobeat
hehe. It's easy once you get to know the intrincacies between CSS and XHTML. A span is an in-line element, it's purpose is to separate a 'span' of text. That's why you can't put a block element (i.e a div) inside. Most elements are either in-line or block level, so it's easy to know what fits.

[jQuery] Re: disable all element in a table?

2008-10-29 Thread ricardobeat
The 'disabled' attribute is for the form elements themselves, they don't cascade down the parents. Also, in XHTML the disabled attribute doesn't use a boolean value. This should disable all form input elements: $('table:input').attr('disabled','disabled'); (:input is a pseudo-selector for

[jQuery] Re: Hiding and Showing Elements on a page with mouse over

2008-10-29 Thread ricardobeat
Use children('p') instead of find('p'), or put a class in the links container. On Oct 29, 3:06 pm, gogojuice [EMAIL PROTECTED] wrote: OK that now shows and hides all the elements.  I'm not sure that find will work as there is something that I forgot to mention.  Elements can be nested inside

[jQuery] Re: closing tag bug in jQuery 1.2.6?

2008-10-29 Thread Jay
http://validator.w3.org/ Thanks Robert.

[jQuery] Re: closing tag bug in jQuery 1.2.6?

2008-10-29 Thread Klaus Hartl
On 29 Okt., 18:24, Jay [EMAIL PROTECTED] wrote: What? no rules were used when you coded in assembly? There are always rules in everything. In assembler they're predictable and absolute though. With html a lot of things are only 'hints' and it invisibly does whatever it wants without

[jQuery] Re: closing tag bug in jQuery 1.2.6?

2008-10-29 Thread Jay
On Oct 29, 12:28 pm, ricardobeat [EMAIL PROTECTED] wrote: hehe. It's easy once you get to know the intrincacies between CSS and XHTML. LOL! Maybe someday. in your code I see two problems: 1. style=float:right; color=green; that causes a parsing error, should be

[jQuery] Re: Hiding and Showing Elements on a page with mouse over

2008-10-29 Thread gogojuice
Thanks using children did the trick. So easy when you know how.

[jQuery] Re: closing tag bug in jQuery 1.2.6?

2008-10-29 Thread Klaus Hartl
On 29 Okt., 18:28, ricardobeat [EMAIL PROTECTED] wrote: 2. div / You can't self close a DIV, even if it's empty. The XHTML specs allow it, but browser currently can't handle it: (found athttp://www.w3.org/TR/xhtml1/#C_3) Given an empty instance of an element whose content model is not EMPTY

[jQuery] Re: closing tag bug in jQuery 1.2.6?

2008-10-29 Thread Robert Koberg
On Oct 29, 2008, at 1:39 PM, Jay wrote: On Oct 29, 12:28 pm, ricardobeat [EMAIL PROTECTED] wrote: hehe. It's easy once you get to know the intrincacies between CSS and XHTML. LOL! Maybe someday. in your code I see two problems: 1. style=float:right; color=green; that causes a

[jQuery] Validate plugin - help with name vs Id for rules; checkbox in strange format

2008-10-29 Thread luke BAKING barker
hi first, I want to say how cool this validation plugin is, very slick - especially like the eager validation aspect. I use CakePHP, and I am trying to check a terms box is checked, but CakePHP outputs the HTML like so: div class=input checkbox input id=CoverAgreed_ type=hidden value=0

[jQuery] Re: [validate] Ignore hidden form fields from the validation

2008-10-29 Thread luke BAKING barker
Hi I am having problem with this, in CakePHP it outputs the thml for a checkbox as the following: div class=input checkbox input id=CoverAgreed_ type=hidden value=0 name=data[Cover] [agreed]/ input id=CoverAgreed class= type=checkbox value=1 name=data[Cover][agreed]/ label for=CoverAgreeddo you

[jQuery] Re: closing tag bug in jQuery 1.2.6?

2008-10-29 Thread Richard D. Worth
On Wed, Oct 29, 2008 at 1:59 PM, Robert Koberg [EMAIL PROTECTED] wrote: On Oct 29, 2008, at 1:39 PM, Jay wrote: On Oct 29, 12:28 pm, ricardobeat [EMAIL PROTECTED] wrote: hehe. It's easy once you get to know the intrincacies between CSS and XHTML. LOL! Maybe someday. in your code

[jQuery] Re: closing tag bug in jQuery 1.2.6?

2008-10-29 Thread Robert Koberg
hehe. It's easy once you get to know the intrincacies between CSS and XHTML. LOL! Maybe someday. in your code I see two problems: 1. style=float:right; color=green; that causes a parsing error, should be style=float:right,color:green Sorry, typo. You were right, ricardo is wrong. They

[jQuery] Re: closing tag bug in jQuery 1.2.6?

2008-10-29 Thread Klaus Hartl
On 29 Okt., 18:24, Jay [EMAIL PROTECTED] wrote: http://www.w3.org/TR/REC-html40/struct/global.html#h-7.5.4 I haven't had time to do an exhausitve search but nowhere in the span tag description does it specifically state what tags it may or may not enclose. This part of the DTD is important:

  1   2   >