[jQuery] Re: Can datepicker do individual linking?

2008-12-22 Thread sabastian
Please, can someone inform me if it is possible to have individual html links for each date in datepicker. On Dec 22, 7:42 pm, sabastian wrote: > For instance if someone chooses 5/5/09 in datepicker I would like them > to be linked to one html page. In contrast, if someone chooses 4/2/09 > I wou

[jQuery] Extract Dropdown Menu Items to Array?

2008-12-22 Thread Vik
Is there a way to extract the text of all the items included in a dropdown menu, into an array? Thanks in advance to all for any info.

[jQuery] SimpleModal container size problem

2008-12-22 Thread Isaac
I have a script that dynamically detects the size (using outerwidth and outerheight) of a tag that I use as my modal window. It works on all pages of my site except this page: http://www.lacopts.org/dbase/register.php where it erroneously displays the container height, eventhough it is passed

[jQuery] Re: How to get parts of URL after domain

2008-12-22 Thread Michael Geary
Steve, now I'm really confused. Does it work like a charm, or do you keep getting an error? (Or both?) :-) BTW, you can write $("td#header") as just $("#header") and it may actually be faster because it will use a direct document.getElementById() lookup. Also, just a suggestion, if you get in th

[jQuery] Re: How can I generalize this code for all values?

