[jQuery] Re: highlight errors

2009-03-23 Thread jQuery Lover

Are you using your own validation code or validation plugin ?


Read jQuery HowTo Resource  -  http://jquery-howto.blogspot.com



On Mon, Mar 23, 2009 at 10:30 AM, anush anushshe...@gmail.com wrote:

 Is it possible to highlight all the text boxes in a from even if there
 is an error in just one of the boxes whbile validating ?


[jQuery] Re: jquery and netbeans 6.5

2009-03-23 Thread jQuery Lover

I don't use it as an IDE, but I remember updating my jQuery version.
You need to create a new zip file similar to the one found here:

C:\Program Files\NetBeans 6.5\webcommon1\modules\ext\javascript

Copy paste jquery-1.2.6.zip to something lik jquery-1.3.2.zip and
don't forget to change the properties file in the archive.


Read jQuery HowTo Resource  -  http://jquery-howto.blogspot.com



On Sun, Mar 22, 2009 at 8:49 AM, gabriel balint
gabriel.bal...@gmail.com wrote:
 Is anybody using netBeans as IDE?
 It looks promising but i can't get it to work properly. I get some of
 the functions but not all of them.
 (http://www.netbeans.org/download/flash/js/javascript_demo.html)





[jQuery] Re: Beginner Question

2009-03-23 Thread jQuery Lover

Which treeView plugin are you using?

http://jquery.bassistance.de/treeview/demo
http://be.twixt.us/jquery/treeView.php

The second one collapses and expands when you click on [-]/[+] links
only... probably what you want...


Read jQuery HowTo Resource  -  http://jquery-howto.blogspot.com



On Mon, Mar 23, 2009 at 2:47 AM, rsebag rse...@yahoo.com wrote:

 Hello,
 Am using the jQuery treeview plugin

 Would like the folders in the tree to open/close only when the user
 clicks on the folder or the [+] sign.

 Right now it opens/closes also when one clicks on the text.

 (This messes up my application since I have a checkbox on each folder.
 After a person opens the folder, when he clicks the checkbox, it
 closes the folder!)

 thnx a million



[jQuery] Re: jquery_ajax + servlet problem

2009-03-23 Thread jQuery Lover

You are mapping your AddComment request to be /servlets/AddComment but
making AJAX request to AddComment.

Probably changing $.post to this will help:

$.post(/servlets/AddComment, function(data){

Unless the current page is also in /servlets.

PS. You might find $.getJSON() method useful
(http://docs.jquery.com/Ajax/jQuery.getJSON).


Read jQuery HowTo Resource  -  http://jquery-howto.blogspot.com



2009/3/23 Michael lifeng_c...@126.com:

 It takes me almost half a day , but I haven't solve it ,I don't know
 why .
 I would be much appreciate for your help...

 $(document).ready(function(){

alert(can show);

$(#button).click(function(){

alert(when click button , can show );

$.post(AddComment,null,function(data){//
 AddComment is a servlet name

alert(here can't show);

},json);
});
 });

 servlet ,root ,servlets/AddComment,

 public void doPost(HttpServletRequest request, HttpServletResponse
 response)
throws ServletException, IOException {

System.out.println(here can't show,that is ,the method
 $.post  does not work);
 }

 servlet config in web.xml:
  servlet
servlet-nameAddComment/servlet-name
servlet-classservlets.AddComment/servlet-class
load-on-startup1/load-on-startup
  /servlet
  servlet-mapping
servlet-nameAddComment/servlet-name
url-pattern/servlets/AddComment/url-pattern
  /servlet-mapping



[jQuery] Re: How to prevent loading jquery twice

2009-03-23 Thread jQuery Lover

Why not include jQuery in your head and don't worry about it being
already loaded or not in your components. Then remove jquery loading
in all of your components...

This will make sure your components concentrate on their main business logic ...


Read jQuery HowTo Resource  -  http://jquery-howto.blogspot.com



On Mon, Mar 23, 2009 at 3:55 PM, Andy789 e...@abcstudio.com.au wrote:

 Because some components are loaded inside of iframe and need its own
 jQuery. some compionents are loaded one-by-one and need only one
 common library

 On Mar 23, 9:39 pm, Liam Potter radioactiv...@gmail.com wrote:
 why would you beloadingthe library for each script?

 Andy789 wrote:
  Hi all,

  I have different independent modules using jquery and need to avoid
  its doubleloading. So, instead ofloadingjquery, I amloadingthe
  code:

  if (typeof jQuery != 'undefined') {
  document.write('script type=text/javascript src=/templates/
  yoo_evolution/lib/js/jquery-1.3.2.min.js/script');
  }

  Also, I have added a line var $j = jQuery.noConflict(); as a last line
  of jquery library file.

  The problem is that though it writes the code on document write, it
  does not seem that jquery is loaded at all, because I am getting an
  error  jQuery not defined.

  What am i doing wrong here? is there a more elegant way to load a
  library dynamically?

  Thanks


[jQuery] Re: minification

2009-03-23 Thread jQuery Lover

Using latest YUI and default configuration I got 53.7KB


Read jQuery HowTo Resource  -  http://jquery-howto.blogspot.com



On Sun, Mar 22, 2009 at 11:40 PM, dereck009 galambal...@gmail.com wrote:

 How the jquery code was minified? I mean it's about 56 kB, while yui
 compressor gives a 72 kB result. As I saw it's not obfuscated, only
 minified, so I'm really intrested in the way you did this.



[jQuery] Re: Rotating CSS classes each 5 sec

2009-03-20 Thread jQuery Lover

The code is not perfect:

var imgArray = [ img1 , img2, img3];

function swap(i){
if(imgArray.length  i){
$('.' + imgArray[i]).removeClass(imgArray[i]).addClass(imgArray[i+1]);
}else{
return;
}
setTimeout(swap(+(i+1)+), 5000);
}

// Call the function
swap(0);


Read jQuery HowTo Resource  -  http://jquery-howto.blogspot.com



On Fri, Mar 20, 2009 at 5:15 PM, Alexandru Dinulescu
alex.d.a...@gmail.com wrote:
 Hello.

 I have a huge question. I need something that rotates classes each 5 seconds
 for ex

 I have a div class=img1 /div. I want each 5 seconds the class to be
 changed from img1 to img2, and so on so at the start an array should be
 placed like
 imgArray = [ img1 , img2, img3,  etc ]

 I need css classes changed not a plain image since  the image is a
 background image and i have text on it.

 I did look over google but i couldnt find any help regarding this matter.

 Thank you

 ---
 Alexandru Dinulescu
 Web Developer
 (X)HTML/CSS Specialist
 Expert Guarantee Certified Developer
 XHTML: http://www.expertrating.com/transcript.asp?transcriptid=1879053
 CSS : http://www.expertrating.com/transcript.asp?transcriptid=1870619
 RentACoder Profile:
 http://www.rentacoder.com/RentACoder/DotNet/SoftwareCoders/ShowBioInfo.aspx?lngAuthorId=6995323

 MainWebsite: http://alexd.adore.ro




[jQuery] Re: problems with dynamic click event... how do I get the index in there ?

2009-03-20 Thread jQuery Lover

Why don't you use this syntax so .each() would pass the current index for you...

$( calculationsArray ).each(function( INDEX ){


Read jQuery HowTo Resource  -  http://jquery-howto.blogspot.com



On Fri, Mar 20, 2009 at 5:29 PM, hybris77 dist...@yahoo.com wrote:

 hi folks, if anyone could direct me in the right direction here I'd be
 very happy

 what's wrong here :

 $( calculationsArray ).each(function(){
        var index = $( calculationsArray ).index(this);
        $( .calculations_list ).append( li
 class='calculations_menu_list'+ (index+1)+/li)
        .click( function(){
        var i = $(  this  ).index( this );

        alert( i );

        });
 });

 im trying to get the index into the event. either the index that i
 have already defined before the event
 or extracting it from the element with the event on it...

 many thanks


[jQuery] Re: What does this do?

2009-03-20 Thread jQuery Lover

Gets you the first visible .upsell_feature_module's ID (in id=upcell
container).


Read jQuery HowTo Resource  -  http://jquery-howto.blogspot.com



On Fri, Mar 20, 2009 at 5:01 PM, Danjojo dlcac...@gmail.com wrote:

 Sorry not a quiz... I just am having trouble remembering how I built
 this.

 What does this do?

 firstInt = Number($(div#upsell .upsell_feature_module:visible).attr
 (id));

 Is it counting where in the chain of Div's the current position is?

 My code is:

 function scrollCartUpsells(num){
        if (Number(num) == 1){
            firstInt = Number($
 (div#upsell .upsell_feature_module:visible).attr(id));
            alert(firstInt);
            nextInt = Number(firstInt) + 1;
            prevInt = Number(firstInt) - 1;
            lastInt = Number(firstInt) + Number(spanInt); // lastInt
 gets display: none;
        }
        if (Number(num) == -1){
            firstInt = Number($
 (div#upsell .upsell_feature_module:visible).attr(id)) -1;
            nextInt = Number(firstInt) + 1;
            prevInt = Number(firstInt) - 1;
            lastInt = Number(firstInt) + Number(spanInt); // lastInt
 gets display: none;
        }

            //   BUTTON VISIBILITY CONTROLS 
 
            if(Number(firstInt)  0) {
                $(#scrollLeft).removeClass(none);
            }
            if(Number(firstInt) = 1) {
                $(#scrollLeft).addClass(none);
                if(Number($(div#upsell .upsell_feature_module:visible).attr
 (id)) == 1){
                $(#scrollLeft).removeClass(none);
                }
            }
        if(Number(lastInt) = Number(endInt)) {
            $(#scrollRight).addClass(none);
        }
                if(Number(lastInt)  Number(endInt)) {
            $(#scrollRight).removeClass(none);
        }
        //   BUTTON VISIBILITY CONTROLS 
 


            if (Number(num) == 1){
                $(#+firstInt).addClass(none);
                $(#+firstInt).css('margin-left', '5px');
                $(#+nextInt).css('margin-left', '40px');
                    $(#+lastInt).removeClass(none);
                }
            if (Number(num) == -1){
            lastInt = Number(firstInt) + Number(spanInt);
                $(#+firstInt).removeClass(none);
                $(#+firstInt).css('margin-left', '40px');
                $(#+nextInt).css('margin-left', '5px');
                    $(#+lastInt).addClass(none);
                    $(#scrollRight).removeClass(none);
        }
 }


[jQuery] Re: xml parsing

2009-03-11 Thread jQuery Lover

1. You could create a variables with higher scope or pass in as
additional arguments to your callback function. Use arguments to get
your variables.

2. Did you try to specify the return type as well in your $.get()  function?


Read jQuery HowTo Resource  -  http://jquery-howto.blogspot.com



On Thu, Mar 12, 2009 at 5:51 AM, koolkat merrill.ma...@yahoo.com wrote:

 I have been reading through the group but I can't find exactly what I
 am looking for.
 I am using jquery get to process an xml file and am wonder about a few
 things.
 1. How do I get the function to use the data I pass in, in this case
 name:yyy
 2. the code below works in FF but IE7 returns a blank for the text. Is
 there a better way to do this.

 Here is my code:


 $(document).ready(function() {
  $.get(films.xml, { name: yyy },  function(xml) {
  var theXML = xml;
   var theName=$(theXML).find(name:contains('x'));
    alert(theName.text());
  } );

 Thanks.



[jQuery] Re: Very simple question...

2009-03-11 Thread jQuery Lover

That is exactly what it stands for :)


Read jQuery HowTo Resource  -  http://jquery-howto.blogspot.com



On Thu, Mar 12, 2009 at 9:09 AM, Josh Powell seas...@gmail.com wrote:

 @7times9

 I'm not sure what eq() stands for, come to think of it, but I always
 read it in my heads as 'equals' as in the index equals 2.

 On Thu, Mar 12, 2009 at 10:04 AM, 7times9 7tim...@googlemail.com wrote:

  ...what does eq as in .eq(2) stand for?

  It helps me to read jQuery in my head if I know what abbreviations
  really mean :-)

  Thanks


[jQuery] Re: jQuery.com homepage News from the jQuery Blog not up to date?!

2009-03-11 Thread jQuery Lover

Mine is up to date... the latest news is about jquery ui 1.7 release...

Anyone with similar problems ?


Read jQuery HowTo Resource  -  http://jquery-howto.blogspot.com



On Thu, Mar 12, 2009 at 2:56 AM, MarcusT marcu...@gmail.com wrote:

 The jQuery.com homepage's  currently shows jQuery 1.3.1
 Released as the most recent blog post, yet if you look at the blog
 (or RSS) there have been 6 blog posts since, including the jQuery UI
 1.7 and jQuery 1.3.2 releases!

 Presumably there's some server-side caching going on here and it
 hasn't updated since some time between the 22nd and 29th January.

 Please fix this urgently, as many people visiting jQuery.com may fail
 to realise that much has happened since then!



[jQuery] Re: Cluetip Issue

2009-03-11 Thread jQuery Lover

Well, if you don't have any other events bound to your element, then
simply unbind the event.

For example, if it is on hover, unbind on hover. if it is on click
unbind click event...


Read jQuery HowTo Resource  -  http://jquery-howto.blogspot.com



On Thu, Mar 12, 2009 at 4:14 AM, Pedram pedram...@gmail.com wrote:

 Dear folk ,
 I'm working with the CLuetip  plugin
 I faced a problem .
 How can I remove the Clutip from an object

 for example :

 $(div).cluetip();
 $(div).removeCluetip();   // I want to do this

 Thanks



[jQuery] Re: jQuery.com homepage News from the jQuery Blog not up to date?!

2009-03-11 Thread jQuery Lover

I remember a post regarding moving jquery to some hosting that has
many synchronized servers all over the world (US, Europe, Asia...).

I guess they are not getting synched or something...


Read jQuery HowTo Resource  -  http://jquery-howto.blogspot.com



On Thu, Mar 12, 2009 at 9:28 AM, Erik Beeson erik.bee...@gmail.com wrote:
 I'm seeing this too. Quite sure it's not a cache problem on my end as I've
 never visited jquery.com on this browser before.
 --Erik

 On Wed, Mar 11, 2009 at 2:56 PM, MarcusT marcu...@gmail.com wrote:

 The jQuery.com homepage's  currently shows jQuery 1.3.1
 Released as the most recent blog post, yet if you look at the blog
 (or RSS) there have been 6 blog posts since, including the jQuery UI
 1.7 and jQuery 1.3.2 releases!

 Presumably there's some server-side caching going on here and it
 hasn't updated since some time between the 22nd and 29th January.

 Please fix this urgently, as many people visiting jQuery.com may fail
 to realise that much has happened since then!




[jQuery] Re: jquery

2009-03-11 Thread jQuery Lover

You can do it yourself. Go to your membership settings...


Read jQuery HowTo Resource  -  http://jquery-howto.blogspot.com



On Thu, Mar 12, 2009 at 1:26 AM, Pavel Philippenko pavel...@gmail.com wrote:
 Can You please remove me from jquery newsletter



[jQuery] Re: Recommend tree widget toolkit

2009-03-11 Thread jQuery Lover

I have not tested nor worked with lots of tree widgets, but treeView
is a lightweight and robust plugin...

http://be.twixt.us/jquery/treeView.php


Read jQuery HowTo Resource  -  http://jquery-howto.blogspot.com



On Wed, Mar 11, 2009 at 11:57 PM, Tim Johnson t...@johnsons-web.com wrote:

 Hello:
 If jquery itself does not support a tree widget toolkit,
 can anyone recommend one, I've tried dojo but
 two problems:
 1)doesn't work - even verbatim example
 2)No support
 3)Very big system

 Any comments or  recommendation welcome.
 thanks
 tim



[jQuery] Re: html data in IE

2009-03-03 Thread jQuery Lover

.html() should not cause any errors. I remember having similar problem
with .append(). I had to use a temporary variable to append new html.

Anyone experienced similar problems ?


Read jQuery HowTo Resource  -  http://jquery-howto.blogspot.com



On Wed, Mar 4, 2009 at 9:15 AM, pedalpete p...@hearwhere.com wrote:

 I've been struggling with IE for a few days now, and looking through
 the HTML check in debugbar, it shows that IE would throw an error on
 every .html('div/div'), so I took any place where I had the
 html defined within the html(). I put the html into a javascript
 variable, and then it told me that the closing / was an invalid
 character. So I commented those out with \/.

 My question is, should I have done this?
 I can still back out of it, though it doesn't appear to be causing any
 problems in any of the browsers.


[jQuery] Re: Images in Superfish Menus

2009-03-03 Thread jQuery Lover

Alsage13, did you solve the problem?

Could you post an example of your page?!


Read jQuery HowTo Resource  -  http://jquery-howto.blogspot.com



On Tue, Feb 24, 2009 at 9:28 PM, David Meiser dmei...@gmail.com wrote:
 Do you have an example page?

 On Tue, Feb 24, 2009 at 10:20 AM, alsag...@gmail.com alsag...@gmail.com
 wrote:

 Yes.  I placed a background-image in just about every CSS rule I
 thought would work, and nothing has worked.  For example, this is the
 last one I tried:
 .sf-menu li {
        float:                  left;
        position:               relative;
        background-color: #BDD2FF;
        background-image: url(images/brb.png);
        background-repeat: repeat-x;
        background-position: 0 0;
 }

 On Feb 24, 8:54 am, jQuery Lover ilovejqu...@gmail.com wrote:
  Did you try to mess around with superfish css files ?
 
  
  Read jQuery HowTo Resource  -  http://jquery-howto.blogspot.com
 
  On Tue, Feb 24, 2009 at 12:54 PM, alsag...@gmail.com
  alsag...@gmail.com wrote:
 
   I am new to Joomla but have a decent understanding of CSS.
 
   I am trying to figure out how to use images in a Superfish menue (even
   if it's just a background image) but I'm completely lost.  I've tried
   inserting background images into dffierent parts of the CSS, to no
   avail.  I've tried what I thought was an image area in the Joomla
   backend module window (under other parameters), but no dice there
   either.
 
   Please let me know if it is possible or not, and if so, how to go
   about doing it!
 
   Thank you!



[jQuery] Re: new Whitehouse.gov uses jQuery 1.2.9

2009-03-03 Thread jQuery Lover

It's OK Brad,

It was discussed here previously and probably the whole internet knows
by now :)))

PS. And you probably meant 1.2.6


Read jQuery HowTo Resource  -  http://jquery-howto.blogspot.com



On Wed, Mar 4, 2009 at 12:39 AM, Brad McMahon bradmcma...@gmail.com wrote:

 just wanted to share that with everyone who doesn't follow me on
 identi.ca



[jQuery] Re: Ajax loading of HTML

2009-03-03 Thread jQuery Lover

Have you uploaded your includes directory and usa.html files?

Also, your html markup is not valid. Maybe it's causing the problem,
who knows...


Read jQuery HowTo Resource  -  http://jquery-howto.blogspot.com



On Tue, Mar 3, 2009 at 7:52 PM, davidnext da...@nextinteractives.com wrote:

 Hi All,

 I am having a problem with loading an HTML file to populate a dropdown
 as follows with names of states in the USA:

      $(select[name=step_2]).load(./includes/usa.html);

 The HTML it is going into is as follows:

     label for=step_2 class=disabled* STEP 2)  Select your State/
 Province:/label
     span class=step_2select disabled=disabled name=step_2
                      Inserted dropdown goes here.
     /select/span


 When running the script I get the message in Firebug:

 Syntax error:    [Break on this error] _block_windowOpen(); function
 (X) {\n
 xpopup.js (line 80)

 This works when running on a local wamp server but fails on remote
 servers...any ideas?  Thanks.



[jQuery] Re: ajax request on local machine and FF3/Firebug Access to restricted URI denied code: 1012

2009-02-27 Thread jQuery Lover

You can read more about the Access to restricted URI denied code:
1012 error here:
http://jquery-howto.blogspot.com/2008/12/access-to-restricted-uri-denied-code.html


On Sat, Jan 17, 2009 at 5:31 AM, jquertil til...@gmail.com wrote:

 except its not a bug - its a feature request...

 On Jan 16, 2:39 pm, donb falconwatc...@comcast.net wrote:
 By the way, you are 'someone' so you can file a bug report.  ;-)   -
 note smily

 On Jan 16, 5:15 pm, jquertil til...@gmail.com wrote:



  I downgraded both FF 2 and FB 1.2 so now things work again - but this
  sucks! Someone tell those nice folks at Mozilla they should at least
  allow a user setting to not get so uptight about script loading
  security - I was very surprised to see no ability to adjust that
  manually.- Hide quoted text -

 - Show quoted text -


[jQuery] Re: Calling method on multiple jQuery objects

2009-02-25 Thread jQuery Lover

Oops, sorry. The snippet that I wrote selects all elements whitin your
myJQObj, which is not much of any use...

My bad...


Read jQuery HowTo Resource  -  http://jquery-howto.blogspot.com



On Tue, Feb 24, 2009 at 6:01 PM, jQuery Lover ilovejqu...@gmail.com wrote:
 You could try:

    $('*', myJQObj).hide();

 
 Read jQuery HowTo Resource  -  http://jquery-howto.blogspot.com



 On Tue, Feb 24, 2009 at 4:51 PM, Bisbo michael.waterf...@googlemail.com 
 wrote:

 Hi there,

 I can't seem to find a way to perform the same jQuery method on
 multiple jQuery objects. I have tried using commas and passing arrays
 to the jQuery function but neither works.

 $( $('#id') , myJQObj ).hide();
 $( [ $('#id') , myJQObj ] ).hide();

 I know you can do this within a selector, i.e. $('#id, .hello').hide
 (), but I already have a few jQuery objects passed from various places
 and I need to perform the same action on each of them.

 There must be a way to do this, can anyone point me in the right
 direction as I can't see any way of doing this in the documentation!

 Many thanks,

 Michael




[jQuery] Re: Json help adding into Object

2009-02-24 Thread jQuery Lover

As far as I can see you are overwriting your abbrs object. You must be
getting the last value. You may find jQuery.extend utility usefull:
http://docs.jquery.com/Utilities/jQuery.extend


Read jQuery HowTo Resource  -  http://jquery-howto.blogspot.com



On Mon, Feb 23, 2009 at 7:45 PM, Michael michaeljones...@gmail.com wrote:

 I have some code that I need help with. I have a database with a list
 of abbreviations with is encoded into JSON in a PHP script, the script
 below pulls in that data and stores the data as objects (or thats how
 I want it to be).

 $(#load_abbr_data).click(function()
 {
 var abbrs = {}

$.getJSON(jsondata.php,function(data)
{
$.each(data.abbr_data, function(i,get_abbr_data)
{
var abbr = get_abbr_data.ABBR;
var desc = get_abbr_data.DESCRIPTION;
var lang =  get_abbr_data.LANG;

abbrs =
{
abbr : [desc],
}
});
});
 });

 So I would like the resulting object to look like:

 var abbrs =
 {
  HTML : [ 'HyperText Markup Language']
 , PHP: 'Personal Home Page'
 }

 But I don't think it does (or at least it only saves the last record).

 And have this script run:

 var somevar = PHP;
for( var i = 0 ; i  abbrs[somevar].length; i++)
{
var expanded = abbrs[somevar];
}

 alert( somevar +  is short for  + expanded );

 But the problem is I can't get it to save as the example object. And
 when I run the above script nothing works. Could I please have some
 help in getting the JSON script working please.



[jQuery] Re: Calling method on multiple jQuery objects

2009-02-24 Thread jQuery Lover

You could try:

$('*', myJQObj).hide();


Read jQuery HowTo Resource  -  http://jquery-howto.blogspot.com



On Tue, Feb 24, 2009 at 4:51 PM, Bisbo michael.waterf...@googlemail.com wrote:

 Hi there,

 I can't seem to find a way to perform the same jQuery method on
 multiple jQuery objects. I have tried using commas and passing arrays
 to the jQuery function but neither works.

 $( $('#id') , myJQObj ).hide();
 $( [ $('#id') , myJQObj ] ).hide();

 I know you can do this within a selector, i.e. $('#id, .hello').hide
 (), but I already have a few jQuery objects passed from various places
 and I need to perform the same action on each of them.

 There must be a way to do this, can anyone point me in the right
 direction as I can't see any way of doing this in the documentation!

 Many thanks,

 Michael



[jQuery] Re: Json help adding into Object

2009-02-24 Thread jQuery Lover

I recommend using arrays as well :)


Read jQuery HowTo Resource  -  http://jquery-howto.blogspot.com



On Tue, Feb 24, 2009 at 5:58 PM, Mike Alsup mal...@gmail.com wrote:
 $.each(data.abbr_data, function(i,get_abbr_data)
 {
 var abbr = get_abbr_data.ABBR;
 var desc = get_abbr_data.DESCRIPTION;
 var lang =  get_abbr_data.LANG;

 abbrs =
 {
 abbr : [desc],
 }
 });
 });

 });


 Try replace this:

 abbrs =
{
abbr : [desc],
}


 with this:


 abbrs[abbr] = [desc];



[jQuery] Re: Changing colour of table rows

2009-02-24 Thread jQuery Lover

 Is there a way to count the rows of a specfic table
 class=resultslist or even better the TR elements of the tbody  of
 #resultslist? And how do I know on what row I am currently are when a
 checkbox was clicked?

Use this code to find out how many table rows are there in the table:

$('#resultslit tbody tr').length

More about it here:
http://jquery-howto.blogspot.com/2008/12/howto-find-out-how-many-elements-were.html



On Tue, Feb 24, 2009 at 5:47 PM, heohni
heidi.anselstet...@consultingteam.de wrote:

 Hi,

 on a table list of results (amount of rows = unknown) I want to change
 the row colour by adding / removing the class name
 (class=highlighttr). As my list is already 2 coloured (class=row1
 and class=row2), I am checking the current, prev and next class name
 of the parent tr element to set back the correct class name.

 Now I am on the case, if all rows are checked - I cannot proof the
 next and prev element, as all elements having the same highlight
 class name.

 I thought, if I would be able to count all tr rows, I would know on
 which row I am currently and I would now the right class name.

 Is there a way to count the rows of a specfic table
 class=resultslist or even better the TR elements of the tbody  of
 #resultslist? And how do I know on what row I am currently are when a
 checkbox was clicked?

 For a better reference I paste you my code.
 Thanks so far!


 Code:

 $(document).ready(function() {
// Change colour of selected row
$(input:checkbox).click(function(){
var checked_status = this.checked;
//alert(checked_status);


var name_current = $(this).parents(tr:eq(0)).attr('class');
var name_next = $(this).parents(tr:eq(0)).next().attr('class');
var name_prev = $(this).parents(tr:eq(0)).prev().attr('class');
//alert(name_current);
//alert(name_next);
//alert(name_prev);

if(checked_status == true) {
//alert('checked');
$(this).parents(tr:eq(0)).removeClass(name_current);
$(this).parents(tr:eq(0)).addClass('highlighttr');


}else{
//alert('unchecked');
$(this).parents(tr:eq(0)).removeClass('highlighttr');

if(name_next  name_next == 'row1'){
$(this).parents(tr:eq(0)).addClass('row2');
}else if(name_next  name_next == 'row2'){
$(this).parents(tr:eq(0)).addClass('row1');
}else if(!name_next  name_prev  name_prev == 
 'row1'){
$(this).parents(tr:eq(0)).addClass('row2');
}else if(!name_next  name_prev  name_prev == 
 'row2'){
$(this).parents(tr:eq(0)).addClass('row1');
}

}
});
 });


[jQuery] Re: Is it possible to override a link?

2009-02-24 Thread jQuery Lover

Yes it is...


Read jQuery HowTo Resource  -  http://jquery-howto.blogspot.com



On Tue, Feb 24, 2009 at 6:06 PM, david.0pl...@gmail.com
david.0pl...@gmail.com wrote:

 Thank you very much, i never tought it would turn out so simple!

 Is it also possible to do this with an onclick?

 On 23 Feb, 20:55, Kean shenan...@gmail.com wrote:
 There are a couple of options, depending on your needs.

 $('a#woof').click(function(e){
 e.preventDefault();
 //do ajax form

 });

 $('a#woof').click(function(e){
 //do ajax form

 return false; // preventDefault and stopPropagation

 });

 On Feb 23, 9:12 am, Frederik Ring frederik.r...@gmail.com wrote:

  This should be working:
  $('a#woof').click(function(e){
  e.preventDefault();
  //do ajax form

  });

  Or you could set all href attributes to '#' before adding the click
  function


[jQuery] Re: Changing colour of table rows

2009-02-24 Thread jQuery Lover

That is because you have table CLASS=resultslist and asked for
#resultslist. This should work:

$('.resultslist tbody tr').length


Read jQuery HowTo Resource  -  http://jquery-howto.blogspot.com



On Tue, Feb 24, 2009 at 6:14 PM, heohni
heidi.anselstet...@consultingteam.de wrote:

 Sorry, but it returns only 0...?

 On 24 Feb., 14:07, jQuery Lover ilovejqu...@gmail.com wrote:
  Is there a way to count the rows of a specfic table
  class=resultslist or even better the TR elements of the tbody  of
  #resultslist? And how do I know on what row I am currently are when a
  checkbox was clicked?

 Use this code to find out how many table rows are there in the table:

 $('#resultslit tbody tr').length

 More about it 
 here:http://jquery-howto.blogspot.com/2008/12/howto-find-out-how-many-elem...

 On Tue, Feb 24, 2009 at 5:47 PM, heohni

 heidi.anselstet...@consultingteam.de wrote:

  Hi,

  on a table list of results (amount of rows = unknown) I want to change
  the row colour by adding / removing the class name
  (class=highlighttr). As my list is already 2 coloured (class=row1
  and class=row2), I am checking the current, prev and next class name
  of the parent tr element to set back the correct class name.

  Now I am on the case, if all rows are checked - I cannot proof the
  next and prev element, as all elements having the same highlight
  class name.

  I thought, if I would be able to count all tr rows, I would know on
  which row I am currently and I would now the right class name.

  Is there a way to count the rows of a specfic table
  class=resultslist or even better the TR elements of the tbody  of
  #resultslist? And how do I know on what row I am currently are when a
  checkbox was clicked?

  For a better reference I paste you my code.
  Thanks so far!

  Code:

  $(document).ready(function() {
 // Change colour of selected row
 $(input:checkbox).click(function(){
 var checked_status = this.checked;
 //alert(checked_status);

 var name_current = $(this).parents(tr:eq(0)).attr('class');
 var name_next = $(this).parents(tr:eq(0)).next().attr('class');
 var name_prev = $(this).parents(tr:eq(0)).prev().attr('class');
 //alert(name_current);
 //alert(name_next);
 //alert(name_prev);

 if(checked_status == true) {
 //alert('checked');
 
  $(this).parents(tr:eq(0)).removeClass(name_current);
 $(this).parents(tr:eq(0)).addClass('highlighttr');

 }else{
 //alert('unchecked');
 $(this).parents(tr:eq(0)).removeClass('highlighttr');

 if(name_next  name_next == 'row1'){
 
  $(this).parents(tr:eq(0)).addClass('row2');
 }else if(name_next  name_next == 'row2'){
 
  $(this).parents(tr:eq(0)).addClass('row1');
 }else if(!name_next  name_prev  name_prev == 
  'row1'){
 
  $(this).parents(tr:eq(0)).addClass('row2');
 }else if(!name_next  name_prev  name_prev == 
  'row2'){
 
  $(this).parents(tr:eq(0)).addClass('row1');
 }

 }
 });
  });


[jQuery] Re: Trying to copy img src attr to another img

2009-02-24 Thread jQuery Lover

You have extra ); in your second anonymous function. This code worked for me:

$(document).ready(function() {
 var source2 = $(div.listingimagetwo img).attr(src);
 var source1 = $(div.listingimageone img).attr(src);

 $(.listingimagetwo).hover(
   function () {
   $(div.listingimage img).attr(src, source2);
   },
   function(){
   $(div.listingimage img).attr(src, source1);
   }
   );
 });


Read jQuery HowTo Resource  -  http://jquery-howto.blogspot.com



On Tue, Feb 24, 2009 at 9:41 AM, drm d...@deanmyerson.org wrote:

 See http://dev.slyd.us/drupal/foundation/node/59

 I want to have a mouseover of one of the small images make it replace
 the larger one. This is what I'm trying:

 '$(document).ready(function() {
  var source2 = $(div.listingimagetwo img).attr(src);
  var source1 = $(div.listingimageone img).attr(src);

  $(.listingimagetwo).hover(
function () {
$(div.listingimage img).attr(src, source2);
},
function(){
$(div.listingimage img).attr(src, source1);
);
}
  });

 I also tried using div.listingimagetwo[img] instead of
 div.listingimagetwo img

 Is there a plugin that you do this?

 The site also uses thickbox to display these images. Does that
 conflict? I was brought on to add this function, so I can't change the
 html structure, though I could ask the client if need be.

 Thanks for any pointers.



[jQuery] Re: adding more pictures to existing script

2009-02-24 Thread jQuery Lover

It seems there is an animation (of 3 hero images) on your homepage and
also there is an image slide. Some jquery plugin according to this
code:

 $(.slideulli).css(display,block);
   $.getScript(assets/js/mousewheel.plugin.js);
   $.getScript(assets/js/ufslide.plugin.js, function(){
$(#desc).hide();
$(.slide).slide({
 btnNext: .next,
 btnPrev: .prev,
 auto: false,
 mouseWheel: true
   });
   });
   }

If you want to add more images to this slideshow, you should simply
copy paste the li element and ammend it for new images.


Read jQuery HowTo Resource  -  http://jquery-howto.blogspot.com



On Tue, Feb 24, 2009 at 1:21 PM, sydmalayalee sydmalaya...@gmail.com wrote:

 Hi i am in the middle of a project, i got a script for slideshow. i
 would like to add more pictures (minimum 6) . The existing script got
 only 3 images, can someone help me to add more pics to that script
 please.
 i have attached the script here.

 var Site = {

start : function($)
{

// Popup Links
jQuery(a.popup).click(
function(event) {
event.preventDefault();
window.open($(this).attr(href));
}
);

// Home page loading animation
function startQue() {
clearTimeout(showStart);
jQuery(#wordmark).fadeOut(slow, 
 loadContent);
}
function loadContent(){
jQuery(#content).fadeIn(slow, loadHero);
};
function loadHero() {
setTimeout(showHero1, 3000);
setTimeout(hideHero1, 3000);
};
function showHero1() {
$(#featImg01).fadeIn(slow);
};
function hideHero1() {
$(#featImg01).parent().fadeOut(slow);
setTimeout(showHero2, 3000);
setTimeout(hideHero2, 3000);
};
function showHero2() {
$(#featImg02).parent().fadeIn(slow);
};
function hideHero2() {
$(#featImg02).parent().fadeOut(slow);
setTimeout(showHero3, 3000);
};
function showHero3() {
$(#featImg03).parent().fadeIn(slow);
$(#nav).fadeIn(slow);
rloadHero();
};

var loading = $(#wordmark).size();
if (loading == 1) {
$(#wordmark).show();
var showStart = setTimeout(startQue,3000);

} else {
showHero();
}

function showHero() {
rloadHero();
}

function rloadHero() {
setTimeout(rshowHero1, 2000);
setTimeout(rhideHero1, 6000);
};
function rshowHero1() {
$(#featImg02).parent().hide();
$(#featImg03).parent().hide();
$(#featImg01).parent().fadeIn(slow);
};
function rhideHero1() {
$(#featImg01).parent().fadeOut(slow);
setTimeout(rshowHero2, 2000);
setTimeout(rhideHero2, 6000);
};
function rshowHero2() {
$(#featImg02).parent().fadeIn(slow);
};
function rhideHero2() {
$(#featImg02).parent().fadeOut(slow);
setTimeout(rshowHero3, 2000);
setTimeout(rhideHero3, 6000);
};
function rshowHero3() {
$(#featImg03).parent().fadeIn(slow);
};
function rhideHero3() {
$(#featImg03).parent().fadeOut(slow);
setTimeout(rshowHero1, 2000);
setTimeout(rhideHero1, 6000);
  

[jQuery] Re: load() not loading my dynamic page

2009-02-24 Thread jQuery Lover

Any news on this one ?  Code Daemon, what was the problem ?


Read jQuery HowTo Resource  -  http://jquery-howto.blogspot.com



On Thu, Feb 19, 2009 at 3:21 PM, tomasz wawrzyniak tw.gene...@gmail.com wrote:
 show fragment of your code (javascript) that is executed (and doens't work
 in FF),
 and oultine fragment of html that declare the div.

 2009/2/19 Code Daemon ryan.det...@gmail.com

 I hope I'm wrong. I'm not sure what you are asking though.

 The page I am loading is just HTML code with a table object in it.
 The AJAX server response looks something like:

 table
 trtd/td/tr
 /table

 It has no html tags. Is this necessary?


 On Feb 19, 12:46 am, tomasz wawrzyniak tw.gene...@gmail.com wrote:
  That makes no sense - its rather wrong formed html. Did you use Id or
  Name property to identify webpart?
 
  On 2/19/09, Code Daemon ryan.det...@gmail.com wrote:
 
 
 
 
 
   Seems more specifically that Firefox doesn't like table objects
   being loaded dynamically. I'm assuming the jQuery load() method is
   ultimately a wrapper for the innerHTML property?
 
   Looks like, at the very least I'm going to have to omit all my tables.
 
   On Feb 18, 10:56 pm, Code Daemon ryan.det...@gmail.com wrote:
   It appears that things work fine in IE, just not Firefox. Very
   strange.
 
   On Feb 5, 6:56 am, jQuery Lover ilovejqu...@gmail.com wrote:
 
Maybe it's related to wrong content type being sent by your server
!!!
 

Read jQuery HowTo Resource  -  http://jquery-howto.blogspot.com
 
On Thu, Feb 5, 2009 at 7:42 PM, eagleon antonypei...@gmail.com
wrote:
 
 I've been experiencing the same thing! I hop we can figure out a
 workaround...
 
 This also applies to the $(document).ready() event...
 
 does not work ondynamicpages.
 
 On Feb 5, 3:21 am, Code Daemon ryan.det...@gmail.com wrote:
 But $('#mydiv').load('my/page.html');works just fine.
 
 On Feb 5, 12:16 am, Dean Barker framejoc...@googlemail.com
 wrote:
 
  look at onLoad()
 
   http://www.frameJockey.co.uk
 
 www.frameJockey.co.uk
  i...@framejockey.co.uk
  framejoc...@gmail.com
  framejoc...@yahoo.com
   [image: Google Talk:] framejoc...@gmail.com [image: Y!
  messenger:]
  frameJockey
 
  2009/2/5 Code Daemon ryan.det...@gmail.com
 
   When I use load(), it works fine for staticpagesbut doesn't
   seem
   to
   work for mydynamicpage.
 
   This is what I'm doing:
 
   $('#mydiv').load('my/page');
 
   FireBug shows that the response is coming back just as it
   should.
   Any
   thoughts?
 
  --
  Sent from my mobile device



[jQuery] Re: Help with Jcarousel msg.

2009-02-24 Thread jQuery Lover

There isn't anything (any file) that you should change on your local
system. Just use some other browser !


Read jQuery HowTo Resource  -  http://jquery-howto.blogspot.com



On Tue, Feb 24, 2009 at 3:41 PM, vashyboy111 e_casa...@hotmail.com wrote:


 Hi, I have a message pop-up on AOL web browser that pops up when im on
 craigslist
  and says,

 error: jCarousel: No width/height set for items. This
 will cause an infinite loop. Aborting...

 This error does not occure when using Internet Explorer web browser or
 Firefox, only AOL.
 Now I do not know anything about this kind of stuff so the explanations that
 I read on google
 all tell me lines of code to change to but none of the answers tell me where
 to put
 the code. Is there some file I have to open on my computer to edit these
 lines of code?
 I would greatly appreciate a step by step solution if possible for someone
 who knows
 absolutely nothing about this stuff. Thank you very much.
 --
 View this message in context: 
 http://www.nabble.com/Help-with-Jcarousel-msg.-tp22116292s27240p22116292.html
 Sent from the jQuery General Discussion mailing list archive at Nabble.com.




[jQuery] Re: $('#foo p') or $('p', $('#foo'))

2009-02-24 Thread jQuery Lover

Liam, you can use $(p, #foo). The second parameter must be a
jQuery object or dom element...


Read jQuery HowTo Resource  -  http://jquery-howto.blogspot.com



On Tue, Feb 24, 2009 at 6:44 PM, Liam Potter radioactiv...@gmail.com wrote:

 Hi Stehpan :p

 I understand that, I'm just not sure why $(p, $(#foo)) is not the same
 as $(p, #foo)

 - Liam

 Stephan Veigl wrote:

 Hi Lima,

 1) #foo is an ID and since IDs should be unique there has to bee only
 one #foo element

 2) $(p, $(#foo)) selects all p elements in the scope of the #foo
 element.
 In other words, it selects every p element under #foo in the DOM tree.

 by(e)
 Stephan

 2009/2/24 Liam Potter radioactiv...@gmail.com:


 I've been following this discussion, but I need explaining why $(p,
 $(#foo)) doesn't select all p tags and all #foo id's ?

 Stephan Veigl wrote:


 Hi,

 I've done some profiling on this, and $(p, $(#foo)) is faster than
 $(#foo p) in both jQuery 1.2.6 and 1.3.2.

 the test HTML consists of 100 ps in a foo div and 900 ps in a
 bar div.

 However the factor differs dramatically:
 In 1.2.6 the speedup from $(p, $(#foo)) to $(#foo p) was between
 1.5x (FF) and 2x (IE),
 while for 1.3.2 the speedup is 20x (FF) and 15x (IE).

 $(p, $(#foo)) is faster in 1.3.2, by a factor of 1.5 (both FF and
 IE),
 while $(#foo p) is _slower_ in 1.3.2 by 8.5x (FF) and 4.6x (IE).

 Even with an empty bar div $(p, $(#foo)) is faster by a factor up
 to
 3x.

 Conclusion:
 If you have an ID selector, first get the element by it's ID and use
 it as scope for further selects.

 by(e)
 Stephan
 2009/2/23 ricardobeat ricardob...@gmail.com:



 up to jQuery 1.2.6 that's how the selector engine worked (from the top
 down/left to right). The approach used in Sizzle (bottom up/right to
 left) has both benefits and downsides - it can be much faster on large
 DOMs and some situations, but slower on short queries. I'm sure
 someone can explain that in better detail.

 Anyway, in modern browsers most of the work is being delegated to the
 native querySelectorAll function, as so selector performance will
 become more of a browser makers' concern.

 - ricardo

 On Feb 23, 1:08 pm, Peter Bengtsson pete...@gmail.com wrote:



 I watched the John Resig presentation too and learned that CSS
 selectors always work from right to left.
 That would mean that doing this::

  $('#foo p')

 Would extract all p tags and from that list subselect those who
 belong to #foo. Suppose you have 1000 p tags of them only 100 are
 inside #foo you'll have wasted 900 loops.

 Surely $('#foo') is the fastest lookup possible. Doing it this way
 will effectively limit the scope of the $('p') search and you will
 never be bothered about any p tags outside #foo.

 Or am I talking rubbish?





[jQuery] Re: Using livequery

2009-02-24 Thread jQuery Lover

And also you have this loaded with your ajax content:

div id=contentarea style=height: 390px; display: block;
border-right-color: rgb(255, 255, 255); color: rgb(0, 0, 0);
meta content=text/html; charset=utf-8 http-equiv=Content-Type/
titleUntitled Document/title
h1Testing/h1

the meta and title tags are probably not needed here :)))


Read jQuery HowTo Resource  -  http://jquery-howto.blogspot.com



On Tue, Feb 24, 2009 at 6:48 PM, sweat b...@live.nl wrote:

 Nevermind, got it working..
 Just used $('#contentarea').load('home.php'); to get the content, and
 now it is working...

 On 24 feb, 14:29, sweat b...@live.nl wrote:
 Hi,

 I have a problem, i want to use prettyPhoto to load images from ajax
 loaded content.
 Tried to use livequery for this, but this only works when i first
 click on a image outside the ajax content and after that it works
 inside the ajax content. (http://gotstyled.com/balotti)
 Something wrong in my code? can anyone help me plz?:D
 Help really apreciated

 king regards,

 Bas


[jQuery] Re: $('#foo p') or $('p', $('#foo'))

2009-02-24 Thread jQuery Lover

That is how it works Liam !!!  jQuery does not knows, it's told so...


Read jQuery HowTo Resource  -  http://jquery-howto.blogspot.com



On Tue, Feb 24, 2009 at 6:49 PM, Liam Potter radioactiv...@gmail.com wrote:

 ok, but what in jquery knows that $(p, $(#foo)) should look for the p
 tags inside of #foo, why does it treat it like $(#foo p)?

 jQuery Lover wrote:

 Liam, you can use $(p, #foo). The second parameter must be a
 jQuery object or dom element...

 
 Read jQuery HowTo Resource  -  http://jquery-howto.blogspot.com



 On Tue, Feb 24, 2009 at 6:44 PM, Liam Potter radioactiv...@gmail.com
 wrote:


 Hi Stehpan :p

 I understand that, I'm just not sure why $(p, $(#foo)) is not the
 same
 as $(p, #foo)

 - Liam

 Stephan Veigl wrote:


 Hi Lima,

 1) #foo is an ID and since IDs should be unique there has to bee only
 one #foo element

 2) $(p, $(#foo)) selects all p elements in the scope of the #foo
 element.
 In other words, it selects every p element under #foo in the DOM tree.

 by(e)
 Stephan

 2009/2/24 Liam Potter radioactiv...@gmail.com:



 I've been following this discussion, but I need explaining why $(p,
 $(#foo)) doesn't select all p tags and all #foo id's ?

 Stephan Veigl wrote:



 Hi,

 I've done some profiling on this, and $(p, $(#foo)) is faster than
 $(#foo p) in both jQuery 1.2.6 and 1.3.2.

 the test HTML consists of 100 ps in a foo div and 900 ps in a
 bar div.

 However the factor differs dramatically:
 In 1.2.6 the speedup from $(p, $(#foo)) to $(#foo p) was between
 1.5x (FF) and 2x (IE),
 while for 1.3.2 the speedup is 20x (FF) and 15x (IE).

 $(p, $(#foo)) is faster in 1.3.2, by a factor of 1.5 (both FF and
 IE),
 while $(#foo p) is _slower_ in 1.3.2 by 8.5x (FF) and 4.6x (IE).

 Even with an empty bar div $(p, $(#foo)) is faster by a factor
 up
 to
 3x.

 Conclusion:
 If you have an ID selector, first get the element by it's ID and use
 it as scope for further selects.

 by(e)
 Stephan
 2009/2/23 ricardobeat ricardob...@gmail.com:




 up to jQuery 1.2.6 that's how the selector engine worked (from the
 top
 down/left to right). The approach used in Sizzle (bottom up/right to
 left) has both benefits and downsides - it can be much faster on
 large
 DOMs and some situations, but slower on short queries. I'm sure
 someone can explain that in better detail.

 Anyway, in modern browsers most of the work is being delegated to the
 native querySelectorAll function, as so selector performance will
 become more of a browser makers' concern.

 - ricardo

 On Feb 23, 1:08 pm, Peter Bengtsson pete...@gmail.com wrote:




 I watched the John Resig presentation too and learned that CSS
 selectors always work from right to left.
 That would mean that doing this::

  $('#foo p')

 Would extract all p tags and from that list subselect those who
 belong to #foo. Suppose you have 1000 p tags of them only 100 are
 inside #foo you'll have wasted 900 loops.

 Surely $('#foo') is the fastest lookup possible. Doing it this way
 will effectively limit the scope of the $('p') search and you will
 never be bothered about any p tags outside #foo.

 Or am I talking rubbish?






[jQuery] Re: Images in Superfish Menus

2009-02-24 Thread jQuery Lover

Did you try to mess around with superfish css files ?


Read jQuery HowTo Resource  -  http://jquery-howto.blogspot.com



On Tue, Feb 24, 2009 at 12:54 PM, alsag...@gmail.com alsag...@gmail.com wrote:

 I am new to Joomla but have a decent understanding of CSS.

 I am trying to figure out how to use images in a Superfish menue (even
 if it's just a background image) but I'm completely lost.  I've tried
 inserting background images into dffierent parts of the CSS, to no
 avail.  I've tried what I thought was an image area in the Joomla
 backend module window (under other parameters), but no dice there
 either.

 Please let me know if it is possible or not, and if so, how to go
 about doing it!

 Thank you!



[jQuery] Re: Need help with checking checkboxes

2009-02-24 Thread jQuery Lover

Put your checkboxes inside some container to distinguish them from
check all checkbox. Secondly, amend your ajax post function so it
takes a set of id's. The rest is pretty clear...


Read jQuery HowTo Resource  -  http://jquery-howto.blogspot.com



On Tue, Feb 24, 2009 at 3:47 PM, heohni
heidi.anselstet...@consultingteam.de wrote:

 Hi,

 I have a list of search results. Each result has its own checkbox to
 select a product.
 Each checked product ID gets saved to the session via Ajax. Fine so
 far, it works already.

 But I also have a check / uncheck all checkbox.
 That means, when I check all, I need to send all displayed (not all
 results in general, just the displayed products (5 per page)) product
 id's to the session.

 And there my problem starts.
 How can I get all checkboxes on the current page? And how can I
 exclude the check all checkbox? And how can I call for each found
 checkbox my ajax function to add/delete the id?


 Thanks a lot for any help!!!


 Currently my code looks like this:

 html:
 input type=checkbox name=paradigm[] value={$value.ver_id} {if
 $smarty.session.checked_products[$value.ver_id] == $value.ver_id}
 checked=checked{/if} /

 jquery:
 $(document).ready(function() {
// Change colour of selected row
$(input:checkbox).click(function(){
var checked_status = this.checked;
//alert(checked_status);

var ver_id = $(this).val();
//alert(ver_id);


if(checked_status == true) {
//alert('checked');
$(this).parents(tr:eq(0)).addClass('highlighttr');
//add functionality to handle a check

// save checked products to session
$.ajax({
type: POST,
url: 
 /ajax_add_selected_product_to_session.php,
data: ver_id= +ver_id,
success: function(msg){
/* add here what to do on success */
//alert(msg);
}
});

}else{
//alert('unchecked');
$(this).parents(tr:eq(0)).removeClass('highlighttr');
//add functionality to handle an uncheck

// delete checked products from session
$.ajax({
type: POST,
url: 
 /ajax_unselected_products_from_session.php,
data: ver_id= +ver_id,
success: function(msg){
/* add here what to do on success */
//alert(msg);
}
});
}
});
 });




[jQuery] Re: $('#foo p') or $('p', $('#foo'))

2009-02-24 Thread jQuery Lover

http://code.google.com/p/jqueryjs/downloads/detail?name=jquery-1.3.2.js

Or you can read jquery documentaion. I also suggest Learning jQuery
by Karl Swedberg and Jonathan Chaffer.


Read jQuery HowTo Resource  -  http://jquery-howto.blogspot.com



On Tue, Feb 24, 2009 at 7:00 PM, Liam Potter radioactiv...@gmail.com wrote:

 lol, but I'm interested in what jquery does with what I tell it.

 jQuery Lover wrote:

 That is how it works Liam !!!  jQuery does not knows, it's told so...

 
 Read jQuery HowTo Resource  -  http://jquery-howto.blogspot.com



 On Tue, Feb 24, 2009 at 6:49 PM, Liam Potter radioactiv...@gmail.com
 wrote:


 ok, but what in jquery knows that $(p, $(#foo)) should look for the p
 tags inside of #foo, why does it treat it like $(#foo p)?

 jQuery Lover wrote:


 Liam, you can use $(p, #foo). The second parameter must be a
 jQuery object or dom element...

 
 Read jQuery HowTo Resource  -  http://jquery-howto.blogspot.com



 On Tue, Feb 24, 2009 at 6:44 PM, Liam Potter radioactiv...@gmail.com
 wrote:



 Hi Stehpan :p

 I understand that, I'm just not sure why $(p, $(#foo)) is not the
 same
 as $(p, #foo)

 - Liam

 Stephan Veigl wrote:



 Hi Lima,

 1) #foo is an ID and since IDs should be unique there has to bee only
 one #foo element

 2) $(p, $(#foo)) selects all p elements in the scope of the #foo
 element.
 In other words, it selects every p element under #foo in the DOM
 tree.

 by(e)
 Stephan

 2009/2/24 Liam Potter radioactiv...@gmail.com:




 I've been following this discussion, but I need explaining why $(p,
 $(#foo)) doesn't select all p tags and all #foo id's ?

 Stephan Veigl wrote:




 Hi,

 I've done some profiling on this, and $(p, $(#foo)) is faster
 than
 $(#foo p) in both jQuery 1.2.6 and 1.3.2.

 the test HTML consists of 100 ps in a foo div and 900 ps in
 a
 bar div.

 However the factor differs dramatically:
 In 1.2.6 the speedup from $(p, $(#foo)) to $(#foo p) was
 between
 1.5x (FF) and 2x (IE),
 while for 1.3.2 the speedup is 20x (FF) and 15x (IE).

 $(p, $(#foo)) is faster in 1.3.2, by a factor of 1.5 (both FF
 and
 IE),
 while $(#foo p) is _slower_ in 1.3.2 by 8.5x (FF) and 4.6x (IE).

 Even with an empty bar div $(p, $(#foo)) is faster by a factor
 up
 to
 3x.

 Conclusion:
 If you have an ID selector, first get the element by it's ID and use
 it as scope for further selects.

 by(e)
 Stephan
 2009/2/23 ricardobeat ricardob...@gmail.com:





 up to jQuery 1.2.6 that's how the selector engine worked (from the
 top
 down/left to right). The approach used in Sizzle (bottom up/right
 to
 left) has both benefits and downsides - it can be much faster on
 large
 DOMs and some situations, but slower on short queries. I'm sure
 someone can explain that in better detail.

 Anyway, in modern browsers most of the work is being delegated to
 the
 native querySelectorAll function, as so selector performance will
 become more of a browser makers' concern.

 - ricardo

 On Feb 23, 1:08 pm, Peter Bengtsson pete...@gmail.com wrote:





 I watched the John Resig presentation too and learned that CSS
 selectors always work from right to left.
 That would mean that doing this::

  $('#foo p')

 Would extract all p tags and from that list subselect those who
 belong to #foo. Suppose you have 1000 p tags of them only 100
 are
 inside #foo you'll have wasted 900 loops.

 Surely $('#foo') is the fastest lookup possible. Doing it this way
 will effectively limit the scope of the $('p') search and you will
 never be bothered about any p tags outside #foo.

 Or am I talking rubbish?







[jQuery] Re: Plugin hosting?

2009-02-24 Thread jQuery Lover

I don't think there is. Unless leaching them from author's site (in
case they haven't zipped them).


Read jQuery HowTo Resource  -  http://jquery-howto.blogspot.com



On Tue, Feb 24, 2009 at 7:03 PM, Oskar Rough oskarmosumga...@gmail.com wrote:

 Hi,

 I'm really glad it's possible to use the Google hosted jQuery library,
 however, I see myself using the same plugins over and over again on
 many different project.

 Is there any place I can leech these plugins like the library? I
 could put them all up on my own site but I'd prefer something more
 like the Google hosting.


[jQuery] Re: Need a help to manipulate table that multiple rowspan

2009-02-24 Thread jQuery Lover

To get the first row's row span:

$('tr:first td').attr('rowspan')

To set it to the last row's td:

$('tr:last td').attr('rowspan', $('tr:first td').attr('rowspan'));


Read jQuery HowTo Resource  -  http://jquery-howto.blogspot.com



On Tue, Feb 24, 2009 at 2:53 PM, Peter firstusa...@gmail.com wrote:

 Hi All,

 How can I find rowspan attribute of parent TR when I am clicking on
 last indexed tr.

 table

 tr
td rowspan=4div style=text-align: left; width: 180px;DG 1/
 div/td
tddiv style=text-align: left; width: 180px; M1/div/td
 /tr

 tr class=erow
 tddiv style=text-align: left; width: 180px;M3/div/td
 /tr
 tr
 tddiv style=text-align: left; width: 180px;M4/div/td
 /tr
 tr class=erow trSelected
 tddiv style=text-align: left; width: 180px; M5 /div/td
 /tr

 /table

 Here M5 is the last index row. from that i have to get rowspan
 (rowspan=4) attribute of first / nearest  td.

 Please help.

 Thanks
 Peter


[jQuery] Re: Need a help to manipulate table that multiple rowspan

2009-02-24 Thread jQuery Lover

Oops, sorry you have two td's in your first row...

$('tr:last td').attr('rowspan', $('tr:first td:first').attr('rowspan'));


Read jQuery HowTo Resource  -  http://jquery-howto.blogspot.com



On Tue, Feb 24, 2009 at 7:15 PM, jQuery Lover ilovejqu...@gmail.com wrote:
 To get the first row's row span:

 $('tr:first td').attr('rowspan')

 To set it to the last row's td:

 $('tr:last td').attr('rowspan', $('tr:first td').attr('rowspan'));

 
 Read jQuery HowTo Resource  -  http://jquery-howto.blogspot.com



 On Tue, Feb 24, 2009 at 2:53 PM, Peter firstusa...@gmail.com wrote:

 Hi All,

 How can I find rowspan attribute of parent TR when I am clicking on
 last indexed tr.

 table

 tr
td rowspan=4div style=text-align: left; width: 180px;DG 1/
 div/td
tddiv style=text-align: left; width: 180px; M1/div/td
 /tr

 tr class=erow
 tddiv style=text-align: left; width: 180px;M3/div/td
 /tr
 tr
 tddiv style=text-align: left; width: 180px;M4/div/td
 /tr
 tr class=erow trSelected
 tddiv style=text-align: left; width: 180px; M5 /div/td
 /tr

 /table

 Here M5 is the last index row. from that i have to get rowspan
 (rowspan=4) attribute of first / nearest  td.

 Please help.

 Thanks
 Peter



[jQuery] Re: Finding the last sibling.

2009-02-11 Thread jQuery Lover

If you want selector without using $(this) there is another way:

$(input ~ *:last);

PS. I also like mkmanning's aproach...


Read jQuery HowTo Resource
http://jquery-howto.blogspot.com



On Thu, Feb 12, 2009 at 11:19 AM, mkmanning michaell...@gmail.com wrote:

 Somehow the selector disappeared :P

 $('input').nextAll(':last');

 $(this).nextAll(':last');

 On Feb 11, 10:17 pm, mkmanning michaell...@gmail.com wrote:
 $(div :last-child);  finds all of the last-child elements, including
 descendant elements (e.g.  if there were an a inside the span in
 your example it would be returned too). You can also not worry about
 the parent at all and just use the sibling selector:

  //or you could use :last-child

 As Ricardo suggested, you can use 'this' :

 $(this).nextAll(':last');

 On Feb 11, 10:05 pm, Ricardo Tomasi ricardob...@gmail.com wrote:

  $(this).parent().children(':last') //or :last-child - assuming 'this'
  is the input element

  On Feb 12, 3:09 am, Risingfish risingf...@gmail.com wrote:

   Thanks Nic,

   How about if I'm using the input tag as the base? Can I do something
   like $(self:parent:last-child) ?

   On Feb 11, 8:13 pm, Nic Luciano adaptive...@gmail.com wrote:

$(div :last-child);

(or this wacky way I tried before I learned CSS selectors
$(div).children()[$(div).children().size() - 1])...)

Nic 
Lucianohttp://www.twitter.com/niclucianohttp://www.linkedin.com/in/nicluciano

On Wed, Feb 11, 2009 at 9:49 PM, Risingfish risingf...@gmail.com 
wrote:

 Hi James, apologize for not being more precise. I'm using the input
 element as my base reference. So using that input element, I want to
 get the last sibling under the div. You are correct that if the span
 is not then the input is what I want. I may need to add more tags
 later (I'm sure you know hoe the development process goes when
 customers are involved. :) ), so a reliable way to get the last tag
 would be nice. Thanks!

 On Feb 11, 7:21 pm, James james.gp@gmail.com wrote:
  When you say last sibling in a parent, what does that mean? Which
  element is your base reference?

  In your example:
  div
input .. /
span.../span
  /div

  Do you mean your div is the base reference, and you want to find 
  the
  last child (thus, span) relative to that?
  And if span is not there, you want input?

  On Feb 11, 4:12 pm, Risingfish risingf...@gmail.com wrote:

   Before I accidentally hit enter, this is what I was trying to 
   type: :)

   div
 input .. /
 span.../span
   /div

   The span might or might not be there, so I would like to just 
   get the
   last sibling in a parent.

   Thanks!


[jQuery] Re: A small incompatibility about selector on Jquery 1.3.1

2009-02-11 Thread jQuery Lover

Recently there was a similar issue in version 1.3 (not 1.3.1) where
selector with empty attribute value did not work correctly... I think
it's been fixed in 1.3.1
---
Read jQuery Howto
http://jquery-howto.blogspot.com



On Thu, Feb 12, 2009 at 11:07 AM, Ricardo Tomasi ricardob...@gmail.com wrote:

 Try $('#zz input[readonly=]:first')

 There are a few selector bugs in 1.3.1. Most have already been fixed
 for 1.3.2.

 cheers,
 - ricardo

 On Feb 12, 12:53 am, jack datac...@gmail.com wrote:
 The following works on before Version:
 $('#zz input:not([readonly]):first').focus().select()

 On Ver 1.3.1, it won't work unless you change to:
 $('#zz input:not([readonly=]):first').focus().select()


[jQuery] Re: Jquery Treeview bug in Tapestry5

2009-02-11 Thread jQuery Lover

Try to put the code in an anonymous function like so:

(function($){

  // the code of treeview

})(jQuery);


More about this method and its purpose you can read - here
http://jquery-howto.blogspot.com/2008/12/what-heck-is-function-jquery.html



On Thu, Feb 12, 2009 at 12:06 PM, pilgrim leva...@gmail.com wrote:

 Hi Ralph,
 I don't understand $ alias much. In source code, i changed $ to $jq
 for example. But still got conflict.
 After all, I changed function name remove to removeNode in
 jquery.treeview.async.js. Oops it does help me.
 Thanks for your help.
 Van

 On Feb 11, 1:44 pm, Ralph Whitbeck ralph.whitb...@gmail.com wrote:
 noConflict will only release the $ back to the other library.

 You'll need to go through and update your jQuery lines like so

 from

 $(div).hide();

 to

 jQuery(div).hide();

 http://docs.jquery.com/Core/jQuery.noConflict

 Ralph

 On Feb 10, 9:59 pm, pilgrim leva...@gmail.com wrote:

  Hi,
  I'm using Tapestry5.018 (using Prototype and Scriptaculous for front
  end). I love Jquery and try using TreeView plugin for processing tree.
  Everything is ok so far but  a bug with remove function in
  jquery.treeview.edit.js.
  With existence of prototype.js , remove a node in tree will remove a
  tree.
  Without prototype.js, remove function works ok.
  I guess there is a conflict between prototype and jquery but can't
  find the solution. I'd appreciate your help.
  Note: prototype.js is automatically generated. It always exists.
  I explicitly called jquery.noConlict().
  Thanks and regards,
  Van


[jQuery] Re: Optimize large DOM inserts

2009-02-09 Thread jQuery Lover

I made a post named 5 easy tips on how to improve code performance
with huge data sets in jQuery  here:
http://jquery-howto.blogspot.com/2009/02/5-easy-tips-on-how-to-improve-code.html

It gives 5 tips on howto work and improve performance while working
with huge datasets. I hope you'll find it helpfull...


Read jQuery HowTo Resource  -  http://jquery-howto.blogspot.com



On Mon, Feb 9, 2009 at 12:20 AM, Kevin Dalman kevin.dal...@gmail.com wrote:

 Rick, based on what I've learned from testing, you have another option
 now...

 Here is a modified version of Mike's code - without generating the
 table.

function populateDutyTable(response) {

var currentDay = '';
var rows = response.QGETDUTYSCHEDULE.DATA;
var out = [], o = -1;

out[++o] = 'tbody'; // CHANGED

for( var row, i = -1;  row = rows[++i]; ) {

var day = row[1];
if( currentDay != day ) {
currentDay = day;
out[++o] = 'trtd class=cell-day';
out[++o] = row[1];
out[++o] = '/tdtd class=cell-date';
out[++o] = row[2];
out[++o] = '/tdtd class=cell-blank
 colspan=5nbsp;/td/tr';
}

out[++o] = 'trtd class=cell-blank-daynbsp;/tdtd
 class=cell-blank-datenbsp;/tdtd class=cell-am-am';
out[++o] = row[3];
out[++o] = '/tdtd class=cell-position';
out[++o] = row[4];
out[++o] = '/tdtd colspan=3Cell Content/td/tr';
}

out[++o] = '/tbody'; // CHANGED

$('#scheduleBody').append( out.join('') ); // CHANGED
}

 A container around the table is no longer required because wrapping
 the rows in a tbody achieves the same performance as wrapping them in
 a table. Plus, you could now add rows without regenerating the entire
 table. This provides more options with no penalty. For example, now
 you could hard-code the table with column headers - for example...

 table id=scheduleBody
   thead
  tr
 thID/th
 thDay/th
 thDate/th
 thName/th
  /tr
   /thead
 /table

 This is cleaner and faster than adding column headers inside your
 Javascript loop.

 I suggest you try both methods, Rick. Use a timer (like MIike's sample
 pages) to confirm whether both are equally fast. Based on my tests,
 you may find appending to the table even faster, with cleaner markup
 as a bonus.

 Ciao,

 /Kevin

 On Feb 7, 3:20 pm, Rick Faircloth r...@whitestonemedia.com wrote:
 Hey, thanks Michael for taking the time to provide the
 explanation and the re-write.  I'll put this into place
 and see how it performs.  I'm sure it'll be *much* better!

 Rick


[jQuery] Re: live works in IE6?

2009-02-09 Thread jQuery Lover

That is also true :)


Read jQuery HowTo Resource  -  http://jquery-howto.blogspot.com



On Sun, Feb 8, 2009 at 1:15 AM, Dave Methvin dave.meth...@gmail.com wrote:

 File a ticket:http://dev.jquery.com

 Before doing that, post a sample here. A lot of bugs are not bugs.


[jQuery] Re: Several questions regarding jQuery Approach...

2009-02-09 Thread jQuery Lover

But he is not saying to pass the table object through AJAX call to the
server. He is passing it to the function...


Read jQuery HowTo Resource  -  http://jquery-howto.blogspot.com



On Sat, Feb 7, 2009 at 12:32 PM, Konstantin Mirin
konstantin.mi...@gmail.com wrote:

 Passing a table object to AJAX may be not the best idea :)
 You should normally mass data to the server, not data+presentation.

 Passing anything to $.ajax is just setting additional option in the data
 opbect parameter:
 $.ajax({
 data:{
   var1:'val1',
   table:$('#table') //--- here it goes
  }
 url:'your/script.php',
 ..
 }
 );

 Best regards,
 Konstantin Mirin

 mailto:konstantin.mi...@gmail.com
 mailto:i...@konstantin.takeforce.net


 -Original Message-
 From: jquery-en@googlegroups.com
 [mailto:jquery...@googlegroups.com] On Behalf Of jQuery Lover
 Sent: Saturday, February 07, 2009 9:14 AM
 To: jquery-en@googlegroups.com
 Subject: [jQuery] Re: Several questions regarding jQuery Approach...



 1. you can acces them like this $('tr td', this).each(...);
 Also see here for custom plugins and functions:
 http://jquery-howto.blogspot.com/search/label/plugin

 2. when you use $('table') you'll get a selection of all
 tables. If you do this you would get the same object instance:

 var $table = $('table');
 $table.table();
 $table.TableSetTitles({col1:test, col3: test3, col5: notexist});

 3. if a function takes an argument pass it a $table as
 parameter ... (give us a concrete example, and we could give
 a proper answer to this
 question...)

 
 Read jQuery HowTo Resource  -  http://jquery-howto.blogspot.com



 On Sat, Feb 7, 2009 at 10:22 AM, ShurikAg shuri...@gmail.com wrote:
 
  Hi,
 
  1.
  Assume that there is a table on a page:
  table
   tr
 td/td
 td/td
   /tr
  /table
 
  and I'm using jQuery to manipulate this table by:
 $(table).table();
 
  What is the right way of accessing td elements inside the
 function:
  (function(jQ) {
jQ.fn.table = function(options, titles, data){
...
...
}
  })(jQuery);
 
  2.
  When I'm accessing the same table outside of plugin, like this:
 $(table).table();
 $(table).TableSetTitles({col1:test,
 col3: test3,
  col5: not exist}); Do I actually accessing the same
 object instance?
  If not, what is the right way of doing it?
 
  3.
  If I need to use additional jQuery object (.ajax for instance) by
  passing the table object to it; what is the right way of doing it?
 
  Thank you in advance.




[jQuery] Re: I can't get Shadowbox to fire!

2009-02-09 Thread jQuery Lover

This was his example page: http://horticulture127.massey.ac.nz/dumpthis.htm

It seems he sorted it out, since it's working the time I checked...


Read jQuery HowTo Resource  -  http://jquery-howto.blogspot.com



On Sat, Feb 7, 2009 at 9:36 PM, expanism i...@expanism.nl wrote:



 On Feb 7, 11:59 am, jQuery Lover ilovejqu...@gmail.com wrote:
 Still getting the language error.

 Bruce, why don't you use some lighter lightbox plugins ???

 http://www.google.com/search?q=jquery+lightbox+plugin

 
 Read jQuery HowTo Resource  -  http://jquery-howto.blogspot.com

 On Sat, Feb 7, 2009 at 3:27 PM, Bruce MacKay b.mac...@massey.ac.nz wrote:

  That's strange - Firebug is not displaying any error messages here.

  I've turned on a load-the-language command - it's made no difference to 
  my
  display - what about from your end?

  Cheers,

  Bruce

  At 11:20 p.m. 7/02/2009, you wrote:

  I'm getting No Shadowbox language loaded error message!

  
  Read jQuery HowTo Resource  -  http://jquery-howto.blogspot.com

  On Sat, Feb 7, 2009 at 2:54 PM, Bruce MacKay b.mac...@massey.ac.nz
  wrote:

   Hi folks,

   I've tried a zillion combinations but I can't find the one that will
   make
   Shadowbox (http://mjijackson.com/shadowbox/index.html) fire.

   I am running jQuery 1.3.1 and Shadowbox v2.

   Would someone mind checking out my test page at
  http://horticulture127.massey.ac.nz/dumpthis.htmand letting me know
   what
   I'd doing wrong.  For example, clicking on the site hyperlink should
   bring
   up a Shadowbox containing an image - I just get a new page containing
   the
   image

   Thanks

   Bruce


[jQuery] Re: traversing ajax response with .find in Safari/Chrome

2009-02-09 Thread jQuery Lover

Which version of jQuery are you using ?


Read jQuery HowTo Resource  -  http://jquery-howto.blogspot.com



On Sat, Feb 7, 2009 at 9:48 PM, pedalpete p...@hearwhere.com wrote:

 like my original statement that works in IE and FF, but not Safari or
 Chrome.
 Strange

 On Feb 6, 11:17 pm, jQuery Lover ilovejqu...@gmail.com wrote:
 var newItem=$(div#item, response).html();

 
 Read jQuery HowTo Resource  -  http://jquery-howto.blogspot.com

 On Sat, Feb 7, 2009 at 9:02 AM, pedalpete p...@hearwhere.com wrote:

  I'm trying to get a div from an html ajax response.
  my code is pretty simple

  [code]
 success: function(response){

 var 
  newItem=$(response).find(div#item).html();

 alert(newItem);
  }
  [/code]

  This works fine in FF and IE, but Chrome and Safari both return null.

  I'm trying to find another way to write that, but It all seems pretty
  straight forward to me.
  Is there another way to get this other than .find?


[jQuery] Re: HELP, how to catch these elements ?

2009-02-09 Thread jQuery Lover

Ayan, I would recomment using ID selection. Since it is much faster
than other method selections. You can see performance test results
here: 
http://jquery-howto.blogspot.com/2009/01/improving-jquery-code-performance.html

But in your case, it seems like you have a lot of elements to select
and writing each id in a jquery selector might be time consuming. That
is why I suggest you use $('table.cbFieldsContentsTab,
div.tab-content') suggested by Rodolfo.


Read jQuery HowTo Resource  -  http://jquery-howto.blogspot.com



On Sat, Feb 7, 2009 at 9:55 AM, Rodolfo Allan rodolfo.al...@gmail.com wrote:
 Here another methods:

 If you have more elements than those you can add

 .find(:contains('cbtf_46'), :contains('cbtf_2') ... )

 or you could select them by their ids

 $(' #first_id, #second_id, , #last_id')

 Rodolfo.

 2009/2/6 Rodolfo Allan rodolfo.al...@gmail.com

 Try this $('table.cbFieldsContentsTab, div.tab-content')

 If you use Firefox, I recommend Firbug extension which haves a console so
 you can that try live. Very usefull.

 Greetings,
 Rodolfo.

 2009/2/6 Ayan ios...@gmail.com

 Hello,

 I need a help to catch these HTML elements -

 Elements -
 table class=cbFieldsContentsTab cbFields id=cbtf_46/table
 table class=cbFieldsContentsTab cbFields id=cbtf_2/table
 table class=cbFieldsContentsTab cbFields id=cbtf_21/table
 table class=cbFieldsContentsTab cbFields id=cbtf_11/table
 table class=cbFieldsContentsTab cbFields id=cbtf_20/table

 div class=tab-content cb_tab_content cb_tab_tab_main
 id=cb_tabid_40/div
 div class=tab-content cb_tab_content cb_tab_tab_main
 id=cb_tabid_24/div

 What will be the statement ?
 $




[jQuery] Re: How to enable jquery in a loaded page?

2009-02-09 Thread jQuery Lover

Could you give a link to your test page ?


Read jQuery HowTo Resource  -  http://jquery-howto.blogspot.com



On Sat, Feb 7, 2009 at 6:36 PM, Konstantin Mirin
konstantin.mi...@gmail.com wrote:

 Well, you have a space in your link. Maybe that's a problem.
 Should be:
 a
 href=showContent.php?action=addContentkeepThis=trueTB_iframe=trueheight=
 450width=550 class=thickbox

 But I'm not sure I understanf what are you trying to get in the result. Yout
 thickbox class in link has nothing to do with the ajax query. Or you're
 using some extension that posts class also?

 Best regards,
 Konstantin Mirin

 mailto:konstantin.mi...@gmail.com
 mailto:i...@konstantin.takeforce.net


 -Original Message-
 From: jquery-en@googlegroups.com
 [mailto:jquery...@googlegroups.com] On Behalf Of 123gotoandplay
 Sent: Saturday, February 07, 2009 3:25 PM
 To: jQuery (English)
 Subject: [jQuery] Re: How to enable jquery in a loaded page?



 ok i think i understand the callback.

 But what about showContent.php in a thickbox iframe ??? i am
 trying this without any look

 a href=showContent.php?
 action=addContentkeepThis=trueTB_iframe=trueheight=450width=550
 class=thickbox

 again when i directly browse to showContent.php it works but
 with the thickbox class it doesn't??




[jQuery] Re: Need to make a edit layout system using php and jquery...?

2009-02-09 Thread jQuery Lover

You should probably ask it in CSS mailing list or discussion board...
You will get more useful replies there...


Read jQuery HowTo Resource  -  http://jquery-howto.blogspot.com



On Sun, Feb 8, 2009 at 9:56 PM, shyhockey...@gmail.com
shyhockey...@gmail.com wrote:

 Ok, Now I am having trouble using php with css. I made a php file with
 the header content text/css  and the css works kinda.. the render is
 not proper.

 the htmlcheck button is supposed to display at the footer and it is
 being displayed in the top left corner of the screen.


 On Feb 6, 3:15 am, jQuery Lover ilovejqu...@gmail.com wrote:
 Yeap. I suggest you add a save button so you make an ajax call only
 once (when user decides to save his/her settings) and don't kill your
 server ... :)

 
 Read jQuery HowTo Resource  -  http://jquery-howto.blogspot.com

 On Fri, Feb 6, 2009 at 5:01 AM, shyhockey...@gmail.com

 shyhockey...@gmail.com wrote:

  Thanks... So I can save these values with php???

  Cause I plan to allow people to make their own profile page layout and
  need to save these values.

  On Feb 2, 7:11 am, jQuery Lover ilovejqu...@gmail.com wrote:
  To find positions and everything:http://docs.jquery.com/CSS

  
  Read jQuery HowTo Resource  -  http://jquery-howto.blogspot.com

  On Mon, Feb 2, 2009 at 3:19 AM, shyhockey...@gmail.com

  shyhockey...@gmail.com wrote:

   Hi, I am right now trying to make a edit layout  system.

   basicly I want to know how I can use jquery to  grab the height width
   and position elements are at.

   Cause I plan to make in the edit mode to allow users to move like
   images and tables and texts around on the layout and even change
   background images and add more artistic images for their profiles.

   I will add also a music player.

   So I need to know how I can grab all positions height and width of
   each element on my layout and then store that data.

   I am planning to make databases for users where I will store their
   edited stuff.

   So I need the x  and  y position of where the elements are at and also
   the height and width. Some told me I should  just grab what  css
   element of height and width and top and left of the elements using
   javascript.

   What would you suggest on how I should do it?

   Can I do it using jquery or no???

   Thanks for your time.


[jQuery] Re: treeview custom icon

2009-02-09 Thread jQuery Lover

Which treeview plugin are you using ?


Read jQuery HowTo Resource  -  http://jquery-howto.blogspot.com



On Sat, Feb 7, 2009 at 9:50 PM, Anders Viklund
viklund_and...@hotmail.com wrote:
 This works fine for replacing the file image, but how can I replace the
 collapsable and expandable folder images?
 I would like to distinguish one folder from all other folders.

 
 Date: Thu, 5 Feb 2009 19:20:01 +0530
 Subject: [jQuery] Re: treeview custom icon
 From: tareq.m...@gmail.com
 To: jquery-en@googlegroups.com

 Yes it is possible .
 suppose u have a tree [ A ] Branches are [ B,C,D ]
 then if u wana add icon on B branch , then give a id of B branch div
 $('#Bid').prepend('img src=... /');
 hope this will help u.
 regards
 Ragx.

 On Thu, Feb 5, 2009 at 6:52 PM, viklund_anders viklund_and...@hotmail.com
 wrote:

 Hi I would like to have a custom icon for one specific entry in the
 tree, is this possible?

 Thanks!


 --
 ---| Regard |---

 Mohd.Tareque

 
 What can you do with the new Windows Live? Find out


[jQuery] Re: jQuery query string implementation

2009-02-09 Thread jQuery Lover

Nice work...


Read jQuery HowTo Resource  -  http://jquery-howto.blogspot.com



On Sat, Feb 7, 2009 at 7:17 AM, mkmanning michaell...@gmail.com wrote:

 FYI I just uploaded a plugin (http://plugins.jquery.com/project/
 parseQuery) that's pretty small (449 bytes minified); it parses the
 querystring into an object.

 On Feb 5, 6:53 am, jQuery Lover ilovejqu...@gmail.com wrote:
 Agree, that would be something useful... but it's better to have it as
 a plugin, since you don't need it for the most of the time...

 
 Read jQuery HowTo Resource  -  http://jquery-howto.blogspot.com

 On Thu, Feb 5, 2009 at 7:44 PM, Matt Gardner lo...@newmethods.org wrote:
  John and crew, was curious for your opinion related to storing query string
  variables in an array (and perhaps expanding to capture key/value pairs
  beyond the # as well). Something worthwhile to have in the core?
 http://stackoverflow.com/questions/439463/how-to-get-get-and-post-var...

  -- Matt



[jQuery] Re: Several questions regarding jQuery Approach...

2009-02-07 Thread jQuery Lover

Maybe because you are return reference to the function not a jQuery object:

  return this;

Read this post:
http://jquery-howto.blogspot.com/2008/12/how-to-create-jquery-plugin-extending.html

It explains why you need to return jQuery object.



On Sat, Feb 7, 2009 at 1:28 PM, ShurikAg shuri...@gmail.com wrote:

 Question related to the same plugin:

 Plugin code:
 jQ.fn.table = function(options, titles, data){
if(jQ(this).length == 0){
//try to find at least one element
$.log(Matching element +jQ(this).selector+ was not 
 found!)
return null;
}
//validate that this element is unique i=on hte page
if(jQ(this).length  1){
$.log(The element's selector must be unique on the 
 page!);
return null;
}
//check if the elemment is a table
//alert(jQ(this).selector);
if(!jQ(this).is('table')){
$.log(The element must be valid table element!);
return null;
}
/**
 * Save the selector for further
 */
Selector = jQ(this).selector;

//extend defaults
Options = jQ.extend({}, Defaults, options);
//init additional data

//init UI
jQ.fn.table.initUI();

return this;
};

 and I'm running it as:
 var $table = $('table');
 $table.table();

 and I'm always getting: The element must be valid table element!

 I've tried to trace what the selector is; and once it is table but
 the second time (in he same run) is null. Why there are two entries to
 this function anyways? I have only one table on the page.


[jQuery] Re: Text to the left of the jQuery Star Rating Plugin

2009-02-07 Thread jQuery Lover

Surround your text (Rating:) with div and give a float:right CSS...
worked for me on plugins demo page...


Read jQuery HowTo Resource  -  http://jquery-howto.blogspot.com



On Sat, Feb 7, 2009 at 12:54 AM, Tom seil...@gmail.com wrote:

 Hi, I'm using the star rating plugin at:
 http://www.fyneworks.com/jquery/star-rating/

 and I'm trying to add a little text to the left of a set of stars
 (i.e. Rating: * * * * * ).  After fooling around with the CSS for a
 long time, I still haven't been able to get rid of the line break
 between the text and the stars (I get the visual equivalent of Rating:
 \n* * * * * ).  I've tried floating things left, setting display:
 inline, etc, but I must be missing something.  I'm using the current
 version at:
 http://code.google.com/p/jquery-star-rating-plugin/

 Does anyone know how to do this?

 Much thanks,
 Tom



[jQuery] Re: Several questions regarding jQuery Approach...

2009-02-07 Thread jQuery Lover

But you are saying first time you run it, it gives you 'table', the
second time you run it, it says it's not a table...

This means, the first time it is getting to the return statement... Or
did I get you wrong ?


Read jQuery HowTo Resource  -  http://jquery-howto.blogspot.com



On Sat, Feb 7, 2009 at 2:02 PM, ShurikAg shuri...@gmail.com wrote:

 But it does not even get to the return statement...

 On Feb 7, 12:47 am, jQuery Lover ilovejqu...@gmail.com wrote:
 Maybe because you are return reference to the function not a jQuery object:

   return this;

 Read this 
 post:http://jquery-howto.blogspot.com/2008/12/how-to-create-jquery-plugin-...

 It explains why you need to return jQuery object.

 On Sat, Feb 7, 2009 at 1:28 PM, ShurikAg shuri...@gmail.com wrote:

  Question related to the same plugin:

  Plugin code:
  jQ.fn.table = function(options, titles, data){
 if(jQ(this).length == 0){
 //try to find at least one element
 $.log(Matching element +jQ(this).selector+ was 
  not found!)
 return null;
 }
 //validate that this element is unique i=on hte page
 if(jQ(this).length  1){
 $.log(The element's selector must be unique on the 
  page!);
 return null;
 }
 //check if the elemment is a table
 //alert(jQ(this).selector);
 if(!jQ(this).is('table')){
 $.log(The element must be valid table element!);
 return null;
 }
 /**
  * Save the selector for further
  */
 Selector = jQ(this).selector;

 //extend defaults
 Options = jQ.extend({}, Defaults, options);
 //init additional data

 //init UI
 jQ.fn.table.initUI();

 return this;
 };

  and I'm running it as:
  var $table = $('table');
  $table.table();

  and I'm always getting: The element must be valid table element!

  I've tried to trace what the selector is; and once it is table but
  the second time (in he same run) is null. Why there are two entries to
  this function anyways? I have only one table on the page.


[jQuery] Re: Several questions regarding jQuery Approach...

2009-02-07 Thread jQuery Lover

could you post your code with alert statements?


Read jQuery HowTo Resource  -  http://jquery-howto.blogspot.com



On Sat, Feb 7, 2009 at 2:19 PM, ShurikAg shuri...@gmail.com wrote:

 And by the way: I tried to return jQ(this)... nothing changes.

 On Feb 7, 1:18 am, ShurikAg shuri...@gmail.com wrote:
 Sorry, I have probably didn't enplane myself properly.
 I'm running it once, but when I'm trying to track jQ
 (this).selector (by alert), it alerts me twice in the same run: once
 with table and second is empty...

 On Feb 7, 1:11 am, jQuery Lover ilovejqu...@gmail.com wrote:

  But you are saying first time you run it, it gives you 'table', the
  second time you run it, it says it's not a table...

  This means, the first time it is getting to the return statement... Or
  did I get you wrong ?

  
  Read jQuery HowTo Resource  -  http://jquery-howto.blogspot.com

  On Sat, Feb 7, 2009 at 2:02 PM, ShurikAg shuri...@gmail.com wrote:

   But it does not even get to the return statement...

   On Feb 7, 12:47 am, jQuery Lover ilovejqu...@gmail.com wrote:
   Maybe because you are return reference to the function not a jQuery 
   object:

 return this;

   Read this 
   post:http://jquery-howto.blogspot.com/2008/12/how-to-create-jquery-plugin-...

   It explains why you need to return jQuery object.

   On Sat, Feb 7, 2009 at 1:28 PM, ShurikAg shuri...@gmail.com wrote:

Question related to the same plugin:

Plugin code:
jQ.fn.table = function(options, titles, data){
   if(jQ(this).length == 0){
   //try to find at least one element
   $.log(Matching element +jQ(this).selector+ 
was not found!)
   return null;
   }
   //validate that this element is unique i=on hte page
   if(jQ(this).length  1){
   $.log(The element's selector must be unique 
on the page!);
   return null;
   }
   //check if the elemment is a table
   //alert(jQ(this).selector);
   if(!jQ(this).is('table')){
   $.log(The element must be valid table 
element!);
   return null;
   }
   /**
* Save the selector for further
*/
   Selector = jQ(this).selector;

   //extend defaults
   Options = jQ.extend({}, Defaults, options);
   //init additional data

   //init UI
   jQ.fn.table.initUI();

   return this;
   };

and I'm running it as:
var $table = $('table');
$table.table();

and I'm always getting: The element must be valid table element!

I've tried to trace what the selector is; and once it is table but
the second time (in he same run) is null. Why there are two entries to
this function anyways? I have only one table on the page.


[jQuery] Re: thickbox 3.1 and new jquery 1.3.1 - please help

2009-02-07 Thread jQuery Lover

Try to delete @ on line 79.

79: TB_TempArray = $(a...@rel=+imageGroup+]).get();

79: TB_TempArray = $(a[rel=+imageGroup+]).get();




Read jQuery HowTo Resource  -  http://jquery-howto.blogspot.com



On Sat, Feb 7, 2009 at 3:43 AM, newbie alanv...@gmail.com wrote:

 I upgraded from jquery 1.2.2 to 1.31 but thickbox 3.1 does not work.
 Any help is appreciated


[jQuery] Re: Datepicker UI Opening at Random / Unexpected Locations

2009-02-07 Thread jQuery Lover

Yeap, a test page would help to find the bug...

One more question. Are you positioning your elements in CSS using
relative/absolute ?


Read jQuery HowTo Resource  -  http://jquery-howto.blogspot.com



On Sat, Feb 7, 2009 at 8:38 AM, Ca-Phun Ung cap...@yelotofu.com wrote:
 Hi,

 Which version of UI are you using? We recently fixed a similar bug which was
 rolled into 1.6rc6. For details of the bug see this ticket:

 http://dev.jqueryui.com/ticket/3863

 Finally, if you're using the latest rc it would be a great help if you could
 upload a minimal test page somewhere.

 Thanks!

 On Fri, Feb 6, 2009 at 11:31 PM, Dayson Pais percy.p...@gmail.com wrote:

 Hi,

 I have a Datepicker UI linked to a textbox using the following code:

 $(document).ready(function(){
txtDOB = $(input[name=txtDOB]);
txtDOB.datepicker();
 });

 Screenshot of the Textbox: http://arch.kimag.es/share/85588260.jpg

 When I click on the textbox, the calendar opens at an unexpected
 location as seen in this picture
 Firefox appears over textbox: http://arch.kimag.es/share/34288230.jpg
 Chrome Working Fine: http://arch.kimag.es/share/75291561.jpg

 It works fine in Chrome. I really can't figure out why this is
 happening.. It works perfectly if the textbox is placed in the top
 regions of the page.

 The Actual Problem in a practical situation is here:
 http://arch.kimag.es/share/66324568.jpg

 I need this resolved as I really don't want to use a calendar
 component from some other module if jquery has it.

 Thanks




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



[jQuery] Re: Several questions regarding jQuery Approach...

2009-02-07 Thread jQuery Lover

But these lines should not cause 2 alerts...

I just run you code and i'm getting just one alert box ?!


Read jQuery HowTo Resource  -  http://jquery-howto.blogspot.com



On Sat, Feb 7, 2009 at 2:45 PM, ShurikAg shuri...@gmail.com wrote:

 I figured out that the problem starts here:
 jQ(this).addClass(Options.cssClass);

 and here:
 tHead.append(tr).prependTo(this);


[jQuery] Re: Several questions regarding jQuery Approach...

2009-02-07 Thread jQuery Lover

FF3


Read jQuery HowTo Resource  -  http://jquery-howto.blogspot.com



On Sat, Feb 7, 2009 at 2:53 PM, ShurikAg shuri...@gmail.com wrote:

 hm
 which browser you are working with?

 On Feb 7, 1:49 am, jQuery Lover ilovejqu...@gmail.com wrote:
 But these lines should not cause 2 alerts...

 I just run you code and i'm getting just one alert box ?!

 
 Read jQuery HowTo Resource  -  http://jquery-howto.blogspot.com

 On Sat, Feb 7, 2009 at 2:45 PM, ShurikAg shuri...@gmail.com wrote:

  I figured out that the problem starts here:
  jQ(this).addClass(Options.cssClass);

  and here:
  tHead.append(tr).prependTo(this);


[jQuery] Re: Several questions regarding jQuery Approach...

2009-02-07 Thread jQuery Lover

I don't have $.log() function so i just commented those lines out...

but let me log them with console.log()...

NOPE, I did not. I just got a table alert box and that's it... Just
one alert box!


Read jQuery HowTo Resource  -  http://jquery-howto.blogspot.com



On Sat, Feb 7, 2009 at 2:59 PM, ShurikAg shuri...@gmail.com wrote:

 I'm getting this error when the lines bellow are called:

 jQ(this).addClass(Options.cssClass);
 ...
 tHead.append(tr).prependTo(this);

 On Feb 7, 1:56 am, ShurikAg shuri...@gmail.com wrote:
 me too

 and do you get The element must be valid table element!?

 On Feb 7, 1:53 am, jQuery Lover ilovejqu...@gmail.com wrote:

  FF3

  
  Read jQuery HowTo Resource  -  http://jquery-howto.blogspot.com

  On Sat, Feb 7, 2009 at 2:53 PM, ShurikAg shuri...@gmail.com wrote:

   hm
   which browser you are working with?

   On Feb 7, 1:49 am, jQuery Lover ilovejqu...@gmail.com wrote:
   But these lines should not cause 2 alerts...

   I just run you code and i'm getting just one alert box ?!

   
   Read jQuery HowTo Resource  -  http://jquery-howto.blogspot.com

   On Sat, Feb 7, 2009 at 2:45 PM, ShurikAg shuri...@gmail.com wrote:

I figured out that the problem starts here:
jQ(this).addClass(Options.cssClass);

and here:
tHead.append(tr).prependTo(this);


[jQuery] Re: Several questions regarding jQuery Approach...

2009-02-07 Thread jQuery Lover

That's what I did. I put console.log() (firebug console logging).

And still not getting that message. Only alert that says table...

Probably, you are using .table() function somewhere else on non table
element ???


Read jQuery HowTo Resource  -  http://jquery-howto.blogspot.com



On Sat, Feb 7, 2009 at 3:08 PM, ShurikAg shuri...@gmail.com wrote:

 instead of $.log()  just put alert(); you will see the error.

 My html is something like this:

 ...
 table class=.tbl/table
 ...


 and I'm using it as:
 var $table = $('.tbl');
 $table.table();

 On Feb 7, 2:04 am, jQuery Lover ilovejqu...@gmail.com wrote:
 I don't have $.log() function so i just commented those lines out...

 but let me log them with console.log()...

 NOPE, I did not. I just got a table alert box and that's it... Just
 one alert box!

 
 Read jQuery HowTo Resource  -  http://jquery-howto.blogspot.com

 On Sat, Feb 7, 2009 at 2:59 PM, ShurikAg shuri...@gmail.com wrote:

  I'm getting this error when the lines bellow are called:

  jQ(this).addClass(Options.cssClass);
  ...
  tHead.append(tr).prependTo(this);

  On Feb 7, 1:56 am, ShurikAg shuri...@gmail.com wrote:
  me too

  and do you get The element must be valid table element!?

  On Feb 7, 1:53 am, jQuery Lover ilovejqu...@gmail.com wrote:

   FF3

   
   Read jQuery HowTo Resource  -  http://jquery-howto.blogspot.com

   On Sat, Feb 7, 2009 at 2:53 PM, ShurikAg shuri...@gmail.com wrote:

hm
which browser you are working with?

On Feb 7, 1:49 am, jQuery Lover ilovejqu...@gmail.com wrote:
But these lines should not cause 2 alerts...

I just run you code and i'm getting just one alert box ?!


Read jQuery HowTo Resource  -  http://jquery-howto.blogspot.com

On Sat, Feb 7, 2009 at 2:45 PM, ShurikAg shuri...@gmail.com wrote:

 I figured out that the problem starts here:
 jQ(this).addClass(Options.cssClass);

 and here:
 tHead.append(tr).prependTo(this);


[jQuery] Re: I can't get Shadowbox to fire!

2009-02-07 Thread jQuery Lover

I'm getting No Shadowbox language loaded error message!


Read jQuery HowTo Resource  -  http://jquery-howto.blogspot.com



On Sat, Feb 7, 2009 at 2:54 PM, Bruce MacKay b.mac...@massey.ac.nz wrote:

 Hi folks,

 I've tried a zillion combinations but I can't find the one that will make
 Shadowbox (http://mjijackson.com/shadowbox/index.html) fire.

 I am running jQuery 1.3.1 and Shadowbox v2.

 Would someone mind checking out my test page at
 http://horticulture127.massey.ac.nz/dumpthis.htm and letting me know what
 I'd doing wrong.  For example, clicking on the site hyperlink should bring
 up a Shadowbox containing an image - I just get a new page containing the
 image

 Thanks

 Bruce





[jQuery] Re: How do I add/subtract currency with jquery?

2009-02-07 Thread jQuery Lover

You might find Masked Input plugin useful:
http://digitalbush.com/projects/masked-input-plugin/

Also on creating your custom jQuery plugins:
http://jquery-howto.blogspot.com/search/label/plugin



On Sat, Feb 7, 2009 at 2:10 AM, webopolis krodenho...@gmail.com wrote:

 I've done this with straight Javascript for years, I just thought with
 all the other cool things that have been done with jquery, there would
 be a plugin for this as well. Thanks for the help.

 Kevin

 On Feb 6, 3:52 pm, sem101 semiotics...@gmail.com wrote:
 You don't need jQuery for math, it's simple JavaScript. But -- you can
 use jQuery to get elements of your forms

 var qty = parseInt($('input#qty').val()) || 0;
 var product1 = parseFloat($('input#product1').val()) || 0;
 var discount = parseFloat($('input#discount').val()) || 0;
 var grandtotal = (qty * product1) - discount;

 $(div#total).html('h1$' + grandtotal.toFixed(2) + '/h1');

 This would roughly create variables to hold your form input values,
 then show the grandtotal in a div called #total. You can grasp the
 concept.The things to look up are Floating Point, Integers and
 Decimals, etc.

 http://www.w3schools.com/js/default.asp

 On Feb 6, 3:13 pm, webopolis krodenho...@gmail.com wrote:



  How do I add/subtract currency with jquery?- Hide quoted text -

 - Show quoted text -


[jQuery] Re: Several questions regarding jQuery Approach...

2009-02-07 Thread jQuery Lover

I tried to debug the code and the second alert is fired when
table.initUI() returns.

It's probably how browsers work. When you call .table.initUI() it
probably goes through the .table as well.. or something... sounds
weird though :)

Anyway, it's good you have resolved your problem :)))

Good luck with the project...


Read jQuery HowTo Resource  -  http://jquery-howto.blogspot.com



On Sat, Feb 7, 2009 at 3:39 PM, ShurikAg shuri...@gmail.com wrote:

 I tried something:

 If I pass to initUI this, and using it as bellow:

 jQ.fn.table.initUI = function(obj){
if(Initialized){
//return;
}
Options.cols = Object.size(Titles);
c = 0;
//set scc if needed
if(Options.cssClass !=  || Options.cssClass != null){
jQ(obj).addClass(Options.cssClass);
}
//deal with the thead
if(Options.thead == true){
//need to wrap first row with thead
}
//fill in the thead
var tHead = jQ(thead/thead);
var tr = jQ(tr/tr);
jQ.each(Titles, function(i, val){
jQ(td/td).attr({
id: i
}).text(val).appendTo(tr);
});
tHead.append(tr).prependTo(obj); //Options.rows++;
}

 Works perfect.
 I have no explanation to that.



[jQuery] Re: I can't get Shadowbox to fire!

2009-02-07 Thread jQuery Lover

Still getting the language error.

Bruce, why don't you use some lighter lightbox plugins ???

http://www.google.com/search?q=jquery+lightbox+plugin


Read jQuery HowTo Resource  -  http://jquery-howto.blogspot.com



On Sat, Feb 7, 2009 at 3:27 PM, Bruce MacKay b.mac...@massey.ac.nz wrote:

 That's strange - Firebug is not displaying any error messages here.

 I've turned on a load-the-language command - it's made no difference to my
 display - what about from your end?

 Cheers,

 Bruce


 At 11:20 p.m. 7/02/2009, you wrote:

 I'm getting No Shadowbox language loaded error message!

 
 Read jQuery HowTo Resource  -  http://jquery-howto.blogspot.com



 On Sat, Feb 7, 2009 at 2:54 PM, Bruce MacKay b.mac...@massey.ac.nz
 wrote:
 
  Hi folks,
 
  I've tried a zillion combinations but I can't find the one that will
  make
  Shadowbox (http://mjijackson.com/shadowbox/index.html) fire.
 
  I am running jQuery 1.3.1 and Shadowbox v2.
 
  Would someone mind checking out my test page at
  http://horticulture127.massey.ac.nz/dumpthis.htm and letting me know
  what
  I'd doing wrong.  For example, clicking on the site hyperlink should
  bring
  up a Shadowbox containing an image - I just get a new page containing
  the
  image
 
  Thanks
 
  Bruce
 
 
 





[jQuery] Re: Several questions regarding jQuery Approach...

2009-02-07 Thread jQuery Lover

I think namespacing is always a good idea :)


Read jQuery HowTo Resource  -  http://jquery-howto.blogspot.com



On Sat, Feb 7, 2009 at 3:57 PM, ShurikAg shuri...@gmail.com wrote:

 Thanks a lot.

 Last question, is it a good idea to pass the object just in order to
 stay in the same namespace?

 On Feb 7, 2:51 am, jQuery Lover ilovejqu...@gmail.com wrote:
 I tried to debug the code and the second alert is fired when
 table.initUI() returns.

 It's probably how browsers work. When you call .table.initUI() it
 probably goes through the .table as well.. or something... sounds
 weird though :)

 Anyway, it's good you have resolved your problem :)))

 Good luck with the project...

 
 Read jQuery HowTo Resource  -  http://jquery-howto.blogspot.com

 On Sat, Feb 7, 2009 at 3:39 PM, ShurikAg shuri...@gmail.com wrote:

  I tried something:

  If I pass to initUI this, and using it as bellow:

  jQ.fn.table.initUI = function(obj){
 if(Initialized){
 //return;
 }
 Options.cols = Object.size(Titles);
 c = 0;
 //set scc if needed
 if(Options.cssClass !=  || Options.cssClass != null){
 jQ(obj).addClass(Options.cssClass);
 }
 //deal with the thead
 if(Options.thead == true){
 //need to wrap first row with thead
 }
 //fill in the thead
 var tHead = jQ(thead/thead);
 var tr = jQ(tr/tr);
 jQ.each(Titles, function(i, val){
 jQ(td/td).attr({
 id: i
 }).text(val).appendTo(tr);
 });
 tHead.append(tr).prependTo(obj); //Options.rows++;
 }

  Works perfect.
  I have no explanation to that.


[jQuery] Re: Disable a link temporarily

2009-02-07 Thread jQuery Lover

 $('a.show_reset_pass_box').unbind('click');

This line is unbinding ALL click events. So the second click binding
function is not fired, since it's not bound...


Read jQuery HowTo Resource  -  http://jquery-howto.blogspot.com



On Sat, Feb 7, 2009 at 2:48 PM, rob303 rob.cub...@googlemail.com wrote:

 Hi,

 This should be easy.

 I want to disable a link and then re-enable it later.  I have:

 $('a.show_reset_pass_box').click(function() {
// do some stuff
$('a.show_reset_pass_box').unbind('click');
return false;
  });

 Which works just fine.  But then when I try to do:

 $('a.close_reset_pass_box').click(function() {
// do some stuff
$('a.show_reset_pass_box').bind('click');
return false;
  });

 The click event isn't bound back onto the anchor.

 The anchor looks like this:

 a class=show_reset_pass_box title=Lost Password?Lost Password?/
 a

 What am I doing wrong?

 Many thanks in advance for any hekp.

 Rob.


[jQuery] Re: how to change the iframe src

2009-02-07 Thread jQuery Lover

Don't forget the space between iframe and id:

$('#connectframe'+' iframe').attr(src,


Why do you have a concatination there anyway ???

$('#connectframe iframe').attr(src,


Read jQuery HowTo Resource  -  http://jquery-howto.blogspot.com



On Sat, Feb 7, 2009 at 4:08 AM, cindy ypu01...@yahoo.com wrote:

 I tried to use Richardo' method, it is still not working.
 SourceCOde:
 !DOCTYPE HTML PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN http://
 www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd
 html xmlns=http://www.w3.org/1999/xhtml;
 head
meta content=text/html; charset=iso-8859-1 http-equiv=Content-
 Type/
titleRAP Console/title
link type=text/css media=screen rel=stylesheet href=clilib/
 mainpage.css
script src=jscripts/wizard/jquery-1.2.3.pack.js type=text/
 javascript/script
 /head
 script
 var refreshTime=3;
 var summaryTab=1;
 var connectTab=2;
 var diagTab=3;
 var isSummaryInit= true;
 var isConnectInit=false;
 var isDiagInit=false;
 var mode=protype;
 var currentTab=summaryTab;


 function clickTab( tabName)
 {
if(tabName==currentTab) return;
if(tabName==summaryTab)
{
  
 $('#summaryframe'+'iframe').attr(src,http://www.google.com;);
}
else if(tabName==connectTab)
{
$('#connectframe'+'iframe').attr(src,http://www.yahoo.com;);
}
else if(tabName==diagTab)
{
$('#diagframe'+'iframe').attr(src,http://www.yelp.com;);
}
currentTab=tabName;
 };

 $(document).ready(init);
 function init()
 {
$('#Summary').bind('click',function(){clickTab(summaryTab)});
$('#Connectivity').bind('click',function(){clickTab(connectTab)});
$('#Diag').bind('click',function(){clickTab(diagTab)});
 };


 /script
 body
div id=header
div id=titleimg src=images/logo.gif/div
div id=header_logoimg src=images/logo.gif/div
/div
div id=tab
ul id=tab_ul class=up
li id=SummarySummary/li
li id=ConnectivityConnectivity/li
li id=DiagDiagnostics/li
/ul
/div
div id=global_content
div id=statusConnection Status:/div
div id=updateTime Last updated: 10:31:14 AM/div
div id=refreshRefresh/div
div id=gensupport Generate  save support file/div
/div
div id=frame
div id=summaryframe
iframe width=100% height=100% 
 frameborder=1/iframe
/div
div id=connectframe
iframe width=100% height=100% 
 frameborder=1/iframe
/div
div id=diagframe
iframe  width=100% height=100% 
 frameborder=1/iframe
/div
/div
 /body
  /html

 On Feb 6, 2:48 pm, Ricardo Tomasi ricardob...@gmail.com wrote:
 $('connectframe'+'iframe')

 should be

 $('#connectframe'+' iframe') (notice the whitespace) and so on..

 On Feb 6, 7:34 pm, cindy ypu01...@yahoo.com wrote:

  Hi,

  what I want to do is to change iframe src, when click the tab. The
  click function is called, but the iframe src is not changed at all. Do
  you know what is wrong?

  Cindy

  !DOCTYPE HTML PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN 
  http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd;
  html xmlns=http://www.w3.org/1999/xhtml;
  head
  meta content=text/html; charset=iso-8859-1 http-equiv=Content-
  Type/
  titleRAP Console/title
  link type=text/css media=screen rel=stylesheet href=clilib/
  mainpage.css
  script src=jscripts/wizard/jquery-1.2.3.pack.js type=text/
  javascript/script
  /head
  script
  var refreshTime=3;
  var summaryTab=1;
  var connectTab=2;
  var diagTab=3;
  var isSummaryInit= true;
  var isConnectInit=false;
  var isDiagInit=false;
  var mode=protype;
  var currentTab=summaryTab;

  function clickTab( tabName)
  {
  if(tabName==currentTab) return;
  if(tabName==summaryTab)
  {

  $('summaryframe'+'iframe').attr(src,http://www.google.com;);
setFocus('summaryframe');
  }
  else if(tabName==connectTab)
  {
  
  $('connectframe'+'iframe').attr(src,http://www.yahoo.com;);
   setFocus('connectframe');
  }
  else if(tabName==diagTab)
  {
  $('diagframe'+'iframe').attr(src,http://www.yelp.com;);
  setFocus('diagframe');
  }
  currentTab=tabName;

  };

  $(document).ready(init);
  function init()
  {
  $('#Summary').bind('click',function(){clickTab(summaryTab)});
  $('#Connectivity').bind('click',function(){clickTab(connectTab)});
  $('#Diag').bind('click',function(){clickTab(diagTab)});

  };

  /script
  body
  div id=header
  div id=titleimg src=images/alogo.gif/div
 

[jQuery] Re: live works in IE6?

2009-02-07 Thread jQuery Lover

File a ticket: http://dev.jquery.com


Read jQuery HowTo Resource  -  http://jquery-howto.blogspot.com



On Sat, Feb 7, 2009 at 3:42 AM, Dhana sldh...@gmail.com wrote:

 Ok, an update,

 I put in a few alerts and looks like the event.target is returning the
 img tag for ie7 and Firefox and IE6 is returning an a tag.  Just a
 little curious on this different event bubbling.  Could someone
 clarify this if you have any ideas.


[jQuery] Re: validation plugin: validate checkboxes that don't have same name?

2009-02-06 Thread jQuery Lover

You can add custom rule with your custom validator. Read documentation
here: http://docs.jquery.com/Plugins/Validation


Read jQuery HowTo Resource  -  http://jquery-howto.blogspot.com



On Fri, Feb 6, 2009 at 7:22 AM, claudes claudina.sar...@gmail.com wrote:


 using validation plugin, is there a way to validate checkbox group that has
 different name attributes? i would like to make sure that at least one
 checkbox has been selected but i'm not sure how to do it because they all
 have different names.

 thanks
 --
 View this message in context: 
 http://www.nabble.com/validation-plugin%3A-validate-checkboxes-that-don%27t-have-same-name--tp21865439s27240p21865439.html
 Sent from the jQuery General Discussion mailing list archive at Nabble.com.




[jQuery] Re: load() not loading my dynamic page

2009-02-06 Thread jQuery Lover

.html is static and the other one is generated dynamically...


Read jQuery HowTo Resource  -  http://jquery-howto.blogspot.com



On Thu, Feb 5, 2009 at 10:21 PM, photogeek levin@gmail.com wrote:

 Beginner question  but what is the difference between that .html page
 and the page that you are trying to load?

 Thanks

 Photogeek

 On Feb 5, 8:56 am, jQuery Lover ilovejqu...@gmail.com wrote:
 Maybe it's related to wrong content type being sent by your server !!!

 
 Read jQuery HowTo Resource  -  http://jquery-howto.blogspot.com

 On Thu, Feb 5, 2009 at 7:42 PM, eagleon antonypei...@gmail.com wrote:

  I've been experiencing the same thing! I hop we can figure out a
  workaround...

  This also applies to the $(document).ready() event...

  does not work on dynamic pages.

  On Feb 5, 3:21 am, Code Daemon ryan.det...@gmail.com wrote:
  But $('#mydiv').load('my/page.html');works just fine.

  On Feb 5, 12:16 am, Dean Barker framejoc...@googlemail.com wrote:

   look at onLoad()

http://www.frameJockey.co.uk

  www.frameJockey.co.uk
   i...@framejockey.co.uk
   framejoc...@gmail.com
   framejoc...@yahoo.com
[image: Google Talk:] framejoc...@gmail.com [image: Y! messenger:]
   frameJockey

   2009/2/5 Code Daemon ryan.det...@gmail.com

When I use load(), it works fine for static pages but doesn't seem to
work for my dynamic page.

This is what I'm doing:

$('#mydiv').load('my/page');

FireBug shows that the response is coming back just as it should. Any
thoughts?


[jQuery] Re: dynamically building the for attribute

2009-02-06 Thread jQuery Lover

Ups, I missed the id's of checkboxes... My code was written for
checkboxes and label's both without id's...


Read jQuery HowTo Resource  -  http://jquery-howto.blogspot.com



On Thu, Feb 5, 2009 at 7:52 PM, Mauricio (Maujor) Samy Silva
css.mau...@gmail.com wrote:

 $('#my-form label').each(function() {
  var checkboxId = $(this).prev(':checkbox').attr('id')
  $(this).attr('for', checkboxId)


 Maurício

 -Mensagem Original- De: paulinstl paulsha...@gmail.com
 Para: jQuery (English) jquery-en@googlegroups.com
 Enviada em: quinta-feira, 5 de fevereiro de 2009 12:25
 Assunto: [jQuery] dynamically building the for attribute



 I have a series of labels and checkboxes.

 The checkboxes' IDs are generated on the fly, so I have no way of
 knowing the id at the server (without a lot of heavy lifting).

 I'd like to do this in jquery...

 here's what I have so far

 HTML
 input id=Checkbox1 type=checkbox value=x /labelsomething/
 labelbr /
 input id=Checkbox2 type=checkbox value=x /labelsomething/
 labelbr /
 input id=Checkbox3 type=checkbox value=x /labelsomething/
 labelbr /
 input id=Checkbox4 type=checkbox value=x /labelsomething/
 labelbr /

 jquery

 $(label).attr(for, $
 (this).somethingToGoHereToSetTheIdOfThePrevElement.text
 ()  );

 I'm missing the way to traverse this




[jQuery] Re: Select element based on a value of its child element

2009-02-06 Thread jQuery Lover

Most likely... you should submit a ticket: http://dev.jquery.com/


Read jQuery HowTo Resource  -  http://jquery-howto.blogspot.com



On Wed, Feb 4, 2009 at 9:24 PM, Stephan Veigl stephan.ve...@gmail.com wrote:

 Good point.

 I've just tested input[value=''] and got an error in jQuery.js. Just
 tested it with other HTML attributes and got the same results.
 Empty attributes are not selected with a element[attr] and doing a
 element[attr=''] results in an error.
 Is this a bug?


 by(e)
 Stephan


 2009/2/4 Adrian Lynch adely...@googlemail.com:

 Nice one! Should have spotted :has()...

 I've asked this in another thread but I'll slip it in here too, does
 the selector...

 input[value='']

 ... work for any of you?

 Adrian

 On Feb 4, 12:11 pm, Stephan Veigl stephan.ve...@gmail.com wrote:
 Hi,

 just a little remark: add a child selector '' before the 'input' or
 you will select surrounding divs as well.

 $(div:has(input[value='2']))

 by(e)
 Stephan

 2009/2/4 Mauricio (Maujor) Samy Silva css.mau...@gmail.com:



  $('div:has(input[value=2])')

  Maurício

  -Mensagem Original- De: Adrian Lynch adely...@googlemail.com
  Para: jQuery (English) jquery-en@googlegroups.com
  Enviada em: quarta-feira, 4 de fevereiro de 2009 09:22
  Assunto: [jQuery] Select element based on a value of its child element

  Hello all. I have the following...

  div
  input type=text value=1 /
  /div
  div
  input type=text value=2 /
  /div
  div
  input type=text value=3 /
  /div

  ... and I want to select the second div because its child input has a
  value of 2.

  I know I could select the input then come back to the div with parents
  (div). Just wondering if there's a way to do it in the selector
  string.

  More out of curiosity than need ;)

  Thanks.

  Adrian



[jQuery] Re: Need to make a edit layout system using php and jquery...?

2009-02-06 Thread jQuery Lover

Yeap. I suggest you add a save button so you make an ajax call only
once (when user decides to save his/her settings) and don't kill your
server ... :)


Read jQuery HowTo Resource  -  http://jquery-howto.blogspot.com



On Fri, Feb 6, 2009 at 5:01 AM, shyhockey...@gmail.com
shyhockey...@gmail.com wrote:

 Thanks... So I can save these values with php???

 Cause I plan to allow people to make their own profile page layout and
 need to save these values.

 On Feb 2, 7:11 am, jQuery Lover ilovejqu...@gmail.com wrote:
 To find positions and everything:http://docs.jquery.com/CSS

 
 Read jQuery HowTo Resource  -  http://jquery-howto.blogspot.com

 On Mon, Feb 2, 2009 at 3:19 AM, shyhockey...@gmail.com

 shyhockey...@gmail.com wrote:

  Hi, I am right now trying to make a edit layout  system.

  basicly I want to know how I can use jquery to  grab the height width
  and position elements are at.

  Cause I plan to make in the edit mode to allow users to move like
  images and tables and texts around on the layout and even change
  background images and add more artistic images for their profiles.

  I will add also a music player.

  So I need to know how I can grab all positions height and width of
  each element on my layout and then store that data.

  I am planning to make databases for users where I will store their
  edited stuff.

  So I need the x  and  y position of where the elements are at and also
  the height and width. Some told me I should  just grab what  css
  element of height and width and top and left of the elements using
  javascript.

  What would you suggest on how I should do it?

  Can I do it using jquery or no???

  Thanks for your time.


[jQuery] Re: Accessing object tag by id

2009-02-06 Thread jQuery Lover

You might wanna use this: http://jquery.thewikies.com/swfobject/

Or look into the code. May find clues there...


Read jQuery HowTo Resource  -  http://jquery-howto.blogspot.com



On Fri, Feb 6, 2009 at 1:11 PM, Olaf Gleba l...@creatics.de wrote:

 Sorry, but anyone has a clue ?

 Am 05.02.2009 um 11:43 schrieb Olaf Gleba:

 Couldn't find any appropriate answer: How do i point to a object tag by ID
 ?

 Example:
 object id=flashsitemap data=xxxn.swf
 param name=wmode value=transparent/
 /object

 $('#flashsitemap').event(function() { ... });

 This assumed syntax does not work obviously



 gruss
 Olaf

 --
 Olaf Gleba : creatics media.systems
 Tel. +49 (0)221 170 67 224 : Fax. +49 (0)221 170 67 225
 o...@creatics.de : http://www.creatics.de
 PGP-Key http://www.creatics.de/keys/

 Welcompose CMS - Einfach und Effizient
 http://www.welcompose.de






[jQuery] Re: ui draggable (option drag doesn't work)

2009-02-06 Thread jQuery Lover

I don't see a drag option in draggables documentation... or am i
missing anything here ???


Read jQuery HowTo Resource  -  http://jquery-howto.blogspot.com



On Fri, Feb 6, 2009 at 10:19 AM, Richard D. Worth rdwo...@gmail.com wrote:
 Which version of jQuery UI are you using?

 jQuery UI 1.5.3 is only compatible with jQuery 1.2.6
 jQuery UI 1.6rc6 is only compatible with jQuery 1.3+

 When these don't match, the most common error is callbacks not firing. If
 that's not your issue, please post a follow-up on the jQuery UI list

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

 Thanks.

 - Richard

 On Thu, Feb 5, 2009 at 8:26 PM, knight knight@gmail.com wrote:

 Hello,

 The question is why drag-option doesn't work ( options.drag = function
 (event,info) { alert('drag'); } )?
 Thanks in advance.

 !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN http://
 www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd
 html xmlns=http://www.w3.org/1999/xhtml;
 head
 meta http-equiv=Content-Type content=text/html; charset=utf-8 /
 titleScroll element/title
 style type=text/css
.scrollable {
overflow:hidden;
height:200px;
width:350px;
margin:100px auto;
}

.bloc {
margin:5px auto;
font-size:12px;
}

.scr_cnt_handle {
float:left;
height:100%;
border:1px solid #000;
}

.scr_body {
float:left;
overflow:hidden;
height:200px;
width:300px;
}

.ctr_handle {
width:20px;
height:40px;
background-color:#006699;
}
 /style

 script src=jquery-1.3.1.min.js type=text/javascript
 language=javascript/script
 script src=ui.core.js type=text/javascript
 language=javascript/script
 script src=ui.draggable.js type=text/javascript
 language=javascript/script

 script type=text/javascript language=javascript
 $(function(){
var options = {};
options.containment = 'parent';
options.axis = 'y';
   options.drag   = function(event,info) { alert('drag'); }

$('.ctr_handle').draggable(options);

 });
 /script
 /head

 body

div class=scrollable
div class=scr_body
div class=bloc
img src=FooterRevision.png width=60
 height=60
 style=float:left; /
Text some here text! Text some here text!
 Text some here text!
 Text some here text!
/div
div class=bloc
img src=InteriorPage1.png width=60
 height=60
 style=float:left; /
Text some here text! Text some here text!
 Text some here text!
 Text some here text!
/div
div class=bloc
img src=InteriorPage2.png width=60
 height=60
 style=float:left; /
Text some here text! Text some here text!
 Text some here text!
 Text some here text!
/div
div class=bloc
img src=FooterRevision.png width=60
 height=60
 style=float:left; /
Text some here text! Text some here text!
 Text some here text!
 Text some here text!
/div
/div
div class=scr_cnt_handle
div class=ctr_handle/div
/div

div style=clear:both;/div
/div

 /body
 /html




[jQuery] Re: Superfish Help

2009-02-06 Thread jQuery Lover

Create a dummy user for us so we could see it in action...


Read jQuery HowTo Resource  -  http://jquery-howto.blogspot.com



On Fri, Feb 6, 2009 at 9:16 AM, Aaron Gundel aaron.gun...@gmail.com wrote:

 if you're logged in?

 On Thu, Feb 5, 2009 at 5:32 PM, Josh joshua.d.mich...@gmail.com wrote:

 Hello,

 I have installed the Superfish module and can get it to display on my
 site, but I can't seem to get the drop-down to look good.  In fact it
 looks pretty awful.  Any help would be great.  You can see it at
 eslbasics.com




[jQuery] Re: Optimize large DOM inserts

2009-02-06 Thread jQuery Lover

That is true

I always suggest using built in for() loop with huge data sets... and
people keep ignoring me :)))


Read jQuery HowTo Resource  -  http://jquery-howto.blogspot.com



On Fri, Feb 6, 2009 at 8:25 AM, Michael Geary m...@mg.to wrote:

 ...there is not much room for improvement left.

 You just know that when you say that, someone will come along with a 20x-40x
 improvement. ;-)

 http://mg.to/test/loop1.html

 http://mg.to/test/loop2.html

 Try them in IE, where the performance is the worst and matters the most.

 On my test machine, the first one runs about 6.3 seconds and the second one
 about 0.13 seconds.

 -Mike

 From: Ricardo Tomasi

 Concatenating into a string is already much faster than
 appending in each loop, there is not much room for
 improvement left. What you can do improve user experience
 though is split that into a recursive function over a
 setTimeout, so that the browser doesn't freeze and you can
 display a nice loading animation.


 On Feb 5, 5:03 pm, James james.gp@gmail.com wrote:
  I need tips on optimizing a large DOM insert to lessen the
 freeze on
  the browser.
 
  Scenario:
  I receive a large amount of JSON 'data' through AJAX from a
 database
  (sorted the way I want viewed), and loop through them to
 add to a JS
  string, and insert that chunk of string into a tbody of a
 table. Then,
  I run a plug-in that formats the table (with pagination, etc.).
  Simplified sample code:
 
  var html = '';
  $.each(data, function(i, row) {
   html += 'trtddata from json/td/tr';});
 
  $(tbody).append(html);
  $(table).formatTable();
 
  formatTable() requires that the table has to be completed
 before it
  can be executed.
  Is there any way I can optimize this better? I think I've read
  somewhere that making a string too long is not good, but I've also
  read that updating the DOM on each iteration is even worst.
 
  Any advice would be appreciated!





[jQuery] Re: Superfish

2009-02-06 Thread jQuery Lover

Yeap, there are multiple ul in the sub menu and the rest of trick is
done with CSS.

ul#topnav .menu ul.sub_nav {
  margin:0 10px 0 0;
  padding:0;
  width:130px;
}

Giving each sub navigation ul a fixed width and floating it to the left.


Read jQuery HowTo Resource  -  http://jquery-howto.blogspot.com



On Fri, Feb 6, 2009 at 7:42 AM, uztha4c uzth...@gmail.com wrote:

 just take a look at the source code for the site...basically it looks
 like this:
 li class=nav_pressa href=/briefing_room/
 class=nav_itemspanThe Briefing
Room/span/a
div class=menu
ul class=sub_nav
lia href=/blog/The Blog/a/li
lia href=/weekly_address/Your Weekly Address/a/
 li
lia href=/slideshows/Slideshows/a/li
lia href=/briefing_room/PressBriefings/Press
 Briefings/a/li
lia href=/briefing_room/OfficialStatements/Official
 Statements/a/li
/ul
ul class=sub_nav
lia href=/briefing_room/PressReleases/Press
 Releases/a/li
lia href=/briefing_room/
 PresidentialActions/Presidential Actions/a/li
lia href=/briefing_room/
 nominations_and_appointments/Nominations amp; Appointments/a/li
/ul
div class=clear
nbsp;/div
/div
 /li

 then look at the style.css stylesheet. then check out the js in the
 jquery-plugins.js file related to superfish.

 On Feb 5, 5:41 pm, Mario designsdr...@gmail.com wrote:
 thanks for the response.  Any idea where I can get some code that will
 allow me to create such navigation system?  I'd appreciate the
 information.

 On Feb 4, 7:37 pm, Joel Birch joeldbi...@gmail.com wrote:

  Hello,

  I think that it's simply a matter of including multiple ul elements
  inside the parent li, then floating them alongside each other
  (obviously they will need a width to be set). I've seen this work and
  have experimented with it myself in the past to be sure that it does
  work, but I don't have any examples to show you unfortunately.

  Joel.



[jQuery] Re: Checkbox selection

2009-02-06 Thread jQuery Lover

Something like this might help:

$('table tr').click(function(e){
if( $(e.target).is('td') ){
$('input:checkbox', this).attr('checked', 'checked');
}
});


Read jQuery HowTo Resource  -  http://jquery-howto.blogspot.com



On Fri, Feb 6, 2009 at 7:40 AM, Sam Hastings sam.hasti...@gmail.com wrote:

 Hi everyone,

 I've got an HTML table like this:

 table
tr
tdFoo/td
tdBar/td
tdBaz/td
tdinput type=checkbox //td
/tr
 /table

 What I'd like to do is toggle the checkbox's checked state when any of
 the cells in its row are clicked. I've tried this a thousand different
 ways and can't get it working and was wondering if someone here would
 be kind enough to help.

 Many thanks :-)

 Sam Hastings


[jQuery] Re: General Question RE: Using jQuery with Wordpress

2009-02-06 Thread jQuery Lover

There is still a js error in your onAfter() function.

You have jQuery.noConflict(); set and using $('.imgcap').

My 2 cents.


Read jQuery HowTo Resource  -  http://jquery-howto.blogspot.com



On Fri, Feb 6, 2009 at 4:09 PM, MH1988 m.lawrencehu...@gmail.com wrote:

 I honestly cannot believe but I've made it work. This has been
 troubling so much and it's finally worked. What I don't understand is
 why it did not work in the first place. I also think one important
 reason I just discovered that you had to load all your CSS files
 before the jQuery script/s. Which may have been the reason why it was
 not loading the plugin. Now, I've just link the jQuery framework from
 the jQuery website and it's working!

 On Feb 6, 9:39 pm, MH1988 m.lawrencehu...@gmail.com wrote:
 Many thanks for your response. Here is the page I have tried to
 attempt making the jQuery Cycle plugin work correctly: a 
 href=http://www.culturesinbetween.net/NEWWEBSITE/archives/299;website/a

 1. The first thing I did was add the scripts in my Wordpress theme's
 header.php:

 ?php wp_enqueue_script('jquery'); ?

 script type='text/javascript' src='http://www.shapemould.com/
 culturesinbetween/NEWWEBSITE/wp-content/themes/sirup/
 jquery.cycle.all.js'/script

 script type='text/javascript'
 jQuery(document).ready(function(){
 jQuery('#frame1').cycle({
 fx:'fade',
 speed:'2000',
 timeout: 0,
 next:'#next2', prev:'#prev2'});
 });
 /script

 2. Within the Wordpress post page (Add New Post), I added the
 following (selecting HTML of course):

 div id=imgframe
 div id=frame1 class=pics
 img src=http://www.culturesinbetween.net/NEWWEBSITE/wp-content/
 uploads/arnsdorfss09_f.jpg / img 
 src=http://www.culturesinbetween.net/NEWWEBSITE/wp-content/uploads/arnsdorfss09_...;
 /
 /div
 a id='prev2' href='#'Prev/a | a id='next2' href='#'Next/a
 /div

 I did not define any CSS for #frame1. However I defined .pics with:

 .pics {
 width: 200px;
 height: 200px;
 overflow: hidden;

 }

 The results is that the page seems to display the correct CSS styling
 and loads jQuery but I am suspecting that it does not load the jQuery
 plugin.

 Can I ask if there is a solution to make the the image cycle work?

 On Feb 6, 6:45 pm, jQuery Lover ilovejqu...@gmail.com wrote:

  jQuery works just fine with wordpress. There is nothing in wordpress
  that may conflict with jquery. Moreover, wordpress admin panel uses
  jquery.

  Can you post a link to your page, so we could look into it and try to
  find out what's causing the problem...

  
  Read jQuery HowTo Resource  -  http://jquery-howto.blogspot.com

  On Fri, Feb 6, 2009 at 11:48 AM, MH1988 m.lawrencehu...@gmail.com wrote:

   I just wanted to ask in general if using jQuery inconjunction with
   Wordpress does actually work? I'm pretty sure if jQuery (attached with
   a jQuery plugin) would work if it was to be included on the frontpage
   (index.php) but maybe not for individual Wordpress posts? It's has
   been quite a mountain to see if jQuery would work at all as I was
   trying to use the Cycle plugin for a simple prev/next image slideshow
   but to no avail. changing the script to jQuery () didn't work either.

   I've decided to use Lightbox which uses the Prototype framework and
   that does work but prefer images within ul's and li's with a div
   overflow: hidden than Lightbox.


[jQuery] Re: 1.3, live events, and iphone

2009-02-06 Thread jQuery Lover

What device are you using, and what browser ?


Read jQuery HowTo Resource  -  http://jquery-howto.blogspot.com



On Fri, Feb 6, 2009 at 4:14 PM, yad...@gmail.com yad...@gmail.com wrote:


 hi all,

 I am having problems getting live events with jquery 1.3.1 to work on
 the phone ... it works ok on safari (windows), but not on the device
 itself.

 I would appreciate any tips, help, info ...

 thanks !
 Roger



[jQuery] Re: What is the best option to make this modal???

2009-02-06 Thread jQuery Lover

There are dependencies with jQuery UI dialog. You better use one of
the other lightweight and simple modal boxes without all unnecessary
functionality...

http://www.google.com/search?q=jquery+modal+plugin


Read jQuery HowTo Resource  -  http://jquery-howto.blogspot.com



On Fri, Feb 6, 2009 at 6:44 PM, AndreMiranda acymira...@gmail.com wrote:

 Hi Stephan!!

 But, can jQuery Dialog interact dynamically like I need in my
 project??

 Thanks!!

 André




 On 6 fev, 11:28, Stephan Veigl stephan.ve...@gmail.com wrote:
 Hi André,

 have you tried the jQuery UI Dialog widget?

 by(e)
 Stephan

 2009/2/6 AndreMiranda acymira...@gmail.com:



  Hi everyone!!

  Can you guys tell me the best way to do this? I have a page which
  lists several tasks of a person. And when you roll over one task, a
  popup/modal/tip will appear and dynamically will get all information
  about this task.

  What are the best plugins to make this? The best way...

  Thanks in advance!!

  André


[jQuery] Re: 1.3, live events, and iphone

2009-02-06 Thread jQuery Lover

Opsy, my bad. Did not see the title that says iPhone...

I suggest using event delegation:
www.learningjquery.com/2008/03/working-with-events-part-1


Read jQuery HowTo Resource  -  http://jquery-howto.blogspot.com



On Fri, Feb 6, 2009 at 5:45 PM, jQuery Lover ilovejqu...@gmail.com wrote:
 What device are you using, and what browser ?

 
 Read jQuery HowTo Resource  -  http://jquery-howto.blogspot.com



 On Fri, Feb 6, 2009 at 4:14 PM, yad...@gmail.com yad...@gmail.com wrote:


 hi all,

 I am having problems getting live events with jquery 1.3.1 to work on
 the phone ... it works ok on safari (windows), but not on the device
 itself.

 I would appreciate any tips, help, info ...

 thanks !
 Roger




[jQuery] Re: Several questions regarding jQuery Approach...

2009-02-06 Thread jQuery Lover

1. you can acces them like this $('tr td', this).each(...); Also see
here for custom plugins and functions:
http://jquery-howto.blogspot.com/search/label/plugin

2. when you use $('table') you'll get a selection of all tables. If
you do this you would get the same object instance:

var $table = $('table');
$table.table();
$table.TableSetTitles({col1:test, col3: test3, col5: notexist});

3. if a function takes an argument pass it a $table as parameter ...
(give us a concrete example, and we could give a proper answer to this
question...)


Read jQuery HowTo Resource  -  http://jquery-howto.blogspot.com



On Sat, Feb 7, 2009 at 10:22 AM, ShurikAg shuri...@gmail.com wrote:

 Hi,

 1.
 Assume that there is a table on a page:
 table
  tr
td/td
td/td
  /tr
 /table

 and I'm using jQuery to manipulate this table by:
 $(table).table();

 What is the right way of accessing td elements inside the function:
 (function(jQ) {
   jQ.fn.table = function(options, titles, data){
   ...
   ...
   }
 })(jQuery);

 2.
 When I'm accessing the same table outside of plugin, like this:
$(table).table();
$(table).TableSetTitles({col1:test, col3: test3, col5: 
 not
 exist});
 Do I actually accessing the same object instance? If not, what is the
 right way of doing it?

 3.
 If I need to use additional jQuery object (.ajax for instance) by
 passing the table object to it; what is the right way of doing it?

 Thank you in advance.


[jQuery] Re: HELP, how to catch these elements ?

2009-02-06 Thread jQuery Lover

To select all tables: $('.cbFieldsContentsTab') OR $('.cbFields')

To select all divs: $('.tab-content') OR $('.cb_tab_conten') OR
$('.cb_tab_tab_main')

To select all tables AND divs: $('.cbFields, .tab-content')


Read jQuery HowTo Resource  -  http://jquery-howto.blogspot.com



On Sat, Feb 7, 2009 at 9:33 AM, Ayan ios...@gmail.com wrote:

 Hello,

 I need a help to catch these HTML elements -

 Elements -
 table class=cbFieldsContentsTab cbFields id=cbtf_46/table
 table class=cbFieldsContentsTab cbFields id=cbtf_2/table
 table class=cbFieldsContentsTab cbFields id=cbtf_21/table
 table class=cbFieldsContentsTab cbFields id=cbtf_11/table
 table class=cbFieldsContentsTab cbFields id=cbtf_20/table

 div class=tab-content cb_tab_content cb_tab_tab_main
 id=cb_tabid_40/div
 div class=tab-content cb_tab_content cb_tab_tab_main
 id=cb_tabid_24/div

 What will be the statement ?
 $


[jQuery] Re: traversing ajax response with .find in Safari/Chrome

2009-02-06 Thread jQuery Lover

var newItem=$(div#item, response).html();


Read jQuery HowTo Resource  -  http://jquery-howto.blogspot.com



On Sat, Feb 7, 2009 at 9:02 AM, pedalpete p...@hearwhere.com wrote:

 I'm trying to get a div from an html ajax response.
 my code is pretty simple

 [code]
success: function(response){

var 
 newItem=$(response).find(div#item).html();

alert(newItem);
 }
 [/code]

 This works fine in FF and IE, but Chrome and Safari both return null.

 I'm trying to find another way to write that, but It all seems pretty
 straight forward to me.
 Is there another way to get this other than .find?


[jQuery] Re: please help me for the performance

2009-02-06 Thread jQuery Lover

Removing image reflection might improve performance...


Read jQuery HowTo Resource  -  http://jquery-howto.blogspot.com



On Sat, Feb 7, 2009 at 2:58 AM, David .Wu chan1...@gmail.com wrote:

 url: http://chan.idv.tw:90/test/marquee/marquee.html
 rar: http://chan.idv.tw:90/test/marquee/marquee.rar

 Hi, this is a image marquee to display the product, I feel a little
 bit lag when mouse over the image from left to right at the same time,
 please help me to improve the performance.


[jQuery] Re: Hover in a loaded page stopped working??

2009-02-05 Thread jQuery Lover

 $(#content).load(showContent.php, UI());

You are calling UI() function. Omit the () for callback...


Read jQuery HowTo Resource  -  http://jquery-howto.blogspot.com



On Thu, Feb 5, 2009 at 2:05 PM, 123gotoandplay wesweatyous...@gmail.com wrote:

 Hi all,

 I am stuck with this in a page showContent.php i have

 code$(document).ready(function() {
$(table#test tr.edit).hover(function(){$(this).addClass
 (hover);},function(){$(this).removeClass(hover);});

  });/code

 and this works in showContent.php. Just a simple grey background color
 on rollover

 But when i load showContent.php like so
 code
 $(document).ready(function() {
$(#content).css(overflow-y, hidden);
$(#show).click(function() {
$(#content).css(overflow-y, scroll);
$(#content).load(showContent.php);
});
 });/code

 the hover color stop working???

 edit
 i am trying a callback function without success

 $(#content).load(showContent.php, UI());

 function UI() {
alert('reini');
$(#content table#test tr.edit).hover(function(){$(this).addClass
 (hover);},function(){$(this).removeClass(hover);});
   }

 Any tips?



[jQuery] Re: dynamically building the for attribute

2009-02-05 Thread jQuery Lover

Do this:

$('label').each(function(i){
  $(this).attr('for', i).prev().attr('id', i);
});


Read jQuery HowTo Resource  -  http://jquery-howto.blogspot.com



On Thu, Feb 5, 2009 at 7:25 PM, paulinstl paulsha...@gmail.com wrote:

 I have a series of labels and checkboxes.

 The checkboxes' IDs are generated on the fly, so I have no way of
 knowing the id at the server (without a lot of heavy lifting).

 I'd like to do this in jquery...

 here's what I have so far

 HTML
 input id=Checkbox1 type=checkbox value=x /labelsomething/
 labelbr /
 input id=Checkbox2 type=checkbox value=x /labelsomething/
 labelbr /
 input id=Checkbox3 type=checkbox value=x /labelsomething/
 labelbr /
 input id=Checkbox4 type=checkbox value=x /labelsomething/
 labelbr /

 jquery

 $(label).attr(for, $
 (this).somethingToGoHereToSetTheIdOfThePrevElement.text
 ()  );

 I'm missing the way to traverse this


[jQuery] Re: jQuery query string implementation

2009-02-05 Thread jQuery Lover

Agree, that would be something useful... but it's better to have it as
a plugin, since you don't need it for the most of the time...


Read jQuery HowTo Resource  -  http://jquery-howto.blogspot.com



On Thu, Feb 5, 2009 at 7:44 PM, Matt Gardner lo...@newmethods.org wrote:
 John and crew, was curious for your opinion related to storing query string
 variables in an array (and perhaps expanding to capture key/value pairs
 beyond the # as well). Something worthwhile to have in the core?
 http://stackoverflow.com/questions/439463/how-to-get-get-and-post-variables-with-jquery/453688#453688

 -- Matt


[jQuery] Re: load() not loading my dynamic page

2009-02-05 Thread jQuery Lover

Maybe it's related to wrong content type being sent by your server !!!


Read jQuery HowTo Resource  -  http://jquery-howto.blogspot.com



On Thu, Feb 5, 2009 at 7:42 PM, eagleon antonypei...@gmail.com wrote:

 I've been experiencing the same thing! I hop we can figure out a
 workaround...

 This also applies to the $(document).ready() event...

 does not work on dynamic pages.

 On Feb 5, 3:21 am, Code Daemon ryan.det...@gmail.com wrote:
 But $('#mydiv').load('my/page.html');works just fine.

 On Feb 5, 12:16 am, Dean Barker framejoc...@googlemail.com wrote:

  look at onLoad()

   http://www.frameJockey.co.uk

 www.frameJockey.co.uk
  i...@framejockey.co.uk
  framejoc...@gmail.com
  framejoc...@yahoo.com
   [image: Google Talk:] framejoc...@gmail.com [image: Y! messenger:]
  frameJockey

  2009/2/5 Code Daemon ryan.det...@gmail.com

   When I use load(), it works fine for static pages but doesn't seem to
   work for my dynamic page.

   This is what I'm doing:

   $('#mydiv').load('my/page');

   FireBug shows that the response is coming back just as it should. Any
   thoughts?


[jQuery] Re: treeview custom icon

2009-02-05 Thread jQuery Lover

I thinks the plugin already added the image, so you have to replace
it. As far as I can remember treeview adds icons using CSS so you
should give to the entry a specific id/class and specify a new icon in
your CSS file...


Read jQuery HowTo Resource  -  http://jquery-howto.blogspot.com



On Thu, Feb 5, 2009 at 6:50 PM, Mohd.Tareq tareq.m...@gmail.com wrote:
 Yes it is possible .
 suppose u have a tree [ A ] Branches are [ B,C,D ]
 then if u wana add icon on B branch , then give a id of B branch div
 $('#Bid').prepend('img src=... /');
 hope this will help u.
 regards
 Ragx.

 On Thu, Feb 5, 2009 at 6:52 PM, viklund_anders viklund_and...@hotmail.com
 wrote:

 Hi I would like to have a custom icon for one specific entry in the
 tree, is this possible?

 Thanks!


 --
 ---| Regard |---

 Mohd.Tareque



[jQuery] Re: Optimized Function to transfer Array to Listbox

2009-02-05 Thread jQuery Lover

Use simple old javascript. jQuery is a great framework, but sometimes
plain javascript is better, your case is an example... (IMO)


Read jQuery HowTo Resource  -  http://jquery-howto.blogspot.com



On Fri, Feb 6, 2009 at 11:49 AM, JQueryProgrammer
jain.ashis...@gmail.com wrote:

 I have two array of items containing the values and text to be
 inserted in a Listbox. I had written the function as:

 array2Listbox = function(objListBox, arrValue, arrText) {
var oNewOption;

return jQuery.each(arrValue, function(i) {
oNewOption = new Option(arrText[i], arrValue[i]);
objListBox[objListBox.length] = oNewOption;
});
 };

 However I know jQuery would be much slower than direct for loop in
 this case where the array size is approx 6000 elements. Can anyone
 tell me a faster way to loop through the array and insert the elements
 in Listbox.


[jQuery] Re: General Question RE: Using jQuery with Wordpress

2009-02-05 Thread jQuery Lover

jQuery works just fine with wordpress. There is nothing in wordpress
that may conflict with jquery. Moreover, wordpress admin panel uses
jquery.

Can you post a link to your page, so we could look into it and try to
find out what's causing the problem...


Read jQuery HowTo Resource  -  http://jquery-howto.blogspot.com



On Fri, Feb 6, 2009 at 11:48 AM, MH1988 m.lawrencehu...@gmail.com wrote:

 I just wanted to ask in general if using jQuery inconjunction with
 Wordpress does actually work? I'm pretty sure if jQuery (attached with
 a jQuery plugin) would work if it was to be included on the frontpage
 (index.php) but maybe not for individual Wordpress posts? It's has
 been quite a mountain to see if jQuery would work at all as I was
 trying to use the Cycle plugin for a simple prev/next image slideshow
 but to no avail. changing the script to jQuery () didn't work either.

 I've decided to use Lightbox which uses the Prototype framework and
 that does work but prefer images within ul's and li's with a div
 overflow: hidden than Lightbox.


[jQuery] Re: jquery.combobox jumping in internet explorer

2009-02-05 Thread jQuery Lover

You were probably using jquery 1.3.1 and dimensions plugin. Dimensions
plugin has been included into the jquery core since 1.2.(don't
remember:) )

That is probably the source of the problem...


Read jQuery HowTo Resource  -  http://jquery-howto.blogspot.com



On Fri, Feb 6, 2009 at 12:05 PM, amay0048 anthonyj...@gmail.com wrote:

 used this instead, tested and working cross browser

 http://info.wsisiz.edu.pl/~suszynsk/jQuery/demos/jquery-selectbox/


[jQuery] Re: What is difference between ADO and RDO

2009-02-05 Thread jQuery Lover

This is all spam I guess ...


Read jQuery HowTo Resource  -  http://jquery-howto.blogspot.com



On Fri, Feb 6, 2009 at 11:39 AM, Charlie Griefer
charlie.grie...@gmail.com wrote:
 heh... i searched google, but searched the web.  didn't search groups :)

 On Thu, Feb 5, 2009 at 10:36 PM, Michael Geary m...@mg.to wrote:

 And let me Google that for you:

 http://groups.google.com/groups?q=agile.scrapping%40gmail.com

 -Mike

 
 From: Charlie Griefer
 Sent: Thursday, February 05, 2009 9:00 PM
 On Thu, Feb 5, 2009 at 8:57 PM, Agile Consulting
 agile.scrapp...@gmail.com wrote:

 Explain ADO and RDO

 http://letmegooglethatforyou.com/?q=ado%20rdo

 --
 I have failed as much as I have succeeded. But I love my life. I love my
 wife. And I wish you my kind of success.



 --
 I have failed as much as I have succeeded. But I love my life. I love my
 wife. And I wish you my kind of success.



  1   2   3   >