[jQuery] Re: Is any one else experiencing serious slowdowns on their site due to 'waiting for jqueryui.com' ?

2009-05-02 Thread Alexandre Plennevaux
Hi Stasch, Be careful before you blame others of wrong deeds... unless you enjoy making a fool of yourself. Make sure you check the issue is not from your side as there is absolutely no such code in jquery, nor in jquery-ui. My guess is that you did some wild copy/pasting from the jquery-ui demo

[jQuery] Re: problem filtering out via parents() and :not()

2009-05-01 Thread Alexandre Plennevaux
hi Ricardo! in fact i removed all code that was out of the realm of this issue, to not make you guys read 50 lines of codes. i keep the hasClass() suggestion though ! i don't understand why parents().is(':not("") does not work though. I wonder if there isn't a bug because it used to work before

[jQuery] Re: how can I call php function in jquery ?

2009-04-02 Thread Alexandre Plennevaux
you'd send to your ajax.php script a value that it can process such as ajax.php?do=delete&commentid=5 then your ajax.php : switch($_GET['do']){ case 'delete': // check for an id, delete it break; default: // do nothing; break; } On Thu, Apr 2, 2009 at 3:11 PM, dziobacz wrote: > > I have in

[jQuery] Re: Pointless but fun jQuery experiment

2009-03-26 Thread Alexandre Plennevaux
kelvin, that's wicked ! On Thu, Mar 26, 2009 at 11:37 AM, kanna wrote: > > Nice effects, Kelvin!! > JQuery Rocks!!! > > On Mar 26, 8:49 am, Nikola wrote: >> That was really neat... jQuery physics! >> >> On Mar 25, 11:40 pm, brian wrote: >> >> > I'll second that! >> >> > On Wed, Mar 25, 2009 at

[jQuery] Re: must show an element if exists

2009-03-26 Thread Alexandre Plennevaux
you don't have to do that check. If the element does not exist, the show() code will not be run. On Thu, Mar 26, 2009 at 4:40 AM, shobhitsoftskills wrote: > > hi, > > i am learning jQuery and confused about one thing.below is simple code > using jQuery. > >  "http://www.w3.org/TR/html4/strict

[jQuery] Re: jqmodal Ajax issue

2009-03-25 Thread Alexandre Plennevaux
1/ i would make sure the div exist before initalising the jqModal, so add the jqm initialisation to your createDiv function or through a callback executed when the createDiv is done.2/ for your specific question: your check is incorrect. The good use would be to use jqmodal onShow() callback and c

[jQuery] access :hover css properties of an element via jquery

2009-03-24 Thread Alexandre Plennevaux
hello! imagine i style the :hover pseudo-class of an element via css: .myitem{ background-color:green; } .myitem:hover{ background-color:red } Is it possible to retrieve the background-color property of the elemnent's :hover class via jquery? i tried the obvious : http://jsbin.com/idudi/edit

[jQuery] Re: how to load("text with the + sign in it")

2009-03-21 Thread Alexandre Plennevaux
q:myVar}); > the + sign should not be converted. Note that if you do this you're > POST-ing the data. > > On Mar 20, 5:14 am, Alexandre Plennevaux > wrote: >> Hello, i tried that, but htmlentities("A+") echos "A+", so it does not >> convert it. >

[jQuery] Re: how to load("text with the + sign in it")

2009-03-20 Thread Alexandre Plennevaux
Hello, i tried that, but htmlentities("A+") echos "A+", so it does not convert it. On Fri, Mar 20, 2009 at 4:06 PM, Martijn Houtman wrote: > > > On Mar 20, 2009, at 3:59 PM, Alexandre Plennevaux wrote: > >> i'm doing an ajax call via the load() f

[jQuery] how to load("text with the + sign in it")

2009-03-20 Thread Alexandre Plennevaux
friends, i'm doing an ajax call via the load() function. The fetched string contains the "+" sign, and it gets removed in the resulting html. Why is that? note: i'm using php. The only way i found to have the string shown, is to urlencode() it. But i don't want to urlencode() entire texts that sh

[jQuery] Re: Call for contributors: A simple, fast and flexible grid/spreadsheet component.

2009-03-17 Thread Alexandre Plennevaux
really impressive. As soon as it gets to a stable release i'll try it out on my addressbook application. the only thing i will miss is less semantic data (no use of a anymore). But i know all my users have javascript enabled. In that case, i guess it's not such a relevant criteria anymore. On Tu

