[jQuery] Re: jqModal r12 release

2008-06-23 Thread Alexandre Plennevaux
hurray !!  thanks brice !

Alexandre


On Mon, Jun 23, 2008 at 6:07 AM, Rey Bango [EMAIL PROTECTED] wrote:


 Nice Brice!

 Rey


 Brice Burgess wrote:


 Ladies and Gentleman,

  I have finally updated jqModal, and apologize for the ridiculous delay. I
 am also pleased to announce that the plugin page has been updated to include
 improved documentation.

  jqModal is a tiny general-purpose windowing / dialog / popup / modal /
 what-have-you plugin.

  The r12 release brings long-awaited jQuery 1.2.6 compatibility. This was
 a trivial fix. The issue was due to IE returning 0 for $.css('z-index')
 regardless if the attribute existed or not. Thanks go to Schabse Laks and
 the jQuery community for pointing this out earlier.

  A few other changes;

 * Removed the zIndex parameter (better to rely on CSS styling)
 * Subsequent $.jqm calls now update configuration
 * The AJAX target is now cleared before load
 * Added ajaxText parameter - a method of introducing a loading
 graphic/text while waiting for ajax content to return.

  As usual, the plugin can be grabbed from;

 http://dev.iceburg.net/jquery/jqModal/

  I hope you are enjoying the Summer (or Winter) Solstice. Be well,

 ~ Brice




-- 
Alexandre Plennevaux
LAb[au]

http://www.lab-au.com


[jQuery] Re: Firefox (23) does not render new content on .append(val) and .html(val)

2008-06-23 Thread Alexandre Plennevaux
did you check your CSS that no display:none is actually set onto your #right
inner content?  This would explain that...
also, check the html that you load it in, see if it is properly marked up...
That has happened to me before ...

if this didn't work, can we see it live ?

hth

Alexandre

