[jQuery] Re: Cascade plugin and multiple selected values

2009-11-18 Thread Mike Nichols
alue=2').attr('selected','selected').parent().change > (); >            $('select#parent').trigger('cascade'); >            $('#chained_child [value=3').attr('selected','selected').parent > ().change(); >

[jQuery] Re: Cascade plugin and multiple selected values

2009-11-10 Thread Mike Nichols
$('select#parent').trigger('cascade'); ? On Nov 9, 5:08 pm, rmachado wrote: > Hello to all > > I using thecascadeplugin in 3 dropdowns and it works fine, but in > some ocasions I need to pre selected the values because the user is > editing the previous recorded selections. > > I manage to select

[jQuery] Re: Chained Autocomplete selects

2009-07-16 Thread Mike Nichols
ange... The issue is that theCascadeworks well when > the parent is changed but does not show the child value on an update > form as the parent in most cases do not need to change... but the > child is not displayed because the change event is not nor does it > need to be fired. > &

[jQuery] Namespaced events losing namespace when bubbling up

2009-07-02 Thread Mike Nichols
I have two namespaced events bound like so: $("body").bind("selected.proctor",function(e,data) { /* stuff*/}); $("body").bind("selected.spg",function(e,data) { /* stuff*/}); Then an anchor (inside the body of course) fires the event like so: $("a").trigger("selected.spg",[somedata]); But both

[jQuery] Re: jquery.ui.cascade null/not an object/undefined, etc etc.

2009-07-02 Thread Mike Nichols
You need to include jquery.cascade.ext.js included in the distro On Jun 5, 10:16 pm, kranthi wrote: > most possible reason is ui.cascadeis not defined by the time u call > the above line of code. If ui.cascadeis defined in an external js > file (sorry i never used this plugin) then the file must

[jQuery] Re: Chained Autocomplete selects

2009-06-10 Thread Mike Nichols
I'd look at the autocomplete plugin here http://github.com/ReinH/jquery-autocomplete/tree/master and a decent write up here : http://www.bigredswitch.com/blog/2008/11/jquery-autocomplete-plugin/ I used this tiny plugin as a kind of prototype when I wrote cascade. Incidentally, I have a few fixe

[jQuery] Re: Cascade plugin help

2009-05-17 Thread Mike Nichols
sorry for the late reply, but you need to fire cascade manually at the end of the delegate and you can simplify your options, though I'd consider using $.data for this kind of thing: var defaultOpts = { ajax: {url: ‘otherData.js' }, template: commonTemplate, match: commonMa

[jQuery] Re: bubbling of triggered events... ?

2009-05-16 Thread Mike Nichols
can you show some code that isn't working On May 16, 6:21 am, jayarjo wrote: > "New in jQuery 1.3: > > All triggered events now bubble up the DOM tree. For example if you > trigger an event on a paragraph then it will trigger on that element > first, then on the parent element, and its parent, a

[jQuery] Re: Global variables in jQuery

2009-05-13 Thread Mike Nichols
'price' value won't be set until the callback completes, so try this: unction calc_matrix(x, y) { loc = "index.php?module=product"; var price = 0; $.post(loc, { "request":"xmlhttp", "action":"calc_pricematrix", "x":x,

[jQuery] Re: empty() is faking ?

2009-05-04 Thread Mike Nichols
this is probably due to the refresh problems in firebug On May 4, 7:33 am, Olivier Percebois-Garve wrote: > Hi > > I'm puzzled with this :http://pastebin.me/49fef93928aff > > (in firebug click on the jquery object, then expand "0") > > Using empty() or remove() on the lis of a ul, it seems that

[jQuery] Re: how to make an alert before processing a form

2009-04-28 Thread Mike Nichols
subscribe (bind) to your form's 'submit' event . show your alert and return true/false accordingly...false will prevent the form from submitting. On Apr 28, 5:59 am, hybris77 wrote: > i might be tired right now but I cannot seem to figure out > a good way to show an alert before processing a for

[jQuery] Re: jQuery $.ajax and dataType