[jQuery] Re: jScoll Pane and Hidden Divs

2009-03-13 Thread Alexandre Plennevaux
iv... > > On Mar 13, 12:41 am, Alexandre Plennevaux > wrote: >> yep it's correct: you need to initialise it then hide it. you could >> also position it outside the view port, initialise it, hide it, then >> position it back in the viewport to avoid the initial display

[jQuery] Re: jScoll Pane and Hidden Divs

2009-03-13 Thread Alexandre Plennevaux
yep it's correct: you need to initialise it then hide it. you could also position it outside the view port, initialise it, hide it, then position it back in the viewport to avoid the initial display. On Fri, Mar 13, 2009 at 6:43 AM, Nic Hubbard wrote: > > I have a hidden div that uses the .fadeI

[jQuery] Re: How to remove li inside UL

2009-03-09 Thread Alexandre Plennevaux
this is probably because your selector returns no object. show the html code you run your script against, to be able to properly diagnose. On Mon, Mar 9, 2009 at 11:53 AM, niraj wrote: > > Hi, > > I want to remove selected list items from a UL. Can i do using remove > (). > I get an error when i

[jQuery] Re: ajaxStart() question

2009-03-06 Thread Alexandre Plennevaux
e loading image. that way you could just use $ > (container).children(".loading") to traverse the DOM. > > or if for any reason you want to make them unique perhaps even build > an id for each loading image based on the container's id. (eg. cont1 > > cont1_Img or some

[jQuery] Re: ajaxStart() question

2009-03-06 Thread Alexandre Plennevaux
quot; graphic id, > or would a class identifier be sufficient? > > -Original Message- > From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On > Behalf Of Alexandre Plennevaux > Sent: Friday, March 06, 2009 10:31 AM > To: jquery-en@googlegroups.com &g

[jQuery] Re: ajaxStart() question

2009-03-06 Thread Alexandre Plennevaux
hi there, well, i trigger the ajax request much like this: no matter what they role is, all my interface buttons finish by an action called UI.refresh({section:'projects', sortby:'time', item:'love-me'}); this function compares the sent properties to the current UI stored properties, and if the

[jQuery] Re: ajaxStart() question