On Mon, Jun 23, 2008 at 1:13 AM, c2h5oh [EMAIL PROTECTED] wrote:


 I've got some pretty simple code:

 [..]
 $(.remove).click(function(){
$.post(index.php,{action:remove}, function(data){
$(#right).html(data.newContent);
}, json)
return false;
 });
 [..]
 div id=#right
a class=removeremove it!/a
 /div
 [..]

 Once I click on the link new #right content is properly fetched and
 inserted in the div, but it is not rendered. Innerhtml is there, but
 It is not displayed. On the other hand if I replace .html()
 with .text() the content is displayed - as text, as expected.

 I am using JQuery 1.2.6
 It works fine in IE7 and Opera 9.2, it fails in both FF2 and FF3

 Any ideas?




-- 
Alexandre Plennevaux
LAb[au]

http://www.lab-au.com


[jQuery] [ANNOUNCE] jQuery powered Plazes acquired by Nokia

2008-06-23 Thread Klaus Hartl

All,

I'm happy to announce that jQuery powered service Plazes has been
aquired ny Nokia. W0t!!!1!

http://www.techcrunch.com/2008/06/23/breaking-germanys-plazes-acquired-by-nokia/


Cheers, Klaus


[jQuery] Re: head part missing in Safari

2008-06-23 Thread Nyro

I know that what I'm trying to do doesn't make any sense regarding the
html structure.
I released a modal plugin. As all other modal plugin works, you can
request a html page an include it, regardless if there is a whole html
page or simply some html element.
The thing is the use of jQuery result with a different behavior
regarding the browser, which is not what we except.

As exemple, we can see the events which are fixed to populate the
right content everytime.

Otherwise, I don't see how the getScript function could help me in
this case.
I don't want to retrieve only script by ajax, but a html page which
eventually includes javascript file in the head part.

On Jun 22, 5:24 am, Karl Rudd [EMAIL PROTECTED] wrote:
 It's not an issue with jQuery or the browser.

 A whole page (HTML element and all) into another page, it'd be invalid
 HTML so the browser could do anything with it. It's like writing:

 html
 head...head
 body
   ...
   html
   head...head
   body.../body
   /html
   ...
 /body
 /html

 So as you can see that would make no sense.

 The solution is to insert a partial document, in this case just the
 part inside the body and any scripts (though you may want to check
 out the $.getScript() function).

 Karl Rudd

 On Sun, Jun 22, 2008 at 12:44 PM, Nyro [EMAIL PROTECTED] wrote:

  I figured out a tweak problem with jQuery, whole html page injection
  andSafari.

  I tested only insafarion Windows, maybe that will works differently
  in Mac.

  To figure out the problem, I make a small testing page

 http://nyromodal.nyrodev.com/jQueryBug.php

  As you can see, when loading the page with an ajax request, the alert
  is shown in Firefox, IE but notSafari.

  Basically everything contained in the head part is simply not used.
  Writing the script tag in the body part works well.

  Moreover the HTML content is not the same. I don't know if it's a
  jQuery Issue or a browser, and this thing is not really important.

  It could be great if jQuery fix thisSafariissue.

  Thanks


[jQuery] Searching a PlugIn( Protoload )

2008-06-23 Thread Stefan Sturm

Hello,

I'm searching a PlugIn similar to Protoload(
http://aka-fotos.de/protoload/ ) for Prototype.

Thanks for your Help,
Stefan Sturm


[jQuery] Re: [validate] Validation Plugin issue when using TinyMCE

2008-06-23 Thread Jörn Zaefferer

Most likely TinyMCE creates a new element and places it after the
textarea, hiding the former. Use the errorPlacement-option to
customize the placement for that case.

Jörn

On Mon, Jun 23, 2008 at 1:54 AM, shapper [EMAIL PROTECTED] wrote:

 Hello,

 I have the following rules:

  $(#New).validate({
errorClass: Error,
errorElement: label,
rules: {Answer: {required: true}},
  });

 Applied to text area:

 label for=Answer class=RequiredResposta/label
 textarea  name=Answer rows=10 cols=20 id=Answer/
 textarea

 This works fine. The error labels shows after the TextArea.
 The moment I use TinyMCE (http://tinymce.moxiecode.com/) to make the
 Text Area an HTML WYSIWYG editor I get a problem:

  The error label shows before the text area and after the label!

 Any idea what might be wrong? How can I solve this?

 Thanks,
 Miguel



[jQuery] Loading jQuery code from a seperate file?

2008-06-23 Thread xkratosx


Just wrote out a long message and the site failed to load and I can't get it
back for some reason, damn IE7 :(

Basically, I'm wondering how to define my jQuery code in a seperate file? If
for example I've got something that's going to be on 95%+ of the pages, I'd
like to have it in a seperate .js file and then search for an element, then
execute the code, eg:

if(document.getElementById('login-username') 
document.getElementById('login-password')) { initLogin(); }

Just wondering what the best way is to do this via jQuery please?

Cheers,
Nick
-- 
View this message in context: 
http://www.nabble.com/Loading-jQuery-code-from-a-seperate-file--tp18064600s27240p18064600.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



[jQuery] Re: jqModal r12 release

2008-06-23 Thread Jose Noheda
Had I known this existed I would have saved a day of work :-(

I did a Google Search for lightbox and it didn't appear. You may include the
keyword somewhere

Regards,

On Mon, Jun 23, 2008 at 9:37 AM, Alexandre Plennevaux [EMAIL PROTECTED]
wrote:

 hurray !!  thanks brice !

 Alexandre


 On Mon, Jun 23, 2008 at 6:07 AM, Rey Bango [EMAIL PROTECTED] wrote:


 Nice Brice!

 Rey


 Brice Burgess wrote:


 Ladies and Gentleman,

  I have finally updated jqModal, and apologize for the ridiculous delay.
 I am also pleased to announce that the plugin page has been updated to
 include improved documentation.

  jqModal is a tiny general-purpose windowing / dialog / popup / modal /
 what-have-you plugin.

  The r12 release brings long-awaited jQuery 1.2.6 compatibility. This was
 a trivial fix. The issue was due to IE returning 0 for $.css('z-index')
 regardless if the attribute existed or not. Thanks go to Schabse Laks and
 the jQuery community for pointing this out earlier.

  A few other changes;

 * Removed the zIndex parameter (better to rely on CSS styling)
 * Subsequent $.jqm calls now update configuration
 * The AJAX target is now cleared before load
 * Added ajaxText parameter - a method of introducing a loading
 graphic/text while waiting for ajax content to return.

  As usual, the plugin can be grabbed from;

 http://dev.iceburg.net/jquery/jqModal/

  I hope you are enjoying the Summer (or Winter) Solstice. Be well,

 ~ Brice




 --
 Alexandre Plennevaux
 LAb[au]

 http://www.lab-au.com


[jQuery] Re: jcarousel, ajax and thickbox

2008-06-23 Thread Jose Noheda
May be this helps http://internna.blogspot.com/

On Sun, Jun 22, 2008 at 3:44 AM, marmo79 [EMAIL PROTECTED] wrote:


 Please, could someone helps me?
 I've one problem about to use the plugin Jcarousel with Thickbox:if I
 try to load dinamically the items with Ajax the class=thickbox
 doesn't works:
 function jcarousel_getItemHTML(item)
 {

return 'a href=' + jQuery('src', item).text() + '
 class=thickboximg border=0 src=' + jQuery('src', item).text() +
 '  alt=' + jQuery('title', item).text() + ' //a';
 };

 So I've tried to add the line !tb_init('a.thickbox, area.thickbox,
 input.thickbox');  in some jcarosuel's function and thickbox works in
 very strange mode.
 How can I improve thickbox in jcarousel using Ajax?



[jQuery] Looking for an 'add to clipboard'/ shortlist sort of script

2008-06-23 Thread johnmce

Hi all, I've been searching around for a script to do this for ages
but can't seem to find anything, I wonder if anyone can help??

I'm looking for a script which lets visitors add links to a mini
onsite clipboard using ajax. This will work as a shortlist, users can
add a number of products to their shortlist and then compare them side
by side.

www.autotrader.co.uk basically does exactly what I wanted and this
site also uses a save link function www.jellyfish.co.uk. Does anyone
know of a jQuery script which does this or something similar?

Thanks in advance,

John


[jQuery] Re: jQuery powered Plazes acquired by Nokia

2008-06-23 Thread Mike Alsup

Very cool.  Congratulations, Klaus!


On Jun 23, 4:41 am, Klaus Hartl [EMAIL PROTECTED] wrote:
 All,

 I'm happy to announce that jQuery powered service Plazes has been
 aquired ny Nokia. W0t!!!1!

 http://www.techcrunch.com/2008/06/23/breaking-germanys-plazes-acquire...

 Cheers, Klaus


[jQuery] Re: jQuery powered Plazes acquired by Nokia

2008-06-23 Thread Joel Birch

What a great reward for all your hard work.
Congratulations Klaus!


[jQuery] Re: head part missing in Safari

2008-06-23 Thread Karl Rudd

If you do need to import a whole page then I suggest you process the
returned data and strip the body and head data out before you insert
it into the importing page.

For example, a quick and dirty (untested) adaptation of the existing code:

$.ajax({
url: 'jQueryBug.php',
success: function(data) {
var cleanedData = 
data.replace(//?(html|head|body)([^]*)/,'')
var cont = $('#cont').hide().html( cleanedData );
$('#pre').val(cont.html());
}
});

Karl Rudd

On Mon, Jun 23, 2008 at 2:31 PM, Nyro [EMAIL PROTECTED] wrote:

 I know that what I'm trying to do doesn't make any sense regarding the
 html structure.
 I released a modal plugin. As all other modal plugin works, you can
 request a html page an include it, regardless if there is a whole html
 page or simply some html element.
 The thing is the use of jQuery result with a different behavior
 regarding the browser, which is not what we except.

 As exemple, we can see the events which are fixed to populate the
 right content everytime.

 Otherwise, I don't see how the getScript function could help me in
 this case.
 I don't want to retrieve only script by ajax, but a html page which
 eventually includes javascript file in the head part.

 On Jun 22, 5:24 am, Karl Rudd [EMAIL PROTECTED] wrote:
 It's not an issue with jQuery or the browser.

 A whole page (HTML element and all) into another page, it'd be invalid
 HTML so the browser could do anything with it. It's like writing:

 html
 head...head
 body
   ...
   html
   head...head
   body.../body
   /html
   ...
 /body
 /html

 So as you can see that would make no sense.

 The solution is to insert a partial document, in this case just the
 part inside the body and any scripts (though you may want to check
 out the $.getScript() function).

 Karl Rudd

 On Sun, Jun 22, 2008 at 12:44 PM, Nyro [EMAIL PROTECTED] wrote:

  I figured out a tweak problem with jQuery, whole html page injection
  andSafari.

  I tested only insafarion Windows, maybe that will works differently
  in Mac.

  To figure out the problem, I make a small testing page

 http://nyromodal.nyrodev.com/jQueryBug.php

  As you can see, when loading the page with an ajax request, the alert
  is shown in Firefox, IE but notSafari.

  Basically everything contained in the head part is simply not used.
  Writing the script tag in the body part works well.

  Moreover the HTML content is not the same. I don't know if it's a
  jQuery Issue or a browser, and this thing is not really important.

  It could be great if jQuery fix thisSafariissue.

  Thanks



[jQuery] Re: jQuery powered Plazes acquired by Nokia

2008-06-23 Thread Klaus Hartl

Thank you Mike!

I should probably add a disclaimer here for thse who don't know: I am
Plazes employee.


--Klaus



On Jun 23, 12:13 pm, Mike Alsup [EMAIL PROTECTED] wrote:
 Very cool.  Congratulations, Klaus!

 On Jun 23, 4:41 am, Klaus Hartl [EMAIL PROTECTED] wrote:

  All,

  I'm happy to announce that jQuery powered service Plazes has been
  aquired ny Nokia. W0t!!!1!

 http://www.techcrunch.com/2008/06/23/breaking-germanys-plazes-acquire...

  Cheers, Klaus


[jQuery] Can jQuery do this?

2008-06-23 Thread marlyred

On the retailmenot dot com website they have a really cool feature;
when you copy one of their voucher codes using your mouse, the
retailers url is followed and a graphic appears for a couple of
seconds advising you that the code is now on your clipboard.

I am pretty sure that this effect is created by them using
scriptaculous, is it possible to replicate this with jQuery? Is there
a plugin that already does this?

All the best


[jQuery] Jquery Ajax does not support HTTP Streaming ?

2008-06-23 Thread localhost

Hi everyone,

I want a solution to keep a connection open with my client so he can
get almost a live update and also we don't want Ajax to  connect every
few minutes (we are building almost real-time web game)

I came a cross this nice article http://ajaxpatterns.org/HTTP_Streaming
which tell you some solution to do this.

I did it in my script and it's working fine if I access the script
directly (from browser) but when I try to do it with JQuery Ajax, it
will wait until the script close the connection then i will do the
action.

to explain more, here is my 2 scripts:

==
index.html:

script type=text/javascript charset=utf-8
$(document).ready(function() {
$.ajax({
type: GET,
url: /status.php,
dataType: script,
async: true
})
}

==
status.php
?php
if (ob_get_level() == 0) ob_start();
hardFlush();

echo SysMsg('Welcome 1');;
ob_flush();flush();
sleep(5);

echo SysMsg('Welcome 1');;
ob_flush();flush();
sleep(5);

ob_end_flush();

function hardFlush(){
// Like said in PHP description above, some version of IE (7.0 for
example)
// will not 'update' the page if less then 256 bytes are received
// Send 250 characters extra
echo '  ';
echo '  ';
echo '  ';
echo '  ';
echo '  ';
flush();
ob_flush();
}
?



Anyone know if it's possible using Jquery and Ajax ?


Thanks





[jQuery] [validate] Same rule and messages to several input fields

2008-06-23 Thread badtant

Hi,

This post concerns the Validation plugin
http://bassistance.de/jquery-plugins/jquery-plugin-validation/

I have several input fields that should have the same rules and
messages. I don't want to specify them over and over again so my
question is: how can I do that?

Here's an example:

rules:{
customer1:{
required:true
}
},
messages:{
customer1:{
required:Välj om du är kund hos Avanza eller 
ej
}
}

Now I wan't the same to apply to the names customer2, customer3,
customer4 and so in.

Thanks!
/Niklas


[jQuery] Re: New jQuery Plug-in: Multicolumn Dropdown

2008-06-23 Thread Dan G. Switzer, II

Josh,

Very nice!

One small issue...if I click in the main part of the dropdown, rather than
on the down arrow, I can't select any options with the mouse.  This is a
little different than a native select control, where you can click anywhere
on it.

I updated the code over the weekend. You should now be able to use the mouse
to select options in the autocomplete option.

-Dan



[jQuery] Re: New jQuery Plug-in: Multicolumn Dropdown

2008-06-23 Thread Dan G. Switzer, II

Stan,

Key navigation doesn't work at all - I'm not able to key down or
anything.  I wonder if the hotkeys plugin for jQuery might be helpful
in this front since it normalizes key entry behavior?  Just a thought.

Thanks again for the stellar plugin.

Keyboard support should now be working correctly in Safari.

-Dan



[jQuery] Re: jQuery powered Plazes acquired by Nokia

2008-06-23 Thread Klaus Hartl

Thank you Joel :-)


On Jun 23, 12:20 pm, Joel Birch [EMAIL PROTECTED] wrote:
 What a great reward for all your hard work.
 Congratulations Klaus!


[jQuery] Content Disappers when jquery used in internet explorer

2008-06-23 Thread Rapidleech.Info

i use jquery on my wordpress blog rapidleech.info but there seems to
be a problem with that i use the showing and hiding feature everything
works fine in firefox but when links or images are put in the content
and clicked , internet explorer the content that loads below flashes
once and dissappears, dont know what is the problem you can see it in
action at http://rapidleech.info/?page_id=5 click on the blue lined
over there in internet explorer


[jQuery] Re: jQuery powered Plazes acquired by Nokia

2008-06-23 Thread Alexandre Plennevaux
Congatz Klaus !


question 1: what will they do with it? do you know more about that?
question 2: now that you will be rich, can i marry you ?

;-]]

Alexandre

On Mon, Jun 23, 2008 at 2:32 PM, Klaus Hartl [EMAIL PROTECTED]
wrote:


 Thank you Joel :-)


 On Jun 23, 12:20 pm, Joel Birch [EMAIL PROTECTED] wrote:
  What a great reward for all your hard work.
  Congratulations Klaus!




-- 
Alexandre Plennevaux
LAb[au]

http://www.lab-au.com


[jQuery] Re: [validate] Same rule and messages to several input fields

2008-06-23 Thread Jörn Zaefferer

