[jQuery] Sorting a list of objects ( not in table)

2009-01-08 Thread Ajay
Hi all, I have a list of objects that I represent in a search result and I need following features.. on the search ressult page pagination.. filtering and sorting on basis of some parameters.. e.g. http://tinyurl.com/7uldsd I found lot of plugins for doing all this in tables and representing so

[jQuery] Re: teaching jquery instead of javascript ?

2009-01-08 Thread Alexandre Plennevaux
hi Ricardo, it's actually 120 hours per year, and it's the last two years. so 240 hours. On Fri, Jan 9, 2009 at 4:44 AM, Ricardo Tomasi wrote: > > Yes but what happens when you find an error in your script? It might > be a very basic mistake but you won't have a clue if you don't know > javascr

[jQuery] Re: how to select all first td's inside all in a table

2009-01-08 Thread jQuery Lover
Once more solution: $("tr td:nth-child(1)").addClass('date'); jQuery HowTo Resource - http://jquery-howto.blogspot.com On Fri, Jan 9, 2009 at 2:58 AM, Tijmen Smit wrote: > > I have a table that contains several , all of them look like > this. > > >20-04 >

[jQuery] Re: simple problem

2009-01-08 Thread jQuery Lover
You are selecting an image and image has no HTML or any kind of text content in it! img element has no html() function. jQuery HowTo Resource - http://jquery-howto.blogspot.com On Thu, Jan 8, 2009 at 8:11 PM, CreativeMind wrote: > > hi all, > i m unable to find the img and its src attribut

[jQuery] Re: Simulate BackSpace key

2009-01-08 Thread jQuery Lover
Here is how to simulate a backspace in javascript: getElementById('yourTextBox').Select(TextBox1.SelectionStart - 1, 1) getElementById('yourTextBox').SelectedText = " jQuery HowTo Resource - http://jquery-howto.blogspot.com On Fri, Jan 9, 2009 at 11:03 AM, RSol wrote: > > To replace '

[jQuery] Re: jQuery - Binding to Ajax Event

2009-01-08 Thread jQuery Lover
Why don't you use jQuery's helper function $.getJSON( url, [data], [callback] ) http://docs.jquery.com/Ajax/jQuery.getJSON#urldatacallback jQuery HowTo Resource - http://jquery-howto.blogspot.com On Fri, Jan 9, 2009 at 9:32 AM, goodsanket wrote: > > Hi all > > I am developing a portal and

[jQuery] Re: Simulate BackSpace key

2009-01-08 Thread RSol
To replace ':)' to image I see 2 variants: When I detect ':)' I: 1. Emulate two BackSpace and execCommand('InsertImage',false,img) 2. Get all text from '#editor', then String.replace(/:\)/g,img), then put that in '#editor', then need moove cursor to the end of '#editor'. I dont know how to move cu

[jQuery] Re: how to select all first td's inside all in a table

2009-01-08 Thread Chandan Luthra
$('tr').find('td:eq(0)') this will work.. With Regards, Chandan Luthra Intelligrape Software Pvt. Ltd. On Fri, Jan 9, 2009 at 4:04 AM, Mauricio (Maujor) Samy Silva < css.mau...@gmail.com> wrote: > > $('tr > td') // match ALL td's that are children of a tr. > > $('tr td:first-child') // match O

[jQuery] Re: Simulate BackSpace key