2009-03-06 Thread Alexandre Plennevaux
just in case it helps, here is the code i have so far: var $loadAnim = $('').appendTo('body'); $loadAnim.ajaxStart(function(el) { // the following behavior will be done each time an ajax call is triggered var $loadTarget = $('#container');

[jQuery] Re: ajaxStart() question

2009-03-06 Thread Alexandre Plennevaux
d() at > some point, you'll already have it to put in the callback? > > function doLoad(el, url) { >  var contEl = $(el) >  contEl .append(''); >  contEl .load( url, function(){ >    contEl .remove('#loadIcon'); >  }); > } > > load > > On M

[jQuery] Re: ajaxStart() question

2009-03-06 Thread Alexandre Plennevaux
yes, thanks but that does not help my specific need: what i need to know is if the ajax object stores the container in which it will load the content in a property that i can retrieve, so that the load animation goes on top of it. On Fri, Mar 6, 2009 at 11:11 AM, ryan.j wrote: > > oh and it may

[jQuery] ajaxStart() question

2009-03-06 Thread Alexandre Plennevaux
Hello! I would like to launch a function each time an ajax call is made, that places a "loading" throbber in the container in which the new content will be inserted. Typically, these will be $('#mycontainer').load() calls. I'm puzzled on how to detect the container upon calling my function. Some

[jQuery] Re: next() question

2009-03-04 Thread Alexandre Plennevaux
Thank you Ricardo, that's an illuminating break down. On Wed, Mar 4, 2009 at 5:20 PM, ricardobeat wrote: > > :after is used to insert generated content after an element, not to > select the next element. In your code, the :after(...) is doing > nothing, it reads as $('ul.tab-menu a').eq(index +

[jQuery] Re: next() question

2009-03-04 Thread Alexandre Plennevaux
wow, clever, that does the trick ! $('ul.tab-menu a.tab-menu-item-selected').parent().next().children('a.tab-menu-item').trigger('click.simplyTabs'); On Wed, Mar 4, 2009 at 4:58 PM, mkmanning wrote: > > next() finds the the unique next siblings for that element (in this > case their are none

[jQuery] Re: next() question

2009-03-04 Thread Alexandre Plennevaux
thanks i got it to work, sort of. $('#tabs img.albumImage').each(function(index) { var $img = $(this).data('tabindex', index); $img.click(function() {

[jQuery] next() question

2009-03-04 Thread Alexandre Plennevaux
Hello, say i have this markup: 0 1 2 3 4 < li>5 6 Arca 180 I need to find the anchor link that immediately follows a.tab-menu-item-selected. i tried using next but i never get it right $('a.tab-menu-item-selected').next('a.tab-menu-item')

[jQuery] Re: [plugin] jqModal +r14 updated

2009-03-01 Thread Alexandre Plennevaux
that's a nice upgrade Brice! On Sun, Mar 1, 2009 at 9:21 AM, Brice Burgess wrote: > > Plugin Page: http://dev.iceburg.net/jquery/jqModal/ > > updated jqModal to +r14 > > Changes include smart detection of the triggering element. This allows you > to call $.jqmShow() and $.jqmHide() within the

[jQuery] Advertising in jquery docs: normal?

2009-02-28 Thread Alexandre Plennevaux
Hi there, Since the docs are based on a wiki, i wonder if this is intended or not by the jquery team: on this page, the links chapter contains an incentive to buy a jquery book. http://docs.jquery.com/Removeclass see: " For more details buy the jQuery Reference Guide here in this site http://

[jQuery] Re: Horizontal animation works on F.F. IE7. Fails on IE6

2009-02-23 Thread Alexandre Plennevaux
in fact, i just tested it on IE6, and i can't even click on the form inputs, so i 'd assume either you disabled them, or there is a transparent div with a higher z-index that prevents from clicking it. On Mon, Feb 23, 2009 at 10:36 PM, Alexandre Plennevaux wrote: > can you check

[jQuery] Re: Horizontal animation works on F.F. IE7. Fails on IE6

2009-02-23 Thread Alexandre Plennevaux
can you check taht for IE6, the element is not ALREADY at position left=0 ? hence no animation? On Mon, Feb 23, 2009 at 6:22 PM, ab2qik wrote: > > Hi, > > Horizontal animation of an element works on F.F. IE7. It fails to work > on IE6? > > Example: > From: http://codesolv.net/se-update/library-s

[jQuery] Re: ui tabs : what are the only necessary CSS files ?

2009-02-23 Thread Alexandre Plennevaux
jQuery UI, we'd love to answer > them over here: > > http://groups.google.com/group/jquery-ui > > Thanks. > > - Richard > > On Mon, Feb 23, 2009 at 4:32 AM, Alexandre Plennevaux > wrote: >> >> Hi, >> >> I'm trying to use ui Tabs ,

[jQuery] ui tabs : what are the only necessary CSS files ?

2009-02-23 Thread Alexandre Plennevaux
Hi, I'm trying to use ui Tabs , but i don't need all the rest of the UI distribution, yet they all come into the generated download. I'm a bit lost in all those css files. What is the bare minimum css that i absolutely need to make the ui.tabs work? Thank you, Alexandre

[jQuery] Re: default value of an object's property

2009-02-18 Thread Alexandre Plennevaux
ok thanks a lot for all this. I'll summarize it in a blog post for my own recurring memory leaks :) On Thu, Feb 19, 2009 at 3:20 AM, RobG wrote: > > > > On Feb 19, 10:56 am, Alexandre Plennevaux > wrote: >> thanks a lot. But why did they made it so complex? do we real

[jQuery] Re: default value of an object's property

2009-02-18 Thread Alexandre Plennevaux
thanks a lot. But why did they made it so complex? do we really need the granularity to differenciate between "undefined", null, 0, "" and false ? On Thu, Feb 19, 2009 at 1:51 AM, RobG wrote: > > > > On Feb 19, 9:44 am, Alexandre Plennevaux > wrote: >>

[jQuery] Re: Javascript Generated by $()load does not render

2009-02-18 Thread Alexandre Plennevaux
t(resp); // leave for testing } ); }); On Wed, Feb 18, 2009 at 6:31 PM, Tim Johnson wrote: > > On Wednesday 18 February 2009, Alexandre Plennevaux wrote: >> you can use load, you just have to setup the ajaxSetup controlling >> your ajax main parameters so you set it to

[jQuery] Re: default value of an object's property

2009-02-18 Thread Alexandre Plennevaux
@josh: it works superbly. Thanks a lot for this elegant solution ! On Thu, Feb 19, 2009 at 12:44 AM, Alexandre Plennevaux wrote: > thanks guys, so if i understand correctly, an unset property, if > tested, returns "false". Correct ? > > On Wed, Feb 18, 2009 at 11:3

[jQuery] Re: default value of an object's property

2009-02-18 Thread Alexandre Plennevaux
ld also work, there is >> probably something else wrong in your code. >> >> - ricardo >> >> On Feb 18, 3:52 pm, "Josh Nathanson" wrote: >> >> > I think this might work, give it a try: >> >> > Obj.sortby = Obj.sortby || '

[jQuery] default value of an object's property

2009-02-18 Thread Alexandre Plennevaux
hi there, a quick question: i'm using an object to pass a series of variables. Sometimes, i test for a specific property, which might not exist. I can't seem to find the right way, i tried Obj.sortby = (typeof Obj.sortby == 'undefined' || Obj.sortby=='' ||Obj.sortby == null) ? 'time' : Obj.sort

[jQuery] Re: Javascript Generated by $()load does not render

2009-02-18 Thread Alexandre Plennevaux
, Tim Johnson wrote: > > On Tuesday 17 February 2009, Alexandre Plennevaux wrote: >> i suppose that you change try specifying the dataType as "script" that >> your ajax calls expect: >> >> Taken from: http://docs.jquery.com/Ajax/jQuery.ajax >> >> d

[jQuery] Re: Javascript Generated by $()load does not render

2009-02-17 Thread Alexandre Plennevaux
i suppose that you change try specifying the dataType as "script" that your ajax calls expect: Taken from: http://docs.jquery.com/Ajax/jQuery.ajax dataType The type of data that you're expecting back from the server. If none is specified, jQuery will intelligently pass either responseXML or res

[jQuery] Re: jquery context menu plugin: issue with find()

2009-02-16 Thread Alexandre Plennevaux
hi dave, thanks for the reply. In fact, it's my fault: i was calling the command against the wrong selector set. It has to be the context menu itself, not the element which triggers the context menu. it makes sense when you know it , but i wish i wouldn't have had to look into the online example

[jQuery] Re: Custom ScrollBar

2009-02-16 Thread Alexandre Plennevaux
i personally have no issue with jscrollpane and jquery 1.3.1 _ i use it extensively so i suggest that you recheck your code. On Mon, Feb 16, 2009 at 4:29 PM, Alexandru Dinulescu wrote: > Hello. > > I am looking for a custom vertical scrollbar plugin. I want to put it in a > fluid width / heig

[jQuery] jquery context menu plugin: issue with find()

2009-02-16 Thread Alexandre Plennevaux
Hi there, Please save the life of those few hairs left on my skull. I've been trying to understand why this doesn't work: i'm using the jquery Context Menu (http://abeautifulsite.net/notebook/80 ) to display a context menu which options vary according to each item. So i'm using a "data" custom

[jQuery] Re: ui.tabs question

2009-01-22 Thread Alexandre Plennevaux
n the meanwhile but any pointers would be time savers for me. Thanks a lot alexandre On Wed, Jan 21, 2009 at 11:30 PM, Alexandre Plennevaux wrote: > In that case, thank you Klaus for the preventive comment. > > On Wed, Jan 21, 2009 at 11:25 PM, Klaus Hartl > wrote: >> >>

[jQuery] Re: Download a file from server...

2009-01-21 Thread Alexandre Plennevaux
Well, AFAIK It HAS to be triggered by a click event on a A anchor, so, just make sure your onclick handler returns true. For the "force download" functionality, this writeup of mine might help you: http://www.pixeline.be/blog/2009/php-force-download-script-convert-url-to-localpath/ On Thu, J

[jQuery] Re: ui.tabs question

2009-01-21 Thread Alexandre Plennevaux
it and wonder why it wouldn't work. > > I'll try to quote better next time. > > --Klaus > > > On 21 Jan., 22:43, Alexandre Plennevaux wrote: >> Well, quite Frankly Klaus, i started this project 3 years ago and i >> used the tabs when it was but a plugin li

[jQuery] Re: ui.tabs question

2009-01-21 Thread Alexandre Plennevaux
lps >> >> $("#TabContainer ul.tabs").tabs().bind("select.ui-tabs", function(e, >> ui) { >> //Code inside here runs when tab is selected >> >> }); >> >> On Jan 21, 10:29 am, Alexandre Plennevaux >> wrote: >> >> >

[jQuery] Re: ui.tabs question

2009-01-21 Thread Alexandre Plennevaux
uot;select.ui-tabs", function(e, > ui) { > //Code inside here runs when tab is selected > }); > > > > > On Jan 21, 10:29 am, Alexandre Plennevaux > wrote: >> Hi all, >> >> I'm using ui.tabs and i would like to trigger a function when a tab is >&

[jQuery] ui.tabs question

2009-01-21 Thread Alexandre Plennevaux
Hi all, I'm using ui.tabs and i would like to trigger a function when a tab is clicked, or more precisely, when a new panel gets shown. I figured from the doc i should use the select callback but that does not work... HEre is the code i use var $tabs = $("#tabbedTextContent").tabs({

[jQuery] Re: Problems with the New API Browser

2009-01-16 Thread Alexandre Plennevaux
Well, i for one really love the new API interface _ such a much less noisy interface than the docs.jquery.com interface! clearer, snappier. it turns out i don't use the navigation menu much, i use the filter box mostly. that's probably why i'm not so annoyed by its limits. really liked the interfa

[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: 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: 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] 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: 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] 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: example on site, have question

2009-01-06 Thread Alexandre Plennevaux
Basically, what this snippet does, is 1/ adding a DIV element at the end of the BODY element; 2/ counting the new amount of DIV 3/ printing the string "there are XX dvis" in every SPAN element available in the DOM 4/ triggering the onclick() event so the script runs once on page ready. So the wh

[jQuery] Re: feature suggestion: .attr() without params returns the whole list of attributes

2009-01-06 Thread Alexandre Plennevaux
> Karl Swedberg > www.englishrules.com > www.learningjquery.com > > > > On Jan 6, 2009, at 11:06 AM, Ricardo Tomasi wrote: > > You can't see all data saved either.. > > On Jan 6, 12:01 pm, Balazs Endresz wrote: > > Why not use $(el).data()

[jQuery] feature suggestion: .attr() without params returns the whole list of attributes

2009-01-06 Thread Alexandre Plennevaux
I would like to suggest a feature to add to jquery attributes commands: I 'm using custom attributes to store UI states. At some point i would find it handy to be able to just console.log($(this).attr() ) to see all the attributes and their value. Not a groundbreaking change, but a nice -to-have.

[jQuery] animations staggering when $().load called _ advise please

2009-01-04 Thread Alexandre Plennevaux
Hello friends, I have a dropdown menu that animates horziontally each time you click on one its links. Some of them reveal a submenu, others load some html via ajax ($(container).load();) and others do both. I notice that animations tend to stagger when ajax calls are under progress . What wo

[jQuery] Re: Call object method onclick

2009-01-04 Thread Alexandre Plennevaux
this worked for me: http://jsbin.com/utahi On Sun, Jan 4, 2009 at 5:31 PM, fatslags2...@gmail.com wrote: > > function Viewer() > { > > }; > > Viewer.prototype.constructor = Viewer; > > Viewer.prototype = > { >getFullAreaId: function() { return this._fullAreaId; }, >setFullAreaId: functio

[jQuery] Re: event binding issue

2009-01-03 Thread Alexandre Plennevaux
ors); > >$('#'+index).bind('click', function() { > alert("hi"); >return false; >}); > > -Mike > >> -Original Message- >> From: jquery-en@googlegroups.com >> [mailto:jquery...@googlegroups.com] On Behalf Of

[jQuery] event binding issue

2009-01-03 Thread Alexandre Plennevaux
hello friends, i'm injecting a menu ( UL > LI > A markup) and binding each A anchor a click event, but the event fails to trigger. Can you explain me what i'm dooing wrong? here is the code sample: $('' + linkText + '').appendTo($dsanchors).attr({ 'href': '#' + index,

[jQuery] Re: setInterval(obj.method,200) problem: scoping?

2009-01-02 Thread Alexandre Plennevaux
ction later, it just calls it > as a plain old function, and "this" is the global/window object. > > Doesn't ActionScript work the same way? It may have a different global > object, but I thought most of the JavaScript semantics were similar except > for the ActionScrip

[jQuery] Re: setInterval(obj.method,200) problem: scoping?

2009-01-02 Thread Alexandre Plennevaux
sion of rescope() allows for passing an ambigious number of > parameters to the rescope'd function) and easier to work with when I'm > explicitly setting the execution scope. > > Regards, > Peter Higgins > > On Fri, Jan 2, 2009 at 8:06 PM, Alexandre Plennevaux > w

[jQuery] Re: setInterval(obj.method,200) problem: scoping?

2009-01-02 Thread Alexandre Plennevaux
setInterval and setTimeout call your callback function as a method > of the global object (which is the window object in a browser). Or another > way to put it is that they don't call the function as a method of any object > at all, and by default "this" is set to the glo

[jQuery] Re: setInterval(obj.method,200) problem: scoping?

2009-01-01 Thread Alexandre Plennevaux
hi Dave, thanks a lot for the feedback. The reason i'm not using the dom but rather more "conceptual" objects is because the application is quite complex, and its easier for my small brain to keep track of all variables as object properties. On Fri, Jan 2, 2009 at 2:02 AM, Dave Methvin wrote: >

[jQuery] Re: setInterval(obj.method,200) problem: scoping?

2009-01-01 Thread Alexandre Plennevaux
scape.move : mouseX = ' + this.mouseX); } } On Thu, Jan 1, 2009 at 3:46 PM, donb wrote: > > You should change 'move' to move (remove apostrophes). > > > On Jan 1, 9:01 am, "Alexandre Plennevaux" > wrote: >> Hello mates, >> >> i

[jQuery] setInterval(obj.method,200) problem: scoping?

2009-01-01 Thread Alexandre Plennevaux
Hello mates, i have an object datascape which among other things, contains a property storing the mouse position, and a function that uses that property. Inside another method i var datascape = { 'mouseX': 0, 'myInterval': 0, 'create': function(){ $('#datascape').bind('mousemove'

[jQuery] Re: Unable to populate my div in Firefox

2009-01-01 Thread Alexandre Plennevaux
try this: function doData(p_id,cat,cat_id,first,last){ var url = "doData.php?p_id="+ p_id +"&cat="+ cat +"&cat_id=" + cat_id; $('#doContainer').empty().load(url,function(htmlData,result)); if(result=="success"){ $(this).html(htmlData); }else{ $(this).html("ERROR LOADING "+url); } } On Thu, Jan 1

[jQuery] Re: A beautiful diagram

2009-01-01 Thread Alexandre Plennevaux
wow, that's an amazing library, some demos are really impressive! i like the polar clock for instance: http://raphaeljs.com/polar-clock.html thanks for the link ricardo ! On Wed, Dec 31, 2008 at 10:50 PM, Ricardo Tomasi wrote: > > raphael js might be of help: raphaeljs.com > > On Dec 31, 9:39 a

[jQuery] Re: HELP: Screening questions for JavaScript developer candidates:

2008-12-31 Thread Alexandre Plennevaux
friends, following what i learned in this post i'm busy rewriting my object. i have a specific question. in my old code i would have something like: var datascape = new Object(); datascape.ini = function(){ datascape.availableWidth = $(window).width(); } }; can i rewrite it like this: var

[jQuery] Re: Setting the request header contentType

2008-12-31 Thread Alexandre Plennevaux
did you try playing with the $.ajax scriptCharset option ? see: http://docs.jquery.com/Ajax/jQuery.ajax On Wed, Dec 31, 2008 at 1:27 PM, AdrianMG wrote: > > I am not pretty sure but I think you can work with UTF8 only in AJAX, > but I recommend you work with UTF8 always > > On Dec 30, 2:09 pm, R

[jQuery] Re: HELP: Screening questions for JavaScript developer candidates:

2008-12-31 Thread Alexandre Plennevaux
Kean and especially Michael, Thank you for sharing this very useful knowledge bit ! This must be the most insightful thread in a while :) Alexandre On Wed, Dec 31, 2008 at 8:49 AM, Kean wrote: > > Alexandre, > > Another word of caution. Do choose your labels carefully. Avoid > keywords. > Add

[jQuery] Re: HELP: Screening questions for JavaScript developer candidates:

2008-12-30 Thread Alexandre Plennevaux
> var datascape = {}; > var datascape2 = []; > > > On Dec 30, 1:27 pm, "Alexandre Plennevaux" > wrote: >> wair, you're all scarrying me: >> >> i often do things like this: >> >> var datascape = new Object(); >> >> datascape.

[jQuery] Re: HELP: Screening questions for JavaScript developer candidates:

2008-12-30 Thread Alexandre Plennevaux
Klaus is right, >> >> Here's an article about closure causing >> leakshttp://www.javascriptkit.com/javatutors/closuresleak/index.shtml >> >> On Dec 30, 4:38 am, "Alexandre Plennevaux" >> wrote: >> >> > Klaus, you got me: frankly i ha

[jQuery] selector question: how many ul above $(this) ?

2008-12-30 Thread Alexandre Plennevaux
hello mates, i have a multiple level dropdown menu, the markup is an unordered list of the likes: me me me me me me

[jQuery] Re: HELP: Screening questions for JavaScript developer candidates:

2008-12-30 Thread Alexandre Plennevaux
y consumer pragmatism. On Tue, Dec 30, 2008 at 1:28 PM, Klaus Hartl wrote: > > On 30 Dez., 08:45, "Alexandre Plennevaux" > wrote: >> "JavaScript enclosures"? >> >> i think it has to do with encapsulating your code inside a function so >> that

[jQuery] Re: HELP: Screening questions for JavaScript developer candidates:

2008-12-29 Thread Alexandre Plennevaux
"JavaScript enclosures"? i think it has to do with encapsulating your code inside a function so that all vars are inside the function's scope, so not cluttering the global namespace. This, to avoid memory leak. something the likes: (function(){ /// your code goes here })(jquery); I have abso

[jQuery] Re: load() callback only performs once every two click

2008-12-29 Thread Alexandre Plennevaux
isually if the load() was successful because on the 2nd time the > background is already red. > > On Dec 29, 9:07 pm, "Alexandre Plennevaux" > wrote: >> Strange... >> >> i'm loading html inside a div, and have this callback: >> >> $(

[jQuery] load() callback only performs once every two click

2008-12-29 Thread Alexandre Plennevaux
Strange... i'm loading html inside a div, and have this callback: $('#datascape').show().load('index.php?splash=labau',{}, function(html, result) { $('#datascape').css({background: 'red'}); }); yet, the callback per

[jQuery] Re: loading a DOM fragment via ajax

2008-12-29 Thread Alexandre Plennevaux
thanks it works indeed. one thing though: apparently, the load() call does load the entire html spitted by the server side script or html page, the selector is actually "just" trimming the loaded content. So it's not a reduction of the amount of data loaded, just a welcome help to reduce further d

[jQuery] Re: loading a DOM fragment via ajax

2008-12-29 Thread Alexandre Plennevaux
thank you Mike ! Now, i don't actually want to display the loaded content, just need to traverse it, and generate a submenu (one element per element found, using the h3 element attributes). Can i actually load it inside a variable? On Mon, Dec 29, 2008 at 10:47 PM, Mike Alsup wrote: > >> say

[jQuery] Re: HOW: jQuery AJAX to replace iFRAME

2008-12-29 Thread Alexandre Plennevaux
tunt wrote: > > I'm trying to do the same thing, the code you suggested works, but the > text on the page changes to what's in the html file I link to but then > the browser also moves to the page, how do i stop this? > On Dec 22, 1:51 pm, "Alexandre Plennevaux&

[jQuery] loading a DOM fragment via ajax

2008-12-29 Thread Alexandre Plennevaux
Hello Friends, say i have a html file containing a #viewPort div, with a series of divs each containing an h4 tag. If the file was not external, i would simply select what i need like this: $('#dsViewport h3'); Now, it is an external file, so my question is: is it possible to load this file v

[jQuery] Re: Getting a menu item Li to do 2 things at once? onclick AND regular href trigger?

2008-12-29 Thread Alexandre Plennevaux
really? I thought one had to namespace an event for it not to overwrite previously set behaviours. $('a').bind('click.scroll',function(){ scrollTo(moon); }); $('a').bind('click.alert1',function(){ alert('Me works too'); }); }); On Mon, Dec 29, 2008 at 5:06 PM, Ricardo Tomasi wrote

[jQuery] Re: Hiding a div with content loaded via .load function

2008-12-29 Thread Alexandre Plennevaux
you have to make sure the DOM element (i.e. your close button) is available when you define your "close()" function. or use the livequery plugin. or use event delegation. On Mon, Dec 29, 2008 at 4:09 AM, amnesia440 wrote: > > Hello. > > I am trying to load a login form into the #login_pop_box di

[jQuery] Re: Please help with navigation script

2008-12-28 Thread Alexandre Plennevaux
hi pranshu, it's hard to tell exactly, you could optimize a bit more your code, and use variable caching for example. In this regard, I find this post to be really helpful: http://www.tvidesign.co.uk/blog/improve-your-jquery-25-excellent-tips.aspx anyway, does the problem occur if you comment ou

[jQuery] Re: Code not working in IE but is working in FF

2008-12-28 Thread Alexandre Plennevaux
27;m sorry but that doesn't seem to work. Note that setting >> > opacity to zero works in both browsers. >> >> > On 28 Dec, 01:25, "Alexandre Plennevaux" >> > wrote: >> >> really not sure, but maybe try >> >> >>

[jQuery] Re: Code not working in IE but is working in FF

2008-12-28 Thread Alexandre Plennevaux
browsers. > > On 28 Dec, 01:25, "Alexandre Plennevaux" > wrote: >> really not sure, but maybe try >> >> A/ >> >> 1- (step/1) instead of 1-step/1 >> >> B/ >> >> $("#slogan").css('opacity',0); inst

[jQuery] Re: Code not working in IE but is working in FF

2008-12-27 Thread Alexandre Plennevaux
really not sure, but maybe try A/ 1- (step/1) instead of 1-step/1 B/ $("#slogan").css('opacity',0); instead of $("#slogan").css('opacity','0'); On Sun, Dec 28, 2008 at 1:04 AM, Althalos wrote: > > I posted something similarly before but I posted wrong code. This > time, everythi

[jQuery] Re: I wrote a YUI Multi FIle Compression Utility

2008-12-23 Thread Alexandre Plennevaux
out of your code (line breaks, > spaces, comments), optimizes private functions/variables, and returns > a non-encoded, single line output. > > On Dec 23, 12:03 pm, "Alexandre Plennevaux" > wrote: >> it sounds very interesting, but i'm quite puzzled on how to do

[jQuery] Re: I wrote a YUI Multi FIle Compression Utility

2008-12-23 Thread Alexandre Plennevaux
it sounds very interesting, but i'm quite puzzled on how to do it correctly. i'm interested in reducing the load time of my websites but i don't really master these compression logics. I would have assumed i'd have to point to the html file loading the js+css files but your app seems to look for f

[jQuery] Re: JQuery Spell Checker plugin

2008-12-23 Thread Alexandre Plennevaux
even simpler: right-click > view source. http://brandonaaron.net/jquery/plugins/spellcheck/jquery.spellcheck.js On Tue, Dec 23, 2008 at 5:12 PM, MorningZ wrote: > > "Any idea how to get this plugin" > > - Load up Firefox and Firebug (which you should have as a JavaScript > developer) > - Pul

[jQuery] Re: question

2008-12-23 Thread Alexandre Plennevaux
did you try listing the arguments array within each detected function ? On Tue, Dec 23, 2008 at 1:18 PM, Dirceu Barquette wrote: > Thanks. > You are right! > But, do you have any suggest? > > Thank you! > > Dirceu Barquette > > 2008/12/23 MorningZ >> >> Advice: more specific subject lines than

[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: Masked Input Plugin 1.2.1 Released

2008-12-22 Thread Alexandre Plennevaux
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 Plennevaux >> >> wrote: >> > Josh, these are very cool additions, love the Ne

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

2008-12-22 Thread Alexandre Plennevaux
n the "about us" link. As far as I can tell, addClass is > running, but the page is not actually rendering the change, and Firebug is > not showing the class in the HTML inspector. > > Right-click on the "what we do" link, select "Inspect Element", then click >

[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

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

2008-12-22 Thread Alexandre Plennevaux
jared, your website is supernice and promising, but i for one don't understand anything about your problem description. i think either you're lacking sleep or you wrote too fast :) Can you rephrase please, for people that don't yet know your website internals (or lack sleep themselves ) ?can you a

  1   2   3   4   5   6   7   >