Re: [jQuery] jqModal r7 release!

2007-03-05 Thread Dmitry Rudakov

Brice,

Could you help me?
I regularly get an error in IE when my dialog (JQM) is showing:
Can't move focus to the control because it is invisible, not enabled, or of
a type that does not accept the focus.

In Firefox and Safari everything works without problems. And IE works as
well... but this error is just annoying...

thanks,
Dmitry
-- 
View this message in context: 
http://www.nabble.com/jqModal-r7-release%21-tf3277353.html#a9323848
Sent from the JQuery mailing list archive at Nabble.com.


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


[jQuery] How to find some consequent elements

2007-03-04 Thread Dmitry Rudakov

I need to find some consequent elements of one type from some point in
DOM

For example, I have:
div id=start.../divinput id=id1/input id=id2/input
id=idN/div/divinput id=out/

I need to find all inputs (from 1 to N) and not to find input with id=out

if I use $(#start).siblings(input) I will find all inputs including
input with id=out

I do not know Id or class of this wronginput  - so I cannot filter it

I need to find ONLY consequent elements of one type... that means any other
element (like DIV in our example) will break this consequence.

I would appreciate any advice,
Dmitry


-- 
View this message in context: 
http://www.nabble.com/How-to-find-some-consequent-elements-tf3344703.html#a9302237
Sent from the JQuery mailing list archive at Nabble.com.


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] How to find some consequent elements

2007-03-04 Thread Dmitry Rudakov



Brice Burgess wrote:
 
 Dmitry,
 
   As an example, you can use
 
var elements = $('input',$('#start')).not('#out');
 
   I am sure others will have other suggestions.
 
Bruce, I do not know ID or something else about these wrong inputs ...
#out was just for example

I should break this sequence only when I meet any other element NOT
input... that's why I cannot use filter() or not()

I find a solution but it doesn't look a simple and elegant...

$('input',$('#start')).filter( function(index) {return
$(this).prev().is(input) || $(this).next().is(input);});

that's why I ask for some help... 

thanks,
Dmitry

-- 
View this message in context: 
http://www.nabble.com/How-to-find-some-consequent-elements-tf3344703.html#a9303000
Sent from the JQuery mailing list archive at Nabble.com.


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] jqModal r7 release!

2007-03-03 Thread Dmitry Rudakov



Brice Burgess wrote:
 
 Are you compressing (JS compressor, not gzip output) the combined 
 javascript output? I've played with similar techniques, and found 
 compressors and the capsulated function don't play well.
 

Bruce, to successfully use JS compressor
you need to include some semicolons to your source.
To be exact - 5.

herewith I send you these lines and their numbers in your source.
All missing semicolons are marked with // !DR;

#27 if(_o.trigger)$(this).jqmAddTrigger(_o.trigger);
#28 });}; // !DR;

#30 $.fn.jqmAddClose=function(e){hs(this,e,'jqmHide'); return this;}; //
!DR;
#31 $.fn.jqmAddTrigger=function(e){hs(this,e,'jqmShow'); return this;}; //
!DR;
#32 $.fn.jqmShow=function(t){return
this.each(function(){if(!hash[this._jqm].a)$.jqm.open(this._jqm,t)});}; //
!DR;
#33 $.fn.jqmHide=function(t){return
this.each(function(){if(hash[this._jqm].a)$.jqm.close(this._jqm,t)});}; //
!DR;


and 2 semicolons for jqDnR

#11 $.fn.jqDrag=function(r){$.jqDnR.init(this,r,'d'); return this;}; // !DR;
#12 $.fn.jqResize=function(r){$.jqDnR.init(this,r,'r'); return this;}; //
!DR;


After this your sources will be successfully packed and will work without
any problems.
I tested it.

But to be honest the benefit of packing your sources is very close to zero!
:)
You made a very good job for minimalism.
But sometimes it could be useful... in case if your sources are included in
one file which will be packed
later. In this case these missing semicolons will become a big trouble.
I would suggest that you include these semicolons your source (just 5
bytes!) for further
compatibility.

thanks again for your work.
Dmitry 
-- 
View this message in context: 
http://www.nabble.com/jqModal-r7-release%21-tf3277353.html#a9284870
Sent from the JQuery mailing list archive at Nabble.com.


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] ANNOUNCE: Thickbox Reloaded alpha

2007-02-26 Thread Dmitry Rudakov



Klaus Hartl wrote:
 
 Sean, as I said, I haven't done any testing in IE at all so far. I'm 
 truly amazed, that it looks great in IE 7 already. :-)
 

Karl, 

JFYI
inline examples also work in Safari.. 
ajax example does not. 

