[jQuery] Re: Newbie: Getting Draggable ID in Droppable function

2008-10-12 Thread Jub

Hi Richard,

Many thanks for the response. Yep - you're right. This jQuery really
is clever.

For anyone else:

addProduct(ui.draggable.attr('id'));

:-)

Cheers,
- JB

On Oct 12, 11:23 am, Richard D. Worth [EMAIL PROTECTED] wrote:
 That second parameter passed to the drop callback function, 'ui', has a
 draggable property. That's a jQuery object that contains the draggable
 element being dropped. Every jQuery UI callback has a ui hash passed as the
 2nd parameter. The properties are specific to the plugin, and in some cases
 the callback. See the jQuery UI Docs for specifics. For example, here you
 can find the list of properties for droppable's ui 
 hash:http://docs.jquery.com/UI/Droppables/droppable#options

 Also note: there is a dedicated mailing list for jQuery UI questions:

 http://groups.google.com/group/jquery-ui

 Welcome! :)

 - Richard

 On Sat, Oct 11, 2008 at 6:58 PM, Jub [EMAIL PROTECTED] wrote:

  Hi gang,

  New-ish to JQuery, and I have teething problem. I have a whole bunch
  of draggable items (identified by class=box), all of which have
  unique IDs. When they're dragged onto the droppable, I need to get the
  ID for that unique draggable.

  Specifically:

  $(document).ready(function(){
   $(.box).draggable({helper: 'clone'});
   $(#cart).droppable({
     ...
     ...
     ...
     drop: function(ev, ui) {
       addProduct(I-WANT-TO-GET-THE-DRAGGABLE-ID-HERE);
   }
  });

  Any suggestions on this most appreciated. :-)

  Cheers,
            - JB


[jQuery] Re: how to implement a repeatly jeditable plugin JS?

2008-10-12 Thread Davis

ok, i have sloved this problem with other way round.

On Oct 12, 12:27 am, Davis [EMAIL PROTECTED] wrote:
 i can assign same class to those div ie

 div id=c_1  class='e'/div
 div id=c_2  class='e'/div

 and use $(.e).editable(save-comment.php?s= + x_c_1

 but still got a problem how to access different hidden value assign a
 variable to php accordingly? appreicate for any input.

 On Oct 11, 10:07 pm, Davis [EMAIL PROTECTED] wrote:



  hi all,

  i am using jeditable plugin to implement some feature that accept user
  comment and save to the database, it is work fine for a single comment
  entry, but what about if it will have a dynamic entry as following
  shown.

  I am not familiar much about jquery, so i want that script can change
  to repeatly assign id c_1, c_2c_N to jeditable as well as access
  repeatly hidden field in the pattern shown as a parameter to pass into
  php.

  so when a user click write a comment on any comment, it will call
  the save-comment.php accordingly with the parameter pass in
  correctly.

  jQuery(document).ready(function(){
  (function($){

  var x_c_1 = $('#x_c_1').val();
   $(#c_1).editable(save-comment.php?s= + x_c_1 , {
        indicator : img src='templates/current-version/images/page-
  loading.gif',
        type      : textarea,
        submit    : OK,
        cancel    : Cancel,
        select    : true,
        tooltip   : 
    });

  })(jQuery);
  });

  div id=c_1 write a comment/div
  input type='hidden' id='x_c_1' name='x_c_1' value='bababa'

  div id=c_2 write a comment/div
  input type='hidden' id='x_c_2' name='x_c_2' value='bababa'

  
  div id=c_N write a comment/div
  input type='hidden' id='x_c_N' name='x_c_N' value='bababa'

  hope my question are clear and MANY THANKS for any advice/input.

  thanks/Davis.- Hide quoted text -

 - Show quoted text -


[jQuery] Re: Multiple cluetips (tooltips) on an imagemap

2008-10-12 Thread iantresman

That's a shame. I note that Nick Stakenburg's ProtoTip2 does this,
but using the Prototype framework. Perhaps something to consider as a
feature enhancement. Would you considered as a paid enhancement?

ProtoTip2 demonstration
http://www.nickstakenburg.com/projects/prototip2/
(Move cursor over some of the boxes)
He suggests that all the tooltips could be enabled as soon as the page
loads too, see: 
http://www.nickstakenburg.com/forum/comments.php?DiscussionID=764page=1

Prototype framework.
http://www.prototypejs.org/


On Oct 12, 6:15 am, Karl Swedberg [EMAIL PROTECTED] wrote:
 Hi there,

 Unfortunately, no, multiple tooltips are not supported. Only one at a  
 time.

 --Karl

 
 Karl Swedbergwww.englishrules.comwww.learningjquery.com

 On Oct 11, 2008, at 5:11 PM, iantresman wrote:



  I'm using Cluetips to show tooltips over several AREAs on an image map
  (with usemap). Is it possible to:

  (a) Show multiple sticky tooltips, all displayed at the same time

  (b) Automatically show all tooltips as soon as the page loads (ie.  no
  mouseover). The tooltip labels multiple AREAs on my image.

  The only other threads on the cluetips and imagemaps do not mention
  this. eg:

  * Using ClueTip with Image Maps in IE
   http://groups.google.com/group/jquery-en/browse_frm/thread/c69f840b8a...

  * Cluetip on an imagemap troubles
   http://groups.google.com/group/jquery-en/browse_frm/thread/6c9d82a368...


[jQuery] Re: jQuery Package Downloader

2008-10-12 Thread Isaak Malik
Very interesting, such a feature should be implemented on the main jQuery
website.