2009-04-10 Thread Mike Nichols
great glad it helped. I'll look at 1.3.2 to modify On Apr 10, 4:01 pm, Snef wrote: > Exactly what I also want! :) > > Think it needs minor update for 1.3.2 (different way of eval with json > i think) > > Thanx! > > PS. Strange this was not included in jQuery itself.

[jQuery] Re: jQuery $.ajax and dataType

2009-04-10 Thread Mike Nichols
I posted on this and submitted on the ticket tracker to do this but it seems to have been denied (it was abandoned). There was a suggestion made to use the dataFilter but that misses the point since the xhr header doesn't get included as a parameter. To work around this I have a little patch I add

[jQuery] Re: Cascade plugin - feature/improvement request (data optimization)

2009-02-04 Thread Mike Nichols
sorry i replied on your other thread: @james, There is not a fixed schema for items in cascade. The json structure is outside the scope of cascade. For smaller lists I might load some javascript when the page hits and assign the 'url' as the var I gave it. For larger lists or more complex objects

[jQuery] Re: Cascade (chained) works in Firefox but not in IE

2009-02-03 Thread Mike Nichols
#x27;s handling of special characters.  I can't > > > explain why IE breaks while Firefox just displays a strange > > > character... > > > > In any case, the solution to this is beyond me. > > > > For now it looks like I'm going to have to run my dat

[jQuery] Re: Cascade (chained) works in Firefox but not in IE

2009-02-01 Thread Mike Nichols
ce of single quotes within the JSON data > > > > throw off JQuery?  example: If one of the cities is "O'Brien" > > > > > I ask because I have now put up a refined page with the two methods > > > > and I have used a smaller versi

[jQuery] Re: Cascade (chained) works in Firefox but not in IE

2009-01-31 Thread Mike Nichols
@James Thinking about what you are doing here with the third dropdown...By attaching that dropdown to the second you are telling it to be filtered by the second dropdown's selected value...which is not selected yet since it just loaded so I would presume you shouldn't have any data in the third dr

[jQuery] Re: passing args to a delegate

