[jQuery] Re: buggy .add()

2009-04-29 Thread KidsKilla .grin! wuz here
Ouch. Of course! Thank you =)

2009/4/28 MorningZ 

>
> if "smt" is supposed to mean "something", then yes you did
>
> e2 = document.getElementById('xxx'),
>
> won't "get" this HTML
>
> xxx
>
> as the ID is not "xxx", you have "#xxx"
>
> xxx
>
> would be had with
>
> e2 = document.getElementById('xxx'),
>
>
>
> On Apr 28, 7:43 am, KidsKilla  wrote:
> > Hi there!
> >
> > Maybe I missed smt, but seems like this is a bug:
> >
> > xxx
> > yyy
> >
> > 
> > 
> > var e1 = document.getElementById('yyy'),
> > e2 = document.getElementById('xxx'),
> > $e = $(e1);
> > alert($e.length);
> > $e.add(e2); // or $e = $e.add(e2);
> > alert($e.length);
> > 
>



-- 
Максим Игоревич Гришаев,
AstroStar.ru


[jQuery] buggy .add()

2009-04-28 Thread KidsKilla

Hi there!

Maybe I missed smt, but seems like this is a bug:

xxx
yyy



var e1 = document.getElementById('yyy'),
e2 = document.getElementById('xxx'),
$e = $(e1);
alert($e.length);
$e.add(e2); // or $e = $e.add(e2);
alert($e.length);



[jQuery] Re: Replacing META REFRESH by AJAX , Loading and Post

2009-03-03 Thread KidsKilla .grin! wuz here

you wanna do something like this?

function check(){
$.ajax({
...
success:function(){
f(checkCondition) {
closeOverlay();
} else {
setTimeout(check, 5000)
}
}
});
}
openOverlay();
check();