One option would to use addClassRules
(http://docs.jquery.com/Plugins/Validation/Validator/addClassRules#namerules)
to create a composite rule, then apply that class to all customer
fields. You'd still need to provide the messages - you could set it as
the default via $.validator.messages.required = 

Jörn

On Mon, Jun 23, 2008 at 2:23 PM, badtant [EMAIL PROTECTED] wrote:

 Hi,

 This post concerns the Validation plugin
 http://bassistance.de/jquery-plugins/jquery-plugin-validation/

 I have several input fields that should have the same rules and
 messages. I don't want to specify them over and over again so my
 question is: how can I do that?

 Here's an example:

rules:{
customer1:{
required:true
}
},
messages:{
customer1:{
required:Välj om du är kund hos Avanza eller 
 ej
}
}

 Now I wan't the same to apply to the names customer2, customer3,
 customer4 and so in.

 Thanks!
 /Niklas



[jQuery] Re: slideDown and slideUp are jerky

2008-06-23 Thread JohnieKarr

I had to change some files around, so the correct url is
http://www.lovinggodlovingyouonline.com/main.php

Thanks,
Johnie Karr

On Jun 17, 10:47 pm, JohnieKarr [EMAIL PROTECTED] wrote:
 Hello,

 I have a site:www.lovinggodlovingyouonline.comthat the menu is jerky
 in IE6  7 on xp.  FF is really smooth.

 I would prefer onmouseover, but I changed my code to onmouseclick to
 help remedy the problem, but it did not work.  Does anyone have any
 suggestions regarding this?  My jquery code is below:

 script type=text/javascript src=jquery-1.2.3.js/script
   script type=text/javascript src=jquery.blockUI.js?v2.04/
 script
   script type=text/javascript src=bubble.js/script
   script type=text/javascript src=jquery.ifixpng.js/script
   script type=text/javascript

    // unblock when ajax activity stops
    $().ajaxStop($.unblockUI);

    $(document).ready(function() {
     jQuery('#GetlogIn').click(function() {
      jQuery.blockUI({ message: $('#loginForm') });
      });

    $('#cancelLogIn').click($.unblockUI);

    $('[EMAIL PROTECTED]').ifixpng();

    $(dd:not(:first)).hide();
     $(dt a).click(function(){
         $(dd:visible).slideUp(slow);
         $(this).parent().next().slideDown(slow);
         return false;
     });

    });
   /script

 I included all the scripts that I am using if that helps.

 Thanks,
 Johnie Karr


[jQuery] Re: [validate] Same rule and messages to several input fields

2008-06-23 Thread badtant

Ahh, that could be something. But what about the messages?
I can have an unknow number of customer fields in my form and I can't
add lets say a hundred messages that looks exactly the same just to be
sure.
Something similair to addClassRules (addClassMessages?) would be
awsome. Is there no other way around it?

/Niklas

On Jun 23, 3:16 pm, Jörn Zaefferer [EMAIL PROTECTED]
wrote:
 One option would to use addClassRules
 (http://docs.jquery.com/Plugins/Validation/Validator/addClassRules#nam...)
 to create a composite rule, then apply that class to all customer
 fields. You'd still need to provide the messages - you could set it as
 the default via $.validator.messages.required = 

 Jörn

 On Mon, Jun 23, 2008 at 2:23 PM, badtant [EMAIL PROTECTED] wrote:

  Hi,

  This post concerns the Validation plugin
 http://bassistance.de/jquery-plugins/jquery-plugin-validation/

  I have several input fields that should have the same rules and
  messages. I don't want to specify them over and over again so my
  question is: how can I do that?

  Here's an example:

                 rules:{
                         customer1:{
                                 required:true
                         }
                 },
                 messages:{
                         customer1:{
                                 required:Välj om du är kund hos Avanza 
  eller ej
                         }
                 }

  Now I wan't the same to apply to the names customer2, customer3,
  customer4 and so in.

  Thanks!
  /Niklas


[jQuery] Cycle-Plugin: Add list-item after enabling cycle

2008-06-23 Thread Thomas Jaggi

Does anybody know how to enable the Cycle again after adding a list-
item ($('lihello\/li').appendTo('#cycle');)?
When just enabling it again like jQuery('#cycle').cycle({...}); the
new item and the first one are set to display:list-item at the same
time...


[jQuery] Re: jQuery powered Plazes acquired by Nokia

2008-06-23 Thread Ariel Flesler

You're da man Klaus!

--
Ariel Flesler
http://flesler.blogspot.com

On 23 jun, 05:41, Klaus Hartl [EMAIL PROTECTED] wrote:
 All,

 I'm happy to announce that jQuery powered service Plazes has been
 aquired ny Nokia. W0t!!!1!

 http://www.techcrunch.com/2008/06/23/breaking-germanys-plazes-acquire...

 Cheers, Klaus


[jQuery] Re: jQuery powered Plazes acquired by Nokia

2008-06-23 Thread Rick Faircloth

Yes, congratulations, Klaus!

Rick

 -Original Message-
 From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Ariel 
 Flesler
 Sent: Monday, June 23, 2008 10:31 AM
 To: jQuery (English)
 Subject: [jQuery] Re: jQuery powered Plazes acquired by Nokia
 
 
 You're da man Klaus!
 
 --
 Ariel Flesler
 http://flesler.blogspot.com
 
 On 23 jun, 05:41, Klaus Hartl [EMAIL PROTECTED] wrote:
  All,
 
  I'm happy to announce that jQuery powered service Plazes has been
  aquired ny Nokia. W0t!!!1!
 
  http://www.techcrunch.com/2008/06/23/breaking-germanys-plazes-acquire...
 
  Cheers, Klaus
 
 No virus found in this incoming message.
 Checked by AVG.
 Version: 8.0.100 / Virus Database: 270.4.1/1514 - Release Date: 6/23/2008 
 7:17 AM



[jQuery] Re: jQuery powered Plazes acquired by Nokia

2008-06-23 Thread Brice Burgess

Klaus,

  Congradulations man! They're lucky to have you and your talented
work. Are you going to stay on board? Keep it up!

~ Brice


On Jun 23, 3:41 am, Klaus Hartl [EMAIL PROTECTED] wrote:
 All,

 I'm happy to announce that jQuery powered service Plazes has been
 aquired ny Nokia. W0t!!!1!

 http://www.techcrunch.com/2008/06/23/breaking-germanys-plazes-acquire...

 Cheers, Klaus


[jQuery] Re: jqModal r12 release

2008-06-23 Thread Brice Burgess

Oh no problem :)

One thing I forgot to mention is that jqModal is now dual licensed
under both the MIT and GPL licenses -- which is more in sync with all
the others. I was always under the impression that the MIT license was
leniant enough to allow re-licensing derivatves under the GPL for
inclusion in GPL software... but I guess this just makes the hurdle a
lot lower.

Enjoy,

~ Brice


[jQuery] Re: [validate] Same rule and messages to several input fields

2008-06-23 Thread Jörn Zaefferer

You could add a custom method that uses the required-implementation,
but provides a different default message:

jQuery.validator.addMethod(customer,
jQuery.validator.methods.required, Välj om du är kund hos Avanza
eller ej);

Please let me know if that works for you, the idea is interesting
enough to add it to the addMethod-documentation:
http://docs.jquery.com/Plugins/Validation/Validator/addMethod

Jörn

On Mon, Jun 23, 2008 at 3:41 PM, badtant [EMAIL PROTECTED] wrote:

 Ahh, that could be something. But what about the messages?
 I can have an unknow number of customer fields in my form and I can't
 add lets say a hundred messages that looks exactly the same just to be
 sure.
 Something similair to addClassRules (addClassMessages?) would be
 awsome. Is there no other way around it?

 /Niklas

 On Jun 23, 3:16 pm, Jörn Zaefferer [EMAIL PROTECTED]
 wrote:
 One option would to use addClassRules
 (http://docs.jquery.com/Plugins/Validation/Validator/addClassRules#nam...)
 to create a composite rule, then apply that class to all customer
 fields. You'd still need to provide the messages - you could set it as
 the default via $.validator.messages.required = 

 Jörn

 On Mon, Jun 23, 2008 at 2:23 PM, badtant [EMAIL PROTECTED] wrote:

  Hi,

  This post concerns the Validation plugin
 http://bassistance.de/jquery-plugins/jquery-plugin-validation/

  I have several input fields that should have the same rules and
  messages. I don't want to specify them over and over again so my
  question is: how can I do that?

  Here's an example:

 rules:{
 customer1:{
 required:true
 }
 },
 messages:{
 customer1:{
 required:Välj om du är kund hos Avanza 
  eller ej
 }
 }

  Now I wan't the same to apply to the names customer2, customer3,
  customer4 and so in.

  Thanks!
  /Niklas



[jQuery] Cannot execute jQuery code in HTML of a AJAX retrieved page

2008-06-23 Thread Wonka


I have a page with an overview of CDs.
When you click on the tracklist button it retrieves a HTML page with the
tracklisting with AJAX ($.ajax).
At the same time I'm hiding all the CDs.

The HTML page has no HTML tag, heading, body tags, etc. Only the HTML code
for the tracklisting.

In the HTML page with the tracklisting I have a return to CDs link button
that hides the current tracklisting and shows all the CDs again. I gave this
link a class so I can script it with jQuery. But for some reason it won't
execute jQuery.

Strangely enough this works in IE6 and 7, but not in Firefox 3.

Is this because the all the elements from the HTML page retrieved with AJAX
are not seen by the DOM?
I have searched in this forum and I read in this thread about the DOM:
http://www.nabble.com/Processing-ajax-load-content-before-it-gets-added-to-DOM---to10977814s27240.html#a10977814

It said that you should use the load function
(http://docs.jquery.com/Ajax/load) because that injects the code into the
DOM. I have tried that, but also without success. When I try it with the
load function, it will show the HTML page through AJAX in every browser, but
the link in this HTML page still doesn't work. And now it doesn't work in
all the browsers.


Does someone know how I can execute jQuery script from a HTML page retrieved
with AJAX?
-- 
View this message in context: 
http://www.nabble.com/Cannot-execute-jQuery-code-in-HTML-of-a-AJAX-retrieved-page-tp18069906s27240p18069906.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



[jQuery] Re: jQuery.sheet thoughts, maybe UI compliant?

2008-06-23 Thread K-BL

Paul I appreciate your honesty :).  In any case, I think that it's a
great testament to the speed, ability, and size that jQuery can be
used for.  Anyway, look forward to version 0.3 coming sometime in
July.  Keep up the criticism guys...

On Jun 22, 7:11 am, Paul Bakaus [EMAIL PROTECTED] wrote:
 Hi K-BL,

 While it's a great app, I don't think it really fits into jQuery UI as
 it is now.

 jQuery UI serves core interaction components and widgets, but yours is
 more a complete application, and I'm not sure if it's generic enough
 to be
 used in thousands of usecases.

 It might be a great demo app though in the future, if it would use all
 the
 power of jQuery UI.

 Thanks,
 Paul

 On Jun 16, 6:29 pm, K-BL [EMAIL PROTECTED] wrote:

  Hey Guys,
  A lot has happened since I first posted about jQuery.sheet- A jQuery
  Spreadsheet with Calculations v0.1.  We're now at version 2.5.
  Version 2.5 adds ajax load/save, in-place navigation, in-place edit,
  cross browser compatibility, true resize (opera  safari have some
  trouble here), upper menu (uses jquery.clickmenu), and many other tiny
  features.

  I'm working on version 0.3 at the moment, and things are progressing
  well.  The next release will get rid of those pesky onScroll bars
  flying all over the place and many fixes. Also I'm working on
  converting it's styling to be used with jQuery UI Theming.  I'm also
  working on a packed version, but it's proving somewhat tricky.

  I've looked and looked all over the web and only found (at this point
  in time) only one other real-world usable competitor (wpSS).  My hopes
  are that jQuery.sheetwill give everyone some real flexibility, speed,
  and minimal JS.

  I would like to get some input from your guys.  As I stated before,
  this is my first plugin.  If you guys don't mind, check out the Demo
  and give me a suggestion.  Also, is there anything I can do to see
  about getting into jQuery UI?

  Demo found 
  here:http://jqueryplugins.weebly.com/uploads/3/1/3/8/313814/jquery.sheet.html

  Thanks Guys,
  K-BL


[jQuery] Re: jQuery enable/disable problem with IE 6 and 7

2008-06-23 Thread PiranhaJ

Hi,

Seems a common problem. We've got around it by using the click event
rather than the change event.

Hope that helps...

On Jun 16, 10:25 am, Gearóid O'Ceallaigh [EMAIL PROTECTED] wrote:
 bump, any suggestions?

 On Jun 13, 11:20 am, Gearóid O'Ceallaigh [EMAIL PROTECTED] wrote:

  Hi,

  I'm having a few problems getting my jQuery code to work in internet
  explorer 6 and 7. The best way I can describe it is: there are several
  text fields on my webpage and each should be enabled/disabled based
  upon the radio button selected at the top of the page. The code I have
  written works fine in firefox, opera and safari.

  The problem with IE is that it requires 2 clicks for the jQuery to
  take effect (ie. user clicks the radio button, nothing happens, but
  then they click another part of the screen and the changes take
  effect). Also, when the jQuery IS invoked, the incorrect text fields
  are enabled/disabled.

  I tried a much simpler example to try to find the problem but
  encounter similar issues. Here is the code for that:

  /JQUERY/

  $(document).ready(function() {

  $([EMAIL PROTECTED]).change(function() {

  var thisValue = $(this).val();

  switch (thisValue) {

  case one:

   $(select#cars).attr(disabled,disabled);
   $(select#animals).attr(disabled,);
   break;
  case two:
   $(select#animals).attr(disabled,disabled);
   $(select#animals).attr(value,dog);
   $(select#cars).attr(disabled,);
   break;
   case three:

   $(select#cars).attr(disabled,);
  $(select#animals).attr(disabled,);
   break;
   }

  });

  });

  /**HTML***/
  html
  head
  //get jQuery code
  /head
  body
  form
  input type=radio name=choice value=one class=second
  id=firstChoiceOption One
  input type=radio name=choice  value=two class=second
  id=secondChoiceOption Two
  input type=radio name=choice value=three class=second
  id=thirdChoiceOption Three

   BRBR

  select id=cars name=cars class=second
  option value=volvoVolvo/option
  option value=saabSaab/option
  option value=fiatFiat/option
  option value=audiAudi/option
  /select

  select id=animals name=animals class=second
  option value=dogdog/option
  option value=catcat/option
  option value=sheepsheep/option
  option value=cowcow/option
  /select
  /form
  /div
  /body
  /html

  Any help would be greatly appreciated, thanks.


[jQuery] Re: Can jQuery do this?

2008-06-23 Thread parrfolio

Here's a plugin:

http://yangshuai.googlepages.com/jquerycopyplugin


On Jun 23, 4:30 am, [EMAIL PROTECTED] wrote:
 On the retailmenot dot com website they have a really cool feature;
 when you copy one of their voucher codes using your mouse, the
 retailers url is followed and a graphic appears for a couple of
 seconds advising you that the code is now on your clipboard.

 I am pretty sure that this effect is created by them using
 scriptaculous, is it possible to replicate this with jQuery? Is there
 a plugin that already does this?

 All the best


[jQuery] jqGrid and modal windows

2008-06-23 Thread oscarml

Hi to everybody,

When I open a jqgrid inside a modal window and I use search button,
the searching form appears behind the modal windows where the jqgrid
is placed. Is this possible to put in over it?



[jQuery] Questions Validation Plugin (bassistance)

2008-06-23 Thread pixelyzed

Hi there,

I'm posting here at the request of Jörn on Twitter.

I started using the Validation plugin and ran into a few questions I
cannot seem to find clear answers for in the docs so I'd appreciate a
little bit of help.

First, I was wondering if there is a list of all built-in or default
validation rules like required, email, url, etc. I could not
find one in the docs. Also, I was wondering if one exists for phone
numbers. If not, I'd need to build a custom rule but again I cannot
find clear instructions on that (maybe coffee hasn't quicked in
yet ;-)

Follwing on custom rules, I would need to build a custom rule for
Canadian postal codes (example G3X 2M4) The format is always letter-
number-letter-space-number-letter-number.

Thanks in advance for any pointers!


[jQuery] Re: Autocomplete plugin problem please help

2008-06-23 Thread Jaswinder

didnt work :(

On Jun 12, 4:10 pm, NichlasBrodegaardLarsson [EMAIL PROTECTED]
wrote:
 Its pretty hard to read the code, but you need to close your $
 (document).ready(function(){

 Your code:
  script
   $(document).ready(function(){
   var data = [ {text:'Link A', url:'http://www.jquery.com/'},
 {text:'Link B', url: 
 'http://docs.jquery.com/Plugins/Autocomplete#Search_Page_Replacement'} ];
 $(#example).autocomplete(data);

   /script

 Correct code:
  script
   $(document).ready(function(){
   var data = [ {text:'Link A', url:'http://www.jquery.com/'},
 {text:'Link B', url: 
 'http://docs.jquery.com/Plugins/Autocomplete#Search_Page_Replacement'} ];
 $(#example).autocomplete(data);}); //  THIS IS THE CHANGE

   /script

 Try it...

 On Jun 12, 4:18 pm, Jaswinder [EMAIL PROTECTED] wrote:

  so basically the original code 
  athttp://docs.jquery.com/Plugins/Autocomplete#Example
  is
  [code]
  !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN
  http://www.w3.org/TR/html4/loose.dtd;
  html
  head
script src=http://code.jquery.com/jquery-latest.js;/script
link rel=stylesheet href=http://dev.jquery.com/view/trunk/
  plugins/autocomplete/demo/main.css type=text/css /
link rel=stylesheet href=http://dev.jquery.com/view/trunk/
  plugins/autocomplete/jquery.autocomplete.css type=text/css /
script type=text/javascript src=http://dev.jquery.com/view/trunk/
  plugins/autocomplete/lib/jquery.bgiframe.min.js/script
script type=text/javascript src=http://dev.jquery.com/view/trunk/
  plugins/autocomplete/lib/jquery.dimensions.js/script
script type=text/javascript src=http://dev.jquery.com/view/trunk/
  plugins/autocomplete/jquery.autocomplete.js/script
script
$(document).ready(function(){
  var data = Core Selectors Attributes Traversing Manipulation CSS
  Events Effects Ajax Utilities.split( );
  $(#example).autocomplete(data);
});
/script

  /head
  body
API Reference: input id=example / (try C or E)
  /body
  /html
  [/code]

  and then i added the search feature (http://docs.jquery.com/Plugins/
 Autocomplete#Search_Page_Replacement)
  [code]
  var data = [ {text:'Link A', url:'/page1'}, {text:'Link B', url: '/
  page2'} ];
  $(...).autocomplete(data, {
formatItem: function(item) {
  return item.text;
}}).result(function(event, item) {

location.href = item.url;});

  [/code]

  =

  [code]
  !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN
  http://www.w3.org/TR/html4/loose.dtd;
  html
  head
script src=http://code.jquery.com/jquery-latest.js;/script
link rel=stylesheet href=http://dev.jquery.com/view/trunk/
  plugins/autocomplete/demo/main.css type=text/css /
link rel=stylesheet href=http://dev.jquery.com/view/trunk/
  plugins/autocomplete/jquery.autocomplete.css type=text/css /
script type=text/javascript src=http://dev.jquery.com/view/trunk/
  plugins/autocomplete/lib/jquery.bgiframe.min.js/script
script type=text/javascript src=http://dev.jquery.com/view/trunk/
  plugins/autocomplete/lib/jquery.dimensions.js/script
script type=text/javascript src=http://dev.jquery.com/view/trunk/
  plugins/autocomplete/jquery.autocomplete.js/script
script
$(document).ready(function(){
var data = [ {text:'Link A', url:'http://www.jquery.com/'},
  {text:'Link B', url: 'http://docs.jquery.com/Plugins/
 Autocomplete#Search_Page_Replacement'} ];
  $(#example).autocomplete(data);

/script

  /head
  body
API Reference: input id=example / (try C or E)
  /body
  /html
  [/code]

  but when i type  link or jquery nothing turns up


[jQuery] XML parsing issue with facebox

2008-06-23 Thread churock


Here is my issue.  I am dynamically generating XML data that is to
appear in the facebox as a means of displaying additional information
about a product if so desired by the customer.  My problem is this:

I have set up the various xls:for each... choose etc., etc., which
break down the xml data into divs and text tags that i want to be seen
by the viewer.  All of these are working properly, generating new
content for each product (name price, image, etc.)  within my for each
i have also included a hidden div to display using facebox.  within
this div there are various pieces of xml data including features,
plan, etc.

the problem:
the data in the the div which facebox is supposed to display only ever
display information for the first list product.  Why is this?  my code
is below.  I am new, so bare with me if you see certain snippets that
aren't as polished as they could be:

?xml version=1.0 encoding=utf-8?
!-- DWXMLSource=http://store.telusmobility.com/telusPhones.xml; --
!DOCTYPE xsl:stylesheet  [
!ENTITY nbsp   #160;
!ENTITY copy   #169;
!ENTITY reg#174;
!ENTITY trade  #8482;
!ENTITY mdash  #8212;
!ENTITY ldquo  #8220;
!ENTITY rdquo  #8221;
!ENTITY pound  #163;
!ENTITY yen#165;
!ENTITY euro   #8364;
]
xsl:stylesheet version=1.0 xmlns:xsl=http://www.w3.org/1999/XSL/
Transform
  xsl:output method=html encoding=utf-8 doctype-public=-//W3C//
DTD XHTML 1.0 Transitional//EN doctype-system=http://www.w3.org/TR/
xhtml1/DTD/xhtml1-transitional.dtd/
  xsl:template match=/
html xmlns=http://www.w3.org/1999/xhtml;
head
meta http-equiv=Content-Type content=text/html; charset=utf-8/

titleUntitled Document/title
link href=mainteluscss.css rel=stylesheet type=text/css /
script src=scripts/jquery-1.2.6.js/script
script src=facebox/facebox.js/script
link href=facebox/facebox.css rel=stylesheet type=text/css /


script type=text/javascript
jQuery(document).ready(function($) {
  $('a[rel*=facebox]').facebox({
loading_image : 'loading.gif',
close_image   : 'closelabel.gif'
  })
})
/script

script type=text/javascript
  // When the document loads do everything inside here ...
  $(document).ready(function(){

$(#content_2).addClass(hidden);
$(#content_3).addClass(hidden);

// When a link is clicked
$(#menu a.tab).click(function () {

// switch all tabs off
$(.active).removeClass(active);

// switch this tab on
$(this).addClass(active);

// slide all elements with the class 'content' up
$(.content).hide();

// Now figure out what the 'title' attribute value
is and find the
element with that id.  Then slide that down.
var content_show = $(this).attr(title);
$(#+content_show).show();

});

  });
  /script

/head
...
the problem area is below (just my java in case that could be the
issue)


xsl:for-each select=phones/phone
xsl:sort select=cross/
xsl:choose
  xsl:when test=@manufacturer='Apple'
  /xsl:when
  xsl:when test=pricing/@price=0
  /xsl:when
  xsl:when test=name='Pay amp; Talk Samsung a645'
  /xsl:when
  xsl:when test=name='Pay amp; Talk LG 490
Fastap'
  /xsl:when
  xsl:when test=name='Pay amp; Talk LG 245'
  /xsl:when
  xsl:when test=name='LG 200 (web only)'
  /xsl:when
  xsl:when test=name='Pay amp; Talk Starter Kit'
  /xsl:when
  xsl:when test=name='LG 285'
  /xsl:when
  xsl:when test=name='SPARKtrade;Music Box'
  /xsl:when
  xsl:when test=name='Global Roaming Starter Kit'
  /xsl:when
  xsl:when test=name='Motorola M800 Bag Phone'
  /xsl:when
  xsl:when test=name='Pink BlackBerryreg;
Pearltrade; Gift Box'
  /xsl:when
  xsl:when test=name='Sierra Wireless Aircard 595U
USB Modem (Rev A)'
  /xsl:when
  xsl:when test=name='Sierra Wireless Aircard 595
lt;brgt;(Rev A)'
  /xsl:when
  xsl:when test=name='ZTE MY39 Wireless EVDO PC
card'
  /xsl:when
  xsl:when test=@thumbnail='http://
store.telusmobility.com/graphics/StoreBox/products/1476/
thumbnail__sierra_597e_handset_sm.gif'
  /xsl:when
  xsl:when test=@thumbnail='http://

[jQuery] Re: innerFade and delay? or Cycle and drupal 5.x ?

2008-06-23 Thread Mr.Morton

Hi!

Just to follow up, I updated Drupal's jQuery and cycle worked like a
charm.
So i'm using cycle, and i'm happy...

Just another quick question, has anybody had any luck making cycle
behave like
a continuous horizontal scrolling news ticker?
I've tried alot of different stuff but a can't seem to make it work
like for instance
http://plugins.jquery.com/project/liScroll
I know that cycle wasn't created with this function i mind, but it
would be way cool
if it was possible make it do it anyhow.

I already have something running using
$('#specialScroll').cycle({
fx:'scrollRight',
timeout: 2000,
delay: 0
});

But i can't make it seem like one long continuous stream of text...

Anybody achieved this?



On Jun 2, 5:52 pm, Karl Swedberg [EMAIL PROTECTED] wrote:
 It could be that the jQuery Update module is only updating to 1.1.x .

 I noticed this on the module page:

  A 2.x branch is now available. This includes the latest jQuery 1.2.3  
  with both compat-1.0 and compat-1.1.

  Do note that the install process has slightly changed so a complete  
  reinstall is needed. Read the README.txt.

 Hope that helps.

 --Karl
 
 Karl Swedbergwww.englishrules.comwww.learningjquery.com

 On May 28, 2008, at 7:47 PM, jonathan wrote:



  On May 29, 9:20 am, Mr.Morton [EMAIL PROTECTED] wrote:
  Does anybody haveCyclerunning withDrupal/Jquery ?

  I've got Jquerycycleworking onDrupal5.7, using:
 Drupal5.7
  Jquery Update module 5.x-1.0
  jquery.cycle2.20

  It's working fine using the Fade transition and paging on Firefox and
  Safari, but I'm getting errors in IE6.

  I've noticed that IE6 fails to render the demo at
 http://www.malsup.com/jquery/cycle/pager.html
  The first image appears but no pager, and the javascript error is line
  30 char 30 'console' is undefined


[jQuery] Re: innerFade and delay? or Cycle and drupal 5.x ?

2008-06-23 Thread Mike Alsup

 Just another quick question, has anybody had any luck making cycle
 behave like
 a continuous horizontal scrolling news ticker?

Have a look at the 'continuous' option:

http://www.malsup.com/jquery/cycle/continuous.html



[jQuery] Re: jqGrid and modal windows

2008-06-23 Thread Tony

Could you please give me a more information?
Is this only in IE6/7 - Do you use other plugins - something like
autocomplete?
Regards
Tony

On 23 Юни, 19:30, oscarml [EMAIL PROTECTED] wrote:
 Hi to everybody,

 When I open a jqgrid inside a modal window and I use search button,
 the searching form appears behind the modal windows where the jqgrid
 is placed. Is this possible to put in over it?


[jQuery] Re: Questions Validation Plugin (bassistance)

2008-06-23 Thread Jörn Zaefferer

I've changed the section title slightly, hopefully this makes it
easier to find them:
http://docs.jquery.com/Plugins/Validation#List_of_built-in_Validation_methods

Custom methods are added via $.validator.addMethod:
http://docs.jquery.com/Plugins/Validation/Validator/addMethod#namemethodmessage

For inspriation, they are barely tested, a set of additional methods
to pick from: 
http://dev.jquery.com/view/trunk/plugins/validate/additional-methods.js
Test, and therefore sort-of documentation for all default and three
additional methods are here:
http://dev.jquery.com/view/trunk/plugins/validate/test/methods.js

Let me know when you need further help.

Jörn

On Mon, Jun 23, 2008 at 6:11 PM, pixelyzed [EMAIL PROTECTED] wrote:

 Hi there,

 I'm posting here at the request of Jörn on Twitter.

 I started using the Validation plugin and ran into a few questions I
 cannot seem to find clear answers for in the docs so I'd appreciate a
 little bit of help.

 First, I was wondering if there is a list of all built-in or default
 validation rules like required, email, url, etc. I could not
 find one in the docs. Also, I was wondering if one exists for phone
 numbers. If not, I'd need to build a custom rule but again I cannot
 find clear instructions on that (maybe coffee hasn't quicked in
 yet ;-)

 Follwing on custom rules, I would need to build a custom rule for
 Canadian postal codes (example G3X 2M4) The format is always letter-
 number-letter-space-number-letter-number.

 Thanks in advance for any pointers!



[jQuery] Jquery version of MUI Layout?

2008-06-23 Thread yabado



Anyone know of a JQ version of this?

http://www.myjavaserver.com/~jander/mui/example/layout.htm

Jquery UI will not do.


[jQuery] Re: Jquery version of MUI Layout?

2008-06-23 Thread Sam Sherlock
I have tried with splitter from jquery ui

- S

2008/6/23 yabado [EMAIL PROTECTED]:




 Anyone know of a JQ version of this?

 http://www.myjavaserver.com/~jander/mui/example/layout.htmhttp://www.myjavaserver.com/%7Ejander/mui/example/layout.htm

 Jquery UI will not do.



[jQuery] Re: jQuery powered Plazes acquired by Nokia

2008-06-23 Thread Klaus Hartl

Thanks again to all of you for the noce words! Yes, I'm staying on
board! :-)


--Klaus



On Jun 23, 4:59 pm, Brice Burgess [EMAIL PROTECTED] wrote:
 Klaus,

   Congradulations man! They're lucky to have you and your talented
 work. Are you going to stay on board? Keep it up!

 ~ Brice

 On Jun 23, 3:41 am, Klaus Hartl [EMAIL PROTECTED] wrote:

  All,

  I'm happy to announce that jQuery powered service Plazes has been
  aquired ny Nokia. W0t!!!1!

 http://www.techcrunch.com/2008/06/23/breaking-germanys-plazes-acquire...

  Cheers, Klaus


[jQuery] Re: jcarousel, ajax and thickbox

2008-06-23 Thread marmo79

ok,(sorry for my english...)
the problem was in thickbok and i solved it;I've try also this plugin
and It works easier way.
But in IE7 (no tested in IE6) i've another problem with each this 2
plugin;when I close an image, jcarousel doesn't works fine;when i
scroll the items, some images fade out
Someone has the same problems?
On 23 Giu, 11:30, Jose Noheda [EMAIL PROTECTED] wrote:
 May be this helpshttp://internna.blogspot.com/



 On Sun, Jun 22, 2008 at 3:44 AM, marmo79 [EMAIL PROTECTED] wrote:

  Please, could someone helps me?
  I've one problem about to use the plugin Jcarousel with Thickbox:if I
  try to load dinamically the items with Ajax the class=thickbox
  doesn't works:
  function jcarousel_getItemHTML(item)
  {

     return 'a href=' + jQuery('src', item).text() + '
  class=thickboximg border=0 src=' + jQuery('src', item).text() +
  '  alt=' + jQuery('title', item).text() + ' //a';
  };

  So I've tried to add the line !tb_init('a.thickbox, area.thickbox,
  input.thickbox');  in some jcarosuel's function and thickbox works in
  very strange mode.
  How can I improve thickbox in jcarousel using Ajax?- Nascondi testo citato

 - Mostra testo citato


[jQuery] Multiple Upload songs

2008-06-23 Thread Sarm

Hello Everyone!

I am new at Jquery. I want to upload multiple song using Jquery
Multiple upload plugin. I am not understanding how to get songs from
Jquery and upload it on FTP.

Anybody can help me?

Advance Thanks
Sarm


[jQuery] Re: Cannot execute jQuery code in HTML of a AJAX retrieved page

2008-06-23 Thread Blake.Bauman

This might help: http://brandonaaron.net/docs/livequery/

On Jun 23, 9:01 am, AnandG [EMAIL PROTECTED] wrote:
 I have a page with an overview of CDs.
 When you click on the tracklist button it retrieves a HTML page with the
 tracklisting with AJAX ($.ajax).
 At the same time I'm hiding all the CDs.

 In the HTML page with the tracklisting I have a return to CDs link button
 that hides the current tracklisting and shows all the CDs again. I gave this
 link a class so I can script it with jQuery. But for some reason it won't
 execute jQuery.

 Is this because the all the elements from the HTML page retrieved with AJAX
 are not seen by the DOM?
 Does someone know how I can execute jQuery script from a HTML page retrieved
 with AJAX?
 --
 View this message in 
 context:http://www.nabble.com/Cannot-execute-jQuery-code-in-HTML-of-a-AJAX-re...
 Sent from the jQuery General Discussion mailing list archive at Nabble.com.


[jQuery] Where to put this script jQuery(document).trigger('close.facebox')

2008-06-23 Thread Adardesign

I downloaded facebox, i want to that by clicking anywhere on the page
should close the div!
where in the page do i put
jQuery(document).trigger('close.facebox')

and how can i use this script for other show hide div (jquery?)

Thanks


[jQuery] Re: Questions Validation Plugin (bassistance)

2008-06-23 Thread Lashiec

I've got another question about this plugin...

On one of my pages I have a form, it has 4 fields a person can input.
I only want to validate two of them, both text boxes. The thing is
that this form can have multiple inputs of the same type. It's for a
CMS I'm building, and it's adding different columns into a section.
So, for each column there is a name and a label field the user can
input type into. There is a button that adds another set of 4 fields
(and a button to remove them). I'm using jquery's $().append() thing
to add these, and .remove and so on.

The thing is, each set of 4 fields has the same names, such as
name=label[]. I can get the validate plugin to check if the first
label field is empty or not, but it won't check any of the other
ones that are added by the user.

And another thing, is there a way to check if the inputted text is
equal to certain words? Like, I don't want the person to input a new
label called id, because there is a default column called id
already. (I have the validation done with PHP, but could like a java
way of doing it, since submitting the form and getting the error
causes the form to reset).


[jQuery] Drag and drop problem, please help?

2008-06-23 Thread Oltmans

Hi,

I've been using LIs (li) and using Sortables (docs.jquery.com/UI/
Sortables/sortabl) to sort the LIs. I've attached a mouseover function
with each LI. Problem (in IE 6  7) is that whenever I start dragging
an LI and when I'm up above an another LI then mouseover function of
the LI (which is below the LI I'm dragging) is called. How can I
employ a mechanism so that every LI don't call their mouseover
function if any other LI is being dragged above them?

Thanks in advance.

--Oltmans


[jQuery] my first plugin: Table pager.

2008-06-23 Thread styrk

So, i after a week or so playing with jquery i made my first plugin.
yippiee, the Table Pager!

Therefor i would really like if there is some experienced/expert
people, that could look through my code and come with some suggestions
for improvements.

I made this plugin since i really needed a very simple way of paging
my tables, i was searching Google for any but those i found was way to
overkill ;-)

I have pasted the code here; http://pastebin.org/45669 and uploaded a
demo here; http://rasmusstyrk.dk/tablepager/tablePager/

Thanks.

- Rasmus


[jQuery] Can anyone help me with this Superfish problem?

2008-06-23 Thread delic

HI guys, I am new to the board and wanted to say thank you in advance
to anyone who can offer some assistance. I have utilized the superfish
script to make the navigation for my new site and I noticed that I am
having no problems in Firefox and other compliant
browsersBUTnaturally, I am having issues of the sub menus not
displaying in IE6+.

I have link to my test site here:

www.chicagodance.com/ChiDance/index.html

It works fine elsewhere, but again, I am having no luck in IE and am
not sure where to begin my troubleshooting.

Thanks!!

_delic


[jQuery] [validate] Validating forms with identical input names

2008-06-23 Thread owen

I have a form that uses some PHP-style input names in order to be able
to process the input values as an array after submitting:

input id=date1 name=date[] class=required size=10 value=
type=text /
input id=date2 name=date[] class=required size=10 value=
type=text /
input id=date3 name=date[] class=required size=10 value=
type=text /

Since the inputs have identical names, the Validate plugin will only
flag the first field as being required. Is there a way around this, or
am I better off trying to re-think my server-side processing?

Thanks,

  Owen


[jQuery] Re: Resizing.

2008-06-23 Thread Aaron

well even if I do that it won't fully work. I want every thing to
shrink or grow based on the clients display settings that also
includes postioning, I think I would have to first resize all elements
on the page based on the client's display settings I would have to
make the display settings as input and based on the settings I would
have to create some way to make resize the elements.

I was thinking do an if check on mostly common settings and even some
that are not common but just want it, then if that if statment is true
then excute the css code on the height and width and position.

I am thinking to do it that way I might just copy already existing css
from my code and start with the display settings that were used when
making the website. Then from their make else if statements of other
display settings and if true the run those css settigns on each box/
text/image ect. I might even at the end make the else statment that if
every if statement was false then I will make it check the clients
display settings the height and width and then compare it to the ones
I gave by the greater than or less than  and  if it's between 2
display settings I would then compare those two to see which settings
are best for the client.

Is this possible that play with the css settings in javascript?

On Jun 22, 1:24 am, Aaron [EMAIL PROTECTED] wrote:
 So if I use the  min width and max width  I should use min width set
 to what looks good in the lowest acceptable display settings and then
 set the max width to a good lookng width at the highest display
 settings?? So then this would abjust inbetween these two numbers which
 will show the website like how it should look??

 I am using absolute values.

 the last time I tried this I have tables and images overlapping other
 images and tables. I couldn't have it showing next to each other
 without getting a overlap.

 On Jun 21, 6:32 am, Isaak Malik [EMAIL PROTECTED] wrote:



  The best way of adjusting your page width is by pure CSS, you can use the
  min-width and max-width properties for this and width for IE = 6. As for
  images, just create thumbnails that link to the original size.

  On Sat, Jun 21, 2008 at 6:41 AM, Aaron [EMAIL PROTECTED] wrote:

   Hi how can I resize every element in my website base on the client's
   display settings??

   should I use if and then statments to check the clients browser
   settings and use a energy algorithm to check the energy levels in the
   image where it would be copied to extend the image and  deleted to
   reduce the size of the image?? What do you guys do on displaying your
   website that would fit every display settings??

  --
  Isaak Malik
  Web Developer- Hide quoted text -

 - Show quoted text -


[jQuery] Can anyone help me with this Superfish problem?

2008-06-23 Thread delic

Not sure if this went through or not, but I guess I need to be
sure...apologies if this is a re-post.

Having a problem with the display of the Superfish navigation script
and was wondering of anyone could help me out.

The site is here: www.chicagodance.com/ChiDance/index.html

The menu works fine in everything except...wait for itIE

Please help and thank you in advance,

_delic


[jQuery] Re: Rapid mouse click, stopping animation queue

2008-06-23 Thread anthonyb

Thanks Ollie

I'll give this a shot, and If I still have issues, reply back with
examples.

Anthony

On Jun 22, 4:10 pm, Ollie [EMAIL PROTECTED] wrote:
 Could you do something like this?

 if(!$('#myElem:animated')){
      !-- Animation code here --

 }

 You can read more information about the animated selector here;

 http://docs.jquery.com/Selectors/animated

 On Jun 22, 8:47 pm, anthonyb [EMAIL PROTECTED] wrote:

  Im somewhat new to using jQuery and I am loving it so far. One problem
  that I encounter is if you have a element, say, for example, that is a
  button and on press a paragraph of text fades in. If you press the
  button again, jQuery fades the text out.

  Well this in fact works rather well, but the problem is, if you go
  crazy on that button and press it rapidly with your mouse, the
  animation will just open and close and open and close.. is there any
  way to prevent this from happening?

  Essentially it would be great if there was something that said: If the
  animation is in motion, dont take any other commands for it. Or
  something along those lines.

  Again, im somewhat new at this, so I hope I'm being clear with what I
  am encountering. Thanks.


[jQuery] Drag and drop problem, please help?

2008-06-23 Thread Oltmans

Hi,

I've been using LIs (li) and using Sortables (docs.jquery.com/UI/
Sortables/sortabl) to sort the LIs. I've attached a mouseover function
with each LI. Problem (in IE 6  7) is that whenever I start dragging
an LI and when I'm up above an another LI then mouseover function of
the LI (which is below the LI I'm dragging) is called. How can I
employ a mechanism so that every LI don't call their mouseover
function if any other LI is being dragged above them?

Thanks in advance.

--Oltmans


[jQuery] Re: Questions Validation Plugin (bassistance)

2008-06-23 Thread pixelyzed

Hello Jörn,

Thank you for your help earlier. I'll try to figure out custom methods
later. Right now I'd like to know if it's possible to change the
errorPlacement option for only one specific messgae. I'm trying to
validate multiple checkbox and radiobuton groups and I have the
default insertAfter going and it's exactly what I want for most
fields. But those radiobutons and checkboxes are side by side with the
label on the right and the error message is inserted right after the
first radio or checkbox, pushing its label to the next line along with
the others and it looks weird. So ,for those I'd prefer having the
error message appear before.

Is that possible and how? Here's my validation JS code so far:

var loginValidator = $(#inscriptTalentProfessionnel).validate(
  {
  errorElement: div,
  onsubmit: true,
  onfocusout: true,

  messages: {
vfPrenom: S.V.P. entrez votre prénom,
vfNom: S.V.P. entrez l'adresse  de votre entreprise,
vfAdresse: S.V.P. entrez votre adresse civique,
vfVille: S.V.P. entrez le nom de votre ville,
vfProvince: S.V.P. entrez le nom de votre province,
vfCode_postal: S.V.P. entrez votre code postal,
vfTelephone:  S.V.P. entrez votre numéro de téléphone,
vfCourriel: {
  required: S.V.P. entrez le courriel du contact,
  email: S.V.P. entrez une adresse de courriel valide
},
vfSexe: S.V.P. cochez la case correspondant à votre sexe,
vfDate_naissance: S.V.P. entrez votre date de naissance,
vsfSecteur2: S.V.P. choisissez au moins un secteur d'activité,
vfFamille_metier: S.V.P. choisissez au moins une famille de
métier,
typeCarteCredit: S.V.P. Veuillez choisir un type de carte de
crédit,
numeroCarte: {
required: S.V.P. entrez votre numéro de carte de crédit,
creditcard: S.V.P. entrez un numéro de carte de crédit valide
valide
}
  }
});

Thanks again,

Stéphane

On Jun 23, 1:50 pm, Jörn Zaefferer [EMAIL PROTECTED]
wrote:
 I've changed the section title slightly, hopefully this makes it
 easier to find 
 them:http://docs.jquery.com/Plugins/Validation#List_of_built-in_Validation...

 Custom methods are added via 
 $.validator.addMethod:http://docs.jquery.com/Plugins/Validation/Validator/addMethod#namemet...

 For inspriation, they are barely tested, a set of additional methods
 to pick 
 from:http://dev.jquery.com/view/trunk/plugins/validate/additional-methods.js
 Test, and therefore sort-of documentation for all default and three
 additional methods are 
 here:http://dev.jquery.com/view/trunk/plugins/validate/test/methods.js

 Let me know when you need further help.

 Jörn
 - Show quoted text -


[jQuery] Can anyone help me with this Superfish problem?

2008-06-23 Thread delic

Hello everyone,

I am new to teh boards here and wanted to thank everyone for any help
that might come my way...

Now then,I am having a problem with the display of the Superfish
navigation script
and was wondering of anyone could help me out.

The site is here: www.chicagodance.com/ChiDance/index.html

The menu works fine in everything except...wait for itIE6 +

Please help and thank you in advance,

_delic


[jQuery] Chaining animations and other actions

2008-06-23 Thread Jacob Rasmussen

Hi list,

I'm trying to make a kind of clone of jdGallery (smoothgallery) for
jQuery and I've stumbled upon a problem, which I haven't been able to
solve yet - I've been browsing through the group and tried some
different search approaches on Google - but I've come up with nil.

There are 2 kinds of animations involved in the system, one which
fades between images, and one that hides/displays a descriptive text
for the image.

HTML structure looks something like this:

div id=fader
  div class=el --- image element
img ... /
  /div
  ...
  div class=description  description element
Descriptive text goes here
  /div
/div

Javascript:

// Hide description before fading images, unsetting content
$
(descriptionEl).animate({'height':'0px'},settings.speed,'linear',function()
{
  $(this).html('');
});

Image fading
$(gallery[current].fadeOut(settings.speed);
$(gallery[next].fadeIn(settings.speed);

...
// If the description element is populated with new content, display
the element
if ($descriptionEl).html() != ''){
  $(descriptionEl).animate({'height':'26px'},settings.speed);
}

---
If I use the script above, the image fading part will be executed
while the description element is sliding down.. which isn't what I
want.

If I instead put the Image fading and slide up animation into the
callback of the first animation, something goes completely wrong, as
the first image doesn't fadeOut correctly and will be active until it
is going to be shown again.

So i've tried different kinds of queues, but nothing really seem to
work, what am I missing?

Thanks in advance :)
- Jacob


[jQuery] Re: jqModal r12 release

2008-06-23 Thread MorningZ

Brice:

Thanks a lot for all the hard work, your plugin is one of the most
used ones in my applications

Glad to see it playing nicely with the new jQuery version


[jQuery] Fade in an Image by replacing the src

2008-06-23 Thread daveJay

I'm trying to switch out an image by dynamically changing the source
value of an image. I tried using other methods of image replacement
but none of them work smoothly, there's major performance problems.

So anyway. Here's how I'm doing it right now.

j(#image img).fadeTo(500,0,function() {
j(#image img).attr({src : imgSrc});
}).fadeTo(500, 1);

I'm fading out the image, changing the source, and then fading it back
in again. Is there a way to fade the source change in?
Basically I want to fade this code in: j(#image img).attr({src :
imgSrc});

Is that possible? I tried the animate function but that only animates
in CSS changes and not html attribute changes (as far as I can tell)

Thanks,

-David

P.S. Here's the page I'm working on: 
http://sandbox.exit42design.com/photography/index2.html


[jQuery] Re: Jquery version of MUI Layout?

2008-06-23 Thread yabado

like I said, jquery UI will not do unfortunately.

On Jun 23, 2:51 pm, Sam Sherlock [EMAIL PROTECTED] wrote:
 I have tried with splitter from jquery ui

 - S

 2008/6/23 yabado [EMAIL PROTECTED]:



  Anyone know of a JQ version of this?

 http://www.myjavaserver.com/~jander/mui/example/layout.htmhttp://www.myjavaserver.com/%7Ejander/mui/example/layout.htm

  Jquery UI will not do.


[jQuery] Re: Fade in an Image by replacing the src

2008-06-23 Thread Jeffrey Kretz

I'm sure there's a cleaner way to do this, but my first thought would be to
wrap the img in a div, set the div to have the image as it's background,
then fade the new image src in front of it.

Example (untested code):

var img = $('#image img');
var div = $('div/div').css(
   {
  display:'inline',
  width:img.width(),
  height:img.height(),
  backgroundImage:'url:('+img.attr('src')+')'
   }).insertBefore(img).append(img);
img.css({opacity:0}).attr('src',newSrc);
img.fadeTo(500,1,function(){ img.insertAfter(div);div.remove(); });

JK

-Original Message-
From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of daveJay
Sent: Monday, June 23, 2008 5:23 PM
To: jQuery (English)
Subject: [jQuery] Fade in an Image by replacing the src


I'm trying to switch out an image by dynamically changing the source
value of an image. I tried using other methods of image replacement
but none of them work smoothly, there's major performance problems.

So anyway. Here's how I'm doing it right now.

j(#image img).fadeTo(500,0,function() {
j(#image img).attr({src : imgSrc});
}).fadeTo(500, 1);

I'm fading out the image, changing the source, and then fading it back
in again. Is there a way to fade the source change in?
Basically I want to fade this code in: j(#image img).attr({src :
imgSrc});

Is that possible? I tried the animate function but that only animates
in CSS changes and not html attribute changes (as far as I can tell)

Thanks,

-David

P.S. Here's the page I'm working on:
http://sandbox.exit42design.com/photography/index2.html



[jQuery] Re: Fade in an Image by replacing the src

2008-06-23 Thread daveJay

that's a really good idea, however that approach wouldn't work since
the image is dynamically cropped and resized with the browser window,
you can't crop and resize a background-image =(

the fade to black works rather nicely but it would be nice to have a
direct dissolve.


On Jun 23, 9:09 pm, Jeffrey Kretz [EMAIL PROTECTED] wrote:
 I'm sure there's a cleaner way to do this, but my first thought would be to
 wrap the img in a div, set the div to have the image as it's background,
 then fade the new image src in front of it.

 Example (untested code):

 var img = $('#image img');
 var div = $('div/div').css(
    {
       display:'inline',
       width:img.width(),
       height:img.height(),
       backgroundImage:'url:('+img.attr('src')+')'
    }).insertBefore(img).append(img);
 img.css({opacity:0}).attr('src',newSrc);
 img.fadeTo(500,1,function(){ img.insertAfter(div);div.remove(); });

 JK

 -Original Message-
 From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On

 Behalf Of daveJay
 Sent: Monday, June 23, 2008 5:23 PM
 To: jQuery (English)
 Subject: [jQuery] Fade in an Image by replacing the src

 I'm trying to switch out an image by dynamically changing the source
 value of an image. I tried using other methods of image replacement
 but none of them work smoothly, there's major performance problems.

 So anyway. Here's how I'm doing it right now.

 j(#image img).fadeTo(500,0,function() {
         j(#image img).attr({src : imgSrc});
 }).fadeTo(500, 1);

 I'm fading out the image, changing the source, and then fading it back
 in again. Is there a way to fade the source change in?
 Basically I want to fade this code in: j(#image img).attr({src :
 imgSrc});

 Is that possible? I tried the animate function but that only animates
 in CSS changes and not html attribute changes (as far as I can tell)

 Thanks,

 -David

 P.S. Here's the page I'm working 
 on:http://sandbox.exit42design.com/photography/index2.html


[jQuery] AJAX Difference between IIS and Apache?

2008-06-23 Thread patrick davey

Ok... this makes *no sense* (to me!) but then hopefully someone out
there will have an answer.

I have been using the Edit In Place from http://davehauenstein.com/blog/
to update some form fields using AJAX.

All was going well until I noticed that spaces were being removed
(e.g. 'Bob Jones' would become 'BobJones')

The strange thing is that I ran this on an XAMPP server and it worked
fine (spaces were retained) but when I ran it on my IIS server - the
spaces were removed.

The difference is in the data line:
snippit which doesn't work
$.ajax({

url: results.asp,
type: POST,
data: 'requestID=350elementID=' +
'ajax' + 'update_value=1 2 3 4 5',

 end of snippit 

--does work (on both IIS and APACHE ) --

$.ajax({

url: results.php,
type: POST,
data: { requestID: 350, element_id: 
firstname,update_value: 1 2
3 4 5  },

--- end of snippet---

Seems like the top one must be URL Encoded - but not done in a way IIS
can interpret?

Anyway - looks like I will be passing a map or using a new Edit In
Place (any suggestions).

You can see the code working on APACHE at 
http://www.snowpool.org.nz/test/test.htm
- I cannot link to the ASP code... however the HTML file is basically
identical - and both results pages just print out the contents of the
form..


Any ideas? :)

Thanks!
Patrick




[jQuery] Re: Multiple Upload songs

2008-06-23 Thread Sarm

NoBody here ?

On Jun 23, 10:05 pm, Sarm [EMAIL PROTECTED] wrote:
 Hello Everyone!

 I am new at Jquery. I want to upload multiple song using Jquery
 Multiple upload plugin. I am not understanding how to get songs from
 Jquery and upload it on FTP.

 Anybody can help me?

 Advance Thanks
 Sarm


[jQuery] Re: Fade in an Image by replacing the src

2008-06-23 Thread Joel Newkirk
Take a look at the Cycle plugin. http://www.malsup.com/jquery/cycle/ Its
primary intent is to cycle through each child of a container, IE a div
containing some images.  It includes a whole host of transition choices
(including crossfade), and also can be utilized as part of a 'pager' instead
of automated cycling.  (I use it to crossfade through 2-4 images on a timer
- the fade is perfect)

I love the look of your gallery, BTW.

j

On Mon, Jun 23, 2008 at 8:23 PM, daveJay [EMAIL PROTECTED]
wrote:


 I'm trying to switch out an image by dynamically changing the source
 value of an image. I tried using other methods of image replacement
 but none of them work smoothly, there's major performance problems.

 So anyway. Here's how I'm doing it right now.

 j(#image img).fadeTo(500,0,function() {
j(#image img).attr({src : imgSrc});
 }).fadeTo(500, 1);

 I'm fading out the image, changing the source, and then fading it back
 in again. Is there a way to fade the source change in?
 Basically I want to fade this code in: j(#image img).attr({src :
 imgSrc});

 Is that possible? I tried the animate function but that only animates
 in CSS changes and not html attribute changes (as far as I can tell)

 Thanks,

 -David

 P.S. Here's the page I'm working on:
 http://sandbox.exit42design.com/photography/index2.html



[jQuery] Can I initiate a drag through code rather than mouse interaction...

2008-06-23 Thread Code Loki

I'm using jQuery UI and I'd like to set up an object to follow the
mouse around until the user clicks on the document.  I'm able to setup
the object as draggable so that if the user clicks on it, it will drag
but what I really want to do is setup the object so that it's
draggable by default and then stops being draggable when the user
clicks, but can then be picked up again if they click on it a second
time.  I tried obj.trigger('mousedown'), but it didn't seem to have
any effect.

Thanks in advance for any help.
c. loki


[jQuery] Re: Can anyone help me with this Superfish problem?

2008-06-23 Thread Adam Weis
Hi delic,

I think you may be missing the most important part of any jQuery plugin, the
core jQuery file.  You can grab the latest version here: http://jquery.com/

-Adam



On Mon, Jun 23, 2008 at 5:35 PM, delic [EMAIL PROTECTED] wrote:


 Hello everyone,

 I am new to teh boards here and wanted to thank everyone for any help
 that might come my way...

 Now then,I am having a problem with the display of the Superfish
 navigation script
 and was wondering of anyone could help me out.

 The site is here: www.chicagodance.com/ChiDance/index.html

 The menu works fine in everything except...wait for itIE6 +

 Please help and thank you in advance,

 _delic



[jQuery] Re: Function variables getting lost? (super simple I'm sure)

2008-06-23 Thread Hinch

d'oh

Thank you!


[jQuery] Problem with Selecting Multiple Elements

2008-06-23 Thread [EMAIL PROTECTED]

I've run into an issue with JQuery that I'm not quite sure how to work
around.  Hopefully someone can help.  Basically, I'm trying to go
through a page and apply a tooltip to all the links with a certain
class.

I am able to select the attributes just fine, and apply the tooltip
plugin to each of them, using code like this:

$([EMAIL PROTECTED]).tooltip();

The issue here is that I would like to set some options in the
tooltip, so that the tooltip displays text from the target of the
link.  I need to somehow be able to access the href of the link that
I'm applying the tooltip to.

I tried this code:

$([EMAIL PROTECTED]).tooltip({
bodyHandler: fetchLink($(this).attr(href))
});

which does not work.

I also tried pulling all the links into an array, which I would then
iterate through grabbing the href and then applying the tooltip, but I
am getting undefined for all the hrefs when I try this:

var noteLinks = $([EMAIL PROTECTED]);
for(var i in noteLinks) {
var url = $(i).attr(href);
}

Ideally, I can do this with chaining somehow, as in the first
example.  If not, then why is my second method not working either??
Seems like the second method should work for sure...


[jQuery] Keeping the caret in view

2008-06-23 Thread EdMartin

I have an input type=text into which users enter symbolic logic
expressions, where the non-keyboard logical symbols are supplied by a
short array of buttons. The click functions for these buttons use the
getSelection and replaceSelection functions from the rather ancient
fieldSelection plugin. In particular, they allow for in-place editing
of data already entered into the text box, whereas without their use
button-click entry would only append to the END of what has already
been entered, regardless of where the caret is located. I've had to
cobble on my own setSelection function to the plugin so that after
each button-click entry the caret ends up immediately after what has
been entered, whether that is mid-expression (as a result of editing)
or at the end of the expression.

My problem arises if the expression being entered is longer than the
textbox. Surprisingly, IE6 behaves in the way that I would like,
namely, that the contents of the textbox automatically scroll over so
that the caret is always visible at the right hand end of the textbox.

With FF3 and Opera 9.5, it behaves that way for keyboard entry, but
for button-click entry the textbox contents literally and
disconcertingly jump back so that the first character of what has
already been entered is at the left end of the textbox and the caret
is out of view beyond the right hand end of the textbox.

Can anyone suggest how I can achieve the desired behavior with FF3 and
Opera 9.5? Is there perhaps a more recent alternative to the
fieldSelection plugin that could come to my rescue?

Ed


[jQuery] jQuery.validate: If the A field is changed, how to call the validate method of B field?

2008-06-23 Thread zhudp.cn

There is a question: If the A field is changed, how to call the
validate method of B field?

In my form, there are A and B fields, I have to call B's remote
method, when one of A and B have changed,

coding:
$(myForm).validate({
rules: {
B: {
remote: function(){
return 
/validateABExist.do?A=+$(#A).val()
}
messages: {
B: {
remote: the combination of A and B is existed
}
}
})

$(#A).change(function() {
//TODO: How to call B's remote method?

});


[jQuery] Re: AJAX Difference between IIS and Apache?

2008-06-23 Thread Bil Corry


patrick davey wrote on 6/23/2008 5:52 PM: 

data: 'requestID=350elementID=' +
'ajax' + 'update_value=1 2 3 4 5',


Spaces are not valid in a GET request.  The above should be:

data: 'requestID=350elementID=' +
'ajax' + 'update_value=1%202%203%204%205',


- Bil



[jQuery] Re: Multiple Upload songs

2008-06-23 Thread Bil Corry


Sarm wrote on 6/23/2008 12:05 PM: 

I am new at Jquery. I want to upload multiple song using Jquery
Multiple upload plugin. I am not understanding how to get songs from
Jquery and upload it on FTP.


The Multiple File Upload Plugin is used for uploading via HTTP.  You can't use it to 
upload via FTP, for that you would need a Java applet (or some other plugin technology), 
something like Java File Uploader which I found via Google (I have never used 
it):

http://javauploader.com/


- Bil



[jQuery] jTouch: iPhone compatible jQuery cheat sheet

2008-06-23 Thread Rey Bango


Found via Twitter:

jTouch: iPhone compatible jQuery cheat sheet 
http://labs.colorcharge.com/jtouch/


Rey...