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
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
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());
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
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({
>
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
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
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
$("#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).
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
10 matches
Mail list logo