[jQuery] Re: display Please wait while waiting for a database query.

2007-08-16 Thread SeViR
:-D. Really this is my REAL code using block :-P The problem with blockUI that I have, it is that my hidden layer is removed when I call to $.unblockUI, so I simply send a copy of the layer when I call to $.blockUI ;-) //Configuration for AJAX calls $().ajaxSend(function(r,s){ $(#msgpanel

[jQuery] Re: stop animation

2007-08-16 Thread Ganeshji Marwaha
But how does this help in stopping animations? -GTG On 8/15/07, eddy [EMAIL PROTECTED] wrote: I find a good plugin jQuery Timers (http://jquery.offput.ca/every/) On 8月6日, 下午12时01分, Ganeshji Marwaha [EMAIL PROTECTED] wrote: Thanks eddy... I will try to make them work together and will

[jQuery] True overlay?

2007-08-16 Thread howa
Hello, I am looking for a plugin for loading external page into a overlay like jqModal does, but when I click on the link in the overlay, I only want the overlay's content to be changed. Are there such plugin now? Thanks.

[jQuery] Re: True overlay?

2007-08-16 Thread SeViR
Mmmm, What about the old Greybox Redux? http://jquery.com/demo/grey/ howa escribio': Hello, I am looking for a plugin for loading external page into a overlay like jqModal does, but when I click on the link in the overlay, I only want the overlay's content to be changed. Are there such

[jQuery] Re: new Plugin every: jQuery-oriented setTimeout and setInterval

2007-08-16 Thread Pops
Blair, this is a great idea. I don't know if you considered this and maybe I did it wrong myself since I'm still new to jQuery, but when I prepare a time like so: $(function() { setInterval( function() { $('#result').load('/someurl'); }, 1 ); // repeat every 10 seconds

[jQuery] Re: [ANNOUNCE] tablesorter 2.0 released

2007-08-16 Thread Christian Bach
Chris, Glean and Sean: Thanks! I'm really happy with this release and hopefully it will solve all your table sorting needs. /christian

[jQuery] Re: jQuery Form Plugin and Validation Form

2007-08-16 Thread Freud
I have already tried the return false; but nothing changed :( Freud On Aug 16, 9:52 am, SeViR [EMAIL PROTECTED] wrote: I use another jQuery Validation plugin (jQuery.YAV) but I think that in *submitHandler* you need *return false* for to cancel the normal behaviour. submitHandler:

[jQuery] New jQuery Plugin - jQTreeTable unobtrusive Treetablemaker

2007-08-16 Thread PaulHan
Hi all, Hope this hasn't come out twice, if it has, apologies. I needed a treetable for a project I'm doing, but nothing I had seen quite fitted the bill, so I made my own, and then adapted it so it could be used as a plugin. This is my first plugin, so be kind, any help making it more

[jQuery] Re: new Plugin every: jQuery-oriented setTimeout and setInterval

2007-08-16 Thread Michael Geary
One of the nice things about JavaScript is that it can be so easy to write a general function for something like this. To make a version of setInterval that also calls the function immediately, all you need is: function nowInterval( fn, time ) { fn(); return setInterval( fn, time

[jQuery] Re: Draggables help

2007-08-16 Thread Gordon
I've been keeping an eye on UI, but unfortunately I have a deadline and it doesn't look like UI will be ready in time for me to meet it. You can view my solution by cut and pasting it into a text editor, saving as something.html and viewing it in your browser. You will have to provide a jQuery

[jQuery] Re: Help with show/hide script

2007-08-16 Thread Wizzud
The problem you have is due to the slideDown. Because that takes time (whereas the hide() is instantaneous), clicking Hide TOC while the toc is still sliding won't stop the actions that take place (within jQuery) during and at the end of the slide. One possible alternative (of many) is ...

[jQuery] Re: tablesorter 2.0 released

2007-08-16 Thread Sam Collett
A great plugin that is now even better. You have put a lot of time into this it seems and it has come on a long way since the first table sorter release. You managed to get a good url for it as well.

[jQuery] Re: True overlay?

2007-08-16 Thread Erik Beeson
You can load an iframe in jqModal. --Erik On 8/16/07, howa [EMAIL PROTECTED] wrote: Hello, I am looking for a plugin for loading external page into a overlay like jqModal does, but when I click on the link in the overlay, I only want the overlay's content to be changed. Are there such

[jQuery] Trick to speed the display of a jquery enhanced page ?!

2007-08-16 Thread xavier
Hello, I've modified a page so instead of putting all the script src ... for all the plugins I use (rating+dimension+meta +tablesorter...) in the head, I only kept the jquery in the head and loaded the others like that (exemple for tablesorter): script type=text/javascript function

[jQuery] Re: [ANNOUNCE] tablesorter 2.0 released

2007-08-16 Thread MichaL Sanger
Übercool!!! Thanks MichaL 2007/8/16, Christian Bach [EMAIL PROTECTED]: Hi List, I just released the 2.0 version of tablesorter. Here are the highlight for this release: * Multi-column sorting * Parsers for sorting text, URIs, integers, currency, floats, IP addresses, dates (ISO, long

[jQuery] Re: Scrolling a div area without scrolling the page?

2007-08-16 Thread Kelvin Luck
Hi, I'm not sure I understand you about the jQuery plugin version - it's already a jquery plugin! I've also just made the adjustment which allows you to pass a jQuery selector to the scrollTo method and added another example at the bottom of the page here:

[jQuery] Re: Selector Question should be easy (continued with online example)

2007-08-16 Thread Karl Swedberg
On Aug 16, 2007, at 4:01 AM, Wizzud wrote: Your 'jQuery_How_Do_I_not.html' IS working. If you were to change one of the #ee colours to some completely different colour you would be able to see the effect of clicking on div1. However, when you click on div2 both click handlers are invoked

[jQuery] Re: Scrolling a div area without scrolling the page?

2007-08-16 Thread Alexandre Plennevaux
Woonderful! Could you also make the scroll speed as an option? -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Kelvin Luck Sent: jeudi 16 août 2007 12:41 To: jquery-en@googlegroups.com Subject: [jQuery] Re: Scrolling a div area without

[jQuery] Re: caption supported?

2007-08-16 Thread Benjamin Sterling
Ultimately this is how rumors get started; my bad on the kid thing. But having one is a great thing, give you a totally different perspective or everything. On 8/16/07, John Resig [EMAIL PROTECTED] wrote: Haha, you almost had me frightened there (does he know something that I don't?). But

[jQuery] Re: New jQuery Plugin - jQTreeTable unobtrusive Treetablemaker

2007-08-16 Thread Benjamin Sterling
Nice one Paul! On 8/16/07, PaulHan [EMAIL PROTECTED] wrote: Hi all, Hope this hasn't come out twice, if it has, apologies. I needed a treetable for a project I'm doing, but nothing I had seen quite fitted the bill, so I made my own, and then adapted it so it could be used as a plugin.

[jQuery] Re: caption supported?

2007-08-16 Thread Alexandre Plennevaux
what, just like jquery has totally changed my perception of javascript? problem with john having a baby is that he will try to keep it under 20k at all costs, which may eventually have him run into troubles with the feds :) _ From: jquery-en@googlegroups.com [mailto:[EMAIL

[jQuery] Re: new Plugin every: jQuery-oriented setTimeout and setInterval

2007-08-16 Thread Pops
Yeah I know that Mike and that is exactly what I had to do. :-) But just consider most timer concepts, if not all, that I have ever worked with from RTOS systems or even Emulated RTOS systems all started the process (event) as soon as it is called, which is your intention as soon as the code

[jQuery] Re: Quick question...

2007-08-16 Thread Pops
Mike, early I wrote a more detail message but when saving it, Google swallowed it up and it went into LALA land. I don't know if it was related by FireFox barfed when Google failed to return. Anyway, I explained how you may be able to do this using Functional Programming ideas, but I also

[jQuery] Re: caption supported?

2007-08-16 Thread Benjamin Sterling
Unless we assume k == kilos then he is fine, the kid comes in just over 44lbs. Which, if the kid is only a couple of months old, is well into the 200 percentile and quite bloated. On 8/16/07, Alexandre Plennevaux [EMAIL PROTECTED] wrote: what, just like jquery has totally changed my

[jQuery] Re: About the author of the recent jQuery article - Please Read

2007-08-16 Thread Pops
I don't know Simon, but I can see he knows what he is talking about. :-) I just wish we can stop inventing new terms like Module Pattern when for all intent and purposes we are talking about Black Box and Functional Programming where using Globals are a fundamental taboo. But it did strike me

[jQuery] JSON String problem

2007-08-16 Thread Terry B
has anyone had any problem with JSON whereas a string is 063 and it gets translated to a number, in this case 51??? The response from a call has the appropiate value [063] but I have noticed that since it is not in string notation [063] when used it gets converted. I would rather not have to

[jQuery] Re: JSON String problem

2007-08-16 Thread Erik Beeson
Yep, that's a feature of JavaScript. No quotes means it's a number, not a string, and numbers that start with 0 are assumed to be octal (base 8). Even parseInt(063) will give you 51, since again, it assumes you mean octal. I suggest you either strip of the leading zero on the server side, and

[jQuery] Re: ajaxComplete() question

2007-08-16 Thread Pops
Thanks Mike for the followup. I pasted your info in my jQuery Yellow Notes l :-) Thanks again. --- On Aug 14, 7:01 am, Mike Alsup [EMAIL PROTECTED] wrote: Pops, The function that you bind to the ajaxComplete event actually takes 3 arguments. So yes, the documentation is wrong. The

[jQuery] Re: [ANNOUNCE] New jQuery Plugins Found

2007-08-16 Thread Andy Matthews
Most of those plugins don't work in IE by the way. -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Rey Bango Sent: Wednesday, August 15, 2007 4:14 PM To: jquery-en@googlegroups.com Subject: [jQuery] Re: [ANNOUNCE] New jQuery Plugins Found Its

[jQuery] Re: jQuery Form Plugin and Validation Form

2007-08-16 Thread Freud
Any ideas or suggestions? I really need a working form before the week-end :( Freud On Aug 16, 10:05 am, Freud [EMAIL PROTECTED] wrote: I have already tried the return false; but nothing changed :( Freud On Aug 16, 9:52 am, SeViR [EMAIL PROTECTED] wrote: I use another jQuery

[jQuery] Re: JSON String problem

2007-08-16 Thread Stephan Beal
On Aug 16, 3:27 pm, Erik Beeson [EMAIL PROTECTED] wrote: Yep, that's a feature of JavaScript. No quotes means it's a number, not a string, and numbers that start with 0 are assumed to be octal (base 8). Even parseInt(063) will give you 51, since again, it assumes you mean octal. I suggest

[jQuery] Dynamic Form Validation?

2007-08-16 Thread howa
Hello, anyone has idea how to do dynamic form validation? e.g. using http://bassistance.de/jquery-plugins/jquery-plugin-validation/ input name=t1 type=text / input name=t2 type=text / I only want to check for required field for t2 ONLY if t1 is equal to some value e.g. If t1 = test, then

[jQuery] Jquery cant manipulate inline TinyMCE. Why?

2007-08-16 Thread Mario Moura
Hi Folks I am trying use inline TinyMCE with Jquery. http://wiki.moxiecode.com/examples/tinymce/installation_example_05.php I follow instructions to make Jquery work with Other Libraries and its working. When I try manipulate elements into the inline doesnt work. If I print the script into

[jQuery] Re: [ANNOUNCE] tablesorter 2.0 released

2007-08-16 Thread Andy Matthews
Christian... This plugin works WONDERFULLY. It's quick, looks great (the demos do) and it will be a huge benefit to jQuery developers. I do have one critique though (and it's minor). On each demo page, I'd like to see a little more description of what's actually happening on the page.

[jQuery] Re: JSON String problem

2007-08-16 Thread Terry B
yes I know about strings and numeric conversions. I want to know is there a way to force json to force values to strings. I have played with the parser but it is a PITA and played with adding at the query level but that is too cumbersome. I can't believe JSon does not have any options or

[jQuery] Re: JSON String problem

2007-08-16 Thread Erik Beeson
JSON is just a text format. {foo: 'Bar'} *is* JSON. It sounds like the trouble you're having is related to how your JSON is being generated, which is an issue with your server side, not your client side. Out of curiosity, how are you generating your JSON? --Erik On 8/16/07, Terry B [EMAIL

[jQuery] Re: Function Outside Bound Event

2007-08-16 Thread Erik Beeson
What doesn't work about it? Is the venueSwap function getting called? Is the showMe function getting called? Are there any JavaScript errors in firebug? Are you calling venueSwap(randomVenue) from within a $(document).ready() callback? --Erik On 8/16/07, AJ [EMAIL PROTECTED] wrote: Hopefully

[jQuery] Re: [ANNOUNCE] New jQuery Plugins Found

2007-08-16 Thread Rey Bango
Did you email the authors to let them know? ;) Rey... Andy Matthews wrote: Most of those plugins don't work in IE by the way. -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Rey Bango Sent: Wednesday, August 15, 2007 4:14 PM To:

[jQuery] Re: Function Outside Bound Event

2007-08-16 Thread AJ
Okay, here is the fix: var t = setTimeout( function(){ $('#theatre').click(); }, 500); Apparently, flash just wasn't loaded in time. Which is weird, because you can click the image immediately and it's fine. I guess 500ms makes all the difference :)

[jQuery] What does Unobtrusive Javascript mean?

2007-08-16 Thread Pops
Ive seen this term referred to a few times, especially here: http://simonwillison.net/2007/Aug/15/jquery/ What does Unobtrusive Javascript mean? I am getting the idea that jQuery offers a way to bypass a user turning off JavaScript? How does jQuery do this? Thanks

[jQuery] Re: Function Outside Bound Event

2007-08-16 Thread AJ
That may actually be the better solution in the long run. Will try that.

[jQuery] stupid dev tricks: marking current page links

2007-08-16 Thread Stephan Beal
Hi, all! We've all attempted several different ways of highlighting navigation links which point to the current page. Often times we mark the page via our PHP by adding a class (e.g. currentPage) to the navigation link which points to the current page, or some such. Here's a slightly different

[jQuery] Re: What does Unobtrusive Javascript mean?

2007-08-16 Thread Stephan Beal
On Aug 16, 4:13 pm, Pops [EMAIL PROTECTED] wrote: Ive seen this term referred to a few times, especially here: http://simonwillison.net/2007/Aug/15/jquery/ What does Unobtrusive Javascript mean? Hi, Pops! google: what does unobtrusive javascript mean?

[jQuery] Re: What does Unobtrusive Javascript mean?

2007-08-16 Thread Tobias Parent
Hey, Pops - I'm actually getting ready to do a presentation on this - Unobtrusive Javascript and CSS. See, when a page is designed through MS-Word, for example, the CSS styles are embedded directly in the page (usually, directly in the element itself). This works, but it's ugly and not

[jQuery] Re: What does Unobtrusive Javascript mean?

2007-08-16 Thread Michael Price
What does Unobtrusive Javascript mean? I won't be the only one who answers this, I'm sure, but I'll try and explain it as best I can. As you'll probably be aware, a lot of users, due to personal preference, or firewall or proxy restrictions, browse the web without JavaScript, meaning

[jQuery] Re: JSON String problem

2007-08-16 Thread Stephan Beal
On Aug 16, 3:42 pm, Terry B [EMAIL PROTECTED] wrote: query level but that is too cumbersome. I can't believe JSon does not have any options or settings that force all values to strings. Anyone played with this at all? JSON is a no-logic data interchange format, not a language, so it neither

[jQuery] Re: Scrolling a div area without scrolling the page?

2007-08-16 Thread Kelvin Luck
Done! http://kelvinluck.com/assets/jquery/jScrollPane/scrollToSpeed.html The animation of the scrolling is very basic at the moment but it should do the job... At some point in the future I will think about trying to change the animation to use jQuery's animation function and the easing

[jQuery] Re: [SOLVED] jQuery Form Plugin and Validation Form

2007-08-16 Thread Freud
Well, it finally works ;) I tried an other syntax and it went good. Here comes the code, if it could help : $(#interv).validate({ errorContainer: $(#alertes), errorLabelContainer: $(#alertes ul),

[jQuery] Re: Scrolling a div area without scrolling the page?

2007-08-16 Thread Alexandre Plennevaux
Bravo! Now, everything is set to reproduce the infamous threeoh scroller by youngpup ! I'll set it up next week! (youngpup scroller: http://youngpup.net/projects/threeoh/demo.html) -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Kelvin Luck

[jQuery] Re: What does Unobtrusive Javascript mean?

2007-08-16 Thread Dan G. Switzer, II
Ive seen this term referred to a few times, especially here: http://simonwillison.net/2007/Aug/15/jquery/ What does Unobtrusive Javascript mean? Since you've already gotten some good description, I'll keep this short and show an example of the behavior from a popular site. The idea of

[jQuery] Re: [ANNOUNCE] New jQuery Plugins Found

2007-08-16 Thread Andy Matthews
I did not. -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Rey Bango Sent: Thursday, August 16, 2007 9:39 AM To: jquery-en@googlegroups.com Subject: [jQuery] Re: [ANNOUNCE] New jQuery Plugins Found But the real question is, did you email the

[jQuery] Re: stupid dev tricks: gzipping jQuery without mod_deflate

2007-08-16 Thread polyrhythmic
@Stephen: Nice trick, I'll be adding it to my bag! To all: If you're already using PHP includes and JSMin why not go all the way to Minify? I use Minify ( http://code.google.com/p/minify/ , thx rgrove) for my JS CSS. With jQuery, nearly all of us are using more than one JavaScript include,

[jQuery] Re: stop animation

2007-08-16 Thread serializer
Hi, I've been desperately needing to do this as well :) Thanks for the link, that's awesome! While I'm at it I'd like to extend huge thanks to all jQuery contributors for their very high quality work. --serializer On Aug 6, 3:10 am, eddy [EMAIL PROTECTED] wrote: you can use fx.js of

[jQuery] Re: Do my emails make it to the list?

2007-08-16 Thread polyrhythmic
Can I submit a request to be un-moderated? It's discouraging, as it seems I may post a response immediately, but my response can end up 3 or 4 responses down by the time it is visible, making the conversation irrelevant or incoherent. Although, if Google Groups is just delayed, moderation may

[jQuery] Re: stupid dev tricks: gzipping jQuery without mod_deflate

2007-08-16 Thread polyrhythmic
@Erik: (Damn this Groups post delay...) Minify does exactly that, but with CSS too. Minifying, caching, and single-request serving. On Aug 15, 2:32 pm, Erik Beeson [EMAIL PROTECTED] wrote: I cache the packed versions. Actually, I concatenate all of the scripts that I need for a page, minify

[jQuery] Array of numbers in contains()

2007-08-16 Thread bsuttis
Hi, I'm appending a word to a number like so: $(.field-item:contains('25')).append(': Extreme'); My question is, given that the numbers 20-25 all should append 'Extreme', is there an easier way than doing the following? $(.field-item:contains('25')).append(': Extreme');

[jQuery] Re: More (or less) than I bargained for

2007-08-16 Thread PappaSman
Or, you can try using something simple like ASPMail and having JQuery fire it after submission of the final question. Mix it with a little vbscript to store the variables for ASPmail and then once JQuery submits for the final time, you can send a simple plain text email or an html based email.

[jQuery] Re: from builtwith.com, with love: jquery leads ahead

2007-08-16 Thread polyrhythmic
jQuery is ALWAYS #1 for me Keep it up, jQuery! Charles On Aug 14, 6:44 pm, Ganeshji Marwaha [EMAIL PROTECTED] wrote: pretty neat... i hope the number keeps increasing drastically. -GTG On 8/14/07, schnuck [EMAIL PROTECTED] wrote: i know... but still not bad at all: MooTools

[jQuery] Re: Array of numbers in contains()

2007-08-16 Thread John Resig
This might be a case for writing your own custom filter function: $(.field-item).filter(function(){ return $(this).text().match(/2[0-5]/); }).append(': Extreme'); --John On 8/15/07, bsuttis [EMAIL PROTECTED] wrote: Hi, I'm appending a word to a number like so:

[jQuery] Re: Updated Plugin: jQuery Timers. jQuery-oriented setTimeout/setInterval

2007-08-16 Thread polyrhythmic
Just dual license with MIT and WTFPL! Google should accept, it'd be even less conflicting than MIT + GPL, since...WTF anyway? Well, that's what I recommend, but do wtf you want ;-) . Being the Creative Director for Double Rebel, I will have to research this maverick license. ...It's

[jQuery] Re: new Plugin every: jQuery-oriented setTimeout and setInterval

2007-08-16 Thread oliver
blair, these are really nice: the labels give excellent granularity, and I like the x times feature of the interval. but... where is the code? oliver On Aug 13, 3:09 pm, Blair Mitchelmore [EMAIL PROTECTED] wrote: So I actually wrote this plugin almost six months ago, but a few weeks ago I

[jQuery] Re: IE6 ActiveX bleed not working jQuery 1.1.3.1 jqModal r10

2007-08-16 Thread Duncan
Just in case this attachment didnt come thru I have put it up here http://www.sixfive.co.uk/jquery/modal.html No change either :-( it still doesnt seem to work. On 8/16/07, Duncan [EMAIL PROTECTED] wrote: I have a problem with IE6, jqModal r10 and jQuery 1.1.3.1. I cant get the Activex bleed

[jQuery] Help with safari :selected?

2007-08-16 Thread Pantti
Here is little script that works fine with IE and firefox, but not with Safari(3.0.3 windows Beta): var lasku_valittu = $(option#choise1:selected).length; if( lasku_valittu = 1){ alert('finds!'); } Problem with safari seems to be :selected. Without :selected script works just fine, but i

[jQuery] Re: stupid dev tricks: gzipping jQuery without mod_deflate

2007-08-16 Thread Erik Beeson
Right, just like that, but written in Java. I also do CSS, but that's just a matter of a few regexps. --Erik On 8/15/07, polyrhythmic [EMAIL PROTECTED] wrote: @Erik: (Damn this Groups post delay...) Minify does exactly that, but with CSS too. Minifying, caching, and single-request

[jQuery] Re: Documentation on $('#foo')[0] or $('#foo').get(0) ??

2007-08-16 Thread wick
It seems more intuitive and consistent than: $('#foo')[0].className; $('#foo')[0].size; $('#foo')[0].type; If you're repeatedly accessing the first DOM object of a jQuery selector array, it's a good practice to set a variable: var myObject = $('#foo')[0]; ..then you can access DOM

[jQuery] Re: What does Unobtrusive Javascript mean?

2007-08-16 Thread Pops
Oy Vey! First, thanks to all of you guys. Excellent Feedback. I love this jQuery group. I haven't had this much fun in months! g But I have a peeve, you see, this is what I hate about you Young Punks. g Reinventing things!! You know what this is called? - Modulization! - Consolidation!

[jQuery] Basic JSON help

2007-08-16 Thread jeff w
Hello, I am new to jQuery, and have started to play with JSON,but I need some info about how I refer to the JSON Object once it is returned from the server. I know I can loop through the contents of the object, and I can use json.count, but I am really unsure about the correct syntax to target

[jQuery] Error with jquery interface plugin

2007-08-16 Thread DMS
I'm using the window script here http://interface.eyecon.ro/demos/windows.html It works fine on one of my implementations, but on another when I click to trigger the window, the first time it works fine.. but when I close it... it appears to close twice, by flickering.. then when I open it

[jQuery] how to call selected object inside function calling

2007-08-16 Thread Dundee
Hi, I'm quite new to jQuery. I have one problem in my JS scripts and I don't know how to solve it. I have a cripts which binds click event of A (class delete_photo) with function delete_photo. This function needs to know who called it, or get the href attribute (to be able to use this href in

[jQuery] Re: Quick question...

2007-08-16 Thread MikeR
I received your email, Pops. Thanks for your input! I will see what SmartyPant has to offer. On Aug 16, 6:47 am, Pops [EMAIL PROTECTED] wrote: Mike, early I wrote a more detail message but when saving it, Google swallowed it up and it went into LALA land. I don't know if it was related by

[jQuery] Re: New jQuery Plugin - jQTreeTable unobtrusive Treetablemaker

2007-08-16 Thread John Resig
I've seen requests for this type of plugin frequently - I'd be interested in seeing a demo of this combined with the tablesorter plugin: http://tablesorter.com/ - that would make for a truly impressive demonstration. One quick item: I noticed that when I collapsed a parent item, all child items

[jQuery] Re: JSON String problem

2007-08-16 Thread Dan G. Switzer, II
Terry, yes I know about strings and numeric conversions. I want to know is there a way to force json to force values to strings. I have played with the parser but it is a PITA and played with adding at the query level but that is too cumbersome. I can't believe JSon does not have any

[jQuery] Re: Scrolling a div area without scrolling the page?

2007-08-16 Thread [EMAIL PROTECTED]
Oops, I'm a dork... I read... I'm just about to make an improvement which will allow you to pass in a jQuery selector for the object you want to scroll to as well as a pixel position - keep an eye on the following ticket to know when it's been added: http://jquery.com/plugins/node/348; ...and

[jQuery] Re: Basic JSON help

2007-08-16 Thread Erik Beeson
I'm not quite sure which part you're asking about. To get and interact with your example data, you could do something like: $.getJSON('/url/to/json', function(data) { for(var i = 0; i data.models.length; i++) { $('#output').append('div' + data.models[i] + '/div'); // or whatever you want

[jQuery] Re: JSON String problem

2007-08-16 Thread Erik Beeson
Deserializing JSON in JavaScript is as simple as running the code: eval(jsonString); While that's correct, you probably want to stick said deserialized object somewhere: eval('var json = ' + jsonString); console.log(json); Or some such. --Erik

[jQuery] Re: stupid dev tricks: marking current page links

2007-08-16 Thread Karl Swedberg
On Aug 16, 2007, at 10:16 AM, Stephan Beal wrote: This approach might also have an odd side effect due to the stripping of the domain name from window.location: you might end up marking external links as the current page, which would obviously be incorrect. How to generically solve that is left

[jQuery] Re: how to call selected object inside function calling

2007-08-16 Thread Erik Beeson
'this', in the context of your handler function, is the DOM node that triggered the event. You probably want something like: function delete_photo() { var url = this.href; // or $(this).attr('href'); ... } $('.delete_photo').bind('click', delete_photo); Usually this kind of thing is written

[jQuery] Re: prototype.js and jquery.js conflict problems? (Lightbox and Thickbox) simple?

2007-08-16 Thread Stephen P
Hey Sam, I'm not sure if you figured this out yet but here it goes. You cannot just paste the code example found on the jQuery site. You need to make a couple of adjustments so it is customized to your needs. As the documentation says, the $ character serves as a shortcut for jQuery. By using

[jQuery] Re: [ANNOUNCE] tablesorter 2.0 released

2007-08-16 Thread Deuce868
On Aug 16, 9:41 am, Andy Matthews [EMAIL PROTECTED] wrote: Christian... This plugin works WONDERFULLY. It's quick, looks great (the demos do) and it will be a huge benefit to jQuery developers. I do have one critique though (and it's minor). On each demo page, I'd like to see a little

[jQuery] Basic JSON help

2007-08-16 Thread jeff w
Hello, I am new to jQuery, and have started to play with JSON,but I need some info about how I refer to the JSON Object once it is returned from the server. I know I can loop through the contents of the object, and I can use json.count, but I am really unsure about the correct syntax to target

[jQuery] Re: Basic JSON help

2007-08-16 Thread Erik Beeson
Right, 'count' doesn't have any special meaning that I know of. What are you expecting it to be? Arrays have a special property called length, which you could access like json.models.length, but Objects (like your json variable), don't necessarily have this special property. --Erik On 8/16/07,

[jQuery] Re: JSON String problem

2007-08-16 Thread Terry B
well im using the serializer that came with mxajax... which is the one right off json.org i believe... ahh... i missed it.. *slaps forhead* duh, the serializer... ok, i see where I need to be looking... i was looking at the json.js serializer and not the mxajax serializer... thanks

[jQuery] Re: JSON String problem

2007-08-16 Thread Terry B
and here are the lines i have been searching for (i think, havent tried it but should be) if (issimplevalue(arg) and isnumeric(arg)){ return ToString(arg); } if (issimplevalue(arg)){

[jQuery] Re: JSON String problem

2007-08-16 Thread Erik Beeson
Yep. I ran into a similar problem with an XSL stylesheet that did XML to JSON conversion. I ended up ripping out all of the numeric detection stuff and just kept it all strings so I could deal with it reliably on the JavaScript side. Glad you got it worked out. --Erik On 8/16/07, Terry B

[jQuery] Re: IE6 ActiveX bleed not working jQuery 1.1.3.1 jqModal r10

2007-08-16 Thread Karl Swedberg
Hi Duncan, Take a look here: http://dev.iceburg.net/jquery/jqModal/jqModal.css If you don't have these lines in your own stylesheet, or if you don't include his, it won't work: /* Background iframe styling for IE6. Prevents ActiveX bleed-through (select form elements, etc.) */ *

[jQuery] Re: Documentation on $('#foo')[0] or $('#foo').get(0) ??

2007-08-16 Thread R. Rajesh Jeba Anbiah
On Aug 15, 11:29 am, pd [EMAIL PROTECTED] wrote: I've been hacking with jQuery on and off lately and I've now hit the annoying problem of not being able to access simple DOM 0 properties unless, apparently, using either of the following syntaxes: $('#foo')[0] Will throw error if there is

[jQuery] Re: Function Outside Bound Event

2007-08-16 Thread AJ
Called the javascript function from Flash, and that seems to be the best fix. Thanks!

[jQuery] Re: Documentation on $('#foo')[0] or $('#foo').get(0) ??

2007-08-16 Thread Erik Beeson
The point is to get the first DOM node, so you'd still need to do [0], which would still throw an error if there was no match. If you're not certain that there'll be a match, maybe something like this would be safer: var $foo = $('#foo'); if($foo.length 0) { var foo = $foo[0]; } else { //

[jQuery] Re: Basic JSON help

2007-08-16 Thread Michael Geary
From: jeff w I am new to jQuery, and have started to play with JSON,but I need some info about how I refer to the JSON Object once it is returned from the server. I know I can loop through the contents of the object, and I can use json.count, but I am really unsure about the correct

[jQuery] Re: Function Outside Bound Event

2007-08-16 Thread Erik Beeson
Awesome, glad it worked out. --Erik On 8/16/07, AJ [EMAIL PROTECTED] wrote: Called the javascript function from Flash, and that seems to be the best fix. Thanks!

[jQuery] Re: JSON String problem

2007-08-16 Thread Dan G. Switzer, II
Terry, and here are the lines i have been searching for (i think, havent tried it but should be) if (issimplevalue(arg) and isnumeric(arg)){ return ToString(arg); } if (issimplevalue(arg)){

[jQuery] Re: JSON String problem

2007-08-16 Thread Dan G. Switzer, II
Just be aware that this could cause you issues in the future when you do want to try and preserve your data types. The would think the better option would be to add a flag to your serialize to treat all simple values as strings. Boy, I need to start proof reading! What I meant to say is: Just

[jQuery] Re: stupid dev tricks: marking current page links

2007-08-16 Thread Stephan Beal
On Aug 16, 5:13 pm, Karl Swedberg [EMAIL PROTECTED] wrote: One way to avoid marking external links as the current page would be to begin with an if statement: if (location.hostname == 'www.mysite.com') { The main problem with that is you've normally got to add several domains: your test

[jQuery] Re: Documentation on $('#foo')[0] or $('#foo').get(0) ??

2007-08-16 Thread Michael Geary
I've been hacking with jQuery on and off lately and I've now hit the annoying problem of not being able to access simple DOM 0 properties unless, apparently, using either of the following syntaxes: $('#foo')[0] Will throw error if there is no match, IIRC. No, it won't. It is

[jQuery] Re: Basic JSON help

2007-08-16 Thread Erik Beeson
I assumed he was using $.getJSON or something similar that takes care of the eval'ing for you. --Erik On 8/16/07, Michael Geary [EMAIL PROTECTED] wrote: From: jeff w I am new to jQuery, and have started to play with JSON,but I need some info about how I refer to the JSON Object once

[jQuery] ajax - tabs plugin question: proper anchor tags

2007-08-16 Thread Geert Baven
Hi I am using the ajax version of klaus hartl tabs plugin. I try to do crosslinking between the files which are called ahah_1.html etc by using a href=ahah_2.htmllink/a this does not render properly. So what is the proper html to put in the anchor tag?

[jQuery] Re: Basic JSON help

2007-08-16 Thread Michael Geary
Oh, you're right, Erik, I wasn't paying close enough attention to the related thread. Jeff, skip the eval in the code I listed if it's coming from $.getJSON. :-) -Mike _ From: Erik Beeson I assumed he was using $.getJSON or something similar that takes care of the eval'ing for you.

[jQuery] Re: Documentation on $('#foo')[0] or $('#foo').get(0) ??

2007-08-16 Thread R. Rajesh Jeba Anbiah
On Aug 16, 8:55 pm, Michael Geary [EMAIL PROTECTED] wrote: I've been hacking with jQuery on and off lately and I've now hit the annoying problem of not being able to access simple DOM 0 properties unless, apparently, using either of the following syntaxes: $('#foo')[0] Will

[jQuery] Re: Selector Question should be easy (continued with online example)

2007-08-16 Thread Mitch
Awesome! I got it working and improved it: http://www.whatbird.com/wwwroot/Components/jQuery_How_Do_I_not3.html You can now see clicking any div other then div2 unfocuses div2 while clicking on div2 gives it focus again. And they said it could not be done! Thanks for the help. Mitch PS Karl

[jQuery] Re: What does Unobtrusive Javascript mean?

2007-08-16 Thread Mike Alsup
Another thought would be to embrace and use the terms that are popular today. Names change, even when the ideas remain the same. You can't fight that. This is nothing unique to software engineering, it's just human nature. I can't tell you how many times my parents have said to me, In my day,

  1   2   3   >