[jQuery] [validate] validation, only onblur

2008-12-17 Thread casavecchio

Hallo, is it possible to validate fields only onblur, also when it was
validated before?

Boris


[jQuery] Re: Get value from option... Internet Explorer 7

2008-12-17 Thread casavecchio

or try this

$(document).ready( function() {
$('select').change( function() {
timecode = $(this).val();
});

});


On 17 Dez., 12:00, MacTommy macto...@spray.se wrote:
 Hi, I try to catch selected choice in my dropdown inside IE7.

 span id=prefix
   select
     option value=108:00 - 16:30nbsp;nbsp;(8:00h)/option
     option value=209:00 - 17:30nbsp;nbsp;(8:00h)/option
   /select
 /span

 In my jQuery-function I use this to set the value to my string
 timecode:
 $(document).ready( function() {
         $('#prefix option').click( function() {
                 timecode = $(this).val();
         });

 });

 It´s works fine in FF but not in IE. How can I get the chosen thing
 inside IE to my variable timecode?

 Best regards
 Tommy


[jQuery] Re: howto integrate callback into a plugin

2008-09-25 Thread casavecchio

ok, i found it:

$.isFunction(callback)  callback();

thats all!

On 24 Sep., 16:55, casavecchio [EMAIL PROTECTED] wrote:
 Hello jquery-Group,

 i would like to integrate a callback into the lightbox-plugin. May
 somebody can give me a hint how to do that? I dont need all the image-
 stuff from the plugin, but want to use the overlay-method and load
 forms via ajax into the overlay by a callback.

 Thx in advance
 Boris


[jQuery] howto integrate callback into a plugin

2008-09-24 Thread casavecchio

Hello jquery-Group,

i would like to integrate a callback into the lightbox-plugin. May
somebody can give me a hint how to do that? I dont need all the image-
stuff from the plugin, but want to use the overlay-method and load
forms via ajax into the overlay by a callback.

Thx in advance
Boris


[jQuery] variable substitutioin in html-snippet

2008-09-17 Thread casavecchio

Hello,

i would like to load always the same snippet of html over ajax and
dependent on the click substitute ids and classes in the loaded
snippet. How that could work?

Any suggestions

Thx Boris


[jQuery] [validate] custom validation trigger

2008-09-08 Thread casavecchio

Hallo,

i would like to validate a formfield. Valid values are 01, 02  31,
like all possible days of a month.

The field validation should start after blur (like default) and after
the second sign was inserted(also in the first lazy-mode). When the
values are valid, the next form field should be onfocus
automatically.

Is this a possible behaviour of the plugin? At this point i dont have
an idea, how to start

Thx in advance
Boris


[jQuery] Re: [validate] custom validation trigger

2008-09-08 Thread casavecchio

Hy Jörn, thx for the unbelieveble fast reply. I just wrote kind of
oldstyle js-function, doing the same. And the blur of that function
triggered validation, too.
Didn't thought, it could be so easy.
But your solution is much more elegant.

Boris

On 8 Sep., 17:07, Jörn Zaefferer [EMAIL PROTECTED]
wrote:
 The plugin doesn't support customizing event in that manner. But you
 can always implement your own event handling, disabling the defaults
 if they interfere, and trigger validation manually. Something like
 this:

 $(#dayfield).keyup(function() {
   if (this.value.length = 2  $(this).valid()) {
     $(#nextfield).focus();
   }

 });

 That assumes you've defined max=31 as a rule for dayfield elsewhere.

 Details about the valid method are 
 here:http://docs.jquery.com/Plugins/Validation/valid

 Jörn

 On Mon, Sep 8, 2008 at 4:49 PM, casavecchio [EMAIL PROTECTED] wrote:

  Hallo,

  i would like to validate a formfield. Valid values are 01, 02  31,
  like all possible days of a month.

  The field validation should start after blur (like default) and after
  the second sign was inserted(also in the first lazy-mode). When the
  values are valid, the next form field should be onfocus
  automatically.

  Is this a possible behaviour of the plugin? At this point i dont have
  an idea, how to start

  Thx in advance
  Boris


[jQuery] Tooltip

2008-06-05 Thread casavecchio

Hello,

I am using tooltip 1.2. There is one strange behaviour. And since now
i didn't find out how to avoid.

Moving over a input-field the tooltip is shown as wanted. But when the
mouse is dragged accidently into the input field the tooltip remains
highlighted and follows the mouse over the whole screen.

Only when another Tooltip is activated the 'wrong' tooltip lowlights
again.

Maybe you know a solution?

REgards Boris


[jQuery] Re: Tooltip

2008-06-05 Thread casavecchio

Hallo Jörn,

mmh, strange, right now i cannot reproduce it myself. I will check it
tomorrow again. When i recognize that effect again, i will sent a
link. But it wasn't imagination.  Thanks for the fast reply.

Boris



On 5 Jun., 17:50, Jörn Zaefferer [EMAIL PROTECTED]
wrote:
 I'm unable to reproduce the issue you describe - could you try to
 describe the steps necessary in a different way?

 Thanks
 Jörn

 On Thu, Jun 5, 2008 at 3:01 PM, casavecchio [EMAIL PROTECTED] wrote:

  Hello,

  I am using tooltip 1.2. There is one strange behaviour. And since now
  i didn't find out how to avoid.

  Moving over a input-field the tooltip is shown as wanted. But when the
  mouse is dragged accidently into the input field the tooltip remains
  highlighted and follows the mouse over the whole screen.

  Only when another Tooltip is activated the 'wrong' tooltip lowlights
  again.

  Maybe you know a solution?

  REgards Boris


[jQuery] tooltip - highlighting when a formfield is reached by a tab

2008-05-20 Thread casavecchio

Hello,

the default behavior of the tooltip to highlight mouseover a formfield
is nice and desired. But the tooltip should appear too, when a
formfield is accessed by a tab.

Is there a way to check which way a field was accessed and change the
behavior?

Regards Boris



[jQuery] selector as variable

2008-02-06 Thread casavecchio

Hello,

i am just trying to read css-properties from div-elements on my site,
but i always get an undefined and cannot figure out what going wrong.



function showTop(id){
var pos = $jq(#mx- + id);
alert($jq(pos).css('top'));
   }

casavecchio


[jQuery] Re: selector as variable

2008-02-06 Thread casavecchio

 That would translate to...

 $jq($jq(...))

 Sounds like too much jq. I'd try:

 alert(pos.css('top'));

 Cheers
  Christpoh
 --
 [EMAIL PROTECTED]  www.workaround.org   JID: [EMAIL PROTECTED]
 gpg key: 79CC6586 fingerprint: 
 9B26F48E6F2B0A3F7E33E6B7095E77C579CC6586

mmh, yes that makes sense. It wasn't working too. But the reason was
mixing up the ids.
So, sorry for bothering with stupid questions

cheers casavecchio ;)