[jQuery] Fix for Giva Labs linkselect plugin

2009-09-25 Thread boermans
We noticed an issue with the jquery.linkselect plugin (version 1.2.08) today. When the container width would cause it to be positioned off the the screen it is repositioned incorrectly if there is no title element. I fixed this in anchorTo function by instead adding the width of the anchor if

[jQuery] Giva labs linkselect right positioning with no title fix

2009-05-05 Thread boermans
The logic baked into the linkselect plugin http://www.givainc.com/ labs/linkselect_jquery_plugin.htm for avoiding the options container from being cropped by the right hand edge of the page fails if there is no title assigned to the select. I’m writing to share a change to fix it. Modified

[jQuery] How does the form plugin (or jquery?) determine if a server response is an error or success?

2009-04-06 Thread boermans
In my particular scenario, the form plugin http://www.malsup.com/ jquery/ is triggering the specified success function, despite the server returning a 409 conflict error (as seen in Firebug). The error itself is okay - that’s what I am expecting given the content of the form. I’m trying to

[jQuery] Re: fade and other effects don't work...

2009-04-06 Thread boermans
On Apr 6, 6:18 pm, gostbuster jeremyescol...@gmail.com wrote: Here is my test code : script type=text/javascript $(function (){ $(#effet).click(function (){         $(this).fadeOut(slow);         $(this).fadeIn(fast); });}); /script div id=effetbonjour/div When I click, the div

[jQuery] Re: slideToggle multiple

2009-04-06 Thread boermans
On Apr 6, 9:03 pm, mike michaelpi...@googlemail.com wrote: created the following code which works ok but its only for 1 elements (more1/less1) but i want it to work for x number of boxes, e.g. more2/ less2, more3/less2 without having to code some jquery for each. here is the code:        

[jQuery] Re: How does the form plugin (or jquery?) determine if a server response is an error or success?

2009-04-06 Thread boermans
On Apr 7, 4:54 am, Mike Alsup mal...@gmail.com wrote: Where Firebug has recognised the server response text as json - but the form plugin (or jquery) is still reporting success. Obviously there is more to this than I understand. All clues and guesses are very welcome as this is new

[jQuery] Is this list too busy? jQuery list for your time zone

2009-02-04 Thread boermans
The time when I at least skimmed every message on this list in long gone. As jQuery becomes more and more popular, making your voice heard here gets increasingly difficult. Could time zone or locality be a useful way to divide the flow more effectively? Like local(ish) jQuery groups. What

[jQuery] Re: Is this list too busy? jQuery list for your time zone

2009-02-04 Thread Oliver Boermans
2009/2/4 jQuery Lover ilovejqu...@gmail.com: I receive emails from the list and easily keep track of my postings in gmail. You can click on Sent mail and see if you have any replies in thread you've posted... Ah, perhaps the mistake I have been making is sending and reading my messages in

[jQuery] Re: How to get html string including the selected element

2009-02-02 Thread boermans
On Feb 2, 9:14 pm, Andy789 e...@abcstudio.com.au wrote: Thank you. I think it should work - I will give it a try tomorrow. The whole mess is just to store these html strings in the database and extract it later to render a part of the page. any better solutions for this? I suppose the

[jQuery] Re: Convert jquery object to a string

2009-02-02 Thread boermans
On Feb 2, 6:21 pm, Andy789 e...@abcstudio.com.au wrote: Json parser?http://plugins.jquery.com/project/json any better solutions? Is this related to your other post? http://groups.google.com/group/jquery-en/browse_thread/thread/835b16fc688ae1a0

[jQuery] Re: How to get html string including the selected element

2009-02-02 Thread boermans
On Feb 2, 7:13 pm, Andy789 e...@abcstudio.com.au wrote: I need to get html for a dom structure like this: $('div#test').html(); it generates its innerHTML excluding div id=test How an I get the whole structure including id test? Good question - although... What are you doing with the

[jQuery] Re: Need to make a edit layout system using php and jquery...?

2009-02-02 Thread boermans
On Feb 2, 8:19 am, shyhockey...@gmail.com shyhockey...@gmail.com wrote: Can I do it using jquery or no??? jQuery will certainly reduce the amount of code you might otherwise need to write to make it happen. Well worth your while to learn if that’s what you wan to do. Make sure you start as

[jQuery] Re: Dynamic url in ajax call based on select value

2009-02-02 Thread boermans
On Feb 2, 5:20 pm, James james.tilb...@gmail.com wrote: But let's say I want to append an extension to pizza.  For example I want pizza.json, or pizza_1.js. How do I get this extra string text into the ajax option above? I have tried + notation, various combinations of brackets, etc.  But

[jQuery] Re: How to get html string including the selected element

2009-02-02 Thread boermans
On Feb 2, 7:50 pm, Frederik Ring frederik.r...@gmail.com wrote: So you could just either wrap it in a dummy-div or add the div id=test and /div code manually? Something like this should do the trick. $('div').append($('#test').clone()).html(); Not sure if jQuery disposes of the new node and

[jQuery] Re: cfdiv and jQuery

2009-01-30 Thread boermans
On Jan 31, 8:33 am, Richard rich...@visual-style.co.uk wrote: so I use $('.userListItem:eq(0)') to select the first occurence of a div with the userListItem class. This doesn't work when the item is within a cfdiv, but it does work if I put the item outside a cfdiv. Sorry, what is a cfdiv?

[jQuery] Feedback request: Bigger Link plugin updated for jQuery 1.3

2009-01-29 Thread boermans
Hey all, Back in 2007 I published a jQuery plugin called Bigger Link to make it easy to extend the clickable area of links. http://plugins.jquery.com/project/biggerlink I have rewritten it to take advantage of jQuery 1.3 (which it requires), fixing a bunch of sloppiness and attempting to make

[jQuery] [validate] Test element validation without triggering error message display?

2008-09-12 Thread boermans
How would I check if the value of a given text field is valid according to the rules specified with the Validation plugin (returning true or false) without triggering validation? Like using validation().element(el) or $(el).valid() - purely for the returned boolean - without the error message

[jQuery] jquery-1.2.6.pack.js broken?

2008-06-05 Thread boermans
Attempting to use jquery-1.2.6.pack.js linked from http://docs.jquery.com/Downloading_jQuery resulted in a lot of $ is not defined errors for me. The good news is using http://dean.edwards.name/packer/ to pack the uncompressed version ( jquery-1.2.6.js ) worked nicely. Perhaps a problem with

[jQuery] Re: New object based on existing / Or understanding $.extend

2008-05-14 Thread boermans
Brilliantly documented Wizzud! thank-you On May 9, 6:06 pm, Wizzud [EMAIL PROTECTED] wrote: There's a bit of an oddity here (actually I think it's a bug, but still...). Conclusion: - if your original object contains objects/arrays, you can'textend() it into an empty object - you have

[jQuery] New object based on existing / Or understanding $.extend

2008-05-08 Thread boermans
Stretching my grasp of JavaScript here... Please view source of this for context: http://static.fusion.com.au/ollie/jquery/extend/test.html $.fn.test = function() { // Creating what I thought was a new object var dupe = $.extend({},$.fn.test.orig);

[jQuery] Re: thickbox + more jquery issue

2008-05-08 Thread boermans
If thickbox provides a callback function you should define the rollover behaviour within that. This will ensure the element/s to receive the events are present in the page when the events are attached. Or try attaching your rollover event with this plugin:

[jQuery] Re: jQuery Templates

2008-04-30 Thread boermans
Thanks Stan! jQuery template is helping make my code much easier to read. I have a question regarding it’s use. Have a look at this somewhat contrived code: var master = 'div${include}/div'; var parts = { says : 'Hello world!', include : 'p${variable}/p' }

[jQuery] Re: jQuery Templates

2008-04-30 Thread boermans
Apologies for my broken example above :/ 2008/5/1 Oliver Boermans [EMAIL PROTECTED]: I'm looking for a way to run the template.apply function _outside_ of the dom related methods. I had another poke around the code of jquery.template.js and Firebug and managed to coax out what I was looking

[jQuery] Re: Modifying Cycle plugin to first check next slide image is loaded

2008-03-26 Thread boermans
Okay I figured it out I think, at least for my simple use of the plugin: On Mar 26, 3:02 pm, boermans [EMAIL PROTECTED] wrote: Can anyone provide any tips as to what approach I should take to do the same with the more complex Cycle plugin: Added: if( $(next).find('img')[0].complete

[jQuery] Modifying Cycle plugin to first check next slide image is loaded

2008-03-25 Thread boermans
Hi jPeople, Switched from innerFade to use the Cycle plugin's pause and resume functionality. Works great thank-you! I am looking for a way to check if the image contained by the next slide is loaded before displaying it. The lovely fade effect falls flat when the next image is only half

[jQuery] Re: click() not binding to appended elment

2008-03-25 Thread boermans
The problem is that when you run: $('img.remove').click(function() { console.log('test'); return false; }); The image you are attempting to bind to doesn't exist. To get around this you will need to bind the remove function after adding the player. There's a few ways to do this -

[jQuery] Re: Bigger Link Plugin

2008-01-11 Thread boermans
Your solution is okay providing you don't have many links to maintain. If at some point you need to change a url you (or whoever has the job) will have to make the change in two places. Given a bit of time this kind of thing is very easy to forget! Anyway, that's enough pimping of my own plugin

[jQuery] Re: Bigger Link Plugin

2008-01-10 Thread boermans
Your HTML is invalid (block level element div, inside an inline element a). Fortunately this is an excellent example what the biggerlink plugin was created to do. You can rearrange your HTML to something like: div class=testBiggerLink a href=/test.cfmClick Here/a to ... bgo here/b

[jQuery] Re: height of a hidden element

2008-01-06 Thread boermans
You may be able to determine the height while the divs are still visible - before applying the cycle plugin. Avoid the likely flicker by moving the divs temporarily out of view (to one side rather than hidden). Bringing them back into view after applying the cycle plugin. I have not used the

[jQuery] Re: height of a hidden element

2008-01-06 Thread boermans
I was thinking of innerfade http://medienfreunde.com/lab/innerfade/ hope that helps On Jan 7, 2:16 pm, boermans [EMAIL PROTECTED] wrote: I could be thinking of the wrong plugin?

[jQuery] Re: Store meta data in jQuery?

2007-11-05 Thread boermans
Wizzud that is _exactly_ what I was looking for! Thank-you! I see this being particularly useful for storing references to other DOM elements. For example to store a reference on each paragraph to it's previous sibling: !-- HTML -- pItem 1/p pItem 2/p !-- save ref to item 1 --

[jQuery] Re: Selectors

2007-11-05 Thread boermans
Perhaps this: $('img',e).attr({src: path/to/image}); Where img is the tag for your image and the comma ',' after the 'img' indicates that this selector is relative to 'e' (i.e. inside it). BTW there is no such beast as a href tag - href is an attribute of an a tag. In the same way 'src' is an

[jQuery] Re: Store meta data in jQuery?

2007-11-04 Thread Oliver Boermans
Thanks Mike, can the metadata plugin be used to store variables determined on load for later use? So when the variables are subsequently required the code to retrieve them is simple and quick. Cheers Ollie On 05/11/2007, Mike Alsup [EMAIL PROTECTED] wrote: Is there a relatively simple plugin

[jQuery] Re: Store meta data in jQuery?

2007-11-03 Thread boermans
Is there a relatively simple plugin that takes advantage of jQuerys expando management that anyone can recommend as an example? The most promising information I have discovered is in the release notes of jQuery 1.2 where John mentions jQuery.data() : http://

[jQuery] New plugin: Bigger link

2007-10-23 Thread boermans
A simple one - but hopefully useful? http://jquery.com/plugins/project/biggerlink

[jQuery] Re: Adding a delay between .each() function executions

2007-09-04 Thread Oliver Boermans
Damn you cut and paste! Funny white space characters to blame :/ I don't understand the js well enough to figure out why...

[jQuery] Re: Adding a delay between .each() function executions

2007-09-04 Thread Oliver Boermans
Champion Franck! Your code working beautifully in Safari/Mac. To my js console at least - I have a little work to put it all together. Regarding the Mac... Keep asking - if you don't the answer is always no!

[jQuery] Adding a delay between .each() function executions

2007-09-03 Thread boermans
I'm looking for a tidy way to call a function to iterate over a group of DOM elements, with a small delay after the function completes before it is called again with the following element. Pseudo code: == $(elems).each(function(){ $(this).dostuff(); // wait a moment //

[jQuery] Re: @import vs link

2007-08-19 Thread boermans
Link is the more flexible option. The media and rel attributes give you some control that @import lacks. Generally I use import now as an organisational tool - linking in separate CSS files from _within_ a central CSS file. I remember years ago using the import to hide CSS from the likes of IE3.

[jQuery] Re: Simple new plugin seeking feedback

2007-06-03 Thread boermans
Thanks guys - I've added a link to a blog post with some documentation of the use of autolineheight it the jQuery plugin page: http://www.ollicle.com/2007/jun/03/jquery_lineheight_flexible.html

[jQuery] Re: I asked out of curiosity.

2007-06-03 Thread boermans
Maybe something like this? (not tested) $('.children0').each(function(){ $(this).prepend($(this).parent().prev('.myclass').text()); }); On Jun 3, 11:26 pm, Mario Moura [EMAIL PROTECTED] wrote: I have a group of div's with same class. div class=myclassMY TEXT 1 /div div

[jQuery] Simple new plugin seeking feedback

2007-06-02 Thread boermans
My first jQuery plugin is finally operational! It adjusts the line-height (CSS) of text in proportion to container width. Demo here: http://www.ollicle.com/eg/jquery/autolineheight/ Is there anything I can/should do to improve the structure of my plugin code:

[jQuery] jQuery plugin structure help

2007-05-28 Thread boermans
Hi all, I'm attempting to take the next step into my understanding of jQuery (and JavaScript for the matter) by putting together a simple plugin. Although all the bits are in place; I'm having trouble bringing it all together in a satisfactorily elegant package. This is what I have so far:

[jQuery] Re: ANN: jQuery-Powered Sites: The List Continues to Grow

2007-05-16 Thread boermans
Another for the list - put together by my friends and colleagues at Fusion for another Adelaide crew: Krix speakers http://www.krix.com.au/ (Note: I believe there are some outstanding issues in Safari.)

[jQuery] Selector to find previous element of a kind - sibling or otherwise

2007-04-15 Thread boermans
Hi all, I'm attempting to write a script which makes changes to image positioning depending on attributes of previous images within a portion of a document. To do so I'm looking for a way to select the previous image relative to each image in the order in which they appear in the document.

[jQuery] Re: Showing a bind(click...) as clickable

2007-04-15 Thread boermans
Crudely, something like this: $('#prev').css('cursor','pointer').bind('click', function() {...} Adding a class may be preferable if you wish to provide further visual cues (such as a border) to your clickable images. $('#prev').addClass('clickable').bind('click', function() {...} And

[jQuery] Re: Round corners and jQ conversion help

2007-04-15 Thread boermans
Yeah, without digging into the complexity of the applied CSS that markup seems a little heavy handed. Of course the original code may have been tested in a greater range of quirky browsers than you have at hand :) I presume the class of the outer-most div in your example structure is supposed to