2009/3/3 Cyril Wan :
>
> No one? I thought this was a no brainer  but i just can't get my head around
> it...
> May be I can try asking it a different way...
>
> Let's say I have a long process that takes 30 - 40 secs , I need to open a
> Loading overlay that displays an icon that it is processing and at the same
> time I need to check the server if it is ready to display. When rready, it
> needs to refresh the page to the new URL posted by the server.
>
> Thanks
> C
> - Показать цитируемый текст -
> -Original Message-
> From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On
> Behalf Of Cyril
> Sent: March-02-09 9:22 PM
> To: jQuery (English)
> Subject: [jQuery] Replacing META REFRESH by AJAX , Loading and Post
>
>
> Hi,
>
> I'm trying replace a META REFRESH every 5 secs with AJAX.
> On Submit of the form, I'd like to trigger the process, and use
> SetInterval
> to check a URL whether it has finished.
> Right now, the trigger will call a program callEquifax, which will
> display a
> page with another META REFRESH until the program is ready to display a
> result where the META REFRESH URL is the final output.
>
> Now I'd like to replace this using AJAX, here's what Ive attempted
> below but
> I'm missing a way to analyse the URL, not the output html, and if I
> detect a
> change in the location.href.
>
> Bottomline, how can I modify it so that, on Submit:
> 1. It displays the Loading Icon
> 2. HTTP AJAX POST callEquifax
> 3. Check every 5 secs using AJAX to see if the process has ended, if
> not
> loop again.
> 4. Finally refresh the page to the new Page to show the output when it
> is
> ready to be displayed.
>
> Thanks
>
> Below is the snippet on where I am at... I was able to trigger the
> process,
> and I am trying to replace a META REFRESH URL
>
> $(function(){
>        $('#Submit').click(function(){
>                //Loading
>                alert('AJAX Submit Function');
>                $('').appendTo('body').fadeIn(500);
>                $.ajax({
>                        type: "POST",
>                        url: "/eDevScripts/MGrqispi101.dll",
>                        data:
> "APPNAME=CreditApp&PRGNAME=callEquifax&ARGUMENTS=-
> A2408895331377327030220090
> 90018&prgtype=ADD&customerType=" + $('#customerType').val()+
> "&businessName=" + $('#businessName').val() + "&fileNumber=" +
> $('#fileNumber').val() + "&listSimilars=" + $('#listSimilars').val() +
> "&firstName=" + $('#firstName').val() + "&lastName=" + $
> ('#lastName').val()
> + "&dob=" + $('#dob').val() + "&streetNo=" + $('#streetNo').val() +
> "&streetName=" + $('#streetName').val() + "&city=" + $('#city').val()
> +
> "&province=" + $('#province').val() + "&postalCode=" +
> $('#postalCode').val() + "&phoneNumber=" + $('#phoneNumber').val() +
> "&ext="
> + $('#ext').val(),
>                        success: function(htmlOutput){
>                                alert("Please wait while we process
> the
> transaction!" + htmlOutput);
>                                // Need a way to use SetInterval()
>                        }
>                });
>                return false;
>
>        });
>
>
> });
>
>



-- 
Максим Игоревич Гришаев,
AstroStar.ru


[jQuery] Re: New Downloaded jQuery result "Error: $ is not defined" !

2009-03-03 Thread KidsKilla .grin! wuz here

recheck the url to your scripts.

2009/3/3 Marvix :
>
> I have the same problem !!!
>
> Any help !?!?!
> - Показать цитируемый текст -
>
>
>
> On Mar 1, 3:58 pm, Marvix  wrote:
>> I just downloaded the compressed  & uncompressed  version ...
>> I get always "Error: $ is not defined" and when I replaced with old
>> version works fine!
>>
>> help?!



-- 
Максим Игоревич Гришаев,
AstroStar.ru


[jQuery] manipulation without script execution

2009-03-03 Thread KidsKilla

How to use functions like .wrap() and .wrapInner()
without of script execution?

Example html:

dgbfsdfbdf
http://site/js/jquery-1.3.2.js";>
http://site/js/TEST.js";> // alert('test')

$(function(){
alert('ready');
$('body').wrapInner('
'); }); result: alerts "test", "ready", "ready", "test" should be: alerts "test", "ready"

[jQuery] Re: Events. .click() vs. .onclick

2009-01-23 Thread KidsKilla .grin! wuz here

yeap, ill try to publish an example of the page tomorrow...

2009/1/23 Eric Garside :
>
> Do you have a public page somewhere that you're trying this? That'd be
> helpful in diagnosing the problem. Otherwise, we're shooting in the
> dark here.
>
> On Jan 23, 10:59 am, "KidsKilla .grin! wuz here" 
> wrote:
>> Should, but itn't! =(
>>
>> And I whanna know why...
>>
>> maybe some kind of flag...
>>
>> 2009/1/23 jay :
>>
>>
>>
>>
>>
>> > this should work:
>>
>> > $("#elementID").click(function(){alert('clicked')});
>>
>> > On Jan 23, 10:20 am, KidsKilla  wrote:
>> >> Hi everyone!
>> >> I have a problem with binding events in jQuery. I didn't figured out
>> >> why, but when i'm tryin to bind a callback to links ( $(elm).click
>> >> (function() ), it doesn't works. but works fine with
>> >> elm.onclick = function() ...
>>
>> >> the same thing in 1.2.6 and 1.3.1, IE and FF...
>>
>> >> The question is: what can it be? it seems like an error with innerHTML
>> >> or somethng else, but I cant find out what happening...
>>
>> --
>> Максим Игоревич Гришаев,
>> AstroStar.ru



-- 
Максим Игоревич Гришаев,
AstroStar.ru


[jQuery] Re: Events. .click() vs. .onclick

2009-01-23 Thread KidsKilla .grin! wuz here

Should, but itn't! =(

And I whanna know why...

maybe some kind of flag...

2009/1/23 jay :
>
> this should work:
>
> $("#elementID").click(function(){alert('clicked')});
>
> On Jan 23, 10:20 am, KidsKilla  wrote:
>> Hi everyone!
>> I have a problem with binding events in jQuery. I didn't figured out
>> why, but when i'm tryin to bind a callback to links ( $(elm).click
>> (function() ), it doesn't works. but works fine with
>> elm.onclick = function() ...
>>
>> the same thing in 1.2.6 and 1.3.1, IE and FF...
>>
>> The question is: what can it be? it seems like an error with innerHTML
>> or somethng else, but I cant find out what happening...



-- 
Максим Игоревич Гришаев,
AstroStar.ru


[jQuery] Events. .click() vs. .onclick

2009-01-23 Thread KidsKilla

Hi everyone!
I have a problem with binding events in jQuery. I didn't figured out
why, but when i'm tryin to bind a callback to links ( $(elm).click
(function() ), it doesn't works. but works fine with
elm.onclick = function() ...

the same thing in 1.2.6 and 1.3.1, IE and FF...

The question is: what can it be? it seems like an error with innerHTML
or somethng else, but I cant find out what happening...


[jQuery] Re: .append() into style element causes error in IE only

2009-01-15 Thread KidsKilla

You can use an alternative way:

var el = $('').appendTo('head').attr({
media: media,
id:id,
type:  'text/css'
})[0];
if(el.styleSheet !== undefined && el.styleSheet.cssText !==
undefined) { // IE
el.styleSheet.cssText = css;
} else {
el.appendChild(document.createTextNode(css)); // Others
//el.innerHTML = css;
};



[jQuery] .is(":event")

2009-01-15 Thread KidsKilla

hi everyone!
is there any possibility to find out if there is event binded to the
element?

some kind of $("#id").is(":event(click)")

now i'm using $("#id").is("[onclick]"); but it don't works if event is
binded with jQuery


[jQuery] Re: Best JQuery pop-up plugin.

2008-09-19 Thread KidsKilla .grin! wuz here
I like this one:

http://www.ericmmartin.com/projects/simplemodal/

2008/9/18 crypto5 <[EMAIL PROTECTED]>

>
>
> Hi All,
>
> what is the best JQuery pop-up window plugin in your opinion?
>
> I am not strong experienced in JQuery and looking for such plugin but don't
> want test everything. So lloking for short cut.
>
> Thanks All!
> --
> View this message in context:
> http://www.nabble.com/Best-JQuery-pop-up-plugin.-tp19556756s27240p19556756.html
> Sent from the jQuery General Discussion mailing list archive at Nabble.com.
>
>


-- 
Максим Игоревич Гришаев,
AstroStar.ru


[jQuery] class animation

2008-05-23 Thread KidsKilla

Hi, everybody!
Is there any plugin, that will animate from one css class to another
one?


[jQuery] Re: CSS dynamic loading

2008-03-24 Thread KidsKilla .grin! wuz here
Thanks! but this plugin throws an error too.
Seems like there is no easy way to find out when css is loaded... =/

2008/3/22, Ariel Flesler <[EMAIL PROTECTED]>:
>
>  Not exactly what you said, but it's related to the rules you
>  mentioned.
>  Rule: http://flesler.blogspot.com/2007/11/jqueryrule.html


-- 
Максим Игоревич Гришаев,
AstroStar.ru


[jQuery] script tag loading error

2008-01-31 Thread KidsKilla

Hi guys!

Can someone tell me, is there any possibility to catch loading error
(404, 500). ajax type: "script"?


[jQuery] Animation improvements

2008-01-18 Thread KidsKilla

Hello everyone!

How can i stop an animation of 1 css rule without touching everything
other?
For example:
$('div').animate({width:'+=300'}, 'slow');
$('div').animate({opacity:'hide'}, 'slow');
$('button').click(function(){
   $('div').stop('width').animate({width:'-=300'}, 'slow');
});


And maybe it's good itea to have namespaces for animation just like at
events:
$("#block1").animate( { width: "90%"}, { queue: false, duration: 5000,
namespace:'blah-blah'
 } )
$("#block1").stop('.blah-blah');


And can i run animation agan (after .stop())?
$('div').animate({width:'+=300'}, 'slow').stop().run();


[jQuery] Re: IE7 fadeOut table row?

2008-01-17 Thread KidsKilla .grin! wuz here
I think it's because of IE's realisation of tables.
he simply can't apply filters for .
seems like you sould find some workaround instead of using tr.
something like:
1text1
2text2

quite ugly, but might work...

2008/1/17, alivemedia <[EMAIL PROTECTED]>:
>
> Nope, not yet - anyone else have this problem and a solution?
>


-- 
Максим Игоревич Гришаев,
AstroStar.ru


[jQuery] Re: animation queue ?

2008-01-17 Thread KidsKilla .grin! wuz here
try this:
$.fn.animateByOrder = function(params, duration, easing, callback){
var i = -1;
var arr = this;
if($.isFunction(easing)) {
callback = easing;
easing = null;
}
(function(){
if(arr[++i])
$(arr[i]).animate(params, duration, easing, 
arguments.callee)
else
if(callback)
callback();
})();
}
$('div.c1, div.c2, div.c3, div.c4').animateByOrder({width:400,
height:300}, 'slow', function(){alert('wow!')} );

2008/1/17, Alexandre Plennevaux <[EMAIL PROTECTED]>:
>
> hi friends,
>
> i'm storing the steps of a series of animations in an array, that have to 
> occur one after the others, according to their index order  in the array.
>
> Example:  animArray['section', 'item','object1','object2' ];
>
> i would like to run a function that loops through the array, and for each 
> element in the array, perform the animation, then when the animation is 
> finished,  move on to the next element, do its related animation, etc... 
> until the array is finished.
>
>
> Now, how do i make the animation queue one after the others?
>
>
> Thanks for any feedback/hint,
>
> Alexandre
>
>
>


-- 
Максим Игоревич Гришаев,
AstroStar.ru


[jQuery] Re: clone help

2008-01-17 Thread KidsKilla .grin! wuz here
$('#$id').remove().clone(true).appendTo('#verticals');
is wrong. because of remove() (it kills everything because of memory IE leaks).
you sould use this chain instead:

$('#$id').appendTo('#verticals');

or somethin like that:

$('#$id').hide().bla-bla.appendTo('#verticals').show();

2008/1/17, Lionel Martelly <[EMAIL PROTECTED]>:
>
> I read somewhere that events must be bind when cloning so I remove the
> parent. Please how do I bind the context menu?
>
> $('#$id').contextMenu('chooser', {
> bindings: {
>   'vert':  function(t) {
> $('#$id').remove().clone(true).appendTo('#verticals');
> },
>   'horiz':  function(t) {
> $('#$id').remove().clone(true).appendTo('#horizontals');},
> }
>  });
>
> I am also loosing the draggable/sortable. I do not know how to bind it.
>
> Thank you.
>
>


-- 
Максим Игоревич Гришаев,
AstroStar.ru


[jQuery] Re: How to select the last item in a collection?

2008-01-17 Thread KidsKilla

$(this).filter(':last')

On 17 янв, 13:00, "Jesper Rønn-Jensen" <[EMAIL PROTECTED]> wrote:
> I made a script that makes a div clickable by selecting all  class="click"> and setting the onclick event to go to the href of a
> link. Everything worked when i selected the first links href
> attribute.
> This works and selects the first a element:
>   location.href = $(this).children('p').children('a')[0].href;
>
> But I made a HTML change and now want to select the last a element's
> href attribute. However I must be messing up something. This does not
> work:
>   location.href = $(this).children('p').children('a')[$
> (this).size()-1].href;
> Which unfortunately also picks the first A element and not the last
> one as intended. I also tried the most intuitive (for me), but there
> is no .last() method defined so this doesn't work either:
>
> location.href = $(this).children('p').children('a').last().href;
> => $(this).children("p").children("a").last is not a function
>
> I'm using JQuery 1.2.1and the solution must work in FF2, IE6, IE7. I
> am not able to count the links, and I prefer not swapping around the
> html elements, as it would require absolute positioning that might
> mess other stuff up.
>
> Considering these constraints, what are my options?
> Any suggestions?
>
> Thanks in advance!
>
> /Jesper Rønn-Jensenwww.justaddwater.dk


[jQuery] animate

2008-01-17 Thread KidsKilla

Hi, everyone!
I haven't found in docs, how can i stop an animation of 1 css rule
without
touching everything other? for example:
$('div').animate({width:'+=300'}, 'slow');
$('div').animate({opacity:'hide'}, 'slow');
$('button').click(function(){
  $('div').stop('width').animate({width:'-=300'}, 'slow');
});

And maybe it's good itea to have namespaces for animation just like at
events:
$("#block1").animate( { width: "90%"}, { queue: false, duration: 5000,
namespace:'blah-blah'
 } )
$("#block1").stop('.blah-blah');

And one more: can i run animation agan (after .stop())?
$('div').animate({width:'+=300'}, 'slow').stop().run();


[jQuery] animate

2008-01-17 Thread KidsKilla .grin! wuz here
Hi, everyone!
I haven't found in docs, can i stop an animation of 1 css rule without
touching everything other? for example:
$('div').animate({width:'+=300'}, 'slow');
$('div').animate({opacity:'hide'}, 'slow');
$('button').click(function(){
   $('div').stop('width').animate({width:'-=300'}, 'slow');
});

And maybe it's good itea to have namespaces for animation just like at events:
$("#block1").animate( { width: "90%"}, { queue: false, duration: 5000,
namespace:'blah-blah'
 } )

And one more: can i run animation agan (after .stop())?
$('div').animate({width:'+=300'}, 'slow').stop().run();

-- 
Максим Игоревич Гришаев,
AstroStar.ru


[jQuery] Re: operation aborted error - please help

2007-12-14 Thread KidsKilla .grin! wuz here
start your code inside

$(document).ready(function(){
...
});

about:
http://weblogs.asp.net/infinitiesloop/archive/2006/11/02/Dealing-with-IE-_2600_quot_3B00_Operation-Aborted_2600_quot_3B002E00_-Or_2C00_-how-to-Crash-IE.aspx

2007/12/14, BarakLevy <[EMAIL PROTECTED]>:
>
> Hello,
>
> I programmed a site using a fade effect in the image gallery:
> http://www.tween-id.com/develop/pitsou/EinVeredHouse1.shtml
>
> On the FF is works fine but on the IE I sometimes get error
>
> Can you help me?
>
> The home page of this site is: 
> http://www.tween-id.com/develop/pitsou/index.shtml
> Go to the "selected projects in the projects menu
>


-- 
Максим Игоревич Гришаев,
AstroStar.ru


[jQuery] Re: .end()

2007-12-13 Thread KidsKilla .grin! wuz here
ok, thanx, John!

13.12.07, John Resig<[EMAIL PROTECTED]> написал(а):
> If it's the last function, and you're not chaining anything after it,
> then no. I tend to do that simply so that I can remember to end my
> chains properly, but it's not required.
>
> --John
>
> On Dec 13, 2007 8:58 AM, KidsKilla .grin! wuz here <[EMAIL PROTECTED]> wrote:
> > Couple times I've seen jQuery examples, where used .end() function:
> > http://docs.jquery.com/Tutorials:How_jQuery_Works (Chainability)
> >
> > Is there any reason to paste .end() as the last function of chain?
> >
> >
> > --
> > Максим Игоревич Гришаев,
> > AstroStar.ru
> >
>


-- 
Максим Игоревич Гришаев,
AstroStar.ru


[jQuery] Re: ui.datepicker causes IE "operation aborted"

2007-12-13 Thread KidsKilla .grin! wuz here
omg. is there any reason to use jquery from iframe?
whatever, if you have access to the parent window from iframe,
you should use smt like this:

$(myParentWin.document).ready()
not just
$(document).ready()

or maybe i missed smt...

2007/12/13, R. Rajesh Jeba Anbiah <[EMAIL PROTECTED]>:
>
> On Dec 12, 7:56 pm, "KidsKilla .grin! wuz here" <[EMAIL PROTECTED]>
> wrote:
> > This problem caused in IE not because of jQuery bug, but because of IE bug.
> > IE doesn't allow to work with DOM untill it's fully downloaded and be ready.
> > This is why everything works fine inside $(document).ready()
> > there is 2 ways to fix it:
> > 1. initialize everything in $(document).ready()
> > 2. paste your script tags in head or directly in body tag. (i mean
> > there have to be no parent tags)
>
>
>This is not quite true. The ready() is keep on changing; I'm not
> sure if one in svn is finalized.
>
>You'll get this error even if you follow the above 2 criteria in at
> least one of the previous/current jQuery versions--especially if you
> use jQuery from IFRAME.
>
> --
>   
> Email: rrjanbiah-at-Y!comBlog: http://rajeshanbiah.blogspot.com/
>


-- 
Максим Игоревич Гришаев,
AstroStar.ru


[jQuery] .end()

2007-12-13 Thread KidsKilla .grin! wuz here
Couple times I've seen jQuery examples, where used .end() function:
http://docs.jquery.com/Tutorials:How_jQuery_Works (Chainability)

Is there any reason to paste .end() as the last function of chain?


-- 
Максим Игоревич Гришаев,
AstroStar.ru


[jQuery] Re: How to toggle "display" value?

2007-12-12 Thread KidsKilla .grin! wuz here
Guys. Everything is much simplier.
 has the other value for display property, than block it's table-cell.

change your html code:





Add a gift message:




2007/12/12, R. Rajesh Jeba Anbiah <[EMAIL PROTECTED]>:
>
> On Dec 12, 8:42 am, Karl Swedberg <[EMAIL PROTECTED]> wrote:
>
> > Dave, the .toggle() effect should work
>
>
>I presume, it's the problem that I pointed out couple of months
> before
> http://groups.google.com/group/jquery-en/msg/5bd84051624cc1b3
>
> --
>   
> Email: rrjanbiah-at-Y!comBlog: http://rajeshanbiah.blogspot.com/
>


-- 
Максим Игоревич Гришаев,
AstroStar.ru


[jQuery] Re: $.get and $.ajaxSetup

2007-12-12 Thread KidsKilla .grin! wuz here
$.get('http://mylogin:[EMAIL PROTECTED]', data, callback)

2007/12/11, Dado <[EMAIL PROTECTED]>:
>
> $.get does not seem to comply to the defaults set with $.ajaxSetup. Is
> this a bug or a feature? Alternatively, I would like to have
> customized $.ajax calls ala $.getJSON. For example, something like
> $.getJSONPwithBasicAuth(url, data, callback, username, password) and
> have datatype default to 'jsonp' and request headers automagically
> setup for basic auth.
>
> How would I go about defining my own customized $.get ajax functions?
>
> Thanx in advance for your precious help!
>
> Dado
>


-- 
Максим Игоревич Гришаев,
AstroStar.ru


[jQuery] Re: ui.datepicker causes IE "operation aborted"

2007-12-12 Thread KidsKilla .grin! wuz here
This problem caused in IE not because of jQuery bug, but because of IE bug.
IE doesn't allow to work with DOM untill it's fully downloaded and be ready.
This is why everything works fine inside $(document).ready()
there is 2 ways to fix it:
1. initialize everything in $(document).ready()
2. paste your script tags in head or directly in body tag. (i mean
there have to be no parent tags)

search for "Operation aborted"
http://channel9.msdn.com/wiki/default.aspx/Channel9.InternetExplorerProgrammingBugs


2007/12/12, Dan M <[EMAIL PROTECTED]>:
>
> Charles,
>
> I have a feeling you need to switch your $(document).ready() function
> to a $(window).load() function. Let me know if that works for you.
>
> Regards,
> Dan
>
> On Dec 8, 5:26 pm, Charles Johnson <[EMAIL PROTECTED]> wrote:
> > I believe this bug was supposed to have been fixed in the move from
> > jQuery Calendar to ui.datepicker, but I'm still seeing sporadic
> > "Operation Aborted" errors in Internet Explorer, both 6 and 7, when
> > the datepicker is initialized. Frustrating problem because it's very
> > intermittent.
> >
> > The code I'm using is pretty simple; in the HTML:
> >
> >  > readonly="readonly" />
> >
> > Then in the $(document).ready function, I instantiate the datepicker
> > with this:
> >
> > $('#calendarDaily').datepicker({
> > showOn: 'button',
> > speed: 'fast',
> > buttonImageOnly: true,
> > buttonImage: '/dailyarchives.jpg',
> > buttonText: 'Calendar',
> > minDate: new Date(2001, 2 - 1, 7),
> > dateFormat: 'YMD-',
> > onSelect: function(thedate) {
> > eval("parent.location='/index.php?date=" + thedate + "'");
> > }
> >
> > });
> >
> > Works fine in all flavors of Mozilla/Firefox, and in Safari -- IE is
> > the only problem.
>


-- 
Максим Игоревич Гришаев,
AstroStar.ru


[jQuery] Re: hiding page elements instantly on page load

2007-12-07 Thread KidsKilla .grin! wuz here
I think it's better to do like that:



  
  .js .myclass{display:none;}
  


  
  document.body.className+=' js';
  
   ...

2007/12/6, bytte <[EMAIL PROTECTED]>:
>
> Hi guys,
>
> I use php to fetch a menu out of a mysql database. Basically the menu
> is made up of a lot of nested unordered lists (). I'm using jQuery
> to hide any submenu. This means that when a user visits the webpage he
> only sees the first . When he clicks a , the submenu (again an
> ) is shown.
>
> This works great on my localhost. However, when I publish online I
> experience a problem: on page load the whole  is shown for a
> second, including all nested  submenu's, before it is hidden by
> jQuery. I guess this is because all  elements need to be loaded
> into the DOM before the jQuery code is started?
>
> Is there anything I can do to solve this problem?
>
> Thanks for any advice!
>


-- 
Максим Игоревич Гришаев,
AstroStar.ru


[jQuery] Re: Masked Input Plugin 1.1.2

2007-11-30 Thread KidsKilla .grin! wuz here
I tried, seems like it works just fine =):
   input.one("unmask",function(){
   input.unbind("focus",focusEvent);
   input.unbind("blur",checkVal);
   input.unbind("keydown",keydownEvent);
   input.unbind("keypress",keypressEvent);
   input.unbind('paste, input',checkValST0);
   });
   input.bind("focus",focusEvent);
   input.bind("blur",checkVal);
   input.bind("keydown",keydownEvent);
   input.bind("keypress",keypressEvent);
   input.bind('paste, input', checkValST0);
   checkVal();//Perform initial check for existing values
   });
   function checkValST0(){
   setTimeout(checkVal,0);
   };

And maybe it's better to accept RegExp to use it like a template for validation?


2007/11/30, Josh Bush <[EMAIL PROTECTED]>:
>
> By using the "event.identifier" type binding, I'd be limiting my
> plugin to 1.2.x+.  I've never tried using bind with the paste and
> input events.  The solution that is in the plugin was the only way I
> could make it work, but that was quite some time ago.  I'll
> investigate that further when I get home tonight.  Can anyone confirm
> if that would work or not?
>
> Josh
>
> On Nov 30, 6:56 am, "KidsKilla .grin! wuz here" <[EMAIL PROTECTED]>
> wrote:
> > Great plugin!
> > i only think it's better to use somethin like
> > $(this).bind('paste.jqmask, input.jqmask',function(){
> >setTimeout(checkVal,0);};)
> >
> > instead of
> > if ($.browser.msie)
> >this.onpaste= function(){setTimeout(checkVal,0);};
> > else if ($.browser.mozilla)
> >this.addEventListener('input',checkVal,false);
> >
> > 2007/11/30, Josh Bush <[EMAIL PROTECTED]>:
> >
> >
> >
> >
> >
> > > I just released version 1.1.2 of my Masked Input Plugin for jQuery.
> > > Felix Geisendörfer helped me mash out a few things with this release.
> > > He fixed the bug for Mac/Firefox with the backspace key and got me to
> > > open up the caret positioning functions. Thanks Felix!
> >
> > > Here are the changes for this release
> >
> > > * Fixed a bug in Mac Firefox with backspacing.
> > > * Fixed a bug where delete at end of mask produced an extra
> > > placeholder character.
> > > * Exposed the caret positioning and retrieval methods as a jQuery
> > > function extension. You can now call $().caret() to get a caret
> > > position and $().caret(start [,end]) to set a caret position.
> >
> > > Please go check out the latest version 
> > > athttp://digitalbush.com/projects/masked-input-plugin
> >
> > --
> > Максим Игоревич Гришаев,
> > AstroStar.ru
>


-- 
Максим Игоревич Гришаев,
AstroStar.ru


[jQuery] Re: jQuery.extend not working for function as target,is it a bug?

2007-11-30 Thread KidsKilla .grin! wuz here
is there any reason to use first variant instead of second?
jQuery.extend(target, {})
jQuery.extend(target.prototype, {})

2007/11/30, David Serduke <[EMAIL PROTECTED]>:
>
> Ah the beauty of bug fixes.  Fix one thing and break another.  This
> was a change from changeset [3841].  There were some issues with deep
> copy and this was one of the changes to prevent the problems.  The
> problem you are having should be fixed in [3985].
>
> Sorry bout that.
>
> David
>


-- 
Максим Игоревич Гришаев,
AstroStar.ru


[jQuery] Re: Masked Input Plugin 1.1.2

2007-11-30 Thread KidsKilla .grin! wuz here
Great plugin!
i only think it's better to use somethin like
$(this).bind('paste.jqmask, input.jqmask',function(){
   setTimeout(checkVal,0);
};)
instead of
if ($.browser.msie)
   this.onpaste= function(){setTimeout(checkVal,0);};
else if ($.browser.mozilla)
   this.addEventListener('input',checkVal,false);

2007/11/30, Josh Bush <[EMAIL PROTECTED]>:
>
> I just released version 1.1.2 of my Masked Input Plugin for jQuery.
> Felix Geisendörfer helped me mash out a few things with this release.
> He fixed the bug for Mac/Firefox with the backspace key and got me to
> open up the caret positioning functions. Thanks Felix!
>
> Here are the changes for this release
>
> * Fixed a bug in Mac Firefox with backspacing.
> * Fixed a bug where delete at end of mask produced an extra
> placeholder character.
> * Exposed the caret positioning and retrieval methods as a jQuery
> function extension. You can now call $().caret() to get a caret
> position and $().caret(start [,end]) to set a caret position.
>
> Please go check out the latest version at 
> http://digitalbush.com/projects/masked-input-plugin
>


-- 
Максим Игоревич Гришаев,
AstroStar.ru


[jQuery] Re: return true/false

2007-11-29 Thread KidsKilla .grin! wuz here
> "return true" part doesn't work
on LI element? and what you expected?

and try this

  flag =  !($(this).children("ul").length);
  $(this).css("background-color",(flag ?"red" : "black");
  return flag;

instead of

  if ( $(this).children("ul").length ) {
  $(this).css("background-color","black");
  return false;
  } else {
  $(this).css("background-color","red");
  return true;
  }

2007/11/29, bytte <[EMAIL PROTECTED]>:
>
> I have the following jquery code
>
> $('.menu li').click(function() {
> $(this).children("ul").slideDown("fast");
> $(this).siblings("li").children("ul").slideUp("fast");
> if ( $(this).children("ul").length ) {
> $(this).css("background-color","black");
> return false;
> } else {
> $(this).css("background-color","red");
> return true;
> }
> });
>
> Everything works as expected. However, the "return true" part doesn't
> work. Is this wrong syntax?
>


-- 
Максим Игоревич Гришаев,
AstroStar.ru


[jQuery] Re: how to know which radio button is checked?

2007-11-28 Thread KidsKilla .grin! wuz here
 $("input:[EMAIL PROTECTED]:checked").click(function() {

 });
or
 $("input:[EMAIL PROTECTED]").filter(':checked').click(function() {

 });



-- 
Максим Игоревич Гришаев,
AstroStar.ru


[jQuery] Re: 1.2.2

2007-11-28 Thread KidsKilla

Great! And one more question, whether in this release these tickets
are included?

(Charset in getScript)
http://dev.jquery.com/ticket/1931
http://dev.jquery.com/ticket/1934

or it's just a bugfixes?

On Nov 27, 8:57 pm, "John Resig" <[EMAIL PROTECTED]> wrote:
> http://docs.jquery.com/Frequently_Asked_Questions#When_will_jQuery_1
>
> On Nov 27, 2007 10:46 AM,KidsKilla<[EMAIL PROTECTED]> wrote:
>
>
>
> > Hi All!
> > Can you answer me a question, when it is planned to release the
> > version 1.2.2?


[jQuery] 1.2.2

2007-11-27 Thread KidsKilla

Hi All!
Can you answer me a question, when it is planned to release the
version 1.2.2?


[jQuery] jCarousel feature request

2007-08-30 Thread KidsKilla

can you implement one thing: now, to rewind all items to the last one,
i must know how much of them, substract quantity of scrolled items and
set it to the property "start". but it nedded quite frequently.
maybe it'll be good idea to make a new value to the "start" property:
"last" or something...

sorry for my bad english =)