[jQuery] Hi all. How to define Chrome browser?

2008-11-20 Thread mtest

How possible to define Chrome browser like other, for example Safafri:
if ($.browser.safari) {
alert('This is Safari')
}

it intersting that chrome browser do same Alert
"This is Safari'


Question.
How to define only CHROME browser?


[jQuery] is it possible define how much color 32bit or 24bit or 16bit?

2008-07-03 Thread mtest

jQuery can define browser
$(.browser.msie)
$(.browser.safari)
$(.browser.mozilla)
can define version of browser
$(.browser.version)

But maybe be define resolution and how much color is it?


[jQuery] How can i use condition "not exist"?

2008-06-25 Thread mtest

I know that it true
if ( !($.cookie('test') ) {
$.cookie('test', 'yes');
}
but it now ork :
why :))


[jQuery] can I reload page through jQuery?

2008-06-17 Thread mtest

can I do like as something that:
$('#ReloadButton').click(function() {
$(document).reload();
});

But this move don't work:)
How can i do this action - "reload page"?


[jQuery] Re: Is it possible for jQuery define version of browser, for example IE 7.0?

2008-06-16 Thread mtest

also know that mozilla's version can get by $.browser.version


[jQuery] Is it possible for jQuery define version of browser, for example IE 7.0?

2008-06-16 Thread mtest

I know that jQuery can define browser:
$.browser.msie
$.browser.safari
$.browser.opera
$.browser.mozilla
but can I define version???
IE 7.0 - ?
IE 6.0 - ?
IE 5.0 - ?


[jQuery] Can i work with string? exp. i want get first 4 letter from string. Can I?

2008-06-14 Thread mtest

Hi everybody.

If I have string, for example:
2.1 Bla bla bla
And I want get number of position -2.1. How can I do this?

Thanks beforehand :)


[jQuery] How to make the pause 3 sec or some delay

2008-05-30 Thread mtest

That all :)
How to make the pause 3 sec or some delay :))


[jQuery] How to get element's number of position, mean eq()

2008-05-28 Thread mtest

Hello again:)
My qгestion is:
I have several "attention" block:
...
And there are button close in this blocks

How I can get number, in which "attention" block clicked on the
button?
$('.Attention .Close').bind("click", function(){
 alert($(this).eq());
});

How I can get numper of [position in eq() ???

Please, need a help

Thank you allways :)


[jQuery] How to get element's number of position, mean eq()

2008-05-28 Thread mtest

Hello again:)
My qгestion is:
I have several "attention" block:
...
And there are button close in this blocks

How I can get number, in which "attention" block clicked on the
button?
$('.Attention .Close').bind("click", function(){
 alert($(this).eq());
});

How I can get numper of [position in eq() ???

Please, need a help

Thank you allways :)


[jQuery] How to define FireBug?

2008-02-14 Thread mtest

Hello all :)
If it possible to define Firebug? Install it or not? Like it possible
do whis browsers by command:

if ($.browser.safari) {
   alert("this is safari!");
}

maybe like this :))

if ($.extensions.firebug) {
   alert("FireBug is install!");
}

Thank you to attention,
and one more time sorry for my poor english:), but I try hard :)


[jQuery] Re: Is there a feature as addID like addClass in jQuery?

2008-02-08 Thread mtest

THANK U VERY MUCH :))

On Feb 8, 3:06 pm, andrea varnier <[EMAIL PROTECTED]> wrote:
> On 8 Feb, 13:35, mtest <[EMAIL PROTECTED]> wrote:
>
> > One more time I'm very sorry for my English :)
> > But I like jQuery very much :)
>
> Hi :)
> you can set the id of an element with the attr() method
>
> $('div').each(function(index){$(this).attr("id", "div" + index);});


[jQuery] Is there a feature as addID like addClass in jQuery?

2008-02-08 Thread mtest

One more time I'm very sorry for my English :)
But I like jQuery very much :)

How I can add ID like I add class by function addClass?

For example i have:

Some text #1
Some text #2

And i want see this result:
Some text #1
Some text #2

I don't know how make this, please help.
Maybe like this :):

$(document).ready(function() {
   var i = 1;
   $("div").each(function(){
   this.addID("Div"+ "1");
   });
});


[jQuery] Is it possible jQuery do similar actions width $("this") such as selectors like $("DIV A")

2008-01-22 Thread mtest

Firstly, sorry for my english, but it's very important to me know the
answer :).

For example there is such a code:

Menu
SubMenu1
SubMenu2
SubMenu3


i call function:
$("dl").bind("mouseover", function(){

I get the object DL, witch now may to call like this or $
(this):

How I can get now DT or DD usingthis   ?

I know that can do like $("DL DT")  or$("DL DD")?

But now in$(this)I have yet selected DL

How can i use this with selectors??

$("this DT")  - not right

$(this "DT") - not right

$(this DT) - not right

How

Please help me :)