2008-12-12 Thread Mike Nichols
Try this: success: function() { registerImageForms(id,key,type); } On Dec 12, 5:13 pm, "Jan Limpens" wrote: > Hello, > > I have the following code: > > var registerImageForms = function(id, key, type) { >     var sizes = ['small', 'medium', 'large']; >     $('#panel-images fieldset:visible').re

[jQuery] Re: [validate] Allowing letters only in a text input?

2008-11-30 Thread Mike Nichols
Try this: http://plugins.jquery.com/project/constrain On Nov 30, 12:54 pm, deronsizemore <[EMAIL PROTECTED]> wrote: > Hi! Thanks for the quick reply. So, with this code added, will it make all > fields letters only or is there a way for me to specify what field(s) I want > to allow letters only?

[jQuery] Re: asp.net and jquery - reactions to this letter

2008-11-19 Thread Mike Nichols
Probably any complaints would only come from users of the WebForms model, not asp.net MVC or Monorail. The debugging argument just points to a need for a better testing setup...unit tests maybe?

[jQuery] Re: AJAX with IE and method POST

2008-11-14 Thread Mike Nichols
did you forget to pass data (data:{}) in the ajax call? I have had that trip me up when doing posts via ajax. On Nov 14, 10:35 am, George <[EMAIL PROTECTED]> wrote: > Hi guys/girls, > I just wanted to post here my problems (and solution) I had been > struggling with last 2 days. > > I was doing J

[jQuery] Re: Custom sorter/parser for tablesorter

2008-11-11 Thread Mike Nichols
just ignoring letters for > > sorting purposes? > > > On Nov 11, 2:51 am, Rodent of Unusual Size <[EMAIL PROTECTED]> wrote: > > > > On Nov 11, 12:29 am, Mike Nichols <[EMAIL PROTECTED]> wrote: > > > > > I submitted a patch a long time ago to do

[jQuery] Re: Custom sorter/parser for tablesorter

2008-11-10 Thread Mike Nichols
I submitted a patch a long time ago to do this that implemented a natural sorting algorithm for this but it would never get applied and I couldn't get a response..I assumed the project was light or dead. I can send you the patched .js i had if you like. On Nov 10, 9:56 pm, Rodent of Unusual Size

[jQuery] Re: Add callback to plugin?

2008-11-06 Thread Mike Nichols
Why not take advantage of jquery's event mechanism and do an event based api, like: $("#sel").testStatus(opt).bind("statusupdated.testStatus",function() { //dostuff }); then in your plugin: if (question) { $.ajax({ type: 'POST', url: itemHref + defaults.status

[jQuery] Re: jquery.validate & cascade/chained selects

2008-11-02 Thread Mike Nichols
Are you using the cascade plugin? On Oct 15, 1:47 pm, Migue <[EMAIL PROTECTED]> wrote: > Hi, im trying to use jquery.validate plugin in a form with  cascade/ > chained ajax selects. > Thatcascadeloading was bind to select's Change event. But now i have > conflicts with jquery.validate, i think it

[jQuery] ANNOUNCE : 'constrain' plugin for numeric, alpha , etc on text boxes

2008-10-04 Thread Mike Nichols
I needed to be able to specify constraints on text boxes specifically but simply so I wrote jquery.constrain.js. This lets you specify patterns (regexs) , limit characters to a certain quantity,or just prohibit characters on text boxes . Also includes an numeric extension so you can pass number fo

[jQuery] Re: cascade question

2008-09-22 Thread Mike Nichols
Sorry I missed this. I do the same thing ricardo recommended when unable to load the values from the server on load. On Sep 18, 12:23 pm, ricardobeat <[EMAIL PROTECTED]> wrote: > oops, I didn't pay attention. > > You need to set the selected attribute and then fire the 'change' > event on the par

[jQuery] Re: $.post callback problem

2008-09-11 Thread Mike Nichols
I've had problems with not specifiying the 'data' to be sent to the server on a post ,ie: $.post(url,{data:{}}); You might try that and see if it fixes it On Sep 11, 3:32 pm, Mike Alsup <[EMAIL PROTECTED]> wrote: > > i am trying to use data i am getting back from $.post but I am not > > able to

[jQuery] Re: [validate] metadata bug

2008-09-10 Thread Mike Nichols
Done...this is at http://dev.jquery.com/ticket/3356#preview On Sep 9, 6:46 am, "Jörn Zaefferer" <[EMAIL PROTECTED]> wrote: > Could you file a ticket for this?http://dev.jquery.com/newticket > > Thanks > Jörn > > On Tue, Sep 9, 2008 at 3:22 PM, Mike Nichols &

[jQuery] [validate] metadata bug

2008-09-09 Thread Mike Nichols
If this is in a form: and the form is validated with: jQuery("#demo_form").validate({meta:"validate"}); // inside $.ready Then I get this : meta is undefined file:///C:/Development/Assets/test/datetime/jquery.validate.js Line 507 Which is caused by this: return meta.messages && meta.messages[m

[jQuery] [validate] delayed validation

2008-09-08 Thread Mike Nichols
Hi I have a text field which is evaluated on its onblur event and corrected by inserting the default year. So I might enter '0508' and it will convert to '05/08/2008' onblur. The validate plugin is evaluating the field's value before my plugin can change it so it says 'Please enter a valid date',

[jQuery] Re: Proof of concept: Animated data grid/table jquery plugin with sorting and pagination and somewhat lightweight

2008-09-02 Thread Mike Nichols
sweet...i implemented natural sorting in tablesorter but it never got put in so I am thrilled to see it baked into your implementation... looks good mike On Sep 1, 11:09 pm, "Alexandre Plennevaux" <[EMAIL PROTECTED]> wrote: > very nice indeed ! > > 1/ when going to the last page, the table height

[jQuery] Re: cascade plugin targeted to $(this)

2008-08-20 Thread Mike Nichols
jQuery("div#resort_select select",this).cascade("div#country_sel > select",{ > > and > > jQuery("div#resort_select select",this).cascade(this,"div#country_sel > select",{ > > On Aug 19, 7:38 pm, Mike Nichols <[EMAIL PROTECTED]> wrot

[jQuery] Re: cascade plugin targeted to $(this)

2008-08-19 Thread Mike Nichols
what is "div#kurort_select "? I can't find that in your markup. On Aug 19, 5:58 am, pervak <[EMAIL PROTECTED]> wrote: > Hi all! > >  I've tried to use cascade plugin from Mike Nichols and everything > goes fine until i need to adjust i

[jQuery] Announcing Cascade plugin

2008-07-20 Thread Mike Nichols
Hi all, I have had this plugin in use for a while and it is ready for the wild. This plugin originally was conceived to simply handle the canonical cascade requirement of select elements filtering other select element options, but has grown to deal with any similar behavior requirement . A demo h

[jQuery] ajax response content type interception

2008-07-18 Thread Mike Nichols
I submitted a patch a long time ago here http://dev.jquery.com/ticket/2890 that allows the response content type to determine how jquery handles the response (script, html, etc). This is not being looked at or applied (not sure why) so I was wondering if there is a way to intercept the response to

[jQuery] Re: Autocomplete: Multi-dim JSON array and Custom format

2008-06-18 Thread Mike Nichols
I Have an plugin called 'cascade' that does this using templating very easily here http://plugins.jquery.com/project/cascade or consider the very lightweight autocomplete here http://plugins.jquery.com/project/jq-autocomplete which also uses the templating plugin. I hopped to this autocomplete fo

[jQuery] Re: [validate] bug

2008-05-27 Thread Mike Nichols
lidate code hasn't accomodated this scenario. Not sure what I'm missing. On May 26, 3:42 pm, "Jörn Zaefferer" <[EMAIL PROTECTED]> wrote: > Please just update to jQuery 1.2.6. > > Jörn > > On Mon, May 26, 2008 at 7:59 PM, Mike Nichols <[EMAIL PROTECTED]>

[jQuery] Re: growl for jquery

2008-05-23 Thread Mike Nichols
Maybe this could help http://www.stanlemon.net/projects/jgrowl.html On May 22, 8:12 pm, zoul0813 <[EMAIL PROTECTED]> wrote: > darren, > > I'll look into adding that functionality -- I just recently got a mac > again, I wrote the jQuery Growl plugin because I was inspired by the > MooTools version

[jQuery] Re: Dynamically add datepicker

2008-05-22 Thread Mike Nichols
look at the livequery or listen plugins to handle this On May 22, 1:39 pm, Adam <[EMAIL PROTECTED]> wrote: > I'm having trouble dynamically adding both Kelvin Luck's and the UI > datepicker to a page. I have one working fine when the page loads, but > bringing one in via an AJAX call doesn't seem

[jQuery] Validate plugin bug

2008-05-22 Thread Mike Nichols
Sorry for the double posting, but the other subject was vague... There needs to be a check for value !== null in the attributeRules method of the jquery.validate plugin. It bombs otherwise when collecting the rules . Not sure if this is because of using the 1.2.5 jq release. Also I have a patch h

[jQuery] [validate] bug

2008-05-22 Thread Mike Nichols
There needs to be a check for value !== null in the attributeRules method of the jquery.validate plugin. It bombs otherwise when collecting the rules . Not sure if this is because of using the 1.2.5 jq release. Also I have a patch here http://plugins.jquery.com/node/1667 that is three months old..

[jQuery] Re: Some problem with latest version of Jquery Validator?

2008-05-22 Thread Mike Nichols
You need to include a check for value !== null in attributeRules method...I'd submit a patch but not sure where to do it to have it considered. mike On May 22, 6:28 am, Deep Ganatra <[EMAIL PROTECTED]> wrote: > Hi, > I just downloaded Jquery validator verison: 1.3 (I am using JQuery > 1.25) > > W

[jQuery] Re: Anyone have trouble viewing this site on Vista?

2008-04-17 Thread Mike Nichols
looks fine on my machine On Apr 16, 12:02 pm, "Rick Faircloth" <[EMAIL PROTECTED]> wrote: > Hi, all.. > > I was attempting to demo this site and show off > the Cycle plug-in to a prospective client, but the > Cycle plug-in was acting very strangly... flickering, not > showing images, etc. > > The