Dmitry
-- 
View this message in context: 
http://www.nabble.com/ANNOUNCE%3A-Thickbox-Reloaded-alpha-tf3293077.html#a9167180
Sent from the JQuery mailing list archive at Nabble.com.


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Interface 1.2

2007-02-10 Thread Dmitry Rudakov



Klaus Hartl wrote:
 
 Especially stop() is what a lot of people waited for! 
 

Maybe... but I cannot evaluate it because it doesn't work in Safari.
Or it works but it results to flickering in Safari anyway... 

But I quite agree with Klaus that Interface is 
very cool anyway. 

Thanks,
Dmitry
-- 
View this message in context: 
http://www.nabble.com/Interface-1.2-tf3203349.html#a8901268
Sent from the JQuery mailing list archive at Nabble.com.


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


[jQuery] jQuery is not defined error

2007-02-09 Thread Dmitry Rudakov

I've got this error when I tried to use Tooltip plugin by Joern Zaefferer.

The calls stack in Firebug looks like this:

jQuery is not defined

(no name)(0)jquery-latest.js (line 115)
each([div#tooltip.imgInfo], function(), undefined)jquery-latest.js (line
305)
each(function(), undefined)jquery-latest.js (line 89)
attr( left=859px top=231px, undefined, curCSS)jquery-latest.js (line 112)
css( left=859px top=231px, undefined)jquery-latest.js (line 123)
update(mousemove clientX=0, clientY=0)jquery.tooltip.js (line 228)
handle(mousemove clientX=0, clientY=0)jquery-latest.js (line 1266)
[Break on this error] jQuery.attr(


If this error is connected with JQuery or it's my fault and I should try to
find it
in my code? I would appreciate any advice.

Thanks,
Dmitry
-- 
View this message in context: 
http://www.nabble.com/%22jQuery-is-not-defined%22-error-tf3199265.html#a8882464
Sent from the JQuery mailing list archive at Nabble.com.


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Queueing animations

2007-02-03 Thread Dmitry Rudakov


Jörn Zaefferer wrote:
 
 jQuery already queues animations and lacks the ability to stop this 
 queue. I'm not sure about your request: Do you want to prevent new 
 animations when one is already running?
 

Do you know if this any kind of stop queue animation will be implemented
in JQuery in the nearest future or I should not to hope for it?

Thanks,
Dmitry
-- 
View this message in context: 
http://www.nabble.com/Queueing-animations-tf3135050.html#a8782920
Sent from the JQuery mailing list archive at Nabble.com.


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] strange behavior of Safari

2007-02-01 Thread Dmitry Rudakov


Karl Swedberg-2 wrote:
 
 Here is a rather lengthy explanation of the situation on the Surfin'  
 Safari blog:
 http://webkit.org/blog/?p=66
 
 If that doesn't help, you can search Google for:
safari flash of unstyled content
 or:
safari fouc
 

Karl, thank you for direction of the search.
Based on the found information I concluded that any
request to DOM when it's not ready could lead to the FOUC in Safari.

I tried to avoid it by using JQuery.ready function and
in some cases it solved the problem. But in some - did not.

May be the ready function is not safe enough for Safari?
Is it guaranteed that the DOM is completed when this function is called?
Especially in Safari case?

Thanks again for idea concerning FOUC!
Dmitry

-- 
View this message in context: 
http://www.nabble.com/strange-behavior-of-Safari-tf3148710.html#a8752777
Sent from the JQuery mailing list archive at Nabble.com.


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


[jQuery] string as var in JQuery

2007-01-31 Thread Dmitry Rudakov

I'm just getting started with JQuery.
When I tried to implement a small function I encountered the following:

there is contruction in my HTML
lispan id=navline_nextnext/span/li


а)

function StateHandler(is_next) {
 
   var span_id=[is_next ? #navline_next : #navline_prev];

   if(jQuery(span_id).parent().is(li)) {

 always false 

b)

function StateHandler(span_id) {
 
   if(jQuery(span_id).parent().is(li)) {

 true if I call this function as  StateHandler(#navline_next)

What's wrong with variant b? Can I use VAR as parameter for JQuery?

Could you help me with this issue? Maybe it's not connected with JQuery, but
JavaScript syntax?

Thanks,
Dmitry
-- 
View this message in context: 
http://www.nabble.com/string-as-var-in-JQuery-tf3148441.html#a8728047
Sent from the JQuery mailing list archive at Nabble.com.


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] string as var in JQuery

2007-01-31 Thread Dmitry Rudakov



Linan Wang-2 wrote:
 
 The problem is here:
 When passing an array to jQuery(), it will regard it as a set of
 selected elements but not a css selector.
 

Thank you, Linan. I see now.
-- 
View this message in context: 
http://www.nabble.com/string-as-var-in-JQuery-tf3148441.html#a8728791
Sent from the JQuery mailing list archive at Nabble.com.


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/