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)
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...
I don't believe that nobody have any suggestion...
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
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
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){
> >
By the way, for some reason, this:
> 1. you can acces them like this $('tr td', this).each(...); Also see
does not work
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
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
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:
>
>
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
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
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
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
&
> 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);
I figured out that the problem starts here:
jQ(this).addClass(Options.cssClass);
and here:
tHead.append(tr).prependTo(this);
/**
*
*/
(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
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
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
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(
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!")
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
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){
...
...
}
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.
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
25 matches
Mail list logo