2008-12-22 Thread Rick Faircloth
Yeah, I've read that a dozen times... Here's what I've got that I can't make work: $(document).ready(function() { $('#add-rental-property-form').validate({ errorPlacement: function(error, element) { error.appendTo('#'+element.attr('id')+'_er

[jQuery] Re: How to get parts of URL after domain

2008-12-22 Thread Wonder95
OK, so if I try using that to set my banner, I come up with something like this: var img = { '/ops/content/services': 'banner2.jpg', '/ops/content/services': 'banner3.jpg', }[location.pathname] || 'banner1.jpg'; $("td#header").css("background","url(/ops/sites/all/them

[jQuery] Re: How can I generalize this code for all values?

2008-12-22 Thread Karl Rudd
Have a look at the validate method ( http://docs.jquery.com/Plugins/Validation/validate ) According to the documentation to suppress validation on submission all you need to do is: $('form').validate({ onsubmit: false }); Note: I've never used the plugin before, so this is all untested. Kar

[jQuery] Re: How can I generalize this code for all values?

2008-12-22 Thread Rick Faircloth
> The select gets it's value from the selected child option. Perhaps that's why I can't get validation to work! > My advice would be to use the Jorn's plugin Believe me, I've tried. I worked with it every way I could think of to disable the default "onSubmit" event and cause validation only "o

[jQuery] hiding a using html select (drop down)

2008-12-22 Thread Louie Miranda
I tried to hide the using the toggle() function below. javascript code > $(document).ready(function() { > > $("#dropdown").click(function() { > $("#divarea").toggle(); > }); > > }); > html code > > > > > None > Single > Double > > > > > > > Louie Miranda (web.L

[jQuery] Re: How can I generalize this code for all values?

2008-12-22 Thread Karl Rudd
Not quite sure what you're asking. Why would you try to set the select's value? The select gets it's value from the selected child option. My advice would be to use the Jorn's plugin ( http://docs.jquery.com/Plugins/Validation ). From what I can see it seems to do validation on blur by default.

[jQuery] ui datepicker error onSelect:

2008-12-22 Thread strebel
For the life of me I cannot get this to work: Jquery 1.2.6 and ui 1.6r2 and tried with 1.5.3 stable $('input.tdate').datepicker({onSelect:function(dateText){alert (dateText);} }); Keeps throwing when calendar date is clicked: inst is undefined _get()()jquery-u3.min.js (line 198) _change

[jQuery] SimpleModar overlay container size issue

2008-12-22 Thread Isaac
I have a script that dynamically detects the size (using outerwidth and outerheight) of a tag that I use as my modal window. It works on all pages of my site except this page: http://www.lacopts.org/dbase/register.php where it erroneously displays the container height, eventhough it is passed

[jQuery] Re: How can I generalize this code for all values?

2008-12-22 Thread Rick Faircloth
D'oh! I can't believe it was that simple! And I read everything I could find, including the docs on selectors. (Should have read it twice, I guess...) Anyway, question, Karl, et al... How can I validate a select input? I've tried setting the default select value to "" which I thought would be

[jQuery] Re: How can I generalize this code for all values?

2008-12-22 Thread Karl Rudd
>From http://docs.jquery.com/Selectors (Forms section): :input Matches all input, textarea, select and button elements. To select all Form elements with a "required" class: $(':input.required') Karl Rudd On Tue, Dec 23, 2008 at 2:39 PM, Rick Faircloth wrote: > > How can this: > >//

[jQuery] Re: How can I generalize this code for all values?

2008-12-22 Thread Rick Faircloth
How can this: // all the required text fields var $required = $('input.required:text'); be expanded to include 'input.required:select' ? I tried all the variations I could think of, including: $('input.required:text', 'input.required:select') but that, and every other variati

[jQuery] Re: $({key: value}) functionality?

2008-12-22 Thread Ryura
I found out I can do: var data = {}; data.x = { a: [], b: [], c: [], d: [], e: [] } data.x.a.push({ name: "foo", num: 0 }); data.x.a.push({ name: "foo2", num: 0 }); $(data.x.a).filter('[num=0]') or $(data.x.a).filter('[n

[jQuery] Re: Rewrite $('slide-images').getElementsByTagName('li'); with JQuery

2008-12-22 Thread Ricardo Tomasi
or simply $('#slide-images li:gt(0)').hide(); Later on you can get the last one with $('#slide-images li:last') (or last-child), or cache the collection. On Dec 22, 8:25 pm, Dave Methvin wrote: > Untested, but I think this does it: > > function init(){ >   LastPic = $('#slide-images li').slice(

[jQuery] $({key: value}) functionality?

2008-12-22 Thread Ryura
I'm looking into ways to manipulate Javascript objects using jQuery, and I was wondering if there's anything I can do with the selectors when passing an object to jQuery. For example, $({ obj1: { name: "a", prop: "x" }, obj2: { name: "b", prop: "y" }, obj3: { name: "c", prop: "z" } }).filter('[n

[jQuery] Re: How can I generalize this code for all values?

2008-12-22 Thread Rick Faircloth
Thanks, Kean and Dave, for your code suggestions and feedback. And, Dave...yes, I would have preferred, actually, to use Jorn's validation plug-in, but could not figure out a way to cause it to validate on blur. Jorn has set up the default validation to occur after a form is submitted, but I bel

[jQuery] Re: params list

2008-12-22 Thread Dirceu Barquette
sorry, I think this is better code for the eg: var Typeof = {}; for (v in $) { Typeof[v] = typeof $[v]; $(''+Typeof[v]+' '+v+' ').appendTo('body'); } But, how to list parameters [and,or] options for each function? thanks again!! Dirceu Barquette 2008/12/23 Dirceu Barquette > Hi, > >

[jQuery] Re: how to display ads after page load

2008-12-22 Thread Dave Methvin
If the ads are fixed in size, define an iframe of that size and have that iframe reference a small html file that includes the ad site javascript. That way the page can continue to load while the ad scripts are running.

[jQuery] params list

2008-12-22 Thread Dirceu Barquette
Hi, this code return function list: var o = {} for (v in $) { o[v] = $[v]; var Typeof = typeof $[v]; $(''+Typeof+' '+v+' ').appendTo('body'); } How to return option list for each class above? thanks Dirceu Barquette

[jQuery] Re: How can I generalize this code for all values?

2008-12-22 Thread Dave Methvin
> $('input:text.required').each(function() { > var val = (this.value.length); >if (val == 0) > { $('#submit').attr('disabled', 'disabled'); } > }); I think this is equivalent to: if ( $(':text.required[value=""]').length ) $('#submit').a

[jQuery] Superfish - negative margin on hover in IE

2008-12-22 Thread Brian
I would like to put a negative margin on the hover of the LI's in a superfish jQuery menu on a vertical menu. When I do this, in IE on the hover, the elements go below the rest of the menu. It's fine in Firefox. Here's my starting code: /*** adding sf-vertical in addition to sf-menu creates a

[jQuery] Re: How can I generalize this code for all values?

2008-12-22 Thread Kean
var checkAllRequired = function () { var allFilled = true; $required.each(function() { if (isBlank(this.value)) allFilled = false; }); return allFilled; } can be

[jQuery] Re: How can I generalize this code for all values?

2008-12-22 Thread Kean
try this, it accounts for checking all the required fields to see if they are blank and disable jQuery(function(){ // all the required text fields var $required = $('input.required:text'); // function checks for blank input var isBlank = function(str) {

[jQuery] Re: how to select the content of the current table row?

2008-12-22 Thread j0llyr0g3r
Cam Spiers, thank you very much, i adapted your really helpfull example and solved it like this: function clickOnTableRow() { var row = jQuery(this); var songUrl = row.children("td.hidden_url_field_for_track_list").text (); // do other stu

[jQuery] Re: Smarter way to write this repetitive code?

2008-12-22 Thread Ryura
Right - .each() is still being called internally. You'd need to bind the event to a parent element. On Dec 22, 7:24 pm, Kean wrote: > dbzz, IMO, your code still add a listener to each of the .headline > > var txt = $('.article-text'); > var $hl = $('.headline'); > > $hl.click(function(e) { >    

[jQuery] Re: change element attribute, then have jquery act on that change?

2008-12-22 Thread Kean
Livequery and other event delegation techniques are cool, but, in a matter of simplicity pschwei1 , why don't you try the jQuery toggle event? I think it will definitely work for this case. http://docs.jquery.com/Events/toggle#fnfn2fn3.2Cfn4.2C... On Dec 22, 2:34 pm, Dave Methvin wrote: > > I

[jQuery] Re: Smarter way to write this repetitive code?

2008-12-22 Thread Kean
dbzz, IMO, your code still add a listener to each of the .headline var txt = $('.article-text'); var $hl = $('.headline'); $hl.click(function(e) { $(txt[$hl.index(e.target)]).fadeIn(); }); I highly doubt that this code will run faster than the one using each. On Dec 22, 9:20 am, dbzz

[jQuery] Re: How can I generalize this code for all values?

2008-12-22 Thread Rick Faircloth
Ok...after a lot of experimentation, I've got a solution that's working to the point that I've attempted to implement it. Here's the code: $(document).ready(function() { $('input:text.required').each(function() { $(this).blur(function() { va

[jQuery] Re: Serious bug in JQuery

2008-12-22 Thread donb
I would guess you've passed a parameter to a function, but done so incorrectly. For example writing xyz(bar) when you should have written .xyz( {foo: bar} ) On Dec 22, 5:25 pm, "Andy Matthews" wrote: > Care to share some code? Have you done your debugging to determine what line > of your code

[jQuery] Re: how to select the content of the current table row?

2008-12-22 Thread Cam Spiers
var rows = jQuery("tbody tr"); rows.each(function(){ var row = jQuery(this); row.click(function(event){ alert(row.children("td.hidden_url_field_for_track_list").text()); }); }); Sorry I missed a semicolon.. On Tue, Dec 23, 2008 at 12:21 PM, Cam Spiers wrote: > var rows = jQuery("tbody tr"); >

[jQuery] Re: how to select the content of the current table row?

2008-12-22 Thread Cam Spiers
var rows = jQuery("tbody tr"); rows.each(function(){ var row = jQuery(this) row.click(function(event){ alert(row.children("td.hidden_url_field_for_track_list").text()); }); }); Haven't tested but you could try something like this maybe. On Tue, Dec 23, 2008 at 11:40 AM, j0llyr0g3r < th3.gr31t.j0

[jQuery] IE focus issues when a drop-down is filled via Ajax

2008-12-22 Thread ebakunin
Hello, I have a a drop-down box ( and ) that is empty until clicked, at which time $.getJSON() adds a number of option tags. The problem is how Firefox and IE behave after the data is inserted into the down-down. FF keeps the drop-down "open" so the user can immediately view all the options. IE,

[jQuery] how to select the content of the current table row?

2008-12-22 Thread j0llyr0g3r
Hey guys, i'm having a hard time with jquery right now. Imagine the following simple table: CODE: Title

[jQuery] Re: change element attribute, then have jquery act on that change?

2008-12-22 Thread Dave Methvin
> I'm using filters to find if an 's text matches a certain value, > and then changing the value if it does. This works fine.  However, if > I then use my selectors to check for the new value, jquery does not > seem to pick it up, making me wonder if perhaps the selectors only > work for values co

[jQuery] Re: Serious bug in JQuery

2008-12-22 Thread Andy Matthews
Care to share some code? Have you done your debugging to determine what line of your code is causing the error from jQuery? Have you posted this bug to the jquery bug mailing list? andy -Original Message- From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On Behalf Of

[jQuery] Re: Serious bug in JQuery

2008-12-22 Thread Michael Geary
Sorry, but no one would be able to tell what might be wrong from that description. In most cases, a bug like this is an error in how you're calling a jQuery function. If you use Firebug and have it break on all errors, you can look at the stack trace and see what call you made that triggered the

[jQuery] Re: Rewrite $('slide-images').getElementsByTagName('li'); with JQuery

2008-12-22 Thread Dave Methvin
Untested, but I think this does it: function init(){ LastPic = $('#slide-images li').slice(1).hide().length; } In jQuery there is probably a better way to do the rest of the code than using a global variable for LastPic, but it depends on what the rest of the code looks like.

[jQuery] Serious bug in JQuery

2008-12-22 Thread kayode81un...@gmail.com
I have a page that when loaded, it gets a javascript error. It occurs in jquery-1.2.6.js on line 662 on this line: var id = elem[ expando ]; It says elem is undefined. This occurs in IE and FF. This only occurs on this specific page. It is an aspx page. Thanks

[jQuery] Re: cycle plugin ovelapping in IE6/IE7

2008-12-22 Thread Mike Alsup
> I'm trying to position a menu div over a cycle slideshow. > > It works fine on Safari/Firefox but in IE6/IE7 the menu goes under the cycle > slideshow upper slide, till the effect -fade- starts to be applied to the > next slide. > > Is there a means to force the menu div to appear always on top

[jQuery] Re: jQuery Cycle Plugin: 1 pager to control 2 slideshows

2008-12-22 Thread Mike Alsup
> wow that works awesome. even able to apply it to several cycles. i saw > a posting about applying a delay to several cycles so that one starts > a couple seconds after another cycle (http://groups.google.com/group/ > jquery-en/browse_thread/thread/fa74609bb63f46a/40f0bec91d0c6574? > lnk=gst&q=jq

[jQuery] change element attribute, then have jquery act on that change?

2008-12-22 Thread pschwei1
I'm using filters to find if an 's text matches a certain value, and then changing the value if it does. This works fine. However, if I then use my selectors to check for the new value, jquery does not seem to pick it up, making me wonder if perhaps the selectors only work for values coded into t

[jQuery] Can datepicker do individual linking?

2008-12-22 Thread sabastian
For instance if someone chooses 5/5/09 in datepicker I would like them to be linked to one html page. In contrast, if someone chooses 4/2/09 I would like them linked to another html page. Each day will have it's own individual html page. Is this possible in datepicker?

[jQuery] Re: Smarter way to write this repetitive code?

2008-12-22 Thread dbzz
and if you have _really_ a lot of elements... instead of a listener on each, just use one - var $hl = $('.headline'); $hl.click(function(e) { $('.article-text').eq( $hl.index(e.target) ).fadeIn(); }); On Dec 21, 5:57 am, Kean wrote: > Some performance improvement, especially if you have

[jQuery] Rewrite $('slide-images').getElementsByTagName('li'); with JQuery

2008-12-22 Thread Mehdi Saghari
how can i rewrite this function using JQuery ?! function init() { var lis = $('slide-images').getElementsByTagName('li'); for( i=0; i < lis.length; i++){ if(i!=0){ lis[i].style.display = 'none'; }

[jQuery] cycle plugin ovelapping in IE6/IE7

2008-12-22 Thread cym
Hi, I'm trying to position a menu div over a cycle slideshow. It works fine on Safari/Firefox but in IE6/IE7 the menu goes under the cycle slideshow upper slide, till the effect -fade- starts to be applied to the next slide. Is there a means to force the menu div to appear always on top of t

[jQuery] Re: Help Test jQuery 1.3 Beta 1

2008-12-22 Thread Alexsandro_xpt
Great!!! On 22 dez, 18:03, "Alexandre Plennevaux" wrote: > will sure do right now, as i'm about to release another > experiment-in-webdesign, end of january, and will need the best > javascript library to support it.  Thanks a lot ! > > On Mon, Dec 22, 2008 at 6:49 PM, John Resig wrote: > > >

[jQuery] Re: How to get parts of URL after domain

2008-12-22 Thread Michael Geary
Sure, it's just a combination of some other JavaScript features that may look more familiar if we take them one by one: // Use an object literal to create an object // with two properties. Each property has // a name and a value.     var images = {         '/services': 'one-image.png'

[jQuery] Re: two submits in the same form

2008-12-22 Thread Jörn Zaefferer
Take a look at this demo: http://jquery.bassistance.de/validate/demo/login/ The "forgot password" link should be quite close to what you're trying to do. Jörn On Mon, Dec 22, 2008 at 7:47 PM, Soledad Zubiri wrote: > Hello, here I provide more of my code so we you see exactly what I'm trying > to

[jQuery] Re: How to get parts of URL after domain

2008-12-22 Thread Wonder95
Could you explain that construct? I'm no JS expert, and I haven't seen it before. Thanks. > If you want to do it in JavaScript, you don't need jQuery, regular > expressions, or indexOf. window.location (or just location) has several > properties that give you different pieces of the URL. locati

[jQuery] Re: Error on validation plugin documentation?

2008-12-22 Thread Giovanni Battista Lenoci
Jörn Zaefferer ha scritto: Fixed! Thanks for reporting. Thanks to you for sharing your great work! -- gianiaz.net - web solutions via angelo custode, 10 - 23100 sondrio (so) - italy +39 347 7196482

[jQuery] Re: Help Test jQuery 1.3 Beta 1

2008-12-22 Thread Alexandre Plennevaux
will sure do right now, as i'm about to release another experiment-in-webdesign, end of january, and will need the best javascript library to support it. Thanks a lot ! On Mon, Dec 22, 2008 at 6:49 PM, John Resig wrote: > > Hi Everyone - > > The jQuery dev team just got jQuery 1.3 Beta 1 out th

[jQuery] Re: How can I generalize this code for all values?

2008-12-22 Thread MorningZ
Try this change $("#submit").attr('disabled', (val == "") ? "disabled" : null); If that doesn't work, then perhaps: if (val == "") { $("#" + this.id + "_error").fadeIn(500); $("#submit").attr("disabled", "disabled"); } else { $("#" + this.id + "_error").fadeOut(500); $

[jQuery] Re: How can I generalize this code for all values?

2008-12-22 Thread Rick Faircloth
I see in your example code that you're still using a hard-coded name for the input. I'd like it completely generalized for all variables. I'm working towards creating code for categories of input types: text, radio, checkbox, and textarea, etc. I modified your example, and all seems to be work

[jQuery] Re: How can I generalize this code for all values?

2008-12-22 Thread Josh Nathanson
Rick - one shortcut you can do in your selector is: $('input:text').each(function... That might get you a better response from the DOM. I think the problem you are seeing might be because of your single quotes around text: $('input[type=text]') not $("inp...@type='text']"). -- Josh -Orig

[jQuery] Re: unbinding certain events

2008-12-22 Thread MorningZ
Straight from the Docs http://docs.jquery.com/Events/unbind#typefn On Dec 22, 1:59 pm, Eridius wrote: > I remember reading somewhere and hear at the conference about how you can add > some to the event string in the bind method like: > > $(this).bind('click:my_plugin', function(){}); > > And

[jQuery] Re: insert div into group ordered by ID..

2008-12-22 Thread Michael Geary
I thought you wanted to insert the new element in order according to the *Greek* alphabet. That will take a bit of extra work. -Mike > From: Tbone > > Thanks to you, too, ksunBetween you and Ricardo, I think > I understand this now! > > On Dec 22, 11:42 am, ksun wrote: > > //locate the d

[jQuery] unbinding certain events

2008-12-22 Thread Eridius
I remember reading somewhere and hear at the conference about how you can add some to the event string in the bind method like: $(this).bind('click:my_plugin', function(){}); And then if you wanted to just remove that binding event, while leaving all the other events still there, you could do:

[jQuery] Re: insert div into group ordered by ID..

2008-12-22 Thread Tbone
Thanks to you, too, ksunBetween you and Ricardo, I think I understand this now! On Dec 22, 11:42 am, ksun wrote: > //locate the div before which you want to insert and then insert, > assuming they are ordered alphabetically >                 $('div[id]').each(function(){ >                  

[jQuery] Re: How can I generalize this code for all values?

2008-12-22 Thread Rick Faircloth
Thanks for the reply and code... As far as the "_" vs "-", I've been trying to standardize on using "_" for input names (which is necessary for the database) and "-" for the id's and classes, but now, working with jQuery like this, it is creating a problem. Rick > -Original Message- > F

[jQuery] two submits in the same form

2008-12-22 Thread Soledad Zubiri
Hello, here I provide more of my code so we you see exactly what I'm trying to accomplish... code: $(document).ready(function() { var validator = $("#form1").bind("invalid-form.validate", function() { $("#summary").html(""+ ""+ ""); }).validate({ rules: { errorCont

[jQuery] Re: How can I generalize this code for all values?

2008-12-22 Thread MorningZ
Just some advice: why mix "-" and "_" all up? it makes it easier if they were the same for instance $("input[id^='street_']").each(function() { var val = $.trim(this.value); if (val == "") { $("#" + this.id + "_error").fadeIn(500); } else {

[jQuery] Re: insert div into group ordered by ID..

2008-12-22 Thread Tbone
My expectation was an explanation, but many thanks for going the extra mile, Ricardo On Dec 22, 11:04 am, Ricardo Tomasi wrote: > I wrote a simple plug-in that will insert elements in alphabetical > order (by id) for you:http://ff6600.org/j/jquery.insertInOrder.js > > Use it like: > > > >

[jQuery] Re: insert div into group ordered by ID..

2008-12-22 Thread ksun
//locate the div before which you want to insert and then insert, assuming they are ordered alphabetically $('div[id]').each(function(){ if ($(this).attr('id') > 'delta') $(this).before(''); });

[jQuery] tablesorter order positive and negative numbers

2008-12-22 Thread Soledad Zubiri
I have a tablesorter with a column with positive and negative numbers, and I`m using the tablesorter`s parser digit but it doesn`t order fine, is there any other parser that works ok? Thanks!! sole ts.addParser({ id: "digit", is: function(s,table) { var c = table.config; return $.tabl

[jQuery] How can I generalize this code for all values?

2008-12-22 Thread Rick Faircloth
Don't know if that's the best phrasing for the subject, but what I'm trying to do is develop some code that will work for all for inputs of type 'text', instead of hard-coding the id values. The original code is this: $('input#street_number').blur(function() { if (t

[jQuery] Re: insert div into group ordered by ID..

2008-12-22 Thread Ricardo Tomasi
I wrote a simple plug-in that will insert elements in alphabetical order (by id) for you: http://ff6600.org/j/jquery.insertInOrder.js Use it like: $('').insertInOrder('#group'); feel free to change the naming and alter the code :] cheers, - ricardo On Dec 22, 3:32 pm, Tbone <95dak...@g

[jQuery] Re: Giving a text link a hover state when hovering over an image

2008-12-22 Thread SLR
Is this what you are trying to do? $(document).ready(function(){ // This is the border code $("img, li.img-corner").hover( function(){ $(this).next("li.event").css({borderBottom: "1px solid #00"}); }, function(){ $(this).next("li.even

[jQuery] Help Test jQuery 1.3 Beta 1

2008-12-22 Thread John Resig
Hi Everyone - The jQuery dev team just got jQuery 1.3 Beta 1 out the door. Help us test this release and make sure it goes nice and smoothly! http://blog.jquery.com/2008/12/22/help-test-jquery-13-beta-1/ Thanks in advance. --John

[jQuery] Re: Order of hiding container-divs and their content matters on IE6,7

2008-12-22 Thread Paul
Hi Ripple and Ricardo, Thanx for your reactions. @ ripple: Feel free to view the source code of the demonstration page (see link I posted), there are some clarifying comments inside. @ Ricardo: indeed it is quite strange that the IE webdeveloper toolbar says 'display=none' and nevertheless the

[jQuery] Re: jQuery Cycle Plugin: 1 pager to control 2 slideshows

2008-12-22 Thread Neil
wow that works awesome. even able to apply it to several cycles. i saw a posting about applying a delay to several cycles so that one starts a couple seconds after another cycle (http://groups.google.com/group/ jquery-en/browse_thread/thread/fa74609bb63f46a/40f0bec91d0c6574? lnk=gst&q=jquery+cycle

[jQuery] Re: insert div into group ordered by ID..

2008-12-22 Thread Tbone
Great! Thanks... However, I'm more clueless than I should be...and didn't pose the complete question... I have the divs as shown above, how do I locate where would go? Obviously between gamma and epsilon, but I need to search the ids for the first (id > "delta"). Then I can use your insert to p

[jQuery] Re: remove ID

2008-12-22 Thread Balazs Endresz
http://docs.jquery.com/Attributes/removeAttr Actually it only replaces the value with an empty string just as plain js: element.removeAttribute() On Dec 22, 5:49 pm, "Mike Dodge" wrote: > Is it possible to remove an ID from an element with Jquery or javascript for > that matter?  I've searched a

[jQuery] Re: insert div into group ordered by ID..

2008-12-22 Thread ksun
try this, it will insert gamma1 before epsilon. $('#gamma~#epsilon').before(''); I first used after(), but that didn't work, looks like $ ('#gamma~#epsilon') selects #epsilon. On Dec 22, 10:48 am, Tbone <95dak...@gmail.com> wrote: > I'm a relative newbie with jQuery and have read the doc about

[jQuery] Re: Serial Scroll, animated images look jagged

2008-12-22 Thread jen
Bump. Does anyone have any ideas why the images seem to fragment? On Dec 19, 3:24 pm, jen wrote: > http://www.louriecutler.com.ws019.alentus.com/people/slider.php > > What am I doing wrong, that the images slide across looking so jagged? > > Thanks!

[jQuery] Re: table sorter issue, how do i sort these as a currency

2008-12-22 Thread livewire9174
I'm still trying to get this working, has anybody tried anything like this before? On Dec 15, 6:16 pm, livewire9174 wrote: > here is the code, I need to stop the execution somewhere I guess ? I > am using ajax calls to put data into to table, so I guess I cant > attach the tablesorter script unt

[jQuery] Re: How to trigger an event for a SELECT after removing an entry??

2008-12-22 Thread Balazs Endresz
Change the value of the dropdown with .val('0001') - maybe before removing the first option. Or use triggerHandler but inline events won't fire that way, I guess. On Dec 22, 4:37 pm, ggerri wrote: > Hi Gurus > > I have a generated dropdown list with years and an onChange event. > Sometimes the s

[jQuery] $.load() Redirected

2008-12-22 Thread Reepsy
I have read a similar post to this, but I think my situation is a bit different. I have a link like this: Link Then in my JS I use load something like this: $('#modal-content').load('/my-url.html #the-div'); Which loads 'the-div' into a modal window on the page that called it. It works perfect

[jQuery] Re: submit a form with a link

2008-12-22 Thread Soledad Zubiri
Hi, my english is not good enough, I hope I can explain it to you!!! I`m using this to validate: $(document).ready(function() { var validator = $("#form1").bind("invalid-form.validate", function() { $("#summary").html(""+ ""+ ""); }).validate({ rules: { errorContai

[jQuery] Re: how to display ads after page load

2008-12-22 Thread Ricardo Tomasi
If the scripts are meant to be put inline and use document.write, there is nothing you can do. Otherwise just stick them at the bottom of the code, just before the closing tag. On Dec 22, 10:03 am, mohan wrote: > Hi, > In my application, I have some ads which are from other sites. > They gave u

[jQuery] remove ID

2008-12-22 Thread Mike Dodge
Is it possible to remove an ID from an element with Jquery or javascript for that matter? I've searched and all I can find is how to remove the whole element, I just want to remove the ID.Thanks Mike

[jQuery] Re: submit a form with a link

2008-12-22 Thread SLR
> I have a form with 3 inputs: > > >     >     >     > >     >     Submit link > First off, why do you have an submit button and a submit link? Second, what are you using to validate the form?

[jQuery] Re: Browser Hangs while hiding 2K+ table rows

2008-12-22 Thread RickyBerg
Cam, I'm hiding all rows only in anticipation of showing the higher levels of the tree that is represented by this table. Each row has a class associated with it that indicates the level which simply has a left-margin css value associated with it giving the appearance of subordination in the tree.

[jQuery] Re: submit a form with a link

2008-12-22 Thread Soledad Zubiri
Thanks Jörn!! It works! But I continue with a problem because the link Submit has to validate that only input1 of the form is not empty. And the submit button validates that the three inputs are no empty. So I think that I will have two validations for the same form. How can I do that? I have a f

[jQuery] Re: submit a form with a link

2008-12-22 Thread SLR
> I'm using jquery to validate a form and that I'm using this link to to > the submit: > > < a href="javascript:void(0);" onclick="document.form.submit();"> > Submit This will not work because you are calling the submit method for the form, not any validation script... Also, is there any reason

[jQuery] Re: Superfish - Nav-bar style with bgIframe?

2008-12-22 Thread SLR
> The initiation: > > $(document).ready(function(){ >         $("ul#sf-menu-id").superfish({ >                 autoArrows:  false, >                 pathClass:  'current' >         }).find('ul').bgIframe(); > > }); Try changing your document.ready statement to this: $(document).ready(function()

[jQuery] Re: Bizarre rendering issue (FF 3, IE 6)

2008-12-22 Thread userdude
Something tells me jQuery is acting up in some way that means the class is never applied, like an event never completes successfully. It's just very strange it doesn't work, especially since the test3.html link code does work, and I don't think I did anything to make the code interpret differentl

[jQuery] Re: Masked Input Plugin 1.2.1 Released

2008-12-22 Thread Alexandre Plennevaux
i think personally that indeed a callback onError, that is called when the input loses focus would be great. from thereon, the user can defines what to do. for instance, as a UI developer, i would add a "error" class to the wrapping div, and add "Incomplete data" message to the right of the input.

[jQuery] insert div into group ordered by ID..

2008-12-22 Thread Tbone
I'm a relative newbie with jQuery and have read the doc about DOM manipulation but am too dense to answer this question: I have a series of DIVs in order by ID. I would like to insert a new DIV into its proper place in the order... Given the following: How would I be able to insert the f

[jQuery] Re: Bizarre rendering issue (FF 3, IE 6)

2008-12-22 Thread Alexandre Plennevaux
ok, i got it, well, at least the problem. now, i'm not sure about how to solve it. 1/ maybe it's a css issue. in your stylesheet, try changing this #aboutus .nav .navmain a.current, #aboutus .nav .navsecondary a.current { color: #a5ee26; } #aboutus .nav ul.navsecondary { left: 130px; top

[jQuery] How to trigger an event for a SELECT after removing an entry??

2008-12-22 Thread ggerri
Hi Gurus I have a generated dropdown list with years and an onChange event. Sometimes the select field has a value '(All)' as first entry. I want to remove this entry and trigger the DOM Level 0 Event. This would be my page: $(function() { //works but cant trigger event for select $('o

[jQuery] Re: Bizarre rendering issue (FF 3, IE 6)

2008-12-22 Thread userdude
Well, in the following example (another iteration of the same menu), the behavior works: http://www.houseofoverlord.com/c/jeniffer/bhive/test3.html http://www.houseofoverlord.com/c/jeniffer/bhive/test3.html You have to click on the "about us" link and then scroll down until the header for that

[jQuery] Re: Masked Input Plugin 1.2.1 Released

2008-12-22 Thread Josh Bush
Thank you Jörn and Alexandre for your feedback. I'm thinking that maybe I should just provide a hook that gets called when the plugin detects invalid input. I could just provide a default function that blanks the input as it is today, but would let the user decide what to do there. Any ideas on

[jQuery] Re: Bizarre rendering issue (FF 3, IE 6)

2008-12-22 Thread userdude
Hi Alexandre, Thank you for the reply. I'm not sure what you mean by enable debugging in Firebug. Basically, the first submenu item for specific menu item should always default to having the "current" class. Although I can tell that something is occurring using console.log to inspect the a-lin

[jQuery] Re: Masked Input Plugin 1.2.1 Released

2008-12-22 Thread Jörn Zaefferer
I second that! An option to make the plugin more tolerant, especially in combination with other forms of validation, would be perfect. Other changes all sounds fine. The fix for "users typed over existing input" will be much appreciated. Thanks Jörn On Mon, Dec 22, 2008 at 3:59 PM, Alexandre Plen

[jQuery] Please help me to find my mistakes on below code

2008-12-22 Thread bookme
Hi, I am trying to solve ajaxStart and ajaxStop issue from last 3 days but can not solve...can somebody tell me what's my mistake here. I want to show a loader image for different DOM element ids on different ajax request. Problem is that when I am calling an ajax request on one form submission

[jQuery] Re: submit a form with a link

2008-12-22 Thread Jörn Zaefferer
Try this: $("#submit").click(function() { $("#myForm").submit(); }); Submit Jörn On Mon, Dec 22, 2008 at 2:16 PM, sole wrote: > > Hello! > > I'm using jquery to validate a form and that I'm using this link to to > the submit: > > < a href="javascript:void(0);" onclick="document.form.submit();

[jQuery] Re: Masked Input Plugin 1.2.1 Released

2008-12-22 Thread Alexandre Plennevaux
Josh, these are very cool additions, love the New mask syntax option '?' and the improved usability. Thanks for your hard work! just noticed in the demo that if i don't fill the input completely and go to another input, it removes the entered value entirely as soon as the input loses focus. That's

  1   2   >