[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] 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] 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] 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] 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:
h2 class=Title2.1 Bla bla bla/h2
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:
div class=Attention.../div
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:
div class=Attention.../div
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] 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:

divSome text #1/div
divSome text #2/div

And i want see this result:
div id=Div1Some text #1/div
div id=Div2Some text #2/div

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] 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);});