2009-01-08 Thread RSol
I try - this no work. :( On 8 янв, 14:19, "jQuery Lover" wrote: > As far as I can remember trigger function takes only two parameters. The > second parameter should be an array: > $('#editor').trigger("keypress", [null,{which: > 8,pageX:e.pageX,pageY:e.pageY}]); > > On Thu, Jan 8, 2009 at 3:57 P

[jQuery] Re: simple problem

2009-01-08 Thread CreativeMind
when i use the values , they are showing me as if working properly...but when i check them using alert , i can't find any value..

[jQuery] Re: How to force processing of ColdFusion code when using .load

2009-01-08 Thread Shawn Grover
I've seen this caching problem before as well. I handle it by just adding a random number to the URL I'm requesting. i.e. $.ajax({ url: "mypage.cfm?r=" + Math.random(), data: myData, //. . . }); If you are doing a GET request, the random parameter can go into the Data then. The para

[jQuery] Re: scrolling page when mouse at edge.

2009-01-08 Thread Shawn Grover
Sounds like a bad design in terms of usability to me. What happens when the user wants to click the last visible item in the menu, and it tries to scroll? Frustration. I think a better option would be to put a scroll "block" at the bottom of the menu and only scroll when the user hovers ov

[jQuery] scrolling page when mouse at edge.

2009-01-08 Thread pantagruel
Hi, somewhat off-topic, but jQuery is the javascript library I've chosen... I have a menu that is longer than the page. When I go down this menu with the mouse I would like the page to scroll in the same direction and speed as the mouse. I guess scrolling should actually only happen if I get at

[jQuery] jQuery - Binding to Ajax Event

2009-01-08 Thread goodsanket
Hi all I am developing a portal and i am kind of stuck. I am using multiple AJAX calls to get data dynamically from a JSON file. In one page I am making 2 AJAX calls, and I want to call a function on call back from AJAX. I found out a way to do it, its something like this, $(window).bin

[jQuery] Re: having a child div inherit a parent width

2009-01-08 Thread Karl Swedberg
Hi again, This should work: $(document).ready(function() { var cellWidth = { searchUser: [80, 110, 145, 70, 100, 100, 236], searchAcct: [80, 130, 80, 80, 80, 190, 201] }; $.each(cellWidth, function(key, val) { for (var i=0, cl= val.length; iNow if you add another table, (fo

[jQuery] Re: teaching jquery instead of javascript ?

2009-01-08 Thread Ricardo Tomasi
Yes but what happens when you find an error in your script? It might be a very basic mistake but you won't have a clue if you don't know javascript itself. What happens 5 years from know if a totally different library, with different syntax, takes over? I agree with Peter Higgins, it's much more

[jQuery] Re: (smooth) scroll to anchor but...

2009-01-08 Thread Karl Swedberg
oh wow. good call, Ariel. thanks! --Karl Karl Swedberg www.englishrules.com www.learningjquery.com On Jan 8, 2009, at 4:42 PM, Ariel Flesler wrote: @Karl $('html, body') is a simple, yet bad, approach. It's one or the other not both. Browsers like Opera that react to both el

[jQuery] Re: How to force processing of ColdFusion code when using .load

2009-01-08 Thread Rick Faircloth
Well, Carl, I think you've done it. I had tried the cfheaders you have below, except for the expires now header. That one seems to have done it! Thanks so much! Rick > -Original Message- > From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On > Behalf Of Carl Von St

[jQuery] Re: Best way to preload an image to obtain dimensions

2009-01-08 Thread brian
On Thu, Jan 8, 2009 at 6:06 PM, nabrown78 wrote: > > Hi All, > I am building a simple little gallery where you click on a thumbnail, > and a larger image displays on the same page. I was trying to adjust > the padding around the large image using the new image's dimensions. I > pieced together th

[jQuery] Re: attr('type') gives me checkbox instead of radio

2009-01-08 Thread MorningZ
I'm not sure where you are getting your documentation from, but "@param" is depreciated this code gives "radio" http://paste.pocoo.org/show/98695/ On Jan 8, 9:47 pm, bob wrote: > Female > Male > > var type = #('inp...@name=gender]').attr('type'); > > alert(type); > > Why do I get checkbox i

[jQuery] attr('type') gives me checkbox instead of radio

2009-01-08 Thread bob
Female Male var type = #('inp...@name=gender]').attr('type'); alert(type); Why do I get checkbox instead of radio?

[jQuery] Swap Image when click

2009-01-08 Thread jeffreych...@gmail.com
Hi devs, I kinda new with jquery and would like to ask, has anyone tried to use jquery to swap images when click. Its a linked image. SO when you click the image it would swap into another one. Thanks.

[jQuery] [validate] message containers and valid XHTML markup?

2009-01-08 Thread martin
>From what I can make of the documentation, the only way to use validation containers is to put something like... class="{required:true,minlength:3}" into your HTML form elements. Now this works just fine for me, however, its not valid XHTML. Is there any way to have valid XHTML and use error c

[jQuery] Re: having a child div inherit a parent width

2009-01-08 Thread roxstyle
i actually started with more than one table, and my clunky code was working, but not clean. The following is the original for 2 tables. $(document).ready(function() { //usertool-search-user $(".searchUser tbody td:first-child").css({"width":"80px"}); $(".searchUser tbody td:nth-child

[jQuery] Re: How to force processing of ColdFusion code when using .load

2009-01-08 Thread Carl Von Stetten
Rick, I've had problems in the past with IE using the cached version of AJAX content instead of reloading it. The solution that generally works is to add this to the top of the .cfm page your are loading via AJAX: wrote: > Hi, Carl...and thanks for the reply. > > Yes, the conditional statem

[jQuery] Re: Select inputs

2009-01-08 Thread Lay András
Hello! On Fri, Jan 9, 2009 at 12:51 AM, Karl Rudd wrote: > $('input[name^=xxx]') > > http://docs.jquery.com/Selectors/attributeStartsWith#attributevalue Oh, I don't see this before... Thank You!

[jQuery] Re: How to force processing of ColdFusion code when using .load

2009-01-08 Thread Rick Faircloth
Hi, Carl...and thanks for the reply. Yes, the conditional statements are in the include_menu_index.cfm file. They determine the menu like so: Announcements RES Announcements

[jQuery] Re: Select inputs

2009-01-08 Thread Karl Rudd
$('input[name^=xxx]') http://docs.jquery.com/Selectors/attributeStartsWith#attributevalue Karl Rudd On Fri, Jan 9, 2009 at 9:14 AM, Lay András wrote: > > Hello! > > How can I select all checkbox inputs which names/ids starting with > "xxx"? I tried this, but not working: > > $('input[name=xxx*]

[jQuery] Select inputs

2009-01-08 Thread Lay András
Hello! How can I select all checkbox inputs which names/ids starting with "xxx"? I tried this, but not working: $('input[name=xxx*]')

[jQuery] jqModal problem in firefox not firing ready

2009-01-08 Thread Kid_Niki
Hi everyone, I have a basic jqModal page: --- ... blah blah # Close Please wait... ' ... blah blah

[jQuery] Re: get tag name

2009-01-08 Thread Alfonso Harita
http://www.mail-archive.com/disc...@jquery.com/msg07467.html On Jan 7, 6:40 pm, bob wrote: > > > January > February > > function do_something_based_on_tag_name(selector) { > >         if(???=='select') {} > > } > > var selector = jq('#month'); > > do_something_based_on_tag_name(selector); > >

[jQuery] Getting an array via $.post

2009-01-08 Thread emmj...@gmail.com
How would I go about getting an array from a php script. As I understand it the data returned to $.post is only things that are echoed in the php file. I've tried using return $array; in php but it doesn't work. Any help would be greatly appreciated.

[jQuery] Best way to preload an image to obtain dimensions

2009-01-08 Thread nabrown78
Hi All, I am building a simple little gallery where you click on a thumbnail, and a larger image displays on the same page. I was trying to adjust the padding around the large image using the new image's dimensions. I pieced together this image preloading code (see below), but I don't fully unders

[jQuery] Calling images programatically from a database?

2009-01-08 Thread tovi
Hi, so I've got this problem which I just can't seem to solve, even after looking at many resources and this archive. Have a look-see, please. I'm currently not using jquery for this function, but I imagine I could be. What I'm trying to do is call on a record from a database which will have, amo

[jQuery] Re: How to force processing of ColdFusion code when using .load

2009-01-08 Thread Carl Von Stetten
Rick, Is the ColdFusion conditional code in the includes/ include_menu_index.cfm file? If so, there may be issues with the AJAX request not using the same ColdFusion session as your main page. Also, you might check your AJAX response using Fiddler with IE and compare it to the response in Firef

[jQuery] Re: Trouble refreshing div with .load

2009-01-08 Thread Carl Von Stetten
Rick, Is #menu empty to start with? If not, you might want to change your code to: $('#menu').hide().empty().load("includes/include_menu_index.cfm").show (); Another think to consider is whether IE is actually getting back the json data correctly. You might want to examine the response using

[jQuery] Dynamic select menus widgit

2009-01-08 Thread Dan
I have a script that selects rows from a database with a select menu for each field. Some php runs prior to page load to populate the options. When the user clicks on an option, jquery asks a script to have the remaining select menus have their options re-populated based on distinct values for t

[jQuery] Re: [validate] Attaching events to dynamically added fields

2009-01-08 Thread Rob
Hi Jörn, I have been plugging away at this for a while now, with no luck. I set up a test page, and stripped it down to be as basic as possible (it's much more basic than even the demos). It is located here: http://cymantix.net/validation When you add new items, they don't appear to be validat

[jQuery] Re: How to force processing of ColdFusion code when using .load

2009-01-08 Thread Rick Faircloth
Maybe the "cache: false" idea isn't working because the problem isn't with any of the content involving the ajax function, it's with content in the ajax success section: just simple loading of content from another page not involved in the ajax process. Even with caching set to false the menu sti

[jQuery] Re: How to force processing of ColdFusion code when using .load

2009-01-08 Thread Rick Faircloth
Rats! didn't work... IE is putting the menu for the previous user back on the page and still not processing the conditional statements to change the menu. Once a page refresh is performed, however, the menu shows up as it should. I had tried setting no-cache on in the header of the page, too,

[jQuery] Re: teaching jquery instead of javascript ?

2009-01-08 Thread Alexandre Plennevaux
Yeah, actually me too. I remember i used bits of javascript but could never get good at it. It's only with jquery that i became convinced that it was the right technology and my personal flash killer technology. I definitely know much more about javascript than before, when i simply gave up on it

[jQuery] Re: teaching jquery instead of javascript ?

2009-01-08 Thread Nikola
That's very true and in fact that's how I'm learning JavaScript myself. jQuery is an awesome way to learn, it's smart, fun and powerful.

[jQuery] Re: how to select all first td's inside all in a table

2009-01-08 Thread Mauricio (Maujor) Samy Silva
$('tr > td') // match ALL td's that are children of a tr. $('tr td:first-child') // match ONLY td's that are first-child of a tr - this is the selector Tijmen is asking for. Regards, Mauricio I believe you have two options: $('tr>td') or $('tr td:first-child') i've never used fir

[jQuery] Re: teaching jquery instead of javascript ?

2009-01-08 Thread Kean
Your audience are designers, they will pick up jQuery faster because they think in CSS. At what point do you teach them javascript? When you teach them how to create plugins for jQuery. I hope this helps. On Jan 8, 2:13 pm, Nikola wrote: > Why not integrate the basic "JavaScript Fundamentals"

[jQuery] Re: How to force processing of ColdFusion code when using .load

2009-01-08 Thread Josh Nathanson
Rick - set cache="false" in your ajax call. $.ajax({ Cache: false, type: "POST", etc. IE caches everything by default unless you tell it not to. Also you can do this once and all your ajax calls will not cache: $.ajaxSetup({ cache: false }); Thereafter you won't have

[jQuery] Re: teaching jquery instead of javascript ?

2009-01-08 Thread Nikola
Why not integrate the basic "JavaScript Fundamentals" in each jQuery lesson. You could show some general examples and explain the rudimentary JavaScript principal (I'm thinking a 15 minute introduction...) then teach the jQuery and demonstrate how and why jQuery is the "write less, do more" JavaS

[jQuery] Re: teaching jquery instead of javascript ?

2009-01-08 Thread Eric Garside
To be honest, I'm going to have to go against the party line here. jQuery *is* javascript in this day and age, and I think that's what matters more than anything. I'm a straight programmer who isn't blessed with a skill at graphic design. And if I could work with a gDesigner who knew how to use jQ

[jQuery] Re: teaching jquery instead of javascript ?

2009-01-08 Thread Nikola
Why not include basic "JavaScript Fundamentals" in each jQuery lesson. Show some general examples and explain the general JavaScript principal of the lesson works (I'm thinking a 15 minute introduction...) then teach the jQuery and illustrate how and why jQuery is the "write less, do more" JavaSc

[jQuery] Re: how to select all first td's inside all in a table

2009-01-08 Thread Alexandre Plennevaux
I believe you have two options: $('tr>td') or $('tr td:first-child') i've never used first-child myself so i may understand it wrongly.Let me know ! On Thu, Jan 8, 2009 at 10:58 PM, Tijmen Smit wrote: > > I have a table that contains several , all of them look like > this. > > >

[jQuery] Re: teaching jquery instead of javascript ?

2009-01-08 Thread Alexandre Plennevaux
Thanks seasoup, that's what i intended . Besides, the few hours they will get to learn javascript may not be enough to give them a strong basis. But i'm discovering the school, so i might be wrong. I'll reconsider this next year. The option to teach jquery as a second level course makes definitely

[jQuery] How to force processing of ColdFusion code when using .load

2009-01-08 Thread Rick Faircloth
How can I force the processing of ColdFusion code in a menu segment when I have some login and I replace the menu HTML. I had some conditional code like: Announcements RES Announc

[jQuery] Re: teaching jquery instead of javascript ?

2009-01-08 Thread Alexandre Plennevaux
Thank you all guys, these are very useful clarifications to me ! On Thu, Jan 8, 2009 at 10:46 PM, Andy Matthews wrote: > > I'd look at teaching jQuery as a 2nd level course. Once you've covered at > least the basics of JavaScript, then you can get into jQuery. > > -Original Message- > F

[jQuery] Re: teaching jquery instead of javascript ?

2009-01-08 Thread seasoup
I think that a designer who knows jQuery is ahead of those that do not. I would love to work with a designer who could put together the rudimentary functionality of a website with jQuery. If designers can pick up jQuery that would be great, most designers do not bother to learn javascript. There

[jQuery] how to select all first td's inside all in a table

2009-01-08 Thread Tijmen Smit
I have a table that contains several , all of them look like this. 20-04 459 559 659 439 519 599 424 489 554

[jQuery] Re: if statement testing for null value

2009-01-08 Thread Michael Geary
Actually, $('#field').val() is an *empty string* if a form field is present but empty. So the problem is the test is too type-specific (and testing for the wrong type) already. You could use != '', but it's cleaner to simply not do any comparison. Code it like this: if( $('#equipment

[jQuery] Re: teaching jquery instead of javascript ?

2009-01-08 Thread Andy Matthews
I'd look at teaching jQuery as a 2nd level course. Once you've covered at least the basics of JavaScript, then you can get into jQuery. -Original Message- From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On Behalf Of Klaus Hartl Sent: Thursday, January 08, 2009 3:38 P

[jQuery] Re: teaching jquery instead of javascript ?

2009-01-08 Thread pete higgins
I'm inclined to agree. Having a good foundation of JavaScript before adopting any library will do these students a much greater service than simply teaching them an API that is already relatively easy to learn. Teach them JS, and in places where is really matters, show them how JQ (or the other li

[jQuery] Re: (smooth) scroll to anchor but...

2009-01-08 Thread Ariel Flesler
@Karl $('html, body') is a simple, yet bad, approach. It's one or the other not both. Browsers like Opera that react to both elements, can go mad when doing this. Cheers -- Ariel Flesler http://flesler.blogspot.com On Jan 8, 1:20 pm, Karl Swedberg wrote: > Hi there, > > Here's a quick and dir

[jQuery] Re: teaching jquery instead of javascript ?

2009-01-08 Thread Klaus Hartl
jQuery is JavaScript, and at some point you need to know JavaScript. I would never hire anyone who claims to know jQuery but not JavaScript. my 0.02$ --Klaus On 8 Jan., 22:23, pixeline wrote: > Hello mates, > > I will start to teach web usability to freshly graduated youngsters in > a graphic

[jQuery] Re: if statement testing for null value

2009-01-08 Thread Alexandre Plennevaux
try using !== instead of != as this checks also against the variable type. you can also try if ( typeof myvar ==='undefined'){ //error } On Thu, Jan 8, 2009 at 10:25 PM, Chuk wrote: > > Hi. I have a form with a disabled submit button when the page is > loaded. I'm trying to activate that

[jQuery] if statement testing for null value

2009-01-08 Thread Chuk
Hi. I have a form with a disabled submit button when the page is loaded. I'm trying to activate that submit button only when two text fields(ids="equipmentNumber" and "description") and three select boxes (ids="type","department"," and "location") contain a value. Here is my current code: if (

[jQuery] [OT] teaching jquery instead of javascript ?

2009-01-08 Thread pixeline
Hello mates, I will start to teach web usability to freshly graduated youngsters in a graphic design school _ web dept, web dept. The Board recently proposed me to also take over javascript. Now i intend to them i'm not literate enough in javascript to actually teach it. But i proposed instead t

[jQuery] Re: Trouble refreshing div with .load

2009-01-08 Thread Rick Faircloth
Anyone have any ideas on this? > > I'm using the following code to refresh a menu > based on a user's access privileges. The login > is via a modal window. > > $.ajax({ > type: "POST", > url: "login/login_processor.cfm", > dataType: "json", > data: formval, >

[jQuery] Re: Validation: Which and why...

2009-01-08 Thread Nikola
I'm thinking now that I'll use jQuery validation methods from the start which can make the form more interactive and interesting. If the form validates within jQuery then I'll pass it to my php validation method. In this case, I'll use to php to re-validate the form under stricter criteria and e

[jQuery] Re: Validation: Which and why...

2009-01-08 Thread Nikola
I'm thinking now that I'll use jQuery validation methods from the start which can make the form more interactive and interesting. If the form validates within jQuery then I'll pass it to my php validation method. In this case, I'll use to php to re-validate the form under stricter criteria and e

[jQuery] Re: display:block with jquery

2009-01-08 Thread Mauricio (Maujor) Samy Silva
display block is a CSS declaration, so use the css() method: $('element').css('display', 'block'); how can i add display block to an element with jquery

[jQuery] Re: Highlighting the first element in multiple DIVS

2009-01-08 Thread Mauricio (Maujor) Samy Silva
Hi Martin, Sintax is: $('selector', [context]) When you set the optional parameter context for a jQuery selector you are saying: "Match all 'selector' against the contents of context". The default context is HTML element. Please go to and open the tab "Examples": http://docs.jquery.com/Core

[jQuery] Re: Tutorials or examples of jQuery and ColdFusion?

2009-01-08 Thread Rick Faircloth
> use "returnFormat=json" in your > cffunction in CF8, That's certainly easier than having to keep up with another CFC. Thanks! Rick > -Original Message- > From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On > Behalf Of Josh Nathanson > Sent: Thursday, January 08,

[jQuery] Re: Highlighting the first element in multiple DIVS

2009-01-08 Thread Martynas Brijunas
Hi Ricardo, > (sorry for being so meddlesome) not at all! Thank you for your suggestions, especially about getting rid of the images and using coloured anchors instead. I will try this out this weekend. Best regards, Martin

[jQuery] Re: Highlighting the first element in multiple DIVS

2009-01-08 Thread Martynas Brijunas
Hi Mauricio, > Let's loop the div.description using the each() method. > > $('.description') .each(function(){ > $('img:eq(0)', this).addClass('icon_selected'); > }); thank you very much. Your suggestion with .each works very well. This is what I have ended up with (see below). One questio

[jQuery] Re: Correct way using Jquery

2009-01-08 Thread Josh Nathanson
Yeah...it's a calendar with variable display - if someone displays 12 months and each day has three event handlers (click, mouseover, mouseout) you're up to 1000 pretty quickly. -- Josh -Original Message- From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On Behalf Of E

[jQuery] Re: Correct way using Jquery

2009-01-08 Thread Matt Kruse
On Jan 8, 1:32 pm, Eric Garside wrote: > 1000ish items? You're really putting something through it's paces. :P I find it mostly when building rich UI webapps. Especially when dealing with IE. I did much experimentation and found that in many cases IE performed faster when using inline event han

[jQuery] display:block with jquery

2009-01-08 Thread led
how can i add display block to an element with jquery

[jQuery] Re: Select Element CSS Attributes

2009-01-08 Thread _cam_
Yes, I'm using the script at http://www.dillerdesign.com/experiment/DD_belatedPNG/. Rather than hard coding the class "pngFix" to the elements, I want to add them on the fly. Thank you. On Jan 7, 8:23 pm, Ricardo Tomasi wrote: > This seems to work. > > $('elements').filter(function(){ >    

[jQuery] Re: Correct way using Jquery

2009-01-08 Thread Eric Garside
1000ish items? You're really putting something through it's paces. :P On Jan 8, 2:07 pm, "Josh Nathanson" wrote: > I've run up against this event binding limit.  If you have 1000 or so DOM > items to bind to event handlers, you will see the slowness, and/or get ye > olde "you have a long running

[jQuery] Re: showErrors and errorPlacement [validation]

2009-01-08 Thread morraine
Hello ive hackeds away and got a solution to get it to work : $(document).ready(function() { jQuery.validator.setDefaults({ errorPlacement: function(error, element) { error.appendTo( element.siblings('span.valmessage') )//, } }

[jQuery] Re: having a child div inherit a parent width

2009-01-08 Thread roxstyle
thank you, so much. I need to think less in css and more in jquery. And also thank you for your great site, i just found it, and ordered your book. On Jan 8, 7:38 am, Karl Swedberg wrote: > This might be a little cleaner: > >    $(document).ready(function(){ >      var cellWidth = [80, 110, 145,

[jQuery] Re: Tutorials or examples of jQuery and ColdFusion?

2009-01-08 Thread Josh Nathanson
JSON is never "necessary" per se, but it's such a nice and lightweight method of passing data around that it is becoming the de facto standard for ajax applications. I haven't tried it, but I think if you use "returnFormat=json" in your cffunction in CF8, this accomplishes the same thing that cfj

[jQuery] Re: Correct way using Jquery

2009-01-08 Thread Josh Nathanson
I've run up against this event binding limit. If you have 1000 or so DOM items to bind to event handlers, you will see the slowness, and/or get ye olde "you have a long running script" browser alert. One way around it is to use event delegation, but this has its plusses and minuses as well. In

[jQuery] Re: showErrors and errorPlacement [validation]

2009-01-08 Thread morraine
Hi jörn thanks for the reply; OK yes i have seen than demo and ive played about with it as well but it seems to only update the amount when you click the submit button. I want it to update on every validation event (keyup, focus etc) so that when you enter the correct information for 5 incorr

[jQuery] Re: Tutorials or examples of jQuery and ColdFusion?

2009-01-08 Thread Rick Faircloth
Thanks for the tip, Josh. As a matter of fact, that's the tutorial that I modified to create a modal window, ajax-based login I just finished. It uses cfjson.cfc. Part of what I was wondering is if cfjson.cfc is still required or the recommended approach to CF and ajax in light of CF 8's built-

[jQuery] Re: newbie code assessment please?

2009-01-08 Thread Eric Garside
That's what we're here for. :P On Jan 8, 1:15 pm, the_guv wrote: > Hey Eric and Ricardo ... thank you so very much, and to MorningZ too ... > cracking support, most generous. > > I'll work on your ideas tonight and report back my progress. > > Olly. > > Eric Garside wrote: > > Why not simplify i

[jQuery] Re: showErrors and errorPlacement [validation]

2009-01-08 Thread Jörn Zaefferer
Take a look at this demo: http://jquery.bassistance.de/validate/demo/marketo/ The interesting part is here: $("form").bind("invalid-form.validate", function(e, validator) { var errors = validator.numberOfInvalids(); if (errors) { var

[jQuery] Re: Tutorials or examples of jQuery and ColdFusion?

2009-01-08 Thread Rick Faircloth
Hi, Andy...and thanks for the reply. Nothing specific at this point, but just anything to help me see how ajax does its thing. It's a little confusing how the data flows. I mean, I can make it work...I'd just like to understand it better. And I'd like to see some examples of "best" or at least

[jQuery] Re: jQuery-dependent TouchGraph Visualization (experiment)

2009-01-08 Thread David Decraene
Well, suprisingly there was an issue with drawing. The script made an overzealous use of the jquery function $element.offset(); Storing the position as variable instead of accessing it by offset() led to a very notable increase in performance. See demo at http://jowl.ontologyonline.org/TouchGraph

[jQuery] Re: Finding a tag on a page

2009-01-08 Thread Mastro
Figured it out thanks. $("#ID") didn't realize it was on the documentation either On Jan 8, 12:47 pm, Mastro wrote: > I'm new to Jquery, and wondering how in JS using JQ how I can find a > specific control on a page based off it's ID.  Also can I use > it's .net ID, or do I need to use the Clie

[jQuery] Finding a tag on a page

2009-01-08 Thread Mastro
I'm new to Jquery, and wondering how in JS using JQ how I can find a specific control on a page based off it's ID. Also can I use it's .net ID, or do I need to use the ClientID? I'm assuming ClientID.. $..find("ControlID")

[jQuery] Re: Tutorials or examples of jQuery and ColdFusion?

2009-01-08 Thread Josh Nathanson
Rick - if you go to the jQuery site, and look under Tutorials, there is an example there. It's not super detailed but it should give you some insight. -- Josh -Original Message- From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On Behalf Of Rick Faircloth Sent: Thursd

[jQuery] Trouble refreshing div with .load

2009-01-08 Thread Rick Faircloth
I'm using the following code to refresh a menu based on a user's access privileges. The login is via a modal window. $.ajax({ type: "POST", url: "login/login_processor.cfm", dataType: "json", data: formval, success: function(response){

[jQuery] Re: Tutorials or examples of jQuery and ColdFusion?

2009-01-08 Thread Andy Matthews
I've used CF and jQuery a lot. Did you have something specific in mind? I'd be happy to share some code with you. -Original Message- From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On Behalf Of Rick Faircloth Sent: Thursday, January 08, 2009 11:45 AM To: jquery-en@go

[jQuery] Re: newbie code assessment please?

2009-01-08 Thread the_guv
Hey Eric and Ricardo ... thank you so very much, and to MorningZ too ... cracking support, most generous. I'll work on your ideas tonight and report back my progress. Olly. Eric Garside wrote: Why not simplify it a bit more and avoid the whole class lookup?

[jQuery] Re: Problem setting html in iframe.

2009-01-08 Thread m.ugues
It works, Thanks a lot :) Kind regards Massimo On Jan 8, 5:48 pm, "Jörn Zaefferer" wrote: > Try this: > $("iframe")[0].contentDocument.body.innerHTML = "HELLO" > > Jörn > > On Thu, Jan 8, 2009 at 5:41 PM, m.ugues wrote: > > > Hallo all. > > I would like to set the html content of on iframe via

[jQuery] Re: Correct way using Jquery

2009-01-08 Thread Eric Garside
For the sake of maintainability and reuseability, inline events are a poor decision if you're using a robust library such as jQuery. A lot of the jQuery source code is aimed at traversing, manipulating, and hooking the DOM events. Using jQuery and inline events is like buying a ferrari and hooking

[jQuery] Tutorials or examples of jQuery and ColdFusion?

2009-01-08 Thread Rick Faircloth
Hi, all... I think I saw it mentioned that someone had written some examples of using jQuery on the front-end and ColdFusion on the backend for ajax work. Most of the stuff I find on the 'Net with jQuery and PHP. Perhaps the examples were written in conjunction with a plug-in? I'd appreciate a

[jQuery] showErrors and errorPlacement [validation]

2009-01-08 Thread morraine
hello i got a nice form system going with some custom placement of errors but i want to also count the amoutn of errors and display that as well. How can i do this in code? i have this : errorPlacement: function(error, element) { error.appendTo( element.siblings('span.valmessage') )

[jQuery] Re: Ajax: how to choose between post, get or ajax() ??

2009-01-08 Thread Alexandre Plennevaux
Thank you Mike. I 'm set to use ajax() because i think i need the cache option set to false. On Thu, Jan 8, 2009 at 6:23 PM, Mike Alsup wrote: > >> I need to silently update an xml file to store some user's usage >> statistics, basically i pass an object to a php script, which >> generates the

[jQuery] Re: Correct way using Jquery

2009-01-08 Thread Matt Kruse
On Jan 8, 9:17 am, Eric Garside wrote: > And, never, ever use inline events. I disagree. I use them all the time, because it's too slow to attach them after page load using jQuery, especially on large, complex pages. Matt Kruse

[jQuery] Re: Ajax: how to choose between post, get or ajax() ??

2009-01-08 Thread Mike Alsup
> I need to silently update an xml file to store some user's usage > statistics, basically i pass an object to a php script, which > generates the xml and stores it in a file. > > Now, looking at the ajax chapter of the docs, i'm not quite sure > what's the best method to do that: > $.get, $.post

[jQuery] How to access a jQuery object instance?

2009-01-08 Thread WoutervD
Hello there, I would like to know how i can access properties of a jQuery object instance. I have the following javascript: http://paste.pocoo.org/show/U9Gsy68MKP9LvvAvqGI6/ I would like to access the instance from my HTML file and pass value's jObject.sValue = "a value :)"; How can I d

[jQuery] Re: bind the same functionality to load and change event

2009-01-08 Thread jQuery Lover
Move your code to some function and then call it on document ready and onchange-event: function myMethod(){ // my custom js code } $(document).ready(function(){ myMethod(); $("#properties div select").bind("change",myMethod()); }); -- jQuery HowTo Resource

  1   2   >