On Sat, Oct 11, 2008 at 8:35 PM, stuartloxton
[EMAIL PROTECTED]wrote:


 Just to let you all know even though this is my first post it may seem
 a tad spammy but it's not. It just happens I didn't have an account on
 general discussion yet.

 I've just kind of alpha released a super small jquery downloader.
 Allowing you to choose exactly what parts of jQuery you need creating
 a REALLY small download. http://demos.stuartloxton.com/downloader/

 I'm still making changes to it, theres a larger description, and some
 notes on stuff I'm going to change on my site over at:
 http://stuartloxton.com/creating-a-really-small-jquery/

 All feedback is welcome!

 Thanks,
 Stuart




-- 
Isaak Malik
Web Developer


[jQuery] Re: jquery.ui theme issue (via themeroller)

2008-10-12 Thread Shawn

More info

The dialog works fine, unless it is modal.  The overlay gets a z-index of 
1001.  And seems to always be 1 more than the highest z-index on the page.  
Themeroller does not include any classes for the overlay, so this seems to be 
a conflict between the themeroller classes and the default library based 
styles.  (because Flora works fine with those same styles...)

If it helps any, I'm running FF3 on 64bit Kubuntu.

Shawn

On Sunday 12 October 2008 04:39:36 Shawn wrote:
 I just downloaded a theme from the jquery.ui themeroller
 (http://ui.jquery.com/themeroller).

 When I apply that theme to a dialog with form elements, the form elements
 cannot be clicked on because the z-index is not quite right.

 It seems that ANY theme there runs into this problem  It looks like the
 z-index is somewhat dynamic, so it's not just a quick fix in the css (that
 I can see right this moment).

 Is this a known issue with a known work-around?  Or do I need to start
 hacking away at it?

 Besides this, I like the ThemeRoller very much though it'd be nice if
 the dialog buttons were aligned to the right.  Like real dialogs.. :)  (I
 know... I'm free to change the CSS as needed, but still.. lol)

 Shawn




[jQuery] Re: Chrome not performing fade and show() functions well

2008-10-12 Thread ivframes

Of course. It's my test site.

http://testlab.ivframes.com

Just hover those links and you'll see.


On Oct 12, 4:26 am, Mike Alsup [EMAIL PROTECTED] wrote:
 Can you post a link?

 On Oct 11, 3:41 pm, ivframes [EMAIL PROTECTED] wrote:

  Today I tested my site onChromeand I was severely disappointed.
  All fadeTo, fadeOut/In, show(), hide() functions work very bad. On the
  black background you can see the jagged white halo around the text
  that is about to fade/show/hide.

  Did anyone else experience this?


[jQuery] jquery.ui theme issue (via themeroller)

2008-10-12 Thread Shawn

I just downloaded a theme from the jquery.ui themeroller 
(http://ui.jquery.com/themeroller).  

When I apply that theme to a dialog with form elements, the form elements 
cannot be clicked on because the z-index is not quite right.  

It seems that ANY theme there runs into this problem  It looks like the 
z-index is somewhat dynamic, so it's not just a quick fix in the css (that I 
can see right this moment).  

Is this a known issue with a known work-around?  Or do I need to start hacking 
away at it?

Besides this, I like the ThemeRoller very much though it'd be nice if the 
dialog buttons were aligned to the right.  Like real dialogs.. :)  (I know... 
I'm free to change the CSS as needed, but still.. lol)

Shawn


[jQuery] Re: Page running slow

2008-10-12 Thread Karl Rudd

You'll need to provide a bit more information before anyone can help.
Preferably a live demo page.

Karl Rudd

On Sun, Oct 12, 2008 at 4:25 AM, Dr3adl0ck [EMAIL PROTECTED] wrote:

 Hi,

 I have a page that has several event listeners, some using the
 LiveQuery plugin.

 After about 5-10 minutes the page starts to get really bogged down,
 and I notice a 3-5 second delay on some events that normally occur
 very quickly. This happens whether I'm using the page, or if I just
 leave the page alone and come back to it later.

 Is there a way to monitor the events to see where the delay is coming
 from?

 Thanks for any help.



[jQuery] Re: Chrome not performing fade and show() functions well

2008-10-12 Thread Steve Davis

I can confirm that using Firefox, it looks good.
Using Chrome, I see the issue.

Definitely a rendering issue - wonder if Safari does it too?

Chrome uses the same render engine as Safari (webkit), but it's a
version or two behind, I think. So would be interesting for you to see
if this happens in the current Safari browser, since no doubt the non-
beta Chrome would be upgraded to that render engine.


On Oct 12, 3:46 am, ivframes [EMAIL PROTECTED] wrote:
 Of course. It's my test site.

 http://testlab.ivframes.com

 Just hover those links and you'll see.

 On Oct 12, 4:26 am, Mike Alsup [EMAIL PROTECTED] wrote:

  Can you post a link?

  On Oct 11, 3:41 pm, ivframes [EMAIL PROTECTED] wrote:

   Today I tested my site onChromeand I was severely disappointed.
   All fadeTo, fadeOut/In, show(), hide() functions work very bad. On the
   black background you can see the jagged white halo around the text
   that is about to fade/show/hide.

   Did anyone else experience this?


[jQuery] Re: jQuery Package Downloader

2008-10-12 Thread Alexandre Plennevaux
maybe and then, maybe not, depending on the case : the kilobyte footprint of
jquery minified is light, compared to the footprint of additional server
requests for each additional file to load.at the very least, a production
website should have all its javascript compiled into one single minified
file. This is left to the responsibility of the  web developer to decide
that according to its own project, not to this gentleman's fine download
application, of course.

On Sun, Oct 12, 2008 at 12:25 PM, Isaak Malik [EMAIL PROTECTED] wrote:

 Very interesting, such a feature should be implemented on the main jQuery
 website.


 On Sat, Oct 11, 2008 at 8:35 PM, stuartloxton 
 [EMAIL PROTECTED] wrote:


 Just to let you all know even though this is my first post it may seem
 a tad spammy but it's not. It just happens I didn't have an account on
 general discussion yet.

 I've just kind of alpha released a super small jquery downloader.
 Allowing you to choose exactly what parts of jQuery you need creating
 a REALLY small download. http://demos.stuartloxton.com/downloader/

 I'm still making changes to it, theres a larger description, and some
 notes on stuff I'm going to change on my site over at:
 http://stuartloxton.com/creating-a-really-small-jquery/

 All feedback is welcome!

 Thanks,
 Stuart




 --
 Isaak Malik
 Web Developer



[jQuery] Display a loading message till all the images are loaded.

2008-10-12 Thread Sridhar Kuppalli
Hi All,

I am using a plugin from this site
http://benjaminsterling.com/jquery-jqgalscroll-photo-gallery/
(example is also in the same page) for my gallery.
Problem here, is I want to display a loading image, till all the images get
loaded.
Which I am trying out but i am unable to find it.

Can anybody help me out with this?

*Thanks  Regards*
Sridhar K N
[EMAIL PROTECTED]


[jQuery] Re: jQuery Package Downloader

2008-10-12 Thread Isaak Malik
Alexandra, it doesn't necessarily mean that every developer uses all the
jQuery features. Some might only need the core feature while some the AJAX
features, this will give them the opportunity to customize their framework.

On Sun, Oct 12, 2008 at 2:55 PM, Alexandre Plennevaux
[EMAIL PROTECTED]wrote:

 maybe and then, maybe not, depending on the case : the kilobyte footprint
 of jquery minified is light, compared to the footprint of additional server
 requests for each additional file to load.at the very least, a production
 website should have all its javascript compiled into one single minified
 file. This is left to the responsibility of the  web developer to decide
 that according to its own project, not to this gentleman's fine download
 application, of course.

 On Sun, Oct 12, 2008 at 12:25 PM, Isaak Malik [EMAIL PROTECTED] wrote:

 Very interesting, such a feature should be implemented on the main jQuery
 website.


 On Sat, Oct 11, 2008 at 8:35 PM, stuartloxton 
 [EMAIL PROTECTED] wrote:


 Just to let you all know even though this is my first post it may seem
 a tad spammy but it's not. It just happens I didn't have an account on
 general discussion yet.

 I've just kind of alpha released a super small jquery downloader.
 Allowing you to choose exactly what parts of jQuery you need creating
 a REALLY small download. http://demos.stuartloxton.com/downloader/

 I'm still making changes to it, theres a larger description, and some
 notes on stuff I'm going to change on my site over at:
 http://stuartloxton.com/creating-a-really-small-jquery/

 All feedback is welcome!

 Thanks,
 Stuart




 --
 Isaak Malik
 Web Developer





-- 
Isaak Malik
Web Developer


[jQuery] Re: Display a loading message till all the images are loaded.

2008-10-12 Thread MorningZ

Well, you could use CSS to hide the photo gallery to start (display:
none)

and then hook onto the window load event to show

so like

html
head
script type=text/javascript/script
script type=text/javascript
$(window).load(function() {
 $(#Message).hide();
 $(#Gallery).show();
});
/script
/head

body

   div id=MessageLoading Page/div
   div id=Gallery style=display:none; *** Gallery Markup *** /
div

/body
/html

On Oct 12, 8:02 am, Sridhar Kuppalli [EMAIL PROTECTED]
wrote:
 Hi All,

 I am using a plugin from this 
 sitehttp://benjaminsterling.com/jquery-jqgalscroll-photo-gallery/
 (example is also in the same page) for my gallery.
 Problem here, is I want to display a loading image, till all the images get
 loaded.
 Which I am trying out but i am unable to find it.

 Can anybody help me out with this?

 *Thanks  Regards*
 Sridhar K N
 [EMAIL PROTECTED]


[jQuery] Re: Display a loading message till all the images are loaded.

2008-10-12 Thread henson Li

I think the jQuery Cycle plugin is better than  above one.
hehe


2008/10/12 MorningZ [EMAIL PROTECTED]:

 Well, you could use CSS to hide the photo gallery to start (display:
 none)

 and then hook onto the window load event to show

 so like

 html
 head
 script type=text/javascript/script
 script type=text/javascript
 $(window).load(function() {
 $(#Message).hide();
 $(#Gallery).show();
 });
 /script
 /head

 body

   div id=MessageLoading Page/div
   div id=Gallery style=display:none; *** Gallery Markup *** /
 div

 /body
 /html

 On Oct 12, 8:02 am, Sridhar Kuppalli [EMAIL PROTECTED]
 wrote:
 Hi All,

 I am using a plugin from this 
 sitehttp://benjaminsterling.com/jquery-jqgalscroll-photo-gallery/
 (example is also in the same page) for my gallery.
 Problem here, is I want to display a loading image, till all the images get
 loaded.
 Which I am trying out but i am unable to find it.

 Can anybody help me out with this?

 *Thanks  Regards*
 Sridhar K N
 [EMAIL PROTECTED]




-- 
Dream what you want to dream; go where you want to go; be what you
want to be, because you have only one life and one chance to do all
the things you want to do.


[jQuery] Re: Multiple cluetips (tooltips) on an imagemap

2008-10-12 Thread Karl Swedberg
Yeah, it is a shame. When I first wrote the plugin, I decided to just  
have one clueTip container and hide/show it, injecting it with new  
contents each time. Changing that to allow for multiple tooltips at  
the same time would require more than a mere enhancement. I'd like to  
completely rewrite the plugin some day, but at the moment I'm too  
overwhelmed with other work.


Thanks for your interest. Knowing that it's something others would be  
interested in using makes me a bit more motivated to start working on  
it as soon as possible.


--Karl


Karl Swedberg
www.englishrules.com
www.learningjquery.com




On Oct 12, 2008, at 5:40 AM, iantresman wrote:



That's a shame. I note that Nick Stakenburg's ProtoTip2 does this,
but using the Prototype framework. Perhaps something to consider as a
feature enhancement. Would you considered as a paid enhancement?

ProtoTip2 demonstration
http://www.nickstakenburg.com/projects/prototip2/
(Move cursor over some of the boxes)
He suggests that all the tooltips could be enabled as soon as the page
loads too, see: 
http://www.nickstakenburg.com/forum/comments.php?DiscussionID=764page=1

Prototype framework.
http://www.prototypejs.org/


On Oct 12, 6:15 am, Karl Swedberg [EMAIL PROTECTED] wrote:

Hi there,

Unfortunately, no, multiple tooltips are not supported. Only one at a
time.

--Karl


Karl Swedbergwww.englishrules.comwww.learningjquery.com

On Oct 11, 2008, at 5:11 PM, iantresman wrote:



I'm using Cluetips to show tooltips over several AREAs on an image  
map

(with usemap). Is it possible to:



(a) Show multiple sticky tooltips, all displayed at the same time


(b) Automatically show all tooltips as soon as the page loads  
(ie.  no

mouseover). The tooltip labels multiple AREAs on my image.



The only other threads on the cluetips and imagemaps do not mention
this. eg:



* Using ClueTip with Image Maps in IE
 http://groups.google.com/group/jquery-en/browse_frm/thread/c69f840b8a 
...



* Cluetip on an imagemap troubles
 http://groups.google.com/group/jquery-en/browse_frm/thread/6c9d82a368 
...




[jQuery] jquery validation

2008-10-12 Thread bookme

Hi, I am using Jquery plugin for client side validation. But due to a
filedname I am facing a problem.

Example
var validator = $(#UserSignupForm).validate({
rules: {
data[User][username]: {
required: true,
minlength: 2,
remote: users.php
}

});

HTML :input id=id_username1 name=data[User][username] type=text
value= maxlength=50 /

When I am using data[User][username] as a filed name in jquery
validation,  it's not working but in case of other name like username
it's working. I think there is problem of [][] (bracket of array). But
I can not change  data[User][username] so I  want to use id_username1
instead of filename in validation plugin but don't know how to use
ID ?.

Is there any other solution?

Also I have to face same problem in many plugins becuase CakePHP
return name like data[User][username] so How can I override a name
from ID?

Please Help me
Thanks


[jQuery] change filedname from ID in jquery validation plugin

2008-10-12 Thread bookme

Hi, I am using Jquery plugin for client side validation. But due to a
filedname I am facing a problem.

Example
var validator = $(#UserSignupForm).validate({
rules: {
data[User][username]: {
required: true,
minlength: 2,
remote: users.php
}

});

HTML :input id=id_username1 name=data[User][username] type=text
value= maxlength=50 /


[jQuery] change filedname from ID in jquery validation plugin

2008-10-12 Thread bookme


Hi, I am using Jquery plugin for client side validation. But due to a
filedname I am facing a problem.

Example
var validator = $(#UserSignupForm).validate({ 
rules: { 
data[User][username]: {
required: true,
minlength: 2,
remote: users.php
}

});

HTML :input id=id_username1 name=data[User][username] type=text
value= maxlength=50 /

When I am using data[User][username] as a filed name in jquery validation, 
it's not working but in case of other name like username it's working. I
think there is problem of [][] (bracket of array). But I can not change 
data[User][username] so I  want to use id_username1 instead of filename in
validation plugin but don't know how to use ID ?.

Is there any other solution?

Also I have to face same problem in many plugins becuase CakePHP return name
like data[User][username] so How can I override a name from ID?

Please Help me
Thanks 
-- 
View this message in context: 
http://www.nabble.com/change-filedname-from-ID-in-jquery-validation-plugin-tp19940820s27240p19940820.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



[jQuery] Re: jquery validation

2008-10-12 Thread Jörn Zaefferer
See 
http://docs.jquery.com/Plugins/Validation/Reference#Fields_with_complex_names_.28brackets.2C_dots.29

Jörn

On Sun, Oct 12, 2008 at 4:49 PM, bookme [EMAIL PROTECTED] wrote:

 Hi, I am using Jquery plugin for client side validation. But due to a
 filedname I am facing a problem.

 Example
 var validator = $(#UserSignupForm).validate({
rules: {
data[User][username]: {
required: true,
minlength: 2,
remote: users.php
}

 });

 HTML :input id=id_username1 name=data[User][username] type=text
 value= maxlength=50 /

 When I am using data[User][username] as a filed name in jquery
 validation,  it's not working but in case of other name like username
 it's working. I think there is problem of [][] (bracket of array). But
 I can not change  data[User][username] so I  want to use id_username1
 instead of filename in validation plugin but don't know how to use
 ID ?.

 Is there any other solution?

 Also I have to face same problem in many plugins becuase CakePHP
 return name like data[User][username] so How can I override a name
 from ID?

 Please Help me
 Thanks



[jQuery] quickSearch 2.0

2008-10-12 Thread lomas . rik

Hi guys,

I've been working on rewritting my quickSearch plugin for quite a
while now and I'm happy to let you know that I've finished. The new
version of quickSearch was written with speed in mind, it is now a lot
quicker than the previous version and it is completely backwards-
compatible with any previous code written.

http://rikrikrik.com/jquery/quicksearch/

If anyone finds any bugs or has any requests for features, let me know

Thanks,
Rik Lomas


[jQuery] Impossible challenge: when bg image loads

2008-10-12 Thread gjhames

It's possible to callback a function when a background image of an
element, defined in css, finish to loads? Example:

div#mydiv {
background-image: url(files/bg.jpg);
}

Thanks.


[jQuery] Re: Display a loading message till all the images are loaded.

2008-10-12 Thread Sridhar Kuppalli
Thanks MorningZ,

Your idea clicked for me...

Thanks a Lot
--

On Sun, Oct 12, 2008 at 8:06 PM, henson Li [EMAIL PROTECTED] wrote:


 I think the jQuery Cycle plugin is better than  above one.
 hehe


 2008/10/12 MorningZ [EMAIL PROTECTED]:
 
  Well, you could use CSS to hide the photo gallery to start (display:
  none)
 
  and then hook onto the window load event to show
 
  so like
 
  html
  head
  script type=text/javascript/script
  script type=text/javascript
  $(window).load(function() {
  $(#Message).hide();
  $(#Gallery).show();
  });
  /script
  /head
 
  body
 
div id=MessageLoading Page/div
div id=Gallery style=display:none; *** Gallery Markup *** /
  div
 
  /body
  /html
 
  On Oct 12, 8:02 am, Sridhar Kuppalli [EMAIL PROTECTED]
  wrote:
  Hi All,
 
  I am using a plugin from this sitehttp://
 benjaminsterling.com/jquery-jqgalscroll-photo-gallery/
  (example is also in the same page) for my gallery.
  Problem here, is I want to display a loading image, till all the images
 get
  loaded.
  Which I am trying out but i am unable to find it.
 
  Can anybody help me out with this?
 
  *Thanks  Regards*
  Sridhar K N
  [EMAIL PROTECTED]
 



 --
 Dream what you want to dream; go where you want to go; be what you
 want to be, because you have only one life and one chance to do all
 the things you want to do.



[jQuery] Re: jQuery clone - problem with array inputs

2008-10-12 Thread Ca-Phun Ung
Hi, Could you post a test page? If there is no JS error and the generated
HTML looks ok then it's more likely a PHP bug you're experiencing.

On Mon, Oct 13, 2008 at 12:10 AM, papercode [EMAIL PROTECTED] wrote:


 Hi guys,

 Inside myForm i have myTable.  myTable contains 3 text input fields:
 name=ip[]
 name=mac[]
 name=netmask[]

 When a user clicks add new i clone myTable and append it to another
 table inside myForm. Firebug sees no error in the generated html node,
 yet when i press submit, the new fields don't get passed to PHP

 $_POST['ip'] is a one-value array. So are mac and netmask.

 Basicly, the new input elements seem to get ignored somehow.

 I also checked whether the new fields are inside or outside the form
 and they are definitely inside. Here's the clone code:

 var js_new_ip = $('#ip_template').clone();

js_new_ip.attr('id', '');
js_new_ip.appendTo('#ip_holder');
js_new_ip.contents().find([name='ip[]']).val('');
js_new_ip.contents().find([name='mac[]']).val('');

 Any thoughts?

 Thanks




-- 
Ca-Phun Ung
+ http://yelotofu.com
+ css, django, hongkong, html, javascript, php


[jQuery] Calling seperate function in each()

2008-10-12 Thread XeroXer

Hi!

I am making a simple expanding list with categories and content.


This is my script:
this.OpenElement = function () {
$(this).unbind('click', OpenElement);
$(this).bind('click', CloseElement);
$(this).parent(li).css({backgroundColor:
#00ff00}).children(ul).show();
return false;
};
this.CloseElement = function () {
$(this).unbind('click', CloseElement);
$(this).bind('click', OpenElement);
$(this).parent(li).css({backgroundColor:
#ff}).children(ul).hide();
return false;
};
this.OpenAll = function () {
$(a.Category).each(function () {
$(this).unbind('click', OpenElement);
$(this).bind('click', CloseElement);
$(this).parent(li).css({backgroundColor:
#00ff00}).children(ul).show();
});
return false;
};
this.CloseAll = function () {
$(a.Category).each(function () {
$(this).unbind('click', CloseElement);
$(this).bind('click', OpenElement);
$(this).parent(li).css({backgroundColor:
#ff}).children(ul).hide();
});
return false;
};
$(document).ready(function() {
$(ul ul).hide();
$(a.Category).bind('click', OpenElement);
$(a#ExpandAll).bind('click', OpenAll);
$(a#CollapseAll).bind('click', CloseAll);
});


As you can see I do the same thing in the each() in CloseAll as I do
in CloseElement.
I thought that I could write like this:
$(a.Category).each(OpenElement);

But that isn't working.

Maybe someone can help me and maybe someone has some input on the code
in it's whole because I am fairly new to jQuery.


[jQuery] Re: Impossible challenge: when bg image loads

2008-10-12 Thread Eric

I'm gonna go out on a limb and say, no.

But you might be able to work with the browser cache by loading the
bg.jpg in a hidden div.   If that causes the image to be cached by the
browser, then you can show the background after a significant delay
and it *should* appear instantaneously.

Not tested, sorry.

If you describe the effect you're trying to obtain, perhaps we can
find another solution?


On Oct 12, 11:44 am, gjhames [EMAIL PROTECTED] wrote:
 It's possible to callback a function when a background image of an
 element, defined in css, finish to loads? Example:

 div#mydiv {
 background-image: url(files/bg.jpg);

 }

 Thanks.


[jQuery] Re: jQuery selector that matches dd's elements

2008-10-12 Thread [EMAIL PROTECTED]

You could use something like this:

 $('dt:eq(0)').nextAll('dd').doSomething();
 $('dt:eq(1)').nextAll('dd').doSomething();
 $('dt:eq(2)').nextAll('dd').doSomething();
 $('dt:eq(3)').nextAll('dd').doSomething();
 $('dt:eq(4)').nextAll('dd').doSomething(); // and so on...


[jQuery] Re: jquery validation

2008-10-12 Thread Eric

Plugins sometimes conflict.  One of the mark of a good plugin is a
minimum of conflicts. Also, the tricks we sometimes have to play on
the DOM can interact in non-intuitive ways.

Can you please describe in more detail the problem that you're having?

You may also try to use other plugins, such as jqModal (http://
dev.iceburg.net/jquery/jqModal/) instead of Thickbox.

-E

On Oct 12, 2:32 pm, bookme [EMAIL PROTECTED] wrote:
 Thanks a lot to u jorn.

 I am facing one more problem.

 Below validation is working without thickbox plugin but when I used it
 in thickbox it's not working ?

 I think equalTo function is not working in thickbox?

 data[User][password2]: {
                                 required: Repeat your password,
                                 minlength: jQuery.format(Enter at least {0} 
 characters),
                                 equalTo: Enter the same password as above
                         }

 Please help me

 Thanks

 On Oct 12, 8:30 pm, Jörn Zaefferer [EMAIL PROTECTED]
 wrote:

  Seehttp://docs.jquery.com/Plugins/Validation/Reference#Fields_with_compl...

  Jörn

  On Sun, Oct 12, 2008 at 4:49 PM, bookme [EMAIL PROTECTED] wrote:

   Hi, I am using Jquery plugin for client side validation. But due to a
   filedname I am facing a problem.

   Example
   var validator = $(#UserSignupForm).validate({
                  rules: {
                          data[User][username]: {
                                  required: true,
                                  minlength: 2,
                                  remote: users.php
                          }

   });

   HTML :input id=id_username1 name=data[User][username] type=text
   value= maxlength=50 /

   When I am using data[User][username] as a filed name in jquery
   validation,  it's not working but in case of other name like username
   it's working. I think there is problem of [][] (bracket of array). But
   I can not change  data[User][username] so I  want to use id_username1
   instead of filename in validation plugin but don't know how to use
   ID ?.

   Is there any other solution?

   Also I have to face same problem in many plugins becuase CakePHP
   return name like data[User][username] so How can I override a name
   from ID?

   Please Help me
   Thanks


[jQuery] Re: jquery validation

2008-10-12 Thread bookme

Thanks a lot to u jorn.

I am facing one more problem.

Below validation is working without thickbox plugin but when I used it
in thickbox it's not working ?

I think equalTo function is not working in thickbox?

data[User][password2]: {
required: Repeat your password,
minlength: jQuery.format(Enter at least {0} 
characters),
equalTo: Enter the same password as above
}

Please help me

Thanks

On Oct 12, 8:30 pm, Jörn Zaefferer [EMAIL PROTECTED]
wrote:
 Seehttp://docs.jquery.com/Plugins/Validation/Reference#Fields_with_compl...

 Jörn

 On Sun, Oct 12, 2008 at 4:49 PM, bookme [EMAIL PROTECTED] wrote:

  Hi, I am using Jquery plugin for client side validation. But due to a
  filedname I am facing a problem.

  Example
  var validator = $(#UserSignupForm).validate({
 rules: {
 data[User][username]: {
 required: true,
 minlength: 2,
 remote: users.php
 }

  });

  HTML :input id=id_username1 name=data[User][username] type=text
  value= maxlength=50 /

  When I am using data[User][username] as a filed name in jquery
  validation,  it's not working but in case of other name like username
  it's working. I think there is problem of [][] (bracket of array). But
  I can not change  data[User][username] so I  want to use id_username1
  instead of filename in validation plugin but don't know how to use
  ID ?.

  Is there any other solution?

  Also I have to face same problem in many plugins becuase CakePHP
  return name like data[User][username] so How can I override a name
  from ID?

  Please Help me
  Thanks


[jQuery] Re: quickSearch 2.0

2008-10-12 Thread Jörn Zaefferer
Hi Rik,

cool stuff!

I you want to check into the jQuery repository (replacing this old
stuff http://dev.jquery.com/view/trunk/plugins/quicksearch/) just mail
me.

One thing I noted in the demo: The search is so fast, the really is no
need to display a loading indicator. I think Jakob Nielsen mentioned
that a UI change that takes less then 100ms doesn't need any kind of
loading indicator. That seems ot be the case here - the update is so
fast, the itself is an indicator enough.

Other than that, you may want to look at Mike's plugin authoring
guide, and adopt some coding style. Should be easy enough and opens up
a few more options:
http://www.learningjquery.com/2007/10/a-plugin-development-pattern

Jörn

On Sun, Oct 12, 2008 at 7:28 PM, Leonardo K [EMAIL PROTECTED] wrote:
 Very nice plugin.

 On Sun, Oct 12, 2008 at 13:36, [EMAIL PROTECTED] wrote:

 Hi guys,

 I've been working on rewritting my quickSearch plugin for quite a
 while now and I'm happy to let you know that I've finished. The new
 version of quickSearch was written with speed in mind, it is now a lot
 quicker than the previous version and it is completely backwards-
 compatible with any previous code written.

 http://rikrikrik.com/jquery/quicksearch/

 If anyone finds any bugs or has any requests for features, let me know

 Thanks,
 Rik Lomas




[jQuery] Covert relative url to absolute url

2008-10-12 Thread oliver

Hi,

Is there a method available that will allow me to convert the
reltative url to absolute url?

Thanks!


[jQuery] Tomcat URL encoding problem

2008-10-12 Thread fede

Hi, i'm calling a Spring controller from jQuery (ajax call) and i have
this warning on Tomcat 6:

12-ott-2008 20.50.57 org.apache.tomcat.util.http.Parameters
processParameters
AVVERTENZA: Parameters: Character decoding failed. Parameter skipped.
java.io.CharConversionException: EOF
at org.apache.tomcat.util.buf.UDecoder.convert(UDecoder.java:83)
at org.apache.tomcat.util.buf.UDecoder.convert(UDecoder.java:49)
at org.apache.tomcat.util.http.Parameters.urlDecode(Parameters.java:
412)
at
org.apache.tomcat.util.http.Parameters.processParameters(Parameters.java:
394)
at
org.apache.tomcat.util.http.Parameters.processParameters(Parameters.java:
346)
at org.apache.catalina.connector.Request.parseParameters(Request.java:
2491)
at org.apache.catalina.connector.Request.getParameter(Request.java:
1040)
at
org.apache.catalina.connector.RequestFacade.getParameter(RequestFacade.java:
355)
..

The application works correctly on both oc4j and tomcat, but inthe
last i have this problem.
I also tried to set tomcat url character encoding to UTF8 but it
didn't work.

Regards.


[jQuery] don't understand this bug _ please review code

2008-10-12 Thread Alexandre Plennevaux
hi Friends,

i'm about to finish an old project of a specific image viewer for a
professional photographer.  The whole idea is that her work becomes her
identity.

Therefore, the pictures are displayed in imagesets one next to each other,
each being a line, thin or thick according to the number of images it
contain. This generates an ID-related graphic: a barcode.

Now, i'm about to be finished, but there is a bug i can't seem to nail down
and i would be very grateful if you guys could spend some of your time
helping me out.

Please first check the live prototype:
http://www.pixeline.be/test/lisapram/

(thanks for your patience, 101 images to load !)

now, past the rudimentary preloader, you should see a grey barcode. You can
hover then click on each line to expand the image set, and see what it does.

Above, you get keywords summarizing her main work keywords: professional,
experimental, people (portraits), etc. If you click on them, it should
activate/disactivates the barcode (not) tagged with these keywords, thus
generating a different barcode, according to the current combination of tags
selected.

Problem is exactly there: the barcode does not quite reinitalise, or  i
don't know exactly in fact how to describe it: a grey box appears
underneath, and i don't find where it comes from. Can somebody check?

If you want to peak at the code (js and html) are available in the nice
jsbin app of remy:   http://jsbin.com/eqime


thank you very much for your help !


Alexandre Plennevaux


[jQuery] Re: Covert relative url to absolute url

2008-10-12 Thread Jeffrey Kretz

This is a little sloppy, but do you mean something like this?

var url = window.location.href.split('/');
url.pop();
url.push(relativePath);
return url.join('/');

-Original Message-
From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of oliver
Sent: Sunday, October 12, 2008 10:48 AM
To: jQuery (English)
Subject: [jQuery] Covert relative url to absolute url


Hi,

Is there a method available that will allow me to convert the
reltative url to absolute url?

Thanks!



[jQuery] Re: quickSearch 2.0

2008-10-12 Thread Rik Lomas

Hi Jörn,

I've currently been hosting on Github here:
http://github.com/riklomas/quicksearch/

Regarding the loader, you can get rid of the loaded by putting an
empty string in the options. The reason it's in the default is that
the default delay on the search is 500ms, plus on larger tables, there
is still a slight lag

The reason I chose the coding style was down to other popular plugins
having the same style, I didn't realise there was an official style,
although it wouldn't be too difficult to change it over

Rik



2008/10/12 Jörn Zaefferer [EMAIL PROTECTED]:
 Hi Rik,

 cool stuff!

 I you want to check into the jQuery repository (replacing this old
 stuff http://dev.jquery.com/view/trunk/plugins/quicksearch/) just mail
 me.

 One thing I noted in the demo: The search is so fast, the really is no
 need to display a loading indicator. I think Jakob Nielsen mentioned
 that a UI change that takes less then 100ms doesn't need any kind of
 loading indicator. That seems ot be the case here - the update is so
 fast, the itself is an indicator enough.

 Other than that, you may want to look at Mike's plugin authoring
 guide, and adopt some coding style. Should be easy enough and opens up
 a few more options:
 http://www.learningjquery.com/2007/10/a-plugin-development-pattern

 Jörn

 On Sun, Oct 12, 2008 at 7:28 PM, Leonardo K [EMAIL PROTECTED] wrote:
 Very nice plugin.

 On Sun, Oct 12, 2008 at 13:36, [EMAIL PROTECTED] wrote:

 Hi guys,

 I've been working on rewritting my quickSearch plugin for quite a
 while now and I'm happy to let you know that I've finished. The new
 version of quickSearch was written with speed in mind, it is now a lot
 quicker than the previous version and it is completely backwards-
 compatible with any previous code written.

 http://rikrikrik.com/jquery/quicksearch/

 If anyone finds any bugs or has any requests for features, let me know

 Thanks,
 Rik Lomas






-- 
Rik Lomas
http://rikrikrik.com


[jQuery] How to use a custom ajax code in page that was loaded with .load()?

2008-10-12 Thread ivframes

I have a page that loads with jquery's .load() function.
However, that page is a form with two custom JS files attached.
When I load it separately, the JS code works. However, when used
with .load(), it does not.

What I'm missing here?


[jQuery] Re: Calling seperate function in each()

2008-10-12 Thread Dave Methvin

There is a lot of similar-looking code there. You could use .toggle()
but the added complication of OpenAll/CloseAll makes that tough. What
does your markup look like?


[jQuery] Re: jcarousel and nested lists

2008-10-12 Thread Leapfrog!





Can somebody help with this?
paid work!



vinci wrote:

  Hello everyone.

I would like to modify jcarousel to only scroll a certain number of
pixels, rather than to the next number of items as setup in the
settings. Ie instead of scrolling 3 items, i would like to scroll
200px. I am using jcarousel as a vertical menu.

The problem has arised because I have a set of nested lists. If the
nested list is longer then the containing div, and the user scrolls to
the next set of items, then the overhanging part of the nested list is
skipped. I am using treeview to expand/hide these nested lists.

As I am not a master of _javascript_, I need somebody to point out how
to achieve this. Willing to pay (paypal).

  





[jQuery] How to format options that are only relevant in certain contexts?

2008-10-12 Thread Brian

I'm writing a star rating plugin. I'd like to write it respecting
established coding standards. Generally: there are contexts where the
plugin will or will not asynchronously submit (outside or inside of a
form, by default). Based on the context, there some options that will
not be relevant (e.g. the options defining the action and method of
the asynchronous submit). Is there some standard way to format the
options object that reflects that some options will only be relevant
in certain contexts or depending on the status of another option?


[jQuery] jQuery Form Plugin - File Upload Issues

2008-10-12 Thread JustinScheetz

I have a form that works perfectly until I try to upload a file,
please check out:

http://freshbump.scheetzdesigns.com/

Click the big blue Add the Next Image button and play with the form.
If you don't add a file to upload, it works. Once you add a file, it's
a no-go.

There is documentation on how to handle the uploads, but the page
gives no samples of code to actually use. Am I missing something?

http://www.malsup.com/jquery/form/#code-samples

Any help would be HUGELY appreciated!


[jQuery] Problems creating a simple auto-expand panel

2008-10-12 Thread Martin

Hi, I'm a jquery beginner and have problems creating a simple (?)
effect on my page. I have the following markup:
div class=panel
 div class=panelTitletitle/div
 div class=panelContentcontent.../div
/div

What I'd like to achieve, is that the panel content should be shown
when the mouse is moved over the panel DIV and then hidden again when
the mouse is moved away.

My current solution looks like this:

$(document).ready(function() {
  $('.panel').hover(function(e) {
$(e.target).children('.panelContent').stop().slideDown('slow');
  }, function(e) {
$(e.target).children('.panelContent').stop().slideUp('slow');
  });
}

This code basically works, but very unreliably. I especially have
problems when the mouse pointer is moved fast, e.g. when the mouse
leaves the panel DIV before the content was fully shown.
I have also tried binding the mouseenter and mouseleave events, but
the results were the same.

A full sample can be viewed here: http://jsbin.com/afuwa
To view/edit the source code use the URL : http://jsbin.com/afuwa/edit

Can anyone give me some hints, pointers to documentation, etc. how to
implement something like I'm trying to achieve?

Thanks a lot.

--
Martin


[jQuery] Translate standard HREF's into JavaScript expressions -- string manipulation help..

2008-10-12 Thread jsw_nz

Just needing some pointers on jQuery string manipulation

I have a content management system
- in which I am applying experimental (jQuery) ajax functions - these
work OK - !

But ather than hack the CMS source code,
I want to create a function that replaces the standard hrefs that the
CMS generates
 with javascript functions, which are triggered on Ajax success event



basically here are the translation requirements:

TRANSLATE
FROM
a rel=paginate href=index.php?aid=1-2content/a

TO
a href=javascript:ajax_getPage('1-2')content/a

guessing it is a matter of getting the hrefs, based on rel=paginate
as a selector;
then replacing with the javascript string, where the key variable is
aid, ie 1-2 in this case...

I have tried getting this to work, but am having problems
so wanted to ask if any more experience jQuery programmers might
provide pointers

thanks is advance.



[jQuery] implementing double cookie submit with jquery?

2008-10-12 Thread Alex Weber

anyone have any suggestions on where to start?
read pretty much everything on google but still kinda confused...

thanks

Alex


[jQuery] Re: Translate standard HREF's into JavaScript expressions -- string manipulation help..

2008-10-12 Thread Michael Geary

I think it would go something like this (thoroughly untested):

$(function() {
$('a[rel=paginate]').each( function() {
this.href = this.href.replace(
/^.*aid=(.+)$/,
javascript:ajax_getPage('$1')
);
});
});

-Mike

 From: jsw_nz
 
 Just needing some pointers on jQuery string manipulation
 
 I have a content management system
 - in which I am applying experimental (jQuery) ajax functions 
 - these work OK - !
 
 But ather than hack the CMS source code, I want to create a 
 function that replaces the standard hrefs that the CMS generates
  with javascript functions, which are triggered on Ajax 
 success event
 
 
 
 basically here are the translation requirements:
 
 TRANSLATE
 FROM
 a rel=paginate href=index.php?aid=1-2content/a
 
 TO
 a href=javascript:ajax_getPage('1-2')content/a
 
 guessing it is a matter of getting the hrefs, based on rel=paginate
 as a selector;
 then replacing with the javascript string, where the key 
 variable is aid, ie 1-2 in this case...
 
 I have tried getting this to work, but am having problems so 
 wanted to ask if any more experience jQuery programmers might 
 provide pointers
 
 thanks is advance.
 



[jQuery] Re: jQuery Form Plugin - File Upload Issues

2008-10-12 Thread Mike Alsup

 I have a form that works perfectly until I try to upload a file,
 please check out:

 http://freshbump.scheetzdesigns.com/

 Click the big blue Add the Next Image button and play with the form.
 If you don't add a file to upload, it works. Once you add a file, it's
 a no-go.

 There is documentation on how to handle the uploads, but the page
 gives no samples of code to actually use. Am I missing something?

 http://www.malsup.com/jquery/form/#code-samples

 Any help would be HUGELY appreciated!


Can you provide a link that doesn't require registration?



[jQuery] Remapping jquery to work on window.content?

2008-10-12 Thread MichaelBalazs

Hello,

I am working in a situation that I need to have jquery reference
window.content rather than window. I assume that it want the base
reference is to. Any ideas on how to do this?

Thanks,
Michael


[jQuery] Thickbox vs jqModal

2008-10-12 Thread bookme

Hi,

I am confused what plugin should I use either Thickbox or jqModal?

Can some body tell me which one is better in terms of performance,
look and feel and for future help

Thanks