[jQuery] Re: plugin creation question

2008-02-15 Thread Joel Birch
Maybe the problem is from attaching your 'options' property to the jQuery object? I've been storing an element's options in an array and just attach the index integer (or 'serial') to the DOM element so you can then do something like this to retrieve an element's unique options object: var myOpts

[jQuery] Re: Fading effects and anti aliasing in IE/Opera

2008-02-15 Thread Karl Swedberg
in IE 6, make sure the element being faded has an background color defined. Just four days ago on this list, Mike Alsup provided a solution for the problem in IE 7: But for IE7 you need to remove the opacity filter after the animation completes: $('#myDiv').fadeIn(function() { if

[jQuery] Re: in IE, cannot copy from draggable modal layer

2008-02-15 Thread Scott González
This is a problem with IE and absolutely positioned elements. Try making a page with an absolutely positioned element that has some text in it. For some reason, you won't be able to properly select the text. I'm actually amazed that I've never come across this before. On Feb 11, 9:09 am, Schm

[jQuery] Re: Help making this code snippet smaller...

2008-02-15 Thread Nazgulled
You are right, sorry. Thanks for all your help! On Feb 16, 12:02 am, Ariel Flesler <[EMAIL PROTECTED]> wrote: > I think you didn't check well, I removed comments and line breaks for > my own clarity, but you were using each and repeating $(this) and that > was unnecesary. > > Ariel Flesler > > N

[jQuery] Re: How to dynamically load jQuery plugins?

2008-02-15 Thread Nazgulled
I'll have to test it out one more time using your code and see what happens... Thanks. If anyone else as any other ideas... On Feb 15, 11:33 pm, Jamie <[EMAIL PROTECTED]> wrote: > To be honest, I only dev on Windows in IE 6.. It's an internal web > site so we get to force certain client elements

[jQuery] Re: How to dynamically load jQuery plugins?

2008-02-15 Thread Jamie
To be honest, I only dev on Windows in IE 6.. It's an internal web site so we get to force certain client elements :) On Feb 15, 3:03 pm, Nazgulled <[EMAIL PROTECTED]> wrote: > I thought I had done that (some time ago) and just recently it stopped > working. Does that code works cross-browser and

[jQuery] Re: Selecting Parent

2008-02-15 Thread Jamie
Hey, I would change your .parents("a") to .parent() (unless you expect the img to be buried sometimes..). But to get the title, do this.parents("a").attr("title"); - Jamie Goodfellow On Feb 15, 4:44 pm, Steve Davis <[EMAIL PROTECTED]> wrote: > i have a table of linkedthumbnailed images like

[jQuery] Re: Selecting Parent

2008-02-15 Thread Steve Davis
nevermind. i found out it's as easy as using "$ (this).after(this.parentNode.title);" On Feb 15, 1:44 pm, Steve Davis <[EMAIL PROTECTED]> wrote: > i have a table of linkedthumbnailed images like this... > > rel="top_shelf.html" class="cluetip"> width="150" /> > > i want to dynamically add a text

[jQuery] Unable to interact with page after fade

2008-02-15 Thread 4lun
Hi, I've been trying to create a 'splash page' using jquery, and I've managed to code everything for it myself (meaning I've just looked through a ton of tutorials and examples). Basically I have a logo appear on screen, this then fades into the background and the content then fades in, the probl

[jQuery] Re: Problem with namespacing plugins

2008-02-15 Thread Jamie
So I'm probably just showing my ignorance, but why isn't that chainable? - Jamie Goodfellow On Feb 15, 1:44 pm, [EMAIL PROTECTED] wrote: > Hi, I have a a problem that I don't really know how to take care of. > > I want to do something like this > > $.fn.myNamespace = { >  myVar : 'test' > > };

[jQuery] Re: prepend - but make second item instead of first

2008-02-15 Thread Jamie
Hey, The following code will let you build your row, then insert it after the first (assumed to be header) row. // Build your row here: var row = "blah"; $("#yourTable tr:first").after(row); You might want to change your table to be of the format: ... . T

[jQuery] Re: prepend - but make second item instead of first

2008-02-15 Thread Steve Davis
i would make the first row a "th" then have it do a $("th").after(add your TR here); but im a total newbie to javascript and jquery On Feb 15, 2:48 pm, Shelane <[EMAIL PROTECTED]> wrote: > I would like to add a row to a table. The first row is a header. So > I want to add it just under the hea

[jQuery] Re: prepend - but make second item instead of first

2008-02-15 Thread ajpiano
$("tr#header").after("new content"); if you use semantically correct table structure, you could just prepend your new row to the top of the tbody, where it'd obviously be after the header... Header Content $("tbody").prepend("new content"); i'd assume these both should work... --adam

[jQuery] How to keep focus on input field after change?

2008-02-15 Thread cliff
I would like to keep the cursor in an input field after a change. I tried the following, but it doesn't work. The change even is activated, and "do stuff" works, but the focus does not go back to the input field. Does anyone have suggestions? $(function() { $(":input).change(function() {

[jQuery] result of 1.5b sortable("serialize"), into an array of id?

2008-02-15 Thread henry
I'm not familiar with the format of the result of sortable("serialize"). See demo: http://dev.jquery.com/view/trunk/ui/demos/ui.sortable.html , click "Serialize!" How to convert it into an array of id? Thank you!

[jQuery] Re: a small accessibility rant

2008-02-15 Thread [EMAIL PROTECTED]
Very clearly argued, Chris - and this is too often forgotten! " > Following current best practices (starting with content, then adding > style and behavior on top of that) goes a long way toward > accessibility. > > (Also, keep in mind that accessibility isn't only for the benefit of > people wit

[jQuery] Re: tabs: replacing the content without switching the selected tab

2008-02-15 Thread Klaus Hartl
Try: $('#replaceContent').click(function() { $('#tabcontent div.ui-tabs-panel:visible').html('hello'); }); --Klaus On Feb 15, 11:24 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Hi, > > Let's say I have these tabs and code that makes them so ... > > >         $(function() { >    

[jQuery] Re: if (! someThing.fired ) {

2008-02-15 Thread [EMAIL PROTECTED]
Oh, OK What a shame! Thanks, Josh :) Josh Nathanson wrote: > It looks like he is using 'fired' as a property, it's not native to > javascript. > > It's just a way of indicating that an event has occurred. > > -- Josh

[jQuery] Re: Help making this code snippet smaller...

2008-02-15 Thread Ariel Flesler
I think you didn't check well, I removed comments and line breaks for my own clarity, but you were using each and repeating $(this) and that was unnecesary. Ariel Flesler Nazgulled wrote: > I was looking for something more like this and not like your previous > post (remove comments, line-breaks

[jQuery] Change stylesheets if images are off

2008-02-15 Thread [EMAIL PROTECTED]
I finally finished it // detect whether images are on // and change styles accordingly jQuery.imagesOn = function(){ $('' ).load(function() { $('#noimages').attr("href", '/styles/gotimages.css'); $('.imagecheck').html('On'); }); if ( $('.imagecheck').val

[jQuery] prepend - but make second item instead of first

2008-02-15 Thread Shelane
I would like to add a row to a table. The first row is a header. So I want to add it just under the header row. How would I accomplish such an endeavor?

[jQuery] Re: syntax question

2008-02-15 Thread Alexandre Plennevaux
argl indeed, it's Kelvin Luck i confused you with :) sorry! On Feb 15, 2008 11:18 PM, Mike Alsup <[EMAIL PROTECTED]> wrote: > Hi Alex, > > You have me confused with someone else. As much as I'd love to spend two > years in NZ, I've never done so (yet). I don't even have a blog! :-) And > you

[jQuery] tabs: replacing the content without switching the selected tab

2008-02-15 Thread [EMAIL PROTECTED]
Hi, Let's say I have these tabs and code that makes them so ... $(function() { var tabSelected = $('#tabcontent > ul').tabs() }); Document Add Tabs Add Slip Sheets Now I want to click

[jQuery] Re: syntax question

2008-02-15 Thread Mike Alsup
Hi Alex, You have me confused with someone else. As much as I'd love to spend two years in NZ, I've never done so (yet). I don't even have a blog! :-) And you don't have to google for Mike Geary, he posts here often (but not often enough!) Cheers! Mike On Fri, Feb 15, 2008 at 5:13 PM, Ale

[jQuery] Re: syntax question

2008-02-15 Thread Alexandre Plennevaux
it does help.and i'll immediatly google up "michael geary" :) on a side note, i'm thinking about migrating to New Zealand. I read on your blog you spent 2 years there. How was it like? Did you enjoy it? Pros and cons ? feel free to use my email alexandre(AT)lab-au.com... thank you again ! On Fe

[jQuery] Re: a small accessibility rant

2008-02-15 Thread Chris
On Feb 15, 11:46 am, "Rick Faircloth" <[EMAIL PROTECTED]> wrote: > The Internet, even as many forms of media as it employs, simply cannot > be for everyone, as the radio cannot accommodate the deaf and TV cannot > accommodate the blind. The problem is that because it is at its base a stream of t

[jQuery] Re: Jquery and function(json)

2008-02-15 Thread Jake McGraw
What are you using to encode your json server side? If you have PHP 5.2 and above, I'd suggest json_encode, which takes a PHP array and converts it into json. To output a 1, you should be able to do the following: echo json_encode(array("error"=>"1")); - jake On Fri, Feb 15, 2008 at 3:48 PM, Fr

[jQuery] Selecting Parent

2008-02-15 Thread Steve Davis
i have a table of linkedthumbnailed images like this... i want to dynamically add a text description below each image using the "title" attribute from the image's parent link, so it looks like this... here's my code... $("a.cluetip img").each(function(i) { $(this).after(this.parents("a

[jQuery] Jquery and function(json)

2008-02-15 Thread FrEaKmAn
Hello, so today I started with jquery and wow :D I have one question regarding json. I found this topic (I'm sorry if linking isn't allowed) http://www.designerstalk.com/forums/programming/29651-jquery-ajax-question.html I want something similar: ... success: function(json){ if( json.su

[jQuery] Unable to get jQuery working properly in MSIE (6/7)

2008-02-15 Thread Taco Scargo
Hi, I have implemented jQuery on a site (http://www.good2b.nl) to automatically resize an iframe with a calendar in the right hand column. This works perfectly on Firefox and other browsers. MSIE just does not like me. If anyone is willing to have a peek and help me out, this would be appreciat

[jQuery] Re: syntax question

2008-02-15 Thread Mike Alsup
Hi Alex, Sorry for the short response earlier. Functions have 'apply' and 'call' methods which you can use to control the value of 'this' when the function executes. So in my example, I invoke onIni by calling its apply method, and I pass it 'this' which at the time is a DOM element, so when onI

[jQuery] Re: if (! someThing.fired ) {

2008-02-15 Thread Josh Nathanson
It looks like he is using 'fired' as a property, it's not native to javascript. It's just a way of indicating that an event has occurred. -- Josh - Original Message - From: <[EMAIL PROTECTED]> To: "jQuery (English)" Sent: Friday, February 15, 2008 12:35 PM Subject: [jQuery] Re: i

[jQuery] Re: Best plugin for modal dialogs

2008-02-15 Thread Nazgulled
I just tested it under I6 on XP and it worked fine... The problem I was thinking it would exist, it doesn't... That's cool. Now, I only have to tset your plugin in real live examples on my project to see if it really fits my needs. That will take some time though, but thanks... On Feb 15, 12:06 

[jQuery] Re: syntax question

2008-02-15 Thread Alexandre Plennevaux
Well, it's now tested, and it works!! I'm very sorry for this probably stupid question, i'm learning javascript from scratches. Could you explain or point me to the theory behind this? thank you so much alex On Feb 15, 10:14 pm, "Mike Alsup" <[EMAIL PROTECTED]> wrote: > Alexandre, > > This is

[jQuery] Re: syntax question

2008-02-15 Thread Mike Alsup
Alexandre, This is untested, but I think it's closer to what you're looking for: $.fn.myplugin= function(options,callback) { return this.each(function(index) { this.uniq = 'iAmNumber_' + index; options.onIni.apply(this); }); } On Fri, Feb 15, 2008 at 4:00 PM, Alexa

[jQuery] syntax question

2008-02-15 Thread Alexandre Plennevaux
hey mates, I didn't find an answer to my week-old question so i'll rephrase to simplify and focus on just the little bit of knowledge i need from you guys: say i want to create a function that performs some jquery methods on an element. function doThis(){ $(this).text('i've been changed')

[jQuery] Re: if (! someThing.fired ) {

2008-02-15 Thread [EMAIL PROTECTED]
Hi, Jorn It appears in Andrea Ercolino's Window Resize plugin. The snippet is: $.fn.wresize = function( f ) { version = '1.1'; wresize = {fired: false, width: 0}; function resizeOnce() { if ( $.browse

[jQuery] Re: plugin creation question

2008-02-15 Thread Alexandre Plennevaux
Hi Joel, i followed your advise which is helpful, but still, i get the same error. i don't get it... On Feb 14, 2008 6:24 AM, Joel Birch <[EMAIL PROTECTED]> wrote: > > Hi Alexandre, > > I didn't really look too closely at your code but this might help > anyway. Try removing the brackets from t

[jQuery] Re: creating modal layer on the fly?

2008-02-15 Thread Richard D. Worth
Try placing your overlay second to last, and the content last in the body. - Richard On Fri, Feb 15, 2008 at 1:06 PM, alivemedia <[EMAIL PROTECTED]> wrote: > > I am trying to write my own little modal popup script and it's working > fine in FF but not in IE7. In IE7 the modal layer shows up on

[jQuery] Re: How to dynamically load jQuery plugins?

2008-02-15 Thread Nazgulled
I thought I had done that (some time ago) and just recently it stopped working. Does that code works cross-browser and cross-os? At least the most common ones... On Feb 15, 5:49 pm, Jamie <[EMAIL PROTECTED]> wrote: > Hey, > > I do something similar, I move all my includes to my page JS file. I >

[jQuery] Re: ajax form plugin question

2008-02-15 Thread Shelane Enos
I would not have been able to post the page since it¹s an internal app. However, I commented out the $('#docform').ajaxForm(); When it submitted the form as normal, I was able to see what the server was returning and there was an error in the JSON. That is now fixed and I¹m working on the next st

[jQuery] Re: Help making this code snippet smaller...

2008-02-15 Thread Nazgulled
I was looking for something more like this and not like your previous post (remove comments, line-breaks, I know how to do that lol...) On Feb 15, 6:36 pm, Ariel Flesler <[EMAIL PROTECTED]> wrote: > Also you could add something like: > > function getFn( color ){ >return function(){ >$

[jQuery] Re: ajax form plugin question

2008-02-15 Thread Josh Nathanson
Thanks for the clarification. -- Josh - Original Message - From: Mike Alsup To: jquery-en@googlegroups.com Sent: Friday, February 15, 2008 11:45 AM Subject: [jQuery] Re: ajax form plugin question Shelane, Since it is not possible to upload files via ajax the form plugin

[jQuery] Re: controlling li-items with unique IDs and trigger corresponding DIVs

2008-02-15 Thread schnuck
thanks, klaus and jannik, for your replies. sorry for getting back so late. both suggestions don't work for me at the moment, but i will try a bit harder this weekend and see if it's just me or well.. just me :) thanks again for your help.

[jQuery] Re: How to dynamically load jQuery plugins?

2008-02-15 Thread Iair Salem
I'm not sure, but in some safari versions (maybe < v2.0) you have to wait some time before using the code included, because it could not be completely loaded yet. does someone have any better way to acomplish that in a cross-browser fashion? Iair. On Feb 15, 3:49 pm, Jamie <[EMAIL PROTECTED]> wr

[jQuery] Re: ajax form plugin question

2008-02-15 Thread Mike Alsup
Shelane, Since it is not possible to upload files via ajax the form plugin manages the process with a hidden iframe technique. So you won't see the get/post trace in Firebug's console. However, callbacks *should* be called as expected. Can you post a link to the page in question? Josh, ajaxSub

[jQuery] Re: hover + "animation" problem

2008-02-15 Thread Alexandre Plennevaux
404 page not found On Feb 15, 2008 7:32 PM, HaTRuM <[EMAIL PROTECTED]> wrote: > > I have two images operating as buttons with the hoverIntent event and > I want to do a fadeOut -> src (image attribute) change -> and fadeIn > with another three images at the same time. > > These two buttons are t

[jQuery] Re: ajax form plugin question

2008-02-15 Thread Josh Nathanson
The form submits when I click the submit button on the form. But the addDoc function doesn't fire. Not even when I simply reduced it to "alert('hello world)." What I don't know is what data is coming back from the server and if there's a problem. If there is no problem from the server, why

[jQuery] Re: ajax form plugin question

2008-02-15 Thread Shelane Enos
The form submits when I click the submit button on the form. But the addDoc function doesn't fire. Not even when I simply reduced it to "alert('hello world)." What I don't know is what data is coming back from the server and if there's a problem. If there is no problem from the server, why isn

[jQuery] Re: fastest way to load both jquery & thickbox

2008-02-15 Thread polyrhythmic
Hi Ben, no problem. On Feb 14, 2:39 pm, ben <[EMAIL PROTECTED]> wrote: > Am i supposed to have more the > just the minify.php file in my root folder? Yes, you need the 'lib' directory with JSMin.php. See: http://code.google.com/p/minify/wiki/UserGuide > I'm not familiar with the output buffer

[jQuery] Re: ajax form plugin question

2008-02-15 Thread Josh Nathanson
I think you need to use the ajaxSubmit method rather than (or in addition to) the ajaxForm method. ajaxForm just "preps" the form AFAIK. -- Josh - Original Message - From: "Shelane" <[EMAIL PROTECTED]> To: "jQuery (English)" Sent: Friday, February 15, 2008 11:17 AM Subject: [jQuer

[jQuery] ajax form plugin question

2008-02-15 Thread Shelane
When a form is submitted - specifically with a file upload - with the ajax form plugin, firebug doesn't show a submission, nor any return. This is making it difficult to debug, hince the question. I know that my files are being uploaded, but the success function doesn't seem to be running: addDo

[jQuery] Re: How to dynamically load jQuery plugins?

2008-02-15 Thread Jamie
Hey, I do something similar, I move all my includes to my page JS file. I also have a common JS file that all pages include (each page includes the jQuery.js file, my global.js file, and the page's js file in the ). In my global.js, I have the following function: function includeJs(file) {

[jQuery] Re: Quick way to package form elements?

2008-02-15 Thread Jamie
There's a serialize method: $("#yourForm").serialize(); - Jamie Goodfellow On Feb 15, 11:58 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Hi, > > What's the quickest way you know of to gather parameters and values in > a form and put them into a string > > param1=value1¶m2=value2 ... > >

[jQuery] hover + "animation" problem

2008-02-15 Thread HaTRuM
I have two images operating as buttons with the hoverIntent event and I want to do a fadeOut -> src (image attribute) change -> and fadeIn with another three images at the same time. These two buttons are together and when I change from one to the other, images don't change or do wrong things. If

[jQuery] Re: Re[jQuery] moving dynamically added elements

2008-02-15 Thread Jamie
Hey, This might work for you.. Your div to add would need an ID. If it doesn't have one, perhaps make a way of generating one: $.fn.addElement = function(options) { //Redundant code omitted var removeId = $elementToAdd.attr('id'); this.prepend($elementToAdd); //dynamically creat

[jQuery] Problem with namespacing plugins

2008-02-15 Thread johan . borestad
Hi, I have a a problem that I don't really know how to take care of. I want to do something like this $.fn.myNamespace = { myVar : 'test' }; $.fn.myNamespace.myFunction = function(options) { return this.each(function(){ console.log(this) }); }; $('div').myNamespace.myFunction() But

[jQuery] Re: [validate] Validation AlphaNumeric?

2008-02-15 Thread Yuval
Awesome! Thanks On Feb 15, 12:50 pm, Jörn Zaefferer <[EMAIL PROTECTED]> wrote: > Yuval schrieb:> Hey Jörn, > > I was wondering if you could add a method in the jquery validation > > plugin to restrict textboxes to only certain types of characters. For > > example: a name field cannot contain any

[jQuery] creating modal layer on the fly?

2008-02-15 Thread alivemedia
I am trying to write my own little modal popup script and it's working fine in FF but not in IE7. In IE7 the modal layer shows up on top of the content I want displayed even though I believe I have the Z- Indexes set properly. Anyone run into this an know how to overcome it? I know there are ot

[jQuery] Re: Help making this code snippet smaller...

2008-02-15 Thread Ariel Flesler
Also you could add something like: function getFn( color ){ return function(){ $(this).stop().animate({ color:linkColors[color] },150}; }; }; And then: $('#cpblock-links a').css('color', linkColors[0] ).hover( getFn(1), getFn(0) ); Ariel Flesler On 15 feb, 16:32, Ariel Flesler <

[jQuery] Re: Help making this code snippet smaller...

2008-02-15 Thread Ariel Flesler
function enableFadingLinks() { var linkColors = getColorsFromCSS('links'); if ( !linkColors) return; $('#cpblock-links a').css('color', linkColors[0] ).hover( function(){ $(this).stop().animate({ color: linkColors[1] }, 150); },

[jQuery] Re: [validate] Validation AlphaNumeric?

2008-02-15 Thread Jörn Zaefferer
Yuval schrieb: Hey Jörn, I was wondering if you could add a method in the jquery validation plugin to restrict textboxes to only certain types of characters. For example: a name field cannot contain any numbers, so if it does, throw an error. Another example: last four digits of SS number: canno

[jQuery] Re: Suggestions for the validation plugin

2008-02-15 Thread Jörn Zaefferer
Diego A. schrieb: What do you think? Could you file tickets for those? Just put [validate] into the title, label it as an enhancement and assign it to "joern". Thanks! Jörn

[jQuery] Help making this code snippet smaller...

2008-02-15 Thread Nazgulled
Hi, I have this code that animates links when you move the mouse over/out using the hover() but the thing is: the page does not have always the same link colors. For instance, some parts of the webpage has links that have color A and B (a:link and a:hover respectively) some other parts have links

[jQuery] Re: [validate] Determining form state without displaying error messages

2008-02-15 Thread Jörn Zaefferer
kapowaz schrieb: So, suggestions? Is this something the Validation plugin supports already? Or will it need to be modified to support it? See http://dev.jquery.com/ticket/2215 and the discussion linked there. Jörn

[jQuery] Re: (validate) only text rule ??

2008-02-15 Thread Jörn Zaefferer
fab schrieb: Hi, I would like to have a "onlytext" rule, that is to say no special chars as" ' / ; : `$ etc... Or maybe im wrong and it is already done ?? Please excuse my english.. Thanks and kiu :D A custom method should help in this case, together with a regular exp

[jQuery] Re: [validation] Validating a form with a radio and checkbox buttons - strange behavior

2008-02-15 Thread Jörn Zaefferer
serge.cp schrieb: Hi! One of test from demos named "Validating a form with a radio and checkbox buttons" behave strange from my point of view. Checkboxes group Spam Spam via E-Mail Spam via Phone Spam via Mail show error message "Please select at least two types of spam.", if none or only on

[jQuery] Re: a small accessibility rant

2008-02-15 Thread Jeffrey Kretz
Gordon, I completely understand your frustration. As a suggestion, I think it's more important to sway people into realizing the importance of accessibility rather than trying to make them wrong for not doing it. JK -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PRO

[jQuery] Re: a small accessibility rant

2008-02-15 Thread Rick Faircloth
Wouldn't you still be limited to two sizes of image in your scenario? We're not talking about a vector-graphic-type scaling, right? It's a step in the right direction, however. We need some kind of auto-scaling image format. JPEG2000, perhaps? I've never worked with them, but I believe they're

[jQuery] Re: Best plugin for modal dialogs

2008-02-15 Thread Nazgulled
I'll have to test that later... I don't have the time right now as I have to study for an exam I'm having Monday which is very important. I'll report back whenever I get the change to install Multiple IE on Virtual XP machine (I'm running Vista and Multiple IE seems to have problems with Vista).

[jQuery] Re: if (! someThing.fired ) {

2008-02-15 Thread Jörn Zaefferer
[EMAIL PROTECTED] schrieb: Is *fired* a valid property? If it is, how should you access it? There's nothing about it in the api, but I've seen it in some plugins. I'm hoping (desperately, by now) that it may hold the key to my painful non-working function problem ... I'd need way more conte

[jQuery] Re: a small accessibility rant

2008-02-15 Thread Chris
On Feb 14, 11:31 pm, "Rick Faircloth" <[EMAIL PROTECTED]> wrote: > I've never thought of specifying image > size in em's. The problem of image degradation would > still be an issue, I'm sure, since an image may be > specified for display in em's in a browser, but would still start > its life in

[jQuery] How to dynamically load jQuery plugins?

2008-02-15 Thread Nazgulled
Hi, I make good use of various jQuery plugins that are available, however, I don't like the idea of having the tag of the page filled with

[jQuery] Re: Best plugin for modal dialogs

2008-02-15 Thread Eric Martin
If you have a copy of IE6 - take a look at the demos and tests (if not, you could install http://tredosoft.com/ Multiple_IE">Multiple IE). If you are referring to the opacity of the overlay, that does work in IE6 (through the powers of jQuery). If you are asking about something else, let me know.

[jQuery] [validate] Validation AlphaNumeric?

2008-02-15 Thread Yuval
Hey Jörn, I was wondering if you could add a method in the jquery validation plugin to restrict textboxes to only certain types of characters. For example: a name field cannot contain any numbers, so if it does, throw an error. Another example: last four digits of SS number: cannot contain charact

[jQuery] Re: Choosing an Autocompletion solution

2008-02-15 Thread Jörn Zaefferer
timothytoe schrieb: I'll try Jörn's. The only thing that gave me pause on that one was the number of dependencies. Thats actually not that bad as it looks. The part of dimensions that is actually used - I'd have to actually check it again, so take this with a grain of salt - is now part of

[jQuery] Re: Best plugin for modal dialogs

2008-02-15 Thread Richard D. Worth
jQuery UI is quite modular. If you want only the dialog plugin, you only need to include a couple of files: dimensions UI draggable UI resizable UI dialog If you want to get even slimmer and aren't interested in your dialog being draggable or resizable, you can leave either/both of those out too,

[jQuery] Re: tabs: possible to save a form when switching tabs?

2008-02-15 Thread Klaus Hartl
On Feb 15, 5:34 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Yes, the idea of saving the selected tab in a variable will do nicely. > > Just for posterity, I wanted to include that the line > > var selected = $tabs.data('selected.ui-tabs'); > > is causing a JS error, "$tabs is not defined.

[jQuery] Quick way to package form elements?

2008-02-15 Thread [EMAIL PROTECTED]
Hi, What's the quickest way you know of to gather parameters and values in a form and put them into a string param1=value1¶m2=value2 ... and so on. Not sure if this affects the question, but I have radio buttons and checkboxes in my form. Thanks for any insights, - Dave

[jQuery] Re: a small accessibility rant

2008-02-15 Thread Rick Faircloth
Gordon... How do you propose I handle making my site accessible to those who are blind and deaf? Should all developers be required to code sites that can be printed in Braille by specially designed million dollar systems? The Internet, even as many forms of media as it employs, simply cannot be

[jQuery] Re: Plugin updated: FCKEditor, Codepress, Multiple File Upload & Star Rating

2008-02-15 Thread Diego A.
LOL, I was going to say "comnig from you", but I don't know where "you" went... I should hopefully have sometime to work on the star rating plugin next week... I'll post developments On Jan 14, 10:06 pm, Karl Swedberg <[EMAIL PROTECTED]> wrote: > On Jan 14, 2008, at 4:48 PM, Diego A. wrote: > > >

[jQuery] Re: Fading effects and anti aliasing in IE/Opera

2008-02-15 Thread Nazgulled
Anyone? :( On Feb 15, 1:27 pm, Nazgulled <[EMAIL PROTECTED]> wrote: > Hi > Probably, everyone already noticed on this but when you use fade > effects in IE/Opera where you change the opacity and stuff like that, > the text on these browsers is poorly rendered. By other words, it's > not anti-alia

[jQuery] Re: searching for an element with particular value

2008-02-15 Thread [EMAIL PROTECTED]
Thanks for trying, but this didn't work either. I think there's a problem with the expression "[name^='file']" because if I do this $("#myDiv input:hidden").each(function(index) { alert($(this).attr("name")); }); My

[jQuery] Re: Best plugin for modal dialogs

2008-02-15 Thread Nazgulled
About jQuery UI, I haven't read much about the upcoming 1.5 version but I don't think that their modal dialogs version will be powerful enough to "compete" with the current plugins available. And besides, I'll have to use a huge library (the whole UI) to just use one feature from it... Or maybe I'

[jQuery] Re: Best plugin for modal dialogs

2008-02-15 Thread Nazgulled
Your plugin looks cool and very simple... I'll have to take a deeper look though and read the whole documentation to see if it fits my needs (is configurable wnough for what I want to do). One question though... I don't if nay of the modal dialog plugins has this but: Let's say the user is using I

[jQuery] Re: Best plugin for modal dialogs

2008-02-15 Thread Eric Martin
Nazgulled, "Which one is best" kind of questions, usually lead to: it depends. It depends on what you want to use the dialog for and what your requirements are. Back in Nov 2007, I was evaluating modal dialogs for a project I was working on. For various reasons, I ended up writing my own modal d

[jQuery] Re: put the value back in the input (Beginner)

2008-02-15 Thread Jamie
Hey, I extended your example code to add a blur function. You can add an if statement in the blur function if you need to restore the default only in certain cases (like only if $(this).val() == "") $(document).ready(function(){ $("#schnellsuche input") .focus(function () {

[jQuery] Re: animation question

2008-02-15 Thread spaceage
One more thing on this--I was thinking about how to make this code less "brittle" as far as the handling of the spacing. Since the s in my list contain browser text, the height/spacing of the can vary depending on a bunch of factors (ie. font size, line-height, etc). Is there a way to have each

[jQuery] Re: Dynamic Variables

2008-02-15 Thread rsmolkin
Thanks everyone for great suggestions. I compbined some of these with some coldfusion to really condence down the code. -Roman On Feb 11, 7:32 pm, Karl Swedberg <[EMAIL PROTECTED]> wrote: > Hi there, > > You could do something like this: > > $(':checkbox').click( >

[jQuery] Re: OT: TinyMCE help

2008-02-15 Thread Diego A.
I don't have any TinyMCE experience, but I do have FCKEditor experience and it offers MANY image selection, upload and manipulation plugins... www.fckeditor.net On Feb 15, 3:34 pm, Gordon <[EMAIL PROTECTED]> wrote: > I know this is OT but I couldn't find muchuseful on the TinyMCE home > page and

[jQuery] FadeOut and IE 6

2008-02-15 Thread George
I'm attempting to write a new type of interactive widget and have run into a problem. This widget uses various backgrounds for the different states within it and when a user changes from one state to another, the requested interaction should be to fade out the existing background while the new on

[jQuery] Re: a small accessibility rant

2008-02-15 Thread Karl Swedberg
In his CSS Mastery book, Andy Budd explains how to create "liquid" images with a percentage width and a max-width. Something like this: img.liquid { width: 25%; max-width: 300px; float: left; padding: 2%; } This way you can set the img width to be a certain pe

[jQuery] Suggestions for the validation plugin

2008-02-15 Thread Diego A.
Hi Jorn, (hoping that you will get this) firstly, I'd like to suggest a simple change to the validation plugin that might save everyone a bit of time. Line 413 of the current release goes: 413 var result = jQuery.validator.methods[rule.method].call(... ...which throws an error when you haven't d

[jQuery] Re: searching for an element with particular value

2008-02-15 Thread Jamie
Hey, This should work: myDiv.find("input:hidden[name^='file'][value='" + myVar + "']"); - Jamie Goodfellow On Feb 14, 6:33 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Hi, > > How do I search the DIV, "myDiv" for a hidden input field whose name > begins with the word "file" and whose

[jQuery] Re: Problem attaching click event to links

2008-02-15 Thread Jamie
Maybe I'm missing something, but I don't see any tags in your example doc.. On Feb 15, 7:05 am, nerohc <[EMAIL PROTECTED]> wrote: > Hi, first, i'm sory this problem is probably solved in somewhere in > the net, but i don't have much time. > Mi problem is this: > I have links that it's href is

[jQuery] Re: tabs: possible to save a form when switching tabs?

2008-02-15 Thread [EMAIL PROTECTED]
Yes, the idea of saving the selected tab in a variable will do nicely. Just for posterity, I wanted to include that the line var selected = $tabs.data('selected.ui-tabs'); is causing a JS error, "$tabs is not defined." Thanks, - Dave On Feb 15, 1:24 am, Klaus Hartl <[EMAIL PROTECTED]> wrote:

[jQuery] Re: Best plugin for modal dialogs

2008-02-15 Thread Richard D. Worth
Also, it has options for different buttons. You simply provide the name of each button and a click callback. See demo: http://ui.jquery.com/1.5a/demos/dialog.html - Richard On Fri, Feb 15, 2008 at 9:28 AM, Scott González <[EMAIL PROTECTED]> wrote: > > The Dialog plugin from jQuery UI now suppor

[jQuery] Re: Code works in Safari ONLY

2008-02-15 Thread LeonL
I wish I new that yesterday.. :confused: Thanks. Leonardo K wrote: > > There is a plugin that does what u want. > > http://www.ndoherty.com/demos/coda-slider/1.1.1/ > > -- View this message in context: http://www.nabble.com/Code-works-in-Safari-ONLY-tp15489385s27240p15502122.html Sent fr

[jQuery] Re[jQuery] moving dynamically added elements

2008-02-15 Thread meeboo
Hey all How can I when dynamically adding a new element also bind a click event to another element which removes it? //Here's what I have so far, redundant code is omitted $.fn.addElement = function(options) { //Redundant code omitted this.prepend($elementToAdd); //dynamically create

[jQuery] Event handlers stacking using JQuery

2008-02-15 Thread howa
Currently document ready call at different place can be stacked together and call at once. How about normal events, e.g. window.onload (i.e. runonload.js is quite handy in this area, http://safari.oreilly.com/0596101996/jscript5-CHP-17-SECT-6) Besides, event such as mouse clicks, can we stack e

  1   2   >