[jQuery] Access to the outer object from $.each.

2009-05-04 Thread ShurikAg
I have the code bellow as bellow: jQ.fn.Form = function(){ //check if the element is a form if(!jQ(this).is("form")){ alert("Expecting form element!"); return this; } jQ(":input", this)

[jQuery] Re: Working with identical objects

2009-02-15 Thread ShurikAg
ModulesListObj, and > that will be one option for every select you added. val() will then > return the value only for the first element in that collection. That > should probably be: > > alert(jQ("option:selected", this).val()) > > cheers, > - ricardo > > On Feb 12, 11:53 pm, ShurikAg wrote: > > > I don't believe that nobody have any suggestion...

[jQuery] Re: Working with identical objects

2009-02-12 Thread ShurikAg
I don't believe that nobody have any suggestion...

[jQuery] Re: Working with identical objects

2009-02-12 Thread ShurikAg
Here is my code: /** * Page template part setup div */ (function(jQ){ /** * form state */ var STATE = "new"; /** * Request URL */ var RequestUrl = rootUrl+"/aranAjx.php?mod=pages"; /** * indicator if there is o

[jQuery] Working with identical objects

2009-02-12 Thread ShurikAg
Hi, I have a form with dynamically added fields in it. The plugin that works with those fields have several private fields and functions. What is the right way of grabbing the data from from the right object. For example: I'm using drop downs as generated dynamically fields. If I there is only o

[jQuery] Re: Several questions regarding jQuery Approach...

2009-02-07 Thread ShurikAg
owto.blogspot.com > > On Sat, Feb 7, 2009 at 3:39 PM, ShurikAg wrote: > > > I tried something: > > > If I pass to initUI this, and using it as bellow: > > > jQ.fn.table.initUI = function(obj){ > >                if(Initialized){ > >            

[jQuery] Re: Several questions regarding jQuery Approach...

2009-02-07 Thread ShurikAg
By the way, for some reason, this: > 1. you can acces them like this $('tr td', this).each(...); Also see does not work

[jQuery] Re: Several questions regarding jQuery Approach...

2009-02-07 Thread ShurikAg
I tried something: If I pass to initUI this, and using it as bellow: jQ.fn.table.initUI = function(obj){ if(Initialized){ //return; } Options.cols = Object.size(Titles); c = 0; //set scc if ne

[jQuery] Re: Several questions regarding jQuery Approach...

2009-02-07 Thread ShurikAg
The weird thing is that it worked perfectly well until I inserted the functions into "table" namespace... On Feb 7, 2:24 am, ShurikAg wrote: > And how come this: > > " > I'm getting this error when the lines bellow are called: > > jQ(this).addClass(Opti

[jQuery] Re: Several questions regarding jQuery Approach...

2009-02-07 Thread ShurikAg
And how come this: " I'm getting this error when the lines bellow are called: jQ(this).addClass(Options.cssClass); ... tHead.append(tr).prependTo(this); " ??? On Feb 7, 2:22 am, ShurikAg wrote: > I'm shocked!!! > > This is all I'm trying to do: > >

[jQuery] Re: Several questions regarding jQuery Approach...

2009-02-07 Thread ShurikAg
s what I did. I put console.log() (firebug console logging). > > And still not getting that message. Only alert that says "table"... > > Probably, you are using .table() function somewhere else on non table > element ??? > > > Read jQuery HowTo Resou

[jQuery] Re: Several questions regarding jQuery Approach...

2009-02-07 Thread ShurikAg
those lines out... > > but let me log them with console.log()... > > NOPE, I did not. I just got a "table" alert box and that's it... Just > one alert box! > > > Read jQuery HowTo Resource  -  http://jquery-howto.blogspot.com > > On Sat, Feb 7, 2009 a

[jQuery] Re: Several questions regarding jQuery Approach...

2009-02-07 Thread ShurikAg
I'm getting this error when the lines bellow are called: jQ(this).addClass(Options.cssClass); ... tHead.append(tr).prependTo(this); On Feb 7, 1:56 am, ShurikAg wrote: > me too > > and do you get "The element must be valid table element!"? > > On Feb 7

[jQuery] Re: Several questions regarding jQuery Approach...

2009-02-07 Thread ShurikAg
me too and do you get "The element must be valid table element!"? On Feb 7, 1:53 am, jQuery Lover wrote: > FF3 > > > Read jQuery HowTo Resource  -  http://jquery-howto.blogspot.com > > On Sat, Feb 7, 2009 at 2:53 PM, ShurikAg wrote: > > > hm &

[jQuery] Re: Several questions regarding jQuery Approach...

2009-02-07 Thread ShurikAg
> On Sat, Feb 7, 2009 at 2:45 PM, ShurikAg wrote: > > > I figured out that the problem starts here: > > jQ(this).addClass(Options.cssClass); > > > and here: > > tHead.append(tr).prependTo(this);

[jQuery] Re: Several questions regarding jQuery Approach...

2009-02-07 Thread ShurikAg
I figured out that the problem starts here: jQ(this).addClass(Options.cssClass); and here: tHead.append(tr).prependTo(this);

[jQuery] Re: Several questions regarding jQuery Approach...

2009-02-07 Thread ShurikAg
/** * */ (function(jQ) { /** * Default options */ var Defaults = { cols: 0, rows: 0, cssClass: null, //if not set will try to get it from the object itself //if titles on the first table raw is nee

[jQuery] Re: Several questions regarding jQuery Approach...

2009-02-07 Thread ShurikAg
And by the way: I tried to return jQ(this)... nothing changes. On Feb 7, 1:18 am, ShurikAg wrote: > Sorry, I have probably didn't enplane myself properly. > I'm running it once, but when I'm trying to track "jQ > (this).selector" (by alert), it alerts me twice

[jQuery] Re: Several questions regarding jQuery Approach...

2009-02-07 Thread ShurikAg
saying first time you run it, it gives you 'table', the > second time you run it, it says it's not a table... > > This means, the first time it is getting to the return statement... Or > did I get you wrong ? > > > Read jQuery HowTo Resource  -  http://jquery

[jQuery] Re: Several questions regarding jQuery Approach...

2009-02-07 Thread ShurikAg
ery-plugin-... > > It explains why you need to return jQuery object. > > On Sat, Feb 7, 2009 at 1:28 PM, ShurikAg wrote: > > > Question related to the same plugin: > > > Plugin code: > > jQ.fn.table = function(options, titles, data){ > >                if(jQ(

[jQuery] Re: Several questions regarding jQuery Approach...

2009-02-07 Thread ShurikAg
Question related to the same plugin: Plugin code: jQ.fn.table = function(options, titles, data){ if(jQ(this).length == 0){ //try to find at least one element $.log("Matching element "+jQ(this).selector+" was not found!")

[jQuery] Re: Several questions regarding jQuery Approach...

2009-02-06 Thread ShurikAg
uot;test3", col5: "notexist"}); > > 3. if a function takes an argument pass it a $table as parameter ... > (give us a concrete example, and we could give a proper answer to this > question...) > > ---- > Read jQuery HowTo Resource  -  http://jquery-howto.blogspo

[jQuery] Several questions regarding jQuery Approach...

2009-02-06 Thread ShurikAg
Hi, 1. Assume that there is a table on a page: and I'm using jQuery to manipulate this table by: $("table").table(); What is the right way of accessing "td" elements inside the function: (function(jQ) { jQ.fn.table = function(options, titles, data){ ... ... }

[jQuery] Creating classes using jQuery

2009-02-04 Thread ShurikAg
Hi all, What is the right way of creating classes using jQuery. I'll give an example: I have a gallery of images. I prefer to have a JS class that will manage gallery's page. Thanks.

[jQuery] Creating a class using jQuery

2009-02-04 Thread ShurikAg
Hi all, Until now I was using my own developed JS library (based on traditional JS). In most cases I had classes for each module that I have in the system (for example: class for registration form, class for gallery interaction, class for gallery item etc.). Subsequently, those classes interacts