[jQuery] Re: validate input file from client-side?

2008-05-25 Thread Davis
if so, i have to validate them all from server-side, have no much choice..:) thanks. On May 26, 11:57 am, "Karl Rudd" <[EMAIL PROTECTED]> wrote: > As far as I know, the SWFUpload component can "validate" the file size > and the extension, nothing more. I have the feeling that anything else > wou

[jQuery] Re: validate input file from client-side?

2008-05-25 Thread Karl Rudd
As far as I know, the SWFUpload component can "validate" the file size and the extension, nothing more. I have the feeling that anything else would come up against security issues. Sorry that's all I know. Karl Rudd On Mon, May 26, 2008 at 1:52 PM, Davis <[EMAIL PROTECTED]> wrote: > > Hi Karl, >

[jQuery] Re: validate input file from client-side?

2008-05-25 Thread Davis
Hi Karl, thanks again for your input. currently, my site only handle photo input and as mentioned previously there is a plugin ( http://www.fyneworks.com/jquery/multiple-file-upload/ ), it did can validate file's extension from client-side, but it is the only feature. so if that plugin can do s

[jQuery] Re: validate input file from client-side?

2008-05-25 Thread Karl Rudd
You're only possible solution for checking the "width/height" of images is a Flash or Java applet based system. One of the Flash based uploaders is http://swfupload.org/ Karl Rudd On Mon, May 26, 2008 at 1:29 PM, Davis <[EMAIL PROTECTED]> wrote: > > anyone else input would be appreicated. > > On

[jQuery] Re: validate input file from client-side?

2008-05-25 Thread Davis
anyone else input would be appreicated. On May 26, 1:52 am, Davis <[EMAIL PROTECTED]> wrote: > as i know there is a multi-file upload plugin that can validate file > extentsion, but still not enough for my requirement, so i am wondering > anyone else can give me some hint how to archive it? > > t

[jQuery] Re: jQuery-1.2.5 - Prototype-1.4.0-1.5.0 conflicts caused by Object.extend

2008-05-25 Thread RobG
On May 26, 2:10 am, Kai Bansner <[EMAIL PROTECTED]> wrote: > > Rewriting jQuery.each could fix most problems, still I'm not aware of > > ALL the spots. > > Modifying all the for..in SHOULD be enough. > > > -- > > Ariel Fleslerhttp://flesler.blogspot.com > > I like that ... any tips on how to det

[jQuery] Re: [validate] Possible to add form validation logic in multiple places?

2008-05-25 Thread Doug Mayer
This did the trick, exactly what I needed. Thanks! On May 25, 12:22 pm, "Jörn Zaefferer" <[EMAIL PROTECTED]> wrote: > You can do a deep extend - its still undocumented, but stable since 1.2.6: > > $.extend(true, validationOptions, { rules: { email: { required: true } } }); > > Jörn > > On Sun, M

[jQuery] Re: Loss of focus hotkey giving error

2008-05-25 Thread Wizzud
Have you tried simply setting focus to one of the divs? $('div:first')[0].focus(); On May 24, 4:40 pm, brassica <[EMAIL PROTECTED]> wrote: > hi all, i seem to have a problem with using Hotkeys and intercept > > I would appreciate it very much if someone would explain why the error > is occurring

[jQuery] Re: How to clone jQuery object?

2008-05-25 Thread Michael Geary
> > $.extend(foo) merely returns a reference to foo. It doesn't > > clone foo. > > > > $.extend( {}, foo ) creates a new object and copies all of foo's > > properties into it (doing a shallow copy). > > > > So in theory you may be able to use $.extend( {}, $ ) - or more > > properly, jQuery( {}

[jQuery] Re: .is() always returning true with hierarchy selectors

2008-05-25 Thread Scott González
On May 24, 1:04 pm, Jed Schmidt <[EMAIL PROTECTED]> wrote: > Since only simple selectors are supported, perhaps it would be less > confusing if complex selectors returned undefined or null (consistent > with the recent discussion about .attr()), instead of true? Or better yet, why not ask for it

[jQuery] Re: How to clone jQuery object?

2008-05-25 Thread Christof Donat
Hi, > > Is it absolutelly necessary, that $D has all the other jQuery > > functionality? If not just hav the code you need in $D. > >Not necessary, but I want to have them chained with jQuery object > [...] > > Is it absolutelly necessary, that the functions have the name click() and > > hove

[jQuery] Re: jQuery-1.2.5 - Prototype-1.4.0-1.5.0 conflicts caused by Object.extend

2008-05-25 Thread Ariel Flesler
Yeap, something like that. -- Ariel Flesler http://flesler.blogspot.com On 25 mayo, 13:10, Kai Bansner <[EMAIL PROTECTED]> wrote: > > Rewriting jQuery.each could fix most problems, still I'm not aware of > > ALL the spots. > > Modifying all the for..in SHOULD be enough. > > > -- > > Ariel Flesl

[jQuery] Re: validate input file from client-side?

2008-05-25 Thread Davis
as i know there is a multi-file upload plugin that can validate file extentsion, but still not enough for my requirement, so i am wondering anyone else can give me some hint how to archive it? thanks/Davis. On May 26, 1:21 am, "Jörn Zaefferer" <[EMAIL PROTECTED]> wrote: > It may be possible to d

[jQuery] Re: [validate] Possible to add form validation logic in multiple places?

2008-05-25 Thread Jörn Zaefferer
You can do a deep extend - its still undocumented, but stable since 1.2.6: $.extend(true, validationOptions, { rules: { email: { required: true } } }); Jörn On Sun, May 25, 2008 at 6:25 PM, Doug Mayer <[EMAIL PROTECTED]> wrote: > > Trying to implement this now... Working off of what you said, i

[jQuery] Re: validate input file from client-side?

2008-05-25 Thread Jörn Zaefferer
It may be possible to do something like that, but afaik its pretty much impossible with pure JS on the client-side. Jörn On Sun, May 25, 2008 at 7:05 PM, Davis <[EMAIL PROTECTED]> wrote: > > Hi, > > I got a html that will accept user image file input, then when user > click a button which will t

[jQuery] Re: How to clone jQuery object?

2008-05-25 Thread R. Rajesh Jeba Anbiah
On May 25, 8:06 pm, Ariel Flesler <[EMAIL PROTECTED]> wrote: > Load jQuery twice and use jQuery.noConflict(). It doesn't seem to work for me. Are you sure that it works for you? -- Email: rrjanbiah-at-Y!comBlog: http://rajeshanbiah.blogspot.com/

[jQuery] Re: How to clone jQuery object?

2008-05-25 Thread R. Rajesh Jeba Anbiah
On May 25, 1:26 pm, Christof Donat <[EMAIL PROTECTED]> wrote: > > I want to have both $ and $D; but in $D, I want to override some > > functions like 'click', 'hover'. Till now, $ and $D gets overwritten > > and so I couldn't use $ or couldn't override $D.click > > Is it absolutelly necess

[jQuery] validate input file from client-side?

2008-05-25 Thread Davis
Hi, I got a html that will accept user image file input, then when user click a button which will trigger a php to process that image file. i want to validate that image file against their size/width/height/ file type etc, so once pass it validation, will save it to the server. my question is

[jQuery] Re: [validate] Possible to add form validation logic in multiple places?

2008-05-25 Thread Doug Mayer
Trying to implement this now... Working off of what you said, is there a way to do something like this? var validationOptions = { rules: { name: { required: true } } }; $.extend(validationOptions, { rules: { email: { required: true } } }); And get a validationOptions with both? Or will I need

[jQuery] Re: [validate] Possible to add form validation logic in multiple places?

2008-05-25 Thread Doug Mayer
This should be a pretty good solution for what I need. Thanks Jörn! On May 25, 7:54 am, "Jörn Zaefferer" <[EMAIL PROTECTED]> wrote: > I don't yet have a good idea of your setup, so just a quick idea: > > // somewhere before the other stuff > var validationOptions = {}; > > // set page specifc o

[jQuery] Re: File upload of a form inside another form

2008-05-25 Thread Giovanni Battista Lenoci
> Put your nested form after the parent form, and hide it. Keep the > upload-elements in the parent form and move them to the upload-form on > submit (using a different submit button). Clone/move back to the > parent form after the submit for more files. Thank you for your answer Jörn, It works :

[jQuery] Re: jQuery-1.2.5 - Prototype-1.4.0-1.5.0 conflicts caused by Object.extend

2008-05-25 Thread Kai Bansner
> Rewriting jQuery.each could fix most problems, still I'm not aware of > ALL the spots. > Modifying all the for..in SHOULD be enough. > > -- > Ariel Fleslerhttp://flesler.blogspot.com > I like that ... any tips on how to detect which properties were added to the object via a Object.prototype? Th

[jQuery] Re: how to traver DOM in this suitation?

2008-05-25 Thread Karl Swedberg
On May 25, 2008, at 11:20 AM, Ariel Flesler wrote: Karl's da man :) Not so! Ariel is da man. Glad it worked for you, Davis! Karl Swedberg www.englishrules.com www.learningjquery.com On May 25, 2008, at 11:20 AM, Ariel Flesler wrote: Karl's da man :) -- Ariel Flesler htt

[jQuery] A simple problem with jQuery post method

2008-05-25 Thread Maddy
Hi evry1, i am quite new to Jquery so perhaps my question might be very simple my working code looks like this ... function letsJQuery() { //$.post("http://xx.xx.xx.com/test.php";, { title: "jonny" } ); } this code sends the value jonny and sends to the php file present in a remot

[jQuery] Re: jQuery - clueTip : how to disable it ?

2008-05-25 Thread Lideln
Mmmmh... Thanks for the answer, but... It's a bit complicated no ? I thought, maybe a : $('#myObject").removeTooltip() That would idealy call a function restoring all previous event functions and releasing memory. It has to be written for each plugin ? On 25 mai, 16:21, Ryura <[EMAIL PROTECTED

[jQuery] Re: how to traver DOM in this suitation?

2008-05-25 Thread Ariel Flesler
Karl's da man :) -- Ariel Flesler http://flesler.blogspot.com On 25 mayo, 11:35, Davis <[EMAIL PROTECTED]> wrote: > wow..Karl,  what a GREAT help, many thanks/Davis. > > On May 25, 7:51 pm, Karl Swedberg <[EMAIL PROTECTED]> wrote: > > > > > Hi Davis, > > > You could try this: > > > $('button[id^

[jQuery] Re: jQuery-1.2.5 - Prototype-1.4.0-1.5.0 conflicts caused by Object.extend

2008-05-25 Thread Ariel Flesler
Rewriting jQuery.each could fix most problems, still I'm not aware of ALL the spots. Modifying all the for..in SHOULD be enough. -- Ariel Flesler http://flesler.blogspot.com On 25 mayo, 04:25, Kai Bansner <[EMAIL PROTECTED]> wrote: > I have a bookmarklet plugin for jQuery which has trouble worki

[jQuery] Re: How to clone jQuery object?

2008-05-25 Thread Ariel Flesler
Load jQuery twice and use jQuery.noConflict(). -- Ariel Flesler http://flesler.blogspot.com On 25 mayo, 05:26, Christof Donat <[EMAIL PROTECTED]> wrote: > Hi, > > > > I meant to ask... What is the actual goal here? Can you give a little > > > background? Maybe there is another way to accomplish

[jQuery] A simple problem with jQuery post method

2008-05-25 Thread Maddy
Hi every1, i m quite new to jQuery and i not sure how to solve this simple problem...though it is quite simple ...plz bear with my long mail well the working code looks like this: function letsJQuery() { $.post("http://xxx.xxx.com/test.php";, { title: "Jonny" } ); } This code send

[jQuery] Re: jQuery - clueTip : how to disable it ?

2008-05-25 Thread Ryura
I tend to store the object before tooltip cloned in a variable, then when the tooltip is no longer needed, remove the old object and do a nice after(var); ie: var x = $("#id").clone(); x.clueTip(); $("#id").remove().after(x); On May 25, 9:18 am, Lideln <[EMAIL PROTECTED]> wrote: > Hi all, > > I

[jQuery] Re: how to traver DOM in this suitation?

2008-05-25 Thread Davis
wow..Karl, what a GREAT help, many thanks/Davis. On May 25, 7:51 pm, Karl Swedberg <[EMAIL PROTECTED]> wrote: > Hi Davis, > > You could try this: > > $('button[id^xxx]').click(function() { >      var i = this.id.split('-')[1]; > > }); > > > Karl Swedbergwww.englishrules.comwww.learn

[jQuery] jQuery - clueTip : how to disable it ?

2008-05-25 Thread Lideln
Hi all, Is there a way to "remove" clueTip from an object ? Here is the thing : I do some ajax in my pages, and for the emails (for example), if it is read, I display a tooltip indicating the read date, and if it not, I don't want to display any tooltip. But at page load it is not complicated. I

[jQuery] Re: File upload of a form inside another form

2008-05-25 Thread Jörn Zaefferer
I don't have a drop-in solution, just an idea to start with: Put your nested form after the parent form, and hide it. Keep the upload-elements in the parent form and move them to the upload-form on submit (using a different submit button). Clone/move back to the parent form after the submit for m

[jQuery] Re: Validation Plugin Doesn't work with jQuery 1.2.5

2008-05-25 Thread Jörn Zaefferer
Please update to jQuery 1.2.6, the issue causing the validation plugin to fail is fixed there. Jörn On Sun, May 25, 2008 at 1:56 PM, <[EMAIL PROTECTED]> wrote: > > My system it's working with jQuery 1.2.3 and has the validation Plugin > with the latest version , but When I changed the jquery to

[jQuery] Re: [validate] Possible to add form validation logic in multiple places?

2008-05-25 Thread Jörn Zaefferer
I don't yet have a good idea of your setup, so just a quick idea: // somewhere before the other stuff var validationOptions = {}; // set page specifc options $.extend(validationOptions, { ... }); // generated $(...).validate(validationOptions); That would work with and without page-specific co

[jQuery] Re: jQuery Validation Plugin noConflict issue

2008-05-25 Thread Jörn Zaefferer
I've fixed this in the latest revision, min/pack/zip are up-to-date: http://dev.jquery.com/view/trunk/plugins/validate/ Jörn On Sun, May 25, 2008 at 1:13 AM, Ale <[EMAIL PROTECTED]> wrote: > > Hi, > > I'm trying to use the latest version of jQuery and the validation > plugin. However, when I try

[jQuery] File upload of a form inside another form

2008-05-25 Thread Giovanni Battista Lenoci
Hi, in a control panel I have a form that collect a lot of data. Inside this form I want to collect N images using the ajaxform plugin to permit an ajaxLike file upload. The problem is that if I use this markup : and this javascript: var options = { success:function(

[jQuery] Validation Plugin Doesn't work with jQuery 1.2.5

2008-05-25 Thread pedramphp
My system it's working with jQuery 1.2.3 and has the validation Plugin with the latest version , but When I changed the jquery to 1.2.5 it doesn't work What is the Problem

[jQuery] Re: how to traver DOM in this suitation?

2008-05-25 Thread Karl Swedberg
Hi Davis, You could try this: $('button[id^xxx]').click(function() { var i = this.id.split('-')[1]; }); Karl Swedberg www.englishrules.com www.learningjquery.com On May 25, 2008, at 2:45 AM, Davis wrote: Hi all, I have some button that will be generated dynamic in foll

[jQuery] wild card match sytnax?

2008-05-25 Thread Davis
Hi all, if i have following html and wanna take a wild card match depends on id and then assign to a click() event, what is the sytanx supposed to be? i am new for jquery.. Delete Delete Delete for id $('#xxx-%').click( function() {} ) ? my purpose is search all id with 'xxx-%' pattern, then a

[jQuery] how to traver DOM in this suitation?

2008-05-25 Thread Davis
Hi all, I have some button that will be generated dynamic in following pattern, and what i want to do is to assign each button a click() event with the unique integer ( come from button id's value ) pass into click() event. Delete Delete Delete logic something like :- $('match all button id l

[jQuery] [validate] Possible to add form validation logic in multiple places?

2008-05-25 Thread Doug Mayer
I'm working on an ASP.NET validation integration with jQuery, and there are some things that inherently don't fit with how I'm defining my validation. There are some things like required with dependency expression and callbacks that are easier to ignore and define in the page yourself. My projec

[jQuery] Re: Some problem with latest version of Jquery Validator?

2008-05-25 Thread Jörn Zaefferer
jQuery 1.2.6 fixes the issue, please update to that version. Jörn On Fri, May 23, 2008 at 1:34 PM, Jörn Zaefferer <[EMAIL PROTECTED]> wrote: > Please stick with jQuery 1.2.3 until Validate 1.3.1 is released. > > Jörn > > On Thu, May 22, 2008 at 8:08 PM, vertical-align <[EMAIL PROTECTED]> wrote:

[jQuery] Re: How to clone jQuery object?

2008-05-25 Thread Christof Donat
Hi, > > I meant to ask... What is the actual goal here? Can you give a little > > background? Maybe there is another way to accomplish what you want to do > > that doesn't rely on cloning the jQuery constructor. > > I want to have both $ and $D; but in $D, I want to override some > functions

[jQuery] Re: How to clone jQuery object?

2008-05-25 Thread R. Rajesh Jeba Anbiah
On May 25, 9:03 am, "Michael Geary" <[EMAIL PROTECTED]> wrote: > I meant to ask... What is the actual goal here? Can you give a little > background? Maybe there is another way to accomplish what you want to do > that doesn't rely on cloning the jQuery constructor. I want to have both $ and $D

[jQuery] Re: How to clone jQuery object?

2008-05-25 Thread R. Rajesh Jeba Anbiah
On May 25, 8:26 am, "Michael Geary" <[EMAIL PROTECTED]> wrote: > $.extend(foo) merely returns a reference to foo. It doesn't clone foo. > > $.extend( {}, foo ) creates a new object and copies all of foo's properties > into it (doing a shallow copy). > > So in theory you may be able to use $.extend

[jQuery] Re: How to clone jQuery object?

2008-05-25 Thread R. Rajesh Jeba Anbiah
On May 25, 7:59 am, Ariel Flesler <[EMAIL PROTECTED]> wrote: > That's an exotic situation. > I'll give you 2 options: > > 1- > > var $D = $.extend( true, function( selector, context ) { >return new $D.fn.init( selector, context ); > > }, $ ); > > This MIGHT work, I never really tried something

[jQuery] jQuery-1.2.5 - Prototype-1.4.0-1.5.0 conflicts caused by Object.extend

2008-05-25 Thread Kai Bansner
I have a bookmarklet plugin for jQuery which has trouble working on sites that use older versions of Prototype. It seems that the latest version of jQuery is more corruptible by libs like Prototype which extend core JavaScript than previous versions. CNN.com and Ajaxian.com both use version of Pr