[jQuery] Re: Plugin for code highlighting and row numbering?

2007-12-20 Thread Alexey Blinov
Hi! You can check this one: http://code.google.com/p/syntaxhighlighter/ and yes )) its near - at Google Code ;-) On Dec 20, 2007 8:27 PM, Erik Beeson <[EMAIL PROTECTED]> wrote: > Chili is probably your best bet. I whipped up a little example that does a > little post processing to add line number

[jQuery] Re: check if an id exists

2007-12-24 Thread Alexey Blinov
Personally I do it with `$('#id').size !== 0` but length is goood to i think :) On Dec 24, 2007 5:55 PM, Cloudream <[EMAIL PROTECTED]> wrote: > > $('#id').length>0 ? > > On Dec 24, 10:11pm, debussy007 <[EMAIL PROTECTED]> wrote: > > Hi, > > > > what is the best way in jquery to check wether an id

[jQuery] Need to make a class or plugin...

2007-12-24 Thread Alexey Blinov
Hi! I have this code in my 'Learn jQuery' project... $(document).ready(function() { //try idle events var _events = [[window, 'scroll'], [window, 'resize'], [document, 'mousemove'], [document, 'keydown']]; jQuery.each(_events, function(i, e) { // console.log(e.toString());

[jQuery] Re: check if an id exists

2007-12-25 Thread Alexey Blinov
Yep... my code have size(). Forgot to point it... And thanks for info about more efficient way - using length. So... which way is better than? 1. $('#id').length > 0 2. $('#id').length() !== 0 3. $('#id').is('*') //never try it... but look pretty - Alexey On Dec 25, 2007 5:39 AM, Michael Geary

[jQuery] Re: Working with the ajax function

2007-12-26 Thread Alexey Blinov
Hm... i didn't use (yet) ajax in jQuery but this one `data: "word": $("#word").blah.value` looks strange... maybe something like `data: "word="* **+** *$("#word").blah.value`? On Dec 26, 2007 8:07 AM, coughlinsmyalias <[EMAIL PROTECTED]> wrote: > > Hey all, i have this: > >$.ajax({ >

[jQuery] Re: can only modify DOM via debugger

2008-01-09 Thread Alexey Blinov
Is it $.get() - asynchronous call? Maybe you try to fill textarea Before str1 get its data? I think you should filll textarea from Success event rather than after $.get call... On Jan 9, 2008 6:43 AM, Jeffrey Kretz <[EMAIL PROTECTED]> wrote: > > It might be worth a shot to try jQuery functions r

[jQuery] Re: a way to animate to auto?

2008-01-14 Thread Alexey Blinov
Maybe calc current pixels for 100%, animate to that width and than set width to 100% (w/o animate)? And vice versa to animate form "100%" to 29px? Just an idea... jQuery is powerful and you can create custom animate function that will calc all you need. On Jan 12, 2008 5:44 AM, Equand <[EMAIL PRO

[jQuery] Re: Trying to set the id of a 2nd level div and failing

2008-01-16 Thread Alexey Blinov
BTW id attribute must be unique as i know... I know you can omit it but its not fair. OK. did you try to use contents( )? something like this (untested) $('#obj').contents().filter('div').attr('id', 'Bob')? On Jan 16, 2008 2:20 AM, Wizzud <[EMAIL PROTECTED]> wrote: > > Use find()? > The children

[jQuery] Re: Keeping variables across ajax pages

2008-01-31 Thread Alexey Blinov
$("#variables #source").attr("id") gives you 'source' result isn't it?you need to get (i think) a textNode of div or custome attribute. But better way, i think, is declare global dict like var params = new Array() params["lang"] = "en"; params["source"] = "somewhere there"; // etc... $(document).

[jQuery] Re: Computing value for css key

2008-02-11 Thread Alexey Blinov
Hi.I think you should add "px" to the new value. Something like this: $("div#lt").css("left", parseInt($("div#content").css("left"))-24+"px"); On Feb 5, 2008 2:05 PM, praxis <[EMAIL PROTECTED]> wrote: > > Hi! > > I'm trying to position a div, #lt, absolutely in relation to another > div (#content