[jQuery] Changing the Cell Colors in DatePicker

2009-04-29 Thread Code Daemon

I've tried to two different datepicker scripts and what I'm trying to
do is hilite which dates satisfy a certain condition.

For example, when the page loads I will make a JSON call to the server
to return all dates that are holidays, then on the inline datepicker I
want to hilite those cells in red.

What I'm doing now is something like this in the JQuery-UI datepicker
implementation but nothing works:

'onChangeMonthYear':
function(date){
$(.ui-state-default).each(
function(){
$(this).attr(color, 
red);  //for testing, change font color
}
);
}

});



[jQuery] Re: datepicker highlight individual days

2009-04-29 Thread Code Daemon

I'm having the same problem. It makes sense to hilite individual days
because those days might be important.



On Apr 7, 7:04 am, MorningZ morni...@gmail.com wrote:
 That doesn't make any sense

 the control by default is looking for the user to choose one
 individual day

 On Apr 7, 8:15 am, Danny dannyt...@gmail.com wrote:

  Hi,

  Is there a way to highlight or enable for selection individual days
  ( not a range of days )  in adatepicker?

  Thanks in advance,
  Danny


[jQuery] Re: Simple next/prev controls for select

2009-04-29 Thread René

Thanks!

On Apr 28, 3:53 pm, Charlie Griefer charlie.grie...@gmail.com wrote:
 On Tue, Apr 28, 2009 at 1:56 PM, René renefourn...@gmail.com wrote:

  Assuming:

  select id=selector
  option value=0 selected=selectedBoth/option
  option value=1Red/option
  option value=2Blue/option
  option value=3Green/option
  /select

  a id=prevPrev/a
  a id=nextNext/a

  Just wondering if someone has figured a simple jQuery function for
  moving through the a select list (using the above type of controls).
  The idea is that the Prev anchor would disappear if the first option
  is selected, and that the Next ancor would disappear if/when the last
  option is selected.

 Well, I don't know if this is simple per se... but here's what i got:

 script src=jquery-1.3.2.min.js/script

 script type=text/javascript
         $(document).ready(function() {
                 $('#prev,#next').click(function() {
                         var selector= $('#selector')[0];
                         var kids        = $('#selector').children();

                         $('#prev,#next').css('visibility','visible');

                         if (this.id == prev) {
                                 selector.selectedIndex--;
                                 if (selector.selectedIndex == 0) 
 $('#prev').css('visibility','hidden');
                         } else {
                                 selector.selectedIndex++;
                                 if (selector.selectedIndex == kids.length-1)
 $('#next').css('visibility','hidden');
                         }
                 });
         });
 /script

 select id=selector
         option value=0 selected=selectedBoth/option
         option value=1Red/option
         option value=2Blue/option
         option value=3Green/option
 /select

 a id=prevPrev/a
 a id=nextNext/a

 That's without manipulating your markup at all.  The only thing that
 would need attention is that the Prev anchor displays when the page
 loads.

 FWIW, I could have gone with hide() and show() instead of
 .css('visibililty', 'hidden') and .css('visibility','visible').
 Except hide() and show() are effectively display:none; and
 display:block;, both of which remove the elements from the page flow.
 Thought it was a little hinky for the 'anchors' to move.

 how you finalize it is up to you, but hopefully this gets you a decent
 head start.

 --
 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.


[jQuery] Point of loading the google maps api file

2009-04-29 Thread heohni

Hi,

sorry, I may blind...

span id=gmap style=display:none
script src=http://maps.google.com/maps?file=apiv=2key=
 stuff to load the map details
/span

a class=plainPopup href=#gmapshow map/a


When I load the page, the google api file is also loading, even I
don't need it.
I would like to load it only, if the user has clicked the map link to
open the map.
How can I do this?

My jquery file looks like this:
$(document).ready(function() {
$('.plainPopup').click(function() {
. how can I add here the inlcude of the api file?

Thanks for help!!!

Bye
Heidi



[jQuery] Re: Simple problem with createElement

2009-04-29 Thread Code Daemon

The main problem is, since the fields can be updated very quickly.
There could be multiple sending. . . tags next to input boxes. With
the fadeout, this will produce strange results if I just move it
around.

Also, I just tried the method you described and it only works the
first time.


On Apr 28, 7:27 pm, brian bally.z...@gmail.com wrote:
 You're not actually removing the span, though. It might be better to
 create it once, then move it wherever as needed.

 // inside $(document).ready()

 $('span').attr(id, fieldstatus)
         .addClass(fieldstatus)
         .appendTo('body');

 ...

 // inside your event handler
 $('#fieldstatus')
         .remove()
         .html(sending . . .)
         .appendTo( $(this).parent() );

 On Tue, Apr 28, 2009 at 10:10 PM, Code Daemon ryan.det...@gmail.com wrote:

  I am creating an element with createElement and then appending it to a
  table and then after a few seconds, deleting it with a call to empty
  (). This works fine

  The problem seems to be that every time I create the element, I am
  creating it with the same id and after a few iterations, it fails. It
  will append the element to the table, but will not fadeout or delete
  the element properly.

                                 var obj = document.createElement('span');
                                 $(obj).attr(id, fieldstatus)
                                         .addClass(fieldstatus)
                                         .html(sending . . .)
                                         .appendTo( $(this).parent() );

                                 $.post('main/submit', {date: 
  $(#caldate).val(), fieldname: $
  (this).attr(id), value: $(this).val() },
                                         function(json){
                                                 
  $(#fieldstatus).html(json.status);
                                                 setTimeout(function(){
                                                                 
  $(#fieldstatus).fadeOut(2000, function(){
                                                                              
                             $(#fieldstatus).empty();
                                                                              
                             });
                                                         },
                                                 1000);
                                         },
                                         json
                                 );


[jQuery] var set outside ajax call is not reachable

2009-04-29 Thread heohni

Hi,
for some reason I don't the problem...
This is part of a form check. I check the captcha code and it returns
me a 0 - the test has failed.
I set = hasError = true;
I alert hasError  and it returns false and therefore the next ajax
function runs, which is not what I want...

Why is the 'hasError = true;'  is not avialable out side the ajax
call?

var codeVal = $(#code).val();
$.ajax({
type: POST,
url: inc/captcha/captcheck.php,
data: code=+codeVal,
success: function(msg){
//alert(msg);
if(msg == 0){
$(#code).after('span 
class=errorBitte überprüfen Sie Ihre
Eingabe./span');
hasError = true;
}
}

});
alert(hasError);

if(hasError == false) {
$(this).hide();
$.ajax({
type: POST,
url: inc/sendemail.php,
data: 
name=+nameVal+email=+emailToVal+subject=+subjectVal
+message=+messageVal,
success: function(msg){
//alert(msg);
$(#sendEmail).slideUp(normal, 
function() {
$(.blue).hide();

$(#sendEmail).before('h1Vielen Dank!/h1pIhre Email wurde
an uns gesendet./p');
});
}

});
}


[jQuery] Re: Can I use more than one JQuery code on a page at a time?

2009-04-29 Thread Liam Potter


What version of the coda slider are you using?

SPWebcreations wrote:

Brian thanks for the reply! However... If I take away the Jquery.js
and keep the jquery.1.3.2 the coda slider will stop working and the
navigation will start working...
Here is the link to the actual page that has the code...
www.txenergysaving.com/audits/

Thanks for your help!
Scott
  


[jQuery] Re: buggy .add()

2009-04-29 Thread KidsKilla .grin! wuz here
Ouch. Of course! Thank you =)

2009/4/28 MorningZ morni...@gmail.com


 if smt is supposed to mean something, then yes you did

 e2 = document.getElementById('xxx'),

 won't get this HTML

 div id=#xx/div

 as the ID is not xxx, you have #xxx

 div id=xx/div

 would be had with

 e2 = document.getElementById('xxx'),



 On Apr 28, 7:43 am, KidsKilla kidski...@gmail.com wrote:
  Hi there!
 
  Maybe I missed smt, but seems like this is a bug:
 
  div id=#xx/div
  div id=#yy/div
 
  script type=text/javascript src=jquery.js/script
  script type=text/javascript
  var e1 = document.getElementById('yyy'),
  e2 = document.getElementById('xxx'),
  $e = $(e1);
  alert($e.length);
  $e.add(e2); // or $e = $e.add(e2);
  alert($e.length);
  /script




-- 
Максим Игоревич Гришаев,
AstroStar.ru


[jQuery] Re: Changing the Cell Colors in DatePicker

2009-04-29 Thread MOZ

Try
$(this).css({'background-color':'', 'color':''});

http://docs.jquery.com/CSS/css#namevalue


On Apr 29, 11:40 am, Code Daemon ryan.det...@gmail.com wrote:
 I've tried to two different datepicker scripts and what I'm trying to
 do is hilite which dates satisfy a certain condition.

 For example, when the page loads I will make a JSON call to the server
 to return all dates that are holidays, then on the inline datepicker I
 want to hilite those cells in red.

 What I'm doing now is something like this in the JQuery-UI datepicker
 implementation but nothing works:

                 'onChangeMonthYear':
                                 function(date){
                                         $(.ui-state-default).each(
                                                 function(){
                                                         $(this).attr(color, 
 red);  //for testing, change font color
                                                 }
                                         );
                                 }

                         });


[jQuery] Re: Point of loading the google maps api file

2009-04-29 Thread Liam Potter


take the api stuff out of the document flow, and insert it with append 
(or a similar function). when the user clicks.


heohni wrote:

Hi,

sorry, I may blind...

span id=gmap style=display:none
script src=http://maps.google.com/maps?file=apiv=2key=
 stuff to load the map details
/span

a class=plainPopup href=#gmapshow map/a


When I load the page, the google api file is also loading, even I
don't need it.
I would like to load it only, if the user has clicked the map link to
open the map.
How can I do this?

My jquery file looks like this:
$(document).ready(function() {
$('.plainPopup').click(function() {
. how can I add here the inlcude of the api file?

Thanks for help!!!

Bye
Heidi

  


[jQuery] Re: Help About Using JQuery With Struts 2

2009-04-29 Thread Steven Yang
hi
this might just be your typo but isnt url: /AddNewClient suppose to
be url: /AddNewClient.do or .action?

first of all, since your using ajax and it shouldnt have anything to do with
form, so just to be on the save side i would change your button from
type=submit to type=button since you dont really want to submit the form
after all.

one thing i noticed is that the data attribute. isnt it suppose to be a
javascript Object? and not a string?
you can simply do
var data = {'loginClient' : loginClient,
'passwordClientError' : passwordClientError,'passwordClient2'
:passwordClient2
}

 $.ajax({
   type: POST,
   url: AddNewClient.do,
   data: data,
   success: function() {
  $('#Great').html('Great It\'s Done');
   }
 });

 //   alert (dataString);
   return false;

  });
 });

try these changes and see if you get anything


[jQuery] XMLDOM extension plugin for jQuery

2009-04-29 Thread Jeffrey

I found that appending XML string as XML node will fail in IE, so I
wrote a small plugin to solve the problem, here is my post:
http://blog.darkthread.net/blogs/darkthreadtw/archive/2009/04/29/jquery-xmlext-plugin.aspx.
Feel free to give me some feedback.


[jQuery] Re: Treeview Plugin -- What are the options???

2009-04-29 Thread Jörn Zaefferer

The documentation is here: http://docs.jquery.com/Plugins/Treeview
Options is here: http://docs.jquery.com/Plugins/Treeview/treeview#toptions

Jörn

On Wed, Apr 29, 2009 at 5:27 AM, Marv mcslay...@gmail.com wrote:

 The documentation doesn't seem to detail the optoins and the demos use
 some but without any explanation of what options and settings are
 available. For example, what does 'Unique:' mean? Or 'Control:'?


[jQuery] Re: Help About Using JQuery With Struts 2

2009-04-29 Thread Steven Yang
one more thing if you want to ajax submit a form you might want to take a
look at a great plugin
http://malsup.com/jquery/form/


[jQuery] I need WordFilter functionality, but cumulative

2009-04-29 Thread Su

Hi, all.
I've got a bit of a problem I hope is small(ish?) that I was hoping to
get a hand with.

I've got a layout I need to build where a user will initially be
presented with a list of options that they'll then be able to whittle
down by using tag-like terms. To accomplish that, I found the
WordFilter plugin[1] which does everything I need, except for one
problem: it fulfills the requirements in two separate implementations.

The actual wordFilter() function provides for creating a list of links
that will remove items containing the link word. But as far as I can
tell, each term is exclusive.
The autoSearch() function does do filtering, but works via a textbox,
which I don't want.

Given that the underlying /functionality/ is already provided, is
there some way to semi-easily combine the two processes into exactly
what I'm trying to accomplish? I've also found the uiTableFilter
plugin which works like autoSearch() if that's any easier to work with
for any reason.

If this is more involved to make happen than it appears to me, I'm
happy to discuss throwing some money/books/beer your way.

I'd also welcome the suggestion of some other plugin that already
works exactly like this that I may not have found already.
Thanks for any help.




[1] http://people.apache.org/~gmonroe/wordFilter/index.html
[2] http://gregweber.info/projects/demo/flavorzoom.html


[jQuery] Re: Simple next/prev controls for select

2009-04-29 Thread RobG



On Apr 29, 6:56 am, René renefourn...@gmail.com wrote:
 Assuming:

 select id=selector
 option value=0 selected=selectedBoth/option
 option value=1Red/option
 option value=2Blue/option
 option value=3Green/option
 /select

 a id=prevPrev/a
 a id=nextNext/a

 Just wondering if someone has figured a simple jQuery function for
 moving through the a select list (using the above type of controls).
 The idea is that the Prev anchor would disappear if the first option
 is selected, and that the Next ancor would disappear if/when the last
 option is selected.

Why hide the controls?  If the last option is selected and the user
clicks Next, make the first selected and vice versa:

script type=text/javascript
function prevNextOption(e) {
  var b = e? e.target : window.event.srcElement,
  sel = document.getElementById('sel0'),
  len = sel.length,
  n = (b.value == 'Next')? len + 1 : len - 1;
  sel.selectedIndex = (sel.selectedIndex  + n) % len;
}

window.onload = function() {
  document.getElementById('inp0').onclick = prevNextOption;
  document.getElementById('inp1').onclick = prevNextOption;
}
/script
select id=sel0
  option selectedone
  optiontwo
  optionthree
/select
input type=button value=Previous id=inp0
input type=button value=Next id=inp1


--
Rob


[jQuery] Transition effects for ajax, I need help

2009-04-29 Thread corpodibacco

I looked everywhere, tutorial and forums and books and such, but I
can't find help for my case. Everyone explains fadeIn and fadeout
effects but not in conjunction with ajax. I also tried ajaxStart and
ajaxStop but couldn't get them to work.

So here's the deal: I call a js file from a php page. There is a
function that does ajax things and changes the content of a div
accordingly. The function works.

Problem is with this transition:

old content  loading message  new content

because the fadeIn/fadeOut effects I implemented give horrible
results!

That's where I need help!!

Here is the (simplified) content of the js file:

codefunction something(variable, anothervariable) {



jQuery(document).ready

(

function($){


$(div.mydiv).fadeOut('slow');

$(div.mydiv).html(loading 
message).fadeIn('slow', function ()
{



$.ajax({

type: POST,

url: variable,

data: anothervariable,

success: function(html){


$(div.mydiv).after(html).remove();

}

});

  });



}

)

}/code


with this code, what you get is

old content (disappears abruptly)
loading message (fades in)
loading message (fades out)
loading message (fades in)
loading message (disappears abruptly)
new content (appears abruptly)

..which makes no sense!

What am I doing wrong?
Please help me, I am really stuck.

Thanks!


[jQuery] Toggle Elements Stops Working? Help!

2009-04-29 Thread aerif...@gmail.com

http://mtschophouse.com/vero/menu/

Click on any of them, and they open up just fine, however, after this
point they dont close, and you also can't open any other one, it
just... stays stuck there.

I had this working just fine, and in the process of working with
wordpress and templating, obviously I changed something to mess it up.
I have no idea what I did to get it to stop working.

Halp!

Thanks in advance guys Very Happy

btw, its based on this:

http://jquery.andreaseberhard.de/toggleElements/index.html


[jQuery] run struts 2 action and display the data in a data grid jQuery

2009-04-29 Thread ghassane.dh...@gmail.com

hi
my goal:
2 - run struts 2 action and display the data in a data grid jQuery
in general I want to make a prototype with jQuery crud struts-2
If there is one example, document or web page email me:
ghassen_73 @ hotmail.


[jQuery] Whats going on with this?

2009-04-29 Thread Aeriform


http://mtschophouse.com/vero/menu/

Click on any of them, and they open up just fine, however, after this point
they dont close, and you also can't open any other one, it just... stays
stuck there.

I had this working just fine, and in the process of working with wordpress
and templating, obviously I changed something to mess it up. I have no idea
what I did to get it to stop working.

Halp!

Thanks in advance guys Very Happy


btw, its based on this:

http://jquery.andreaseberhard.de/toggleElements/index.html
-- 
View this message in context: 
http://www.nabble.com/Whats-going-on-with-this--tp23289684s27240p23289684.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



[jQuery] [ANN] jQuery barcode

2009-04-29 Thread apaella

Hi all,
   I releades a new plugin for jquery named jQuery Barcode.

http://code.google.com/p/jquery-barcode/

Works with Opera, Firefox3, IE8, Prism, Gecko-based browsers

Could someone review it?

Thanks!


[jQuery] Action struts 2 with jquery

2009-04-29 Thread ghassane.dh...@gmail.com

salut
mon objectif : comment exécuter une action struts 2 a partir de
jquery
travail demande :1- remplir une form et l'envoyer au serveur pour
l'enregistrer dans la base des donnés
2- exécuter  action struts 2 et afficher les donnés dans data une grid
jquery
en général je veux faire un prototype crud avec jquery-struts 2
S'il y a un  exemple , doc ou une page internet envoyer a moi :
ghassen...@hotmail.


[jQuery] Possible bug in selectors

2009-04-29 Thread Andu

Hi, maybe I'm missing something, but I think I found a possible bug in
the jQuery 1.3.2 selectors. If it turns out that I'm wrong, please
forgive me. If I'm right, I'll post this in the official bug tracker.
The situation that seems buggy to me is the following. I have a table
with multiple rows, where the first cell of every row has got an input
inside it. Now, considering that I have a variable var_row that is a
reference to a row other than the first one, if I try and select the
input from the row referenced by var_row using this: var_row.children
('td:eq(0) input'), what I actually get is the input from the first
row. If, however, I do something like var_row.children('td:eq
(0)').children('input') I get what I expected, the input from the row
referenced by var_row.
Once again, if I am wrong, please forgive me for wasting your time and
explain to me what I'm doing wrong.
All the best!


[jQuery] Toggle Elements Stops Working? Help!

2009-04-29 Thread Aeriform


http://mtschophouse.com/vero/menu/

Click on any of them, and they open up just fine, however, after this point
they dont close, and you also can't open any other one, it just... stays
stuck there.

I had this working just fine, and in the process of working with wordpress
and templating, obviously I changed something to mess it up. I have no idea
what I did to get it to stop working.

Halp!

Thanks in advance guys Very Happy


btw, its based on this:

http://jquery.andreaseberhard.de/toggleElements/index.html
-- 
View this message in context: 
http://www.nabble.com/Toggle-Elements-Stops-Working--Help%21-tp23288396s27240p23288396.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



[jQuery] Recommendation for an autocomplete plugin

2009-04-29 Thread Alex Rades

Hi,
I'm looking for a plugin which should be used to populate dynamically
an input element, which holds the recipents of a message (the
classic case)
I have only two requirements:

1) the plugin should be able to insert an image in the dropdown list
(the avatar of each recipient)
2) It should throttle submissions (not mandatory)

Do you have a plugin to suggest me?

Thank you


[jQuery] Cycle Plugin

2009-04-29 Thread Neff

I'm using the Cycle plugin (http://malsup.com/jquery/cycle/) to
display a mini slide show but my pictures are of different sizes and
some are portrait and some landscape.

Is there any way of using the Cycle plugin such that pictures are
centred (horizontally and vertically) in the container?


[jQuery] Need advice on app to

2009-04-29 Thread JamieJamie

Need advice on app to duplicate functionality at bridalcanvas .
com...Please point me in the right direction.


[jQuery] [validation] Specify range with attributes

2009-04-29 Thread Daniel Sabater

Hello

I am trying to specify range validation as an attribute in order to
have the validation rule as close as possible to the control. Trying
to avoid having to specify the rules somewhere else. I am using
jquery.validation 1.5.2

I have tried the following, but without luck:

input id='myid' name='myname' type='text' class='required'
range='[100,200]/

The validation message I get is a Please enter a value between NaN
and NaN.

Any help on this?

Thanks

Daniel

BTW, this related thread is unanswered: 
http://groups.google.com/group/jquery-en/msg/0b4215e7d69ed7e4


[jQuery] bridalcanvas . com code

2009-04-29 Thread JamieJamie

Does anyone know where I can find a package that provides the
functionality available at bridalcanvas . com? I believe it is based
on jquery. Any help will be appreciated,


[jQuery] Re: Form Tips

2009-04-29 Thread Javier Guerrero
you can try with this:

http://bassistance.de/jquery-plugins/jquery-plugin-validation/

Saludos


[jQuery] Re: Form Tips

2009-04-29 Thread Alexsandro_xpt

I mad something in http://www.assessoriatecnica.com.br/contato

Take a look.

On 28 abr, 20:45, shapper mdmo...@gmail.com wrote:
 Hello,

 I would like to show a tip or balloon with some info when a user
 clicks an input to enter a value.

 Does anyone knows a good plugin that does this?

 Thank You,
 Miguel


[jQuery] Re: serialScroll option : start -- no effect

2009-04-29 Thread Niels

Ariel,
Thanks for your support. but no luck:
http://www.egoactive.com/transfer/jquery-demo/#technical/django

changed
items:'li',

To
items:'li.section',

and removed the list items within the panes


Do you have another suggestion?

On Apr 24, 5:54 pm, Ariel Flesler afles...@gmail.com wrote:
 Your 'items' selector ('li') is not JUST matching the panes, but other
 LIs as well. The plugin is indeed scrolling to the forth LI within the
 container.

 Cheers



 On Fri, Apr 24, 2009 at 2:37 PM, Niels niels.siem...@gmail.com wrote:

  Sorry for my late response.

  here is the demo:

  If you click on:
 http://www.egoactive.com/transfer/jquery-demo/#technical/django

  It shouls scroll to item # 3...

  As we defined in de serialScroll methode (interfase.js):
  start: 3

  Thanks in advance

  On Apr 14, 1:16 am, Ariel Flesler afles...@gmail.com wrote:
  Can you provide a demo online ?

  Cheers
  --
  Ariel Flesler

  On Apr 10, 6:17 am, Niels niels.siem...@gmail.com wrote:

   We're using the serialScroll method and using some of the options.
   Only the option start has no effect.

   We want to scroll at the start to element 2 and not to the default
   position 0

   Suggestions?

           $('#technical').serialScroll({
                   target:'#technical-sections',
                   items:'li', // Selector to the items ( relative to the 
   matched
   elements, '#sections' in this case )
                   axis:'x',// The default is 'y' scroll on both ways
                   navigation:'#technical-navigation li a',
                   duration:900,// Length of the animation (if you scroll 2 
   axes and
   use queue, then each axis take half this time)
                   force: true, // Force a scroll to the element specified 
   by
   'start' (some browsers don't reset on refreshes)
                   constant: false, // constant speed
                   lock:false, // Ignore events if already animating (true 
   by default)
                   //prev:'img.prev',// Selector to the 'prev' button 
   (absolute!,
   meaning it's relative to the document)
                   //next:'img.next',// Selector to the 'next' button 
   (absolute too)
                   //queue:false,// We scroll on both axes, scroll both at 
   the same
   time.
                   //event:'click',// On which event to react (click is the 
   default,
   you probably won't need to specify it)
                   //stop:false,// Each click will stop any previous 
   animations of the
   target. (false by default)
                   //lock:true, // Ignore events if already animating (true 
   by
   default)
                   start: 2, // On which element (index) to begin ( 0 is 
   the default,
   redundant in this case )
                   //cycle:true,// Cycle endlessly ( constant velocity, 
   true is the
   default )
                   //step:1, // How many items to scroll each time ( 1 is 
   the default,
   no need to specify )
                   jump:true, // If true, items become clickable (or w/e 
   'event' is,
   and when activated, the pane scrolls to them)
                   //lazy:false,// (default) if true, the plugin looks for 
   the items on
   each event(allows AJAX or JS content, or reordering)
                   //interval:1000, // It's the number of milliseconds to 
   automatically
   go to the next

 --
 Ariel Fleslerhttp://flesler.blogspot.com


[jQuery] new version of loopedSlider is out! Looking for feed back

2009-04-29 Thread Nathan

Just released a new version of loopedSlider and am looking for some
feedback.

loopedSlider is a plugin made for jQuery that solves a simple problem,
the looping of slide content. It was created to be easy to implement,
smooth and most of all end the content rewind that most other
content sliders suffer from.

New in version 0.5
Re-coded from the ground up
Even easier to implement
Use DIVs, LIs or ?
Smoother animation
Container click for next feature
And the most requested feature, auto interval

Examples
a href=http://nathansearles.com/loopedslider/example-1.html;
target=_blankSimple example using images and DIVs/a
a href=http://nathansearles.com/loopedslider/example-2.html;
target=_blankSimple text and auto height example using LIs/a
a href=http://nathansearles.com/loopedslider/example-3.html;
target=_blankMultiple sliders and auto play example/a

Download
http://code.google.com/p/loopedslider/


[jQuery] Re: Cycle Plugin - Can't Get Pause To Work

2009-04-29 Thread davebowker

Bump!

Same problem here. Code looks fine?

$('#feature .sim-link').toggle(function () {
$('#feature').cycle('stop');
}, function() {
$('#feature').cycle('start');
});

Anyone have a solution?

Dave

On Apr 27, 8:04 am, Nic Hubbard nnhubb...@gmail.com wrote:
 Really?  No one knows why the cycle pause is not working?  Someone
 must be using this!

 On Apr 24, 8:25 am, Nic Hubbard nnhubb...@gmail.com wrote:

  Anyone?

  On Apr 23, 9:44 pm, Nic Hubbard nnhubb...@gmail.com wrote:

   Shawn,

   Yes, I havepauseon hover set, and this is correctly working.  It is
   when the overlay comes up, and it is suppose topausethe current
   image, which, my code seems to be correct to do so $
   ('#artistCycleParent').cycle('pause'); but it just keeps cycling and
   does not honor thepause.

   I have it in my click function, and everything in the click function
   does work, but not thepause.  Once the user clicks off of the
   overlay, it should resume.

   On Apr 23, 9:22 pm, Shawn sgro...@open2space.com wrote:

   Pauseis working for me, with a catch.

If my mouse is not over the image, it cycles.  Placing my mouse over the
image pauses the cycling.

Clicking the link brings up an overlay (?) and a form - at this point
the mouse is not over the image, but over the overlay/form.  So the
image cycles as it should.

I don't think you want thepauseoption here.  I think you want to
progamatically start/stop the cycling.  See the section Manually
Pausing a slideshow athttp://malsup.com/jquery/cycle/int2.html.

HTH.

Shawn

Nic Hubbard wrote:
 I am using thecycleplugin, but for some reason I can't get thepause
 feature to work.  I am showing a hidden div, and when I do, I need to
pausethe slideshow.
 Here is what I am using:

    $('#artistCycleParent').cycle({
            fx:      'fade',
            speed:    3000,
            timeout:  5000,
            pause:  1,
            next:   '#artworkNext',
            prev:   '#artworkPrev'
    });

    //Pausethecycle
    $('#pauseButton').click(function() {
            $('#artistCycleParent').cycle('pause');
            $(this).hide();
            $('#resumeButton').show();
            return false;
    });

    // Resume thecycle
    $('#resumeButton').click(function() {
            $('#artistCycleParent').cycle('resume');
            $(this).hide();
            $('#pauseButton').show();
            return false;
    });

 The code looks ok to me, but it just does not seem topause.

 Example:http://www.caldwellsnyder.com/artists/montoya-ortiz/view-artworks
 Click on Contact about artwork

 Thanks.


[jQuery] countdown Plugin

2009-04-29 Thread gozigo_milis gozigo_milis
I'm developing a web for online auction items. Each item will have a
countdown such as 00:10:00 and will go down if the user does not make a bid.
If the countdown is done then the bid will be 30 seconds.

The problem is:

How do I create a script so that the Auction does not connect to the server
every second? Connections should be made to the server if there is to do a
bid.

Thanx


[jQuery] GET PARAM FROM URL WITH JQUERY

2009-04-29 Thread gozigo_milis gozigo_milis
Hello all

I will aks sth

example : http://www.matrix.com/index.php?p=gallery#page=1


how can I get page=1 (parameter after sign #)

thanks


[jQuery] Re: GET PARAM FROM URL WITH JQUERY

2009-04-29 Thread Martijn Houtman


On Apr 29, 2009, at 2:45 PM, gozigo_milis gozigo_milis wrote:


example : http://www.matrix.com/index.php?p=gallery#page=1

how can I get page=1 (parameter after sign #)


window.location.hash



[jQuery] Re: new version of loopedSlider is out! Looking for feed back

2009-04-29 Thread Rick Faircloth
Hi, Nathan...

How hard would it be to replace the numbers for manual photo selection
with small thumbnails?

Rick

On Wed, Apr 29, 2009 at 9:55 AM, Nathan nsear...@gmail.com wrote:


 Just released a new version of loopedSlider and am looking for some
 feedback.

 loopedSlider is a plugin made for jQuery that solves a simple problem,
 the looping of slide content. It was created to be easy to implement,
 smooth and most of all end the content rewind that most other
 content sliders suffer from.

 New in version 0.5
 Re-coded from the ground up
 Even easier to implement
 Use DIVs, LIs or ?
 Smoother animation
 Container click for next feature
 And the most requested feature, auto interval

 Examples
 a href=http://nathansearles.com/loopedslider/example-1.html;
 target=_blankSimple example using images and DIVs/a
 a href=http://nathansearles.com/loopedslider/example-2.html;
 target=_blankSimple text and auto height example using LIs/a
 a href=http://nathansearles.com/loopedslider/example-3.html;
 target=_blankMultiple sliders and auto play example/a

 Download
 http://code.google.com/p/loopedslider/




-- 
-
It has been my experience that most bad government is the result of too
much government. - Thomas Jefferson


[jQuery] Re: countdown Plugin

2009-04-29 Thread Chacha Golden
Could you restate that last line If the countdown is done then the bid will
be 30 seconds. I don't quite understand it

On Wed, Apr 29, 2009 at 5:43 AM, gozigo_milis gozigo_milis 
gozigomi...@gmail.com wrote:

 I'm developing a web for online auction items. Each item will have a
 countdown such as 00:10:00 and will go down if the user does not make a bid.
 If the countdown is done then the bid will be 30 seconds.

 The problem is:

 How do I create a script so that the Auction does not connect to the server
 every second? Connections should be made to the server if there is to do a
 bid.

 Thanx




-- 
Chacha102
One of a kind
http://chacha102.com
http://just102.wordpress.com

We have come to something so mysterious,
Too deep for minds to comprehend,
Through the open doors,
Where the angels sing,
And the hosts of heaven are antheming.


[jQuery] Help Form validation breaks after the first search that is succesful Conflict in the script (jquery.forms.js)

2009-04-29 Thread hollow

Hi,

I've a code that validates  jquery form and gives a result, but when i
try a second search it stops working.
bare with my programming as i'm not an expert in javascript.

There is no error message that tells me where to look (firefox
console).

Can someone help me figure out what is happening.

The Script (form)

script type=text/javascript charset=utf-8
function searchOnClick() {
$(function() {
var options = {
target:'#searchresult',   // target element(s) 
to be
updated with server response
beforeSubmit:  showRequest,  // pre-submit callback
success:   showResponse,  // post-submit callback

// other available options:
//url:   url // override for form's 'action'
attribute
//type:  type// 'get' or 'post', override 
for
form's 'method' attribute
//dataType:  null// 'xml', 'script', or
'json' (expected server response type)
//clearForm: true// clear all form fields after
successful submit
//resetForm: true// reset the form after 
successful
submit

// $.ajax options can be used here too, for example:
//timeout:   3000
};

// bind to the form's submit event
$('#rechercheprod').submit(function() {
// inside event callbacks 'this' is the DOM element so 
we
first
// wrap it in a jQuery object and then invoke ajaxSubmit
$(this).ajaxSubmit(options);
console.log($(this));
// !!! Important !!!
// always return false to prevent standard browser 
submit
and page navigation
return false;
});
$(function() {
$('div id=busyLoading.../div')
.ajaxStart(function() 
{$(#busy).show();$(#searchresult
ul).remove();})
.ajaxStop(function() {$(#busy).hide();})
.appendTo('#searchresult');
});
// pre-submit callback
function showRequest(formData, jqForm, options) {
// formData is an array; here we use $.param to convert it 
to a
string to display it
// but the form plugin does this for you automatically when 
it
submits the data
var queryString = $.param(formData);
console.log(queryString+queryString);
console.log(formData);
console.log(jqForm);
console.log(options+target);
// jqForm is a jQuery object encapsulating the form 
element.  To
access the
// DOM element for the form do this:
// var formElement = jqForm[0];
//$('#soumettre').hide();
//alert('About to submit: \n\n' + queryString);

// here we could return false to prevent the form from being
submitted;
// returning anything other than false will allow the form
submit to continue
return true;
}


// post-submit callback
function showResponse(responseText, statusText)  {
// for normal html responses, the first argument to the 
success
callback
// is the XMLHttpRequest object's responseText property

// if the ajaxSubmit method was passed an Options Object 
with
the dataType
// property set to 'xml' then the first argument to the 
success
callback
// is the XMLHttpRequest object's responseXML property
console.log(responseText+responseText);
console.log(statusText+statusText);
// if the ajaxSubmit method was passed an Options Object 
with
the dataType
// property set to 'json' then the first argument to the 
success
callback
// is the json data object returned by the server
//alert('status: ' + statusText + '\n\nresponseText: \n' +
responseText +
   // '\n\nThe output div should have already been updated 
with
the responseText.');
}
});
};
$(function() {
$('#rechercheprod').live('click',function() {
searchOnClick();
});
});

/script


the rest of the script that breaks the form validation

$(function() {
$('.ui-draggable li').hover(

[jQuery] Re: cluetip IE8 very slow adding to table rows

2009-04-29 Thread Karl Swedberg
So sorry, I haven't had a chance to fully explore this yet. Not  
ignoring you. Just having a hard time finding the time and tracking  
down the problem.


--Karl


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




On Apr 28, 2009, at 10:31 AM, DotnetShadow wrote:



Hi there,

I was wondering if you had a chance to try out cluetip on IE8 in
regards to this issue?

Regards DotnetShadow

On Apr 18, 12:32 am, Karl Swedberg k...@englishrules.com wrote:
Not sure what's going on there, to be honest. I'll have to take a  
look

as soon as I find some more time. It might just be that binding
cluetip to a whole lot of elements won't work. I've used event
delegation to get around this sort of problem with other plugins, but
unfortunately I can't do it here without a complete re-architecting  
of

the plugin and the elimination of the hoverIntent feature.

I don't think this will improve performance, but you could write your
script like this:

$(document).ready(function() {

 $(.user).cluetip();

});

--Karl


Karl Swedbergwww.englishrules.comwww.learningjquery.com

On Apr 16, 2009, at 11:07 AM, DotnetShadow wrote:




Hi there,



I've recently been using cluetip on a datable of about 400 rows.
Recently I tested this against IE8 and found it very very slow.



Doing simply the following:



$(document).ready(function() {



$(.user).each(function(i) {
 $(this).cluetip();
 }
});



Basically for each row in my table (400 rows) it would attach the
cluetip to it.
In IE8 it would freeze the browser for a good minute, if I pushed  
the

compatibility mode button to run in IE7 mode it worked as expected.



In all other browsers it worked perfectly.



Is there something different going on with IE8?



Thanks in advance
DotnetShadow




[jQuery] Re: new version of loopedSlider is out! Looking for feed back

2009-04-29 Thread Nathan


Easy, just put small thumbnails in place of the numbers.


On Apr 29, 7:32 am, Rick Faircloth r...@whitestonemedia.com wrote:
 Hi, Nathan...

 How hard would it be to replace the numbers for manual photo selection
 with small thumbnails?

 Rick





 On Wed, Apr 29, 2009 at 9:55 AM, Nathan nsear...@gmail.com wrote:

  Just released a new version of loopedSlider and am looking for some
  feedback.

  loopedSlider is a plugin made for jQuery that solves a simple problem,
  the looping of slide content. It was created to be easy to implement,
  smooth and most of all end the content rewind that most other
  content sliders suffer from.

  New in version 0.5
  Re-coded from the ground up
  Even easier to implement
  Use DIVs, LIs or ?
  Smoother animation
  Container click for next feature
  And the most requested feature, auto interval

  Examples
  a href=http://nathansearles.com/loopedslider/example-1.html;
  target=_blankSimple example using images and DIVs/a
  a href=http://nathansearles.com/loopedslider/example-2.html;
  target=_blankSimple text and auto height example using LIs/a
  a href=http://nathansearles.com/loopedslider/example-3.html;
  target=_blankMultiple sliders and auto play example/a

  Download
 http://code.google.com/p/loopedslider/

 --
 --- 
 --- 
 ---
 It has been my experience that most bad government is the result of too
 much government. - Thomas Jefferson


[jQuery] Re: jQuery barcode

2009-04-29 Thread rigo

Is there any example web page?


[jQuery] Re: Trouble selecting a P inside a repeating DIV

2009-04-29 Thread Tobias

Perfect.  But just for future helpfulness of anyone coming across this
post- I simplified my code above, it actually looks like

  div class=insidepost
iframeBlah Blah Blah/iframe
ul
liitem 1/li
liitem 2/li
liitem 3/li
/ul
  pparagraph 1/p
  pparagraph 2/p
  pparagraph 3/p
  /div

As a consequence I need to use $(.insidepost p:nth-child(3)).addClass
(caminfo); to get it to add that class to the FIRST paragraph.  Not
sure why it counts other items in the list of children. . . or maybe I
don't quite understand how the child works - I thought it was just
counting the P children inside the div.

Anyway - Thanks Ricardo, appreciate the help.

--Tobias

On Apr 28, 11:11 pm, Ricardo ricardob...@gmail.com wrote:
 That's because eq() filters the whole collection of Ps from all DIVs.
 Use nth-child instead (indexes start at 1 instead of 0):

 $(.insidepost p:nth-child(1)).addClass(cambottomline);
 $(.insidepost p:nth-child(2)).addClass(cambuy);

 cheers,
 - ricardo

 On Apr 28, 10:15 pm, Tobias tobi...@gmail.com wrote:

  Hello - My basic code is something like

  div class=insidepost
  pparagraph 1/p
  pparagraph 2/p
  pparagraph 3/p
  /div

  div class=insidepost
  pparagraph 1/p
  pparagraph 2/p
  pparagraph 3/p
  /div

  I was hoping to use

                  $(.insidepost p:eq(1)).addClass(cambottomline);

                  $(.insidepost p:eq(2)).addClass(cambuy);

  Only works on the first div though.  Any suggestions for selecting the
  same certain P in each div?

  Thank you,
  Tobias


[jQuery] Re: new version of loopedSlider is out! Looking for feed back

2009-04-29 Thread Rick Faircloth
Couldn't ask for anything simpler than that! :o)

What would happen if there were more thumbnails than space allows under
the image?  (Or if you have more numbers than space allowed?)
Would the images not show beyond the edge of the photo or would they extend
out to the edges of the window?

On Wed, Apr 29, 2009 at 11:10 AM, Nathan nsear...@gmail.com wrote:



 Easy, just put small thumbnails in place of the numbers.


 On Apr 29, 7:32 am, Rick Faircloth r...@whitestonemedia.com wrote:
  Hi, Nathan...
 
  How hard would it be to replace the numbers for manual photo selection
  with small thumbnails?
 
  Rick
 
 
 
 
 
   On Wed, Apr 29, 2009 at 9:55 AM, Nathan nsear...@gmail.com wrote:
 
   Just released a new version of loopedSlider and am looking for some
   feedback.
 
   loopedSlider is a plugin made for jQuery that solves a simple problem,
   the looping of slide content. It was created to be easy to implement,
   smooth and most of all end the content rewind that most other
   content sliders suffer from.
 
   New in version 0.5
   Re-coded from the ground up
   Even easier to implement
   Use DIVs, LIs or ?
   Smoother animation
   Container click for next feature
   And the most requested feature, auto interval
 
   Examples
   a href=http://nathansearles.com/loopedslider/example-1.html;
   target=_blankSimple example using images and DIVs/a
   a href=http://nathansearles.com/loopedslider/example-2.html;
   target=_blankSimple text and auto height example using LIs/a
   a href=http://nathansearles.com/loopedslider/example-3.html;
   target=_blankMultiple sliders and auto play example/a
 
   Download
  http://code.google.com/p/loopedslider/
 
  --
 
 ---
 ---
 ---
  It has been my experience that most bad government is the result of too
  much government. - Thomas Jefferson




-- 
-
It has been my experience that most bad government is the result of too
much government. - Thomas Jefferson


[jQuery] Re: jQuery barcode

2009-04-29 Thread Richard D. Worth
http://code.google.com/p/jquery-barcode/wiki/Demo

On Wed, Apr 29, 2009 at 11:12 AM, rigo conven...@gmail.com wrote:


 Is there any example web page?


[jQuery] Re: Please Help - While Loop PHP JSON - Comment List

2009-04-29 Thread Jake McGraw

#commentWrapper is the selector for the following element:

ul id=commentWrapper/ul

The JS I provided will append that element if it isn't already
present. I did have to make a single change:

$(body).append('ul id=commentWrapper/ul');

to:

$(body).append('ul id=commentWrapper/ul');

Also, you should specify the type expected for the $.post call:

$.post(url, data, callback, ### type goes here ###);

For your purposes:

$.post(url, {/* data */}, function(data){/* callback */}, json);

I've updated the following example code:

http://snipt.net/jakemcgraw/jquery-listserv-answer-ajax-comment-list

- jake

On Tue, Apr 28, 2009 at 10:55 PM, fluxUX martine...@gmail.com wrote:

 This is great. Thanks so much!

 For some reason the DIV for the commentWrapper is not working on the
 render page..here is what I have:

 /head

 body
 input name=u id=u type=hidden value=A_u3V /
 a href=# id='goComment'go/a
 div id=commentWrapper/div

 /body
 /html

 It appears the code you provided amends the DIV. Any thoughts would be
 great?

 On Apr 28, 5:11 pm, Jake McGraw jmcgr...@gmail.com wrote:
 You've got quite a few errors in both your JavaScript and PHP, which
 probably explains the lack of answers. Utilizing AJAX using jQuery and
 PHP can be a bit confusing at first, I've tried to make some sense of
 what you're doing here:

 http://snipt.net/jakemcgraw/jquery-listserv-answer-ajax-comment-list

 - jake

 On Tue, Apr 28, 2009 at 12:17 PM, fluxUX martine...@gmail.com wrote:

  I want to display an unordered list of comments from my echoed JSON
  result using this jQuery code block:

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

  bigComment = $(#bigComment).val();

                     $.post(i-upComments.php, {      //this inserts the 
  comment
  into the 'comments' table in the DB

                 bigComment: bigComment,
                 u: u,

             }, function(data){

            //display the list of comments as a unordered list - LI

         });

         });

  -
  Here is my PHP:

  ?php

  include_once(db.php);

  $u = 'Jl6XR';

  $sql = SELECT * FROM bigNest INNER JOIN comments ON comments.u =
  bigNest.uid;

  $result = mysql_query($sql);

  while($array = mysql_fetch_array($result)) {

  $bigtitle = $array[bigtitle];
  $bigbody = $array[bigbody];
  $comments = $array[comments];
  }

  $val = array(bigtitle = $bigtitle,
              bigbody = $bigbody,
              comments = $comments,

             );

  $output = json_encode($val);
  echo $output.\n;

  ?


[jQuery] Re: new version of loopedSlider is out! Looking for feed back

2009-04-29 Thread Nathan


In both scenarios the slider would still work

If you have more slides then pagination links then you just won't be
able to link to those slides and the pagination would obviously not
highlight the selected number.

If you have more pagination links then slides and are clicking next/
previous that will works as normal, you'll just have some extra links.
But if you click on say 7 and you only have 4 slides then it will goto
position 7 but nothing will be there.


On Apr 29, 8:17 am, Rick Faircloth r...@whitestonemedia.com wrote:
 Couldn't ask for anything simpler than that! :o)

 What would happen if there were more thumbnails than space allows under
 the image?  (Or if you have more numbers than space allowed?)
 Would the images not show beyond the edge of the photo or would they extend
 out to the edges of the window?





 On Wed, Apr 29, 2009 at 11:10 AM, Nathan nsear...@gmail.com wrote:

  Easy, just put small thumbnails in place of the numbers.

  On Apr 29, 7:32 am, Rick Faircloth r...@whitestonemedia.com wrote:
   Hi, Nathan...

   How hard would it be to replace the numbers for manual photo selection
   with small thumbnails?

   Rick

    On Wed, Apr 29, 2009 at 9:55 AM, Nathan nsear...@gmail.com wrote:

Just released a new version of loopedSlider and am looking for some
feedback.

loopedSlider is a plugin made for jQuery that solves a simple problem,
the looping of slide content. It was created to be easy to implement,
smooth and most of all end the content rewind that most other
content sliders suffer from.

New in version 0.5
Re-coded from the ground up
Even easier to implement
Use DIVs, LIs or ?
Smoother animation
Container click for next feature
And the most requested feature, auto interval

Examples
a href=http://nathansearles.com/loopedslider/example-1.html;
target=_blankSimple example using images and DIVs/a
a href=http://nathansearles.com/loopedslider/example-2.html;
target=_blankSimple text and auto height example using LIs/a
a href=http://nathansearles.com/loopedslider/example-3.html;
target=_blankMultiple sliders and auto play example/a

Download
   http://code.google.com/p/loopedslider/

   --

  ---
  ---
  ---
   It has been my experience that most bad government is the result of too
   much government. - Thomas Jefferson

 --
 --- 
 --- 
 ---
 It has been my experience that most bad government is the result of too
 much government. - Thomas Jefferson


[jQuery] Re: GET PARAM FROM URL WITH JQUERY

2009-04-29 Thread gozigo_milis gozigo_milis
I hava script like thisscript type=text/javascript
function get_param_name(){
var regexS = ([\\#][^]*);
var regex = new RegExp(regexS);
var results = regex.exec(window.location.hash);
var ret;
if(results == null){
ret = ;
}else{
ret=results[0].replace(#,);
}
return ret;
}



$(document).ready(function(){
var x=get_param_name();
alert(x);
});


/script

I run in Google Chrome it work
but in opera and IE 8 it does't work...

Any other idea?


On Wed, Apr 29, 2009 at 9:12 PM, Martijn Houtman
martijn.hout...@gmail.comwrote:


 On Apr 29, 2009, at 2:45 PM, gozigo_milis gozigo_milis wrote:

  example : http://www.matrix.com/index.php?p=gallery#page=1

 how can I get page=1 (parameter after sign #)


 window.location.hash




[jQuery] Re: Whats going on with this?

2009-04-29 Thread brian

It looks like you have an infinite loop somewhere. These 2 errors
repeat until JS is disabled:

Warning: reference to undefined property opt.queue
Source file: 
http://mtschophouse.com/vero/wp-content/plugins/cforms/js/calendar.js
Line: 1

Error: jQuery.toggleElementsShown is not a function
Source file: 
http://mtschophouse.com/vero/wp-content/themes/TealGray.v2/jquery.toggleElements.js
Line: 118


On Tue, Apr 28, 2009 at 10:56 PM, Aeriform aerif...@gmail.com wrote:


 http://mtschophouse.com/vero/menu/

 Click on any of them, and they open up just fine, however, after this point
 they dont close, and you also can't open any other one, it just... stays
 stuck there.

 I had this working just fine, and in the process of working with wordpress
 and templating, obviously I changed something to mess it up. I have no idea
 what I did to get it to stop working.

 Halp!

 Thanks in advance guys Very Happy


 btw, its based on this:

 http://jquery.andreaseberhard.de/toggleElements/index.html
 --
 View this message in context: 
 http://www.nabble.com/Whats-going-on-with-this--tp23289684s27240p23289684.html
 Sent from the jQuery General Discussion mailing list archive at Nabble.com.




[jQuery] Re: jQuery barcode

2009-04-29 Thread apaella

Yes, but I'm not able to embed a script into the googlecode wiki...
there is a way to host a working example into it?
thanks!

On 29 Apr, 17:12, rigo conven...@gmail.com wrote:
 Is there any example web page?


[jQuery] Re: Whats going on with this?

2009-04-29 Thread Rodrigo Lizarraga
Any idea where/how?


[jQuery] Serialize jQuery Objects ?

2009-04-29 Thread tjholowaychuk

Hello, I wrote a library which records / plays back DOM events with a
faux cursor, its working great looks just like the real thing, however
the one problem is exporting this data so it can be pulled in for
playback in the future. I obviously cannot serialize entire jQuery
objects using as JSON, so what I was hoping for was using xpath or
something so that it could be a very lightweight export. Any ideas? is
there anything unique to the element which stays intact each refresh
that would be worth looking into?

Heres the source if your interested (working locally on export
changes) http://github.com/visionmedia/jquery-event-playback/tree/master


[jQuery] Suckerfish

2009-04-29 Thread TheCreationSite

If I load the jquery UI script after the Suckerfish script, then
Suckerfish breaks and vice versa. There seems to be a conflict between
the two. I am using Jquery 1.3 and UI 1.7.1.

Has anyone else had this issue?


[jQuery] why is :first-child selecting sub elements?

2009-04-29 Thread Liming

Hello all, I have a lay out like so

div id=childtest_toprow
div id=subtest_1
div id=subtest_1_1/div
div id=subtest_1_2/div
/div
/div
div id=subtest_2
/div
/div

I want to select the first child of childtest_toprow which is
subtest_1

when i do

$(div[id ^= 'childtest_' ] :nth-child(1)).each(function() {
alert( $(this).attr(id) )
});

I get subtest_1 AND subest_1_1

what am I doing wrong?

Thanks

ps: i'm using firefox 3 and IE 7


[jQuery] Re: Jquery Sound

2009-04-29 Thread Evan



On Mar 13, 3:06 pm, Paul Hutson hutsonphu...@googlemail.com wrote:
 Hello,

 I've been trying to get the following working :

 http://dev.jquery.com/view/trunk/plugins/sound/

 However, it only plays about a second to three seconds of the
 designatedsoundbefore shutting off (in FF and Safari) but loads
 fully in Opera.  The music is hosted locally at the moment.

 Any ideas?

 The test code I'm using is as follows :

         $.sound.play('Sounds/Music/OE1.mp3');

 TIA,
 Paul

I was running in to the same problem. I had playback working fine with
the @5750 build, but was not able to stop playback.

If you look at line 84 of the @5854 build, you will see that the when
the timeout occurs it is set to remove the entire element. I finally
gave up, and instead of trying to stop the timeout, I just commented
out the element.remove() line. Now audio plays fine and I can stop it
via jquery.

Here is what my lines 83 - 87 look like now:
setTimeout(function() {
//element.remove();
}, options.timeout)

return element;

Hope that helps someone.

Now I need to figure out how to get it to loop the audio.


[jQuery] jQuery 1.3.2 *SLOW* using .class tag selector?

2009-04-29 Thread swalke16

I have a situation where I have some HTML I am selecting elements from
using the .class tag selector combination using jQuery v1.3.2. I
have noticed that in both IE8 and Firefox 3.0.10 this particular
scenario is painfully slow to execute. From profiling in both browsers
it appears that the Sizzle engine is making an *enormous* amount of
calls to both the isXML and filter functions.

If I upgrade the version of Sizzle to v1.0 then these selectors work
incredibly fast as I would have expected. Profiling in both browsers
reveals that the amount of calls to the isXML and filter functions
come down from numbers around 80k+ to a few hundred.

My specific example can be found here:
http://grubersauce.com/walker/jquery_test.html

Does anyone have any guidance as to why this would be so slow in
jQuery 1.3.2 using the Sizzle v.0.9.3 engine?  Is it safe to upgrade
the Sizzle version to v1.0 while using jQuery v1.3.2?





[jQuery] Re: Serialize jQuery Objects ?

2009-04-29 Thread Eric Garside

Why not assign a set of IDs to the elements you want to export? That
will allow jQuery to quickly recache the elements.

On Apr 29, 11:41 am, tjholowaychuk tjholoway...@gmail.com wrote:
 Hello, I wrote a library which records / plays back DOM events with a
 faux cursor, its working great looks just like the real thing, however
 the one problem is exporting this data so it can be pulled in for
 playback in the future. I obviously cannot serialize entire jQuery
 objects using as JSON, so what I was hoping for was using xpath or
 something so that it could be a very lightweight export. Any ideas? is
 there anything unique to the element which stays intact each refresh
 that would be worth looking into?

 Heres the source if your interested (working locally on export
 changes)http://github.com/visionmedia/jquery-event-playback/tree/master


[jQuery] Re: jQuery barcode

2009-04-29 Thread Ricardo

On Apr 29, 8:04 am, apaella apae...@gmail.com wrote:
 Hi all,
    I releades a new plugin for jquery named jQuery Barcode.

 http://code.google.com/p/jquery-barcode/

 Works with Opera, Firefox3, IE8, Prism, Gecko-based browsers

 Could someone review it?

 Thanks!

Does this have any use case besides printing? If not, what's the point
in making it a jQuery plugin? (just curious).


[jQuery] Re: jQuery 1.3.2 *SLOW* using .class tag selector?

2009-04-29 Thread John Resig
Upgrading is probably safe - it's the engine that'll be in jQuery 1.3.3.

--John


On Wed, Apr 29, 2009 at 8:35 AM, swalke16 swalk...@gmail.com wrote:


 I have a situation where I have some HTML I am selecting elements from
 using the .class tag selector combination using jQuery v1.3.2. I
 have noticed that in both IE8 and Firefox 3.0.10 this particular
 scenario is painfully slow to execute. From profiling in both browsers
 it appears that the Sizzle engine is making an *enormous* amount of
 calls to both the isXML and filter functions.

 If I upgrade the version of Sizzle to v1.0 then these selectors work
 incredibly fast as I would have expected. Profiling in both browsers
 reveals that the amount of calls to the isXML and filter functions
 come down from numbers around 80k+ to a few hundred.

 My specific example can be found here:
 http://grubersauce.com/walker/jquery_test.html

 Does anyone have any guidance as to why this would be so slow in
 jQuery 1.3.2 using the Sizzle v.0.9.3 engine?  Is it safe to upgrade
 the Sizzle version to v1.0 while using jQuery v1.3.2?






[jQuery] Re: Possible bug in selectors

2009-04-29 Thread Ricardo

You're misusing the children() method. It will only find *children*
(immediate descendants) of the row (TDs in your case) and filter them
according to the selector given. If you want to dig deeper, use find,
or as you already discovered, chained children().

var_row.find('td:eq(0) input')

On Apr 29, 5:53 am, Andu andrei.fr...@gmail.com wrote:
 Hi, maybe I'm missing something, but I think I found a possible bug in
 the jQuery 1.3.2 selectors. If it turns out that I'm wrong, please
 forgive me. If I'm right, I'll post this in the official bug tracker.
 The situation that seems buggy to me is the following. I have a table
 with multiple rows, where the first cell of every row has got an input
 inside it. Now, considering that I have a variable var_row that is a
 reference to a row other than the first one, if I try and select the
 input from the row referenced by var_row using this: var_row.children
 ('td:eq(0) input'), what I actually get is the input from the first
 row. If, however, I do something like var_row.children('td:eq
 (0)').children('input') I get what I expected, the input from the row
 referenced by var_row.
 Once again, if I am wrong, please forgive me for wasting your time and
 explain to me what I'm doing wrong.
 All the best!


[jQuery] Re: Whats going on with this?

2009-04-29 Thread Ricardo

On Apr 29, 1:12 am, Aeriform aerif...@gmail.com wrote:
 http://mtschophouse.com/vero/menu/

 Click on any of them, and they open up just fine, however, after this point
 they dont close, and you also can't open any other one, it just... stays
 stuck there.


Seems ok (the toggling), in FF and IE, have you fixed it? Your top
menu is messed up in IE though.

 I had this working just fine, and in the process of working with wordpress
 and templating, obviously I changed something to mess it up. I have no idea
 what I did to get it to stop working.

 Halp!

 Thanks in advance guys Very Happy

 btw, its based on this:
 http://jquery.andreaseberhard.de/toggleElements/index.html

Next time you might want to post the right URL (http://
mtschophouse.com/vero/menu/) and be a little more specific. Click on
any of them after posting a URL could mean anything. If you hadn't
posted the toggleElements link I would have no idea what you were
talking about :)

cheers,
-- ricardo


[jQuery] Re: Whats going on with this?

2009-04-29 Thread brian

No, sorry. This was in FF 3.0.10/linux, btw.

On Wed, Apr 29, 2009 at 11:59 AM, Rodrigo Lizarraga aerif...@gmail.com wrote:
 Any idea where/how?



[jQuery] Re: fadein thumbnails when loaded

2009-04-29 Thread Kevin Dalman

Hi Rick,

Karl's suggestion seems the most elegant (assuming it works OK).

Here is some sample code for what he is suggesting

-- in HEAD or a stylesheet...
body.js #media-gallery ul li img {
   /* opacity *may* work better than display:none */
   opacity: 0.01;
   filter: alpha(opacity=1);
}

And in your JS...
$(function() {
$(#media-gallery ul img).fadeIn(2000);
});

Then add this JS to your HTML - immediately after the BODY tag...

body
script type=text/javascript
   document.documentElement.className = js;
 -OR-
   $('body').addClass(js);
/script

In theory, the images will only be hidden (1% opacity) if Javascript
is enabled, because otherwise BODY will not have the 'js' class,
therefore your CSS rule will not have any effect. Since you are adding
the class *before* the images are added to the DOM, they should load
transparent. And because they are not 'hidden' (display:none), the
images will still take up their normal space when loading, instead of
making the page 'jump' they they are made visible.

/Kevin


On Apr 28, 4:26 am, Rick Faircloth r...@whitestonemedia.com wrote:
  In the head you can do this:
  script type=text/javascript document.documentElement.className =
 'js';/script
  Then you can set styles for elements as descendants of .js.

 Karl...will you explain a little more about what this means and perhaps give
 an
 example of its implementation?  Or is there a blog or tutorial somewhere?

 Thanks,

 Rick


[jQuery] Superfish and IE6 Z-Index

2009-04-29 Thread Forrest

Working to implement Superfish - works great in Firefox, Safari, IE7,
but the flyouts fail in IE6. I tried the recommended z-index fix, but
obviously didn't get it right.

Would appreciate a helping hand at: http://ohs.rouviere.com

Thanks.


[jQuery] Malsup Media Plugin (stop all players?)

2009-04-29 Thread David

First off this media plugin is awesome and has saved me a lot of time,
thanks for all your work in developing this!

Now to the issue.  I am sure you have come across this before where
you have 5-10 players on a page and you click the first player to
listen and then about halfway through you click on another player to
listen to a new song and boom your ears start exploding from the
mashing of rhythms!  Is there a way to only enable one player at a
time, or some way to stop all the other players when you click play on
one?

I am using the latest JW player (4.3).  Like I said, all is well this
would just be the icing on the cake :)

Thanks!
-David


[jQuery] jQuery Corners over a background image

2009-04-29 Thread gilberto.ramoso...@gmail.com

I've noticed that when you use the corner plugin using a background
image the corners that the plugin is working will show part of the
background, is there a way to fix this?


[jQuery] unsubscribe

2009-04-29 Thread Anil Kumar
-- 
“Every failure made me more confident. Because I wanted even more to achieve
as revenge. To show that I could.”


[jQuery] Re: Whats going on with this?

2009-04-29 Thread Rodrigo Lizarraga
yea, it turns out the wordpress plugin cforms was messing it up, so i
disabled it on that specific page.

As for the menu in IE, yea, IE 8 does not support cufon -_-, which is a
javascript font replacement script


[jQuery] Re: fadein thumbnails when loaded

2009-04-29 Thread Kevin Dalman

Here is a variation on Eric's idea. But in this example, instead of
writing the CSS rule via Javascript, write a rule to *negate it*
inside a noscript tag.

-- in HEAD or a stylesheet...
#media-gallery ul li img {
   /* opacity *may* work better than display:none */
   opacity: 0.01;
   filter: alpha(opacity=1);
}

Then in the HEAD of you page, add a STYLE block inside a NOSCRIPT
block...

noscript
style type=text/css
#media-gallery ul li img {
   /* UNDO the opacity rule set previously */
   opacity: 1;
   filter: alpha(opacity=100);
}
/style
/noscript

Just one more idea.

/Kevin

On Apr 29, 9:58 am, Kevin Dalman kevin.dal...@gmail.com wrote:
 Hi Rick,

 Karl's suggestion seems the most elegant (assuming it works OK).

 


[jQuery] Re: jQuery barcode

2009-04-29 Thread Web Specialist
This plugin could be very useful when jquery runs in server side. Today,
with ColdFusion, we're creating reports with barcode inside using Java
Barbecue library.

Cheers
Marco Antonio

On Wed, Apr 29, 2009 at 1:28 PM, Ricardo ricardob...@gmail.com wrote:


 On Apr 29, 8:04 am, apaella apae...@gmail.com wrote:
  Hi all,
 I releades a new plugin for jquery named jQuery Barcode.
 
  http://code.google.com/p/jquery-barcode/
 
  Works with Opera, Firefox3, IE8, Prism, Gecko-based browsers
 
  Could someone review it?
 
  Thanks!

 Does this have any use case besides printing? If not, what's the point
 in making it a jQuery plugin? (just curious).


[jQuery] Re: Cycle Plugin - Can't Get Pause To Work

2009-04-29 Thread Mike Alsup

Nic, Are you still having a problem with this?  Your pause and resume
anchors appear to be working just fine.

Mike

On Apr 27, 3:04 am, Nic Hubbard nnhubb...@gmail.com wrote:
 Really?  No one knows why the cycle pause is not working?  Someone
 must be using this!

 On Apr 24, 8:25 am, Nic Hubbard nnhubb...@gmail.com wrote:



  Anyone?

  On Apr 23, 9:44 pm, Nic Hubbard nnhubb...@gmail.com wrote:

   Shawn,

   Yes, I havepauseon hover set, and this is correctly working.  It is
   when the overlay comes up, and it is suppose topausethe current
   image, which, my code seems to be correct to do so $
   ('#artistCycleParent').cycle('pause'); but it just keeps cycling and
   does not honor thepause.

   I have it in my click function, and everything in the click function
   does work, but not thepause.  Once the user clicks off of the
   overlay, it should resume.

   On Apr 23, 9:22 pm, Shawn sgro...@open2space.com wrote:

   Pauseis working for me, with a catch.

If my mouse is not over the image, it cycles.  Placing my mouse over the
image pauses the cycling.

Clicking the link brings up an overlay (?) and a form - at this point
the mouse is not over the image, but over the overlay/form.  So the
image cycles as it should.

I don't think you want thepauseoption here.  I think you want to
progamatically start/stop the cycling.  See the section Manually
Pausing a slideshow athttp://malsup.com/jquery/cycle/int2.html.

HTH.

Shawn

Nic Hubbard wrote:
 I am using thecycleplugin, but for some reason I can't get thepause
 feature to work.  I am showing a hidden div, and when I do, I need to
pausethe slideshow.
 Here is what I am using:

    $('#artistCycleParent').cycle({
            fx:      'fade',
            speed:    3000,
            timeout:  5000,
            pause:  1,
            next:   '#artworkNext',
            prev:   '#artworkPrev'
    });

    //Pausethecycle
    $('#pauseButton').click(function() {
            $('#artistCycleParent').cycle('pause');
            $(this).hide();
            $('#resumeButton').show();
            return false;
    });

    // Resume thecycle
    $('#resumeButton').click(function() {
            $('#artistCycleParent').cycle('resume');
            $(this).hide();
            $('#pauseButton').show();
            return false;
    });

 The code looks ok to me, but it just does not seem topause.

 Example:http://www.caldwellsnyder.com/artists/montoya-ortiz/view-artworks
 Click on Contact about artwork

 Thanks.


[jQuery] Re: Cycle Plugin - Can't Get Pause To Work

2009-04-29 Thread Mike Alsup

There is no 'start' command for cycle.  The available string commands
are stop, pause, and resume.  If you want to stop the slideshow, then
to restart you need to pass in the options again.

Mike


On Apr 29, 10:07 am, davebowker d...@davebowker.com wrote:
 Bump!

 Same problem here. Code looks fine?

         $('#feature .sim-link').toggle(function () {
                 $('#feature').cycle('stop');
         }, function() {
                 $('#feature').cycle('start');
         });

 Anyone have a solution?

 Dave

 On Apr 27, 8:04 am, Nic Hubbard nnhubb...@gmail.com wrote:



  Really?  No one knows why the cycle pause is not working?  Someone
  must be using this!

  On Apr 24, 8:25 am, Nic Hubbard nnhubb...@gmail.com wrote:

   Anyone?

   On Apr 23, 9:44 pm, Nic Hubbard nnhubb...@gmail.com wrote:

Shawn,

Yes, I havepauseon hover set, and this is correctly working.  It is
when the overlay comes up, and it is suppose topausethe current
image, which, my code seems to be correct to do so $
('#artistCycleParent').cycle('pause'); but it just keeps cycling and
does not honor thepause.

I have it in my click function, and everything in the click function
does work, but not thepause.  Once the user clicks off of the
overlay, it should resume.

On Apr 23, 9:22 pm, Shawn sgro...@open2space.com wrote:

Pauseis working for me, with a catch.

 If my mouse is not over the image, it cycles.  Placing my mouse over 
 the
 image pauses the cycling.

 Clicking the link brings up an overlay (?) and a form - at this point
 the mouse is not over the image, but over the overlay/form.  So the
 image cycles as it should.

 I don't think you want thepauseoption here.  I think you want to
 progamatically start/stop the cycling.  See the section Manually
 Pausing a slideshow athttp://malsup.com/jquery/cycle/int2.html.

 HTH.

 Shawn

 Nic Hubbard wrote:
  I am using thecycleplugin, but for some reason I can't get thepause
  feature to work.  I am showing a hidden div, and when I do, I need 
  to
 pausethe slideshow.
  Here is what I am using:

     $('#artistCycleParent').cycle({
             fx:      'fade',
             speed:    3000,
             timeout:  5000,
             pause:  1,
             next:   '#artworkNext',
             prev:   '#artworkPrev'
     });

     //Pausethecycle
     $('#pauseButton').click(function() {
             $('#artistCycleParent').cycle('pause');
             $(this).hide();
             $('#resumeButton').show();
             return false;
     });

     // Resume thecycle
     $('#resumeButton').click(function() {
             $('#artistCycleParent').cycle('resume');
             $(this).hide();
             $('#pauseButton').show();
             return false;
     });

  The code looks ok to me, but it just does not seem topause.

  Example:http://www.caldwellsnyder.com/artists/montoya-ortiz/view-artworks
  Click on Contact about artwork

  Thanks.


[jQuery] Re: Trouble selecting a P inside a repeating DIV

2009-04-29 Thread Ricardo

The nth-child index is relative to the whole collection of children
elements, not just the one you're selecting. With your new mark-up
you're better off doing this:

$(.insidepost ul + p)
//or
$(.insidepost p:first)
.addClass(caminfo)
.next('p').addClass(cambuy)
.next('p').addClass(cam..);

Looks a bit clearer to me and is safer in case you add other elements
before the paragraphs.

This is the first real possible use I've seen of the CSS3 nth-of-type
selector!

On Apr 29, 12:13 pm, Tobias tobi...@gmail.com wrote:
 Perfect.  But just for future helpfulness of anyone coming across this
 post- I simplified my code above, it actually looks like

   div class=insidepost

 iframeBlah Blah Blah/iframe
 ul
 liitem 1/li
 liitem 2/li
 liitem 3/li
 /ul

   pparagraph 1/p
   pparagraph 2/p
   pparagraph 3/p
   /div

 As a consequence I need to use $(.insidepost p:nth-child(3)).addClass
 (caminfo); to get it to add that class to the FIRST paragraph.  Not
 sure why it counts other items in the list of children. . . or maybe I
 don't quite understand how the child works - I thought it was just
 counting the P children inside the div.

 Anyway - Thanks Ricardo, appreciate the help.

 --Tobias

 On Apr 28, 11:11 pm, Ricardo ricardob...@gmail.com wrote:

  That's because eq() filters the whole collection of Ps from all DIVs.
  Use nth-child instead (indexes start at 1 instead of 0):

  $(.insidepost p:nth-child(1)).addClass(cambottomline);
  $(.insidepost p:nth-child(2)).addClass(cambuy);

  cheers,
  - ricardo

  On Apr 28, 10:15 pm, Tobias tobi...@gmail.com wrote:

   Hello - My basic code is something like

   div class=insidepost
   pparagraph 1/p
   pparagraph 2/p
   pparagraph 3/p
   /div

   div class=insidepost
   pparagraph 1/p
   pparagraph 2/p
   pparagraph 3/p
   /div

   I was hoping to use

                   $(.insidepost p:eq(1)).addClass(cambottomline);

                   $(.insidepost p:eq(2)).addClass(cambuy);

   Only works on the first div though.  Any suggestions for selecting the
   same certain P in each div?

   Thank you,
   Tobias


[jQuery] Re: fadein thumbnails when loaded

2009-04-29 Thread Rick Faircloth
Thanks for the explanation, Kevin!

Rick

On Wed, Apr 29, 2009 at 12:58 PM, Kevin Dalman kevin.dal...@gmail.comwrote:


 Hi Rick,

 Karl's suggestion seems the most elegant (assuming it works OK).

 Here is some sample code for what he is suggesting

 -- in HEAD or a stylesheet...
 body.js #media-gallery ul li img {
   /* opacity *may* work better than display:none */
   opacity: 0.01;
   filter: alpha(opacity=1);
 }

 And in your JS...
 $(function() {
$(#media-gallery ul img).fadeIn(2000);
 });

 Then add this JS to your HTML - immediately after the BODY tag...

 body
 script type=text/javascript
   document.documentElement.className = js;
 -OR-
   $('body').addClass(js);
 /script

 In theory, the images will only be hidden (1% opacity) if Javascript
 is enabled, because otherwise BODY will not have the 'js' class,
 therefore your CSS rule will not have any effect. Since you are adding
 the class *before* the images are added to the DOM, they should load
 transparent. And because they are not 'hidden' (display:none), the
 images will still take up their normal space when loading, instead of
 making the page 'jump' they they are made visible.

 /Kevin


 On Apr 28, 4:26 am, Rick Faircloth r...@whitestonemedia.com wrote:
   In the head you can do this:
   script type=text/javascript document.documentElement.className =
  'js';/script
   Then you can set styles for elements as descendants of .js.
 
  Karl...will you explain a little more about what this means and perhaps
 give
  an
  example of its implementation?  Or is there a blog or tutorial somewhere?
 
  Thanks,
 
  Rick




-- 
-
It has been my experience that most bad government is the result of too
much government. - Thomas Jefferson


[jQuery] [treeview] top node (root) is open but has plus sign????

2009-04-29 Thread Marv

I have a treeview where there is only one node at the top of the tree
with several child nodes -- some having child nodes -- some not. All
open / close indicators are as expected EXCEPT the very top one which
even though the node is open it show a '+' sign rather than a '-' sign
which is the normal display for an open node. Also clicking this top
node's '+' closes the whole list AND changes the indicator to a '-'
sign. Again, not what you would expect.

Any ideas?


[jQuery] Re: Cycle Plugin - Can't Get Pause To Work

2009-04-29 Thread Nic Hubbard

Hi Mike,

Yes, still having issues.  It is not the anchors that I am concerned
about (the pause/play icon).  It is when you click the Contact about
this artwork link, it should be pausing the cycle, which it is not
doing.

This is where my problem lies.

On Apr 29, 10:15 am, Mike Alsup mal...@gmail.com wrote:
 Nic, Are you still having a problem with this?  Your pause and resume
 anchors appear to be working just fine.

 Mike

 On Apr 27, 3:04 am, Nic Hubbard nnhubb...@gmail.com wrote:

  Really?  No one knows why the cycle pause is not working?  Someone
  must be using this!

  On Apr 24, 8:25 am, Nic Hubbard nnhubb...@gmail.com wrote:

   Anyone?

   On Apr 23, 9:44 pm, Nic Hubbard nnhubb...@gmail.com wrote:

Shawn,

Yes, I havepauseon hover set, and this is correctly working.  It is
when the overlay comes up, and it is suppose topausethe current
image, which, my code seems to be correct to do so $
('#artistCycleParent').cycle('pause'); but it just keeps cycling and
does not honor thepause.

I have it in my click function, and everything in the click function
does work, but not thepause.  Once the user clicks off of the
overlay, it should resume.

On Apr 23, 9:22 pm, Shawn sgro...@open2space.com wrote:

Pauseis working for me, with a catch.

 If my mouse is not over the image, it cycles.  Placing my mouse over 
 the
 image pauses the cycling.

 Clicking the link brings up an overlay (?) and a form - at this point
 the mouse is not over the image, but over the overlay/form.  So the
 image cycles as it should.

 I don't think you want thepauseoption here.  I think you want to
 progamatically start/stop the cycling.  See the section Manually
 Pausing a slideshow athttp://malsup.com/jquery/cycle/int2.html.

 HTH.

 Shawn

 Nic Hubbard wrote:
  I am using thecycleplugin, but for some reason I can't get thepause
  feature to work.  I am showing a hidden div, and when I do, I need 
  to
 pausethe slideshow.
  Here is what I am using:

     $('#artistCycleParent').cycle({
             fx:      'fade',
             speed:    3000,
             timeout:  5000,
             pause:  1,
             next:   '#artworkNext',
             prev:   '#artworkPrev'
     });

     //Pausethecycle
     $('#pauseButton').click(function() {
             $('#artistCycleParent').cycle('pause');
             $(this).hide();
             $('#resumeButton').show();
             return false;
     });

     // Resume thecycle
     $('#resumeButton').click(function() {
             $('#artistCycleParent').cycle('resume');
             $(this).hide();
             $('#pauseButton').show();
             return false;
     });

  The code looks ok to me, but it just does not seem topause.

  Example:http://www.caldwellsnyder.com/artists/montoya-ortiz/view-artworks
  Click on Contact about artwork

  Thanks.


[jQuery] [treeview] what are the possible options for this plugin?

2009-04-29 Thread Marv

There doesn't seem to be any place that I can find which explains the
options available for the treeview plugin. Does anyone have a link or
reference as to what the options are and what their settings mean?


[jQuery] [validate] $.format conflict

2009-04-29 Thread h3

Hello there,

I'm the author of the jQuery Timepickr (http://haineault.com/media/
jquery/ui-timepickr/page/) and I had a bug report which was resolved
by a user. He found a conflict with my library and
jquery.validation.js.

http://code.google.com/p/jquery-utils/issues/detail?id=15

Both are used for forms, so it's quite likely that other people will
run into this bug and either blame your plugin or mine.

Normally I would just quickly resolve the conflict on my side, but
this would be relatively problematic and might not be the best option
in this case.

My Timepickr also use a method called $.format, which is another
plugin I've wrote. Basically your function and mine works exactly
likewise, which mean you could swap yours by mine and everything
should work as expected since you use the same syntax. However the
contrary is not true because mine is a complete Python 3K string
formatting implementation. Which means it can do type casting and zero
padding among others things.

More infos:
http://code.google.com/p/jquery-utils/wiki/StringFormat?ts=1241029709updated=StringFormat#format

The other difference is that mine is a plugin in itself, which means I
used it in many other plugins and some people might also be using it
while yours seems to be used solely for internal purpose and does not
look like it was created to be reused by other plugins.

So I ask you if it would be possible to either rename your $.format
method or scope it within your plugin.

Kind regards

Maxime Haineault
http://haineault.com


[jQuery] Re: countdown Plugin

2009-04-29 Thread gozigo_milis gozigo_milis
Sorry my English Is Bad:)

I'm developing a web for online auction product. Each item have a different
time , it get from database depend on item
Example :
Item A = Countdown 00:00:60 ( threshold 15)
Item B = Countdown 00:00:45 ( threshold 10)
Item C = Countdown 00:00:30 ( threshold 5)

If the bidder bid item A under threshold, the time will be add 45 second and
if the other bidder bid again  the time not be added, it means max time is
60 second.

THe problem is

How do I create a script so that the Auction does not connect to the server
every second to check condition (like bidder, time, price and other) .
 Connections should be made to the server if someone bid the item,  with the
other world server doing ajax push to browser not browser to server.


Thanks



On Wed, Apr 29, 2009 at 9:36 PM, Chacha Golden chacha...@gmail.com wrote:

 Could you restate that last line If the countdown is done then the bid
 will be 30 seconds. I don't quite understand it


 On Wed, Apr 29, 2009 at 5:43 AM, gozigo_milis gozigo_milis 
 gozigomi...@gmail.com wrote:

 I'm developing a web for online auction items. Each item will have a
 countdown such as 00:10:00 and will go down if the user does not make a bid.
 If the countdown is done then the bid will be 30 seconds.

 The problem is:

 How do I create a script so that the Auction does not connect to the
 server every second? Connections should be made to the server if there is to
 do a bid.

 Thanx




 --
 Chacha102
 One of a kind
 http://chacha102.com
 http://just102.wordpress.com

 We have come to something so mysterious,
 Too deep for minds to comprehend,
 Through the open doors,
 Where the angels sing,
 And the hosts of heaven are antheming.



[jQuery] Re: why is :first-child selecting sub elements?

2009-04-29 Thread MorningZ

I don't understand.. there's no where that you are using :first-
child like your subject line says

On Apr 29, 11:43 am, Liming lmxudot...@gmail.com wrote:
 Hello all, I have a lay out like so

 div id=childtest_toprow
                 div id=subtest_1
                         div id=subtest_1_1/div
                         div id=subtest_1_2/div
                 /div
                 /div
                 div id=subtest_2
                 /div
 /div

 I want to select the first child of childtest_toprow which is
 subtest_1

 when i do

 $(div[id ^= 'childtest_' ] :nth-child(1)).each(function() {
                                         alert( $(this).attr(id) )

 });

 I get subtest_1 AND subest_1_1

 what am I doing wrong?

 Thanks

 ps: i'm using firefox 3 and IE 7


[jQuery] Re: Superfish and IE6 Z-Index

2009-04-29 Thread Forrest

I needed to add a little more to this entry. I now have a new problem
in IE7. The flyout portion of the vertical menu forces the content of
the center section down, causing a large gap in the content. Looking
forward to some wisdom here.

Thanks.


[jQuery] Re: why is :first-child selecting sub elements?

2009-04-29 Thread Liming

my bad. I was changing it around. It shoudl be

$(div[id ^= 'childtest_' ] :first-child).each(function() {
alert( $(this).attr(id) )

});

On Apr 29, 3:55 pm, MorningZ morni...@gmail.com wrote:
 I don't understand.. there's no where that you are using :first-
 child like your subject line says

 On Apr 29, 11:43 am, Liming lmxudot...@gmail.com wrote:

  Hello all, I have a lay out like so

  div id=childtest_toprow
                  div id=subtest_1
                          div id=subtest_1_1/div
                          div id=subtest_1_2/div
                  /div
                  /div
                  div id=subtest_2
                  /div
  /div

  I want to select the first child of childtest_toprow which is
  subtest_1

  when i do

  $(div[id ^= 'childtest_' ] :nth-child(1)).each(function() {
                                          alert( $(this).attr(id) )

  });

  I get subtest_1 AND subest_1_1

  what am I doing wrong?

  Thanks

  ps: i'm using firefox 3 and IE 7


[jQuery] Re: jQuery barcode

2009-04-29 Thread Ricardo

Not really since it uses img elements to draw the barcode. But
interfacing with a bitmap library or a saveable canvas would be very
interesting indeed.

On Apr 29, 2:14 pm, Web Specialist especialista...@gmail.com wrote:
 This plugin could be very useful when jquery runs in server side. Today,
 with ColdFusion, we're creating reports with barcode inside using Java
 Barbecue library.

 Cheers
 Marco Antonio

 On Wed, Apr 29, 2009 at 1:28 PM, Ricardo ricardob...@gmail.com wrote:

  On Apr 29, 8:04 am, apaella apae...@gmail.com wrote:
   Hi all,
      I releades a new plugin for jquery named jQuery Barcode.

  http://code.google.com/p/jquery-barcode/

   Works with Opera, Firefox3, IE8, Prism, Gecko-based browsers

   Could someone review it?

   Thanks!

  Does this have any use case besides printing? If not, what's the point
  in making it a jQuery plugin? (just curious).


[jQuery] Double submitted ajax requests

2009-04-29 Thread Josh Ain
Very intermittently, I am finding ajax requests submitted with jquery are
being submitted twice, once with parameters, and once without parameters.
The code looks something like this:

jQuery.post(url?id=id,
{param1: param1,
  param2: param2,
  id: id},
  callback);

We are using jquery 1.3.1, and the error occurred most recently from a
firefox 2 browser.

What we see on the server side, is a request with all the expected
parameters, then about 200ms later, a request with only the id parameter.
Does anybody have any idea why this is happening, and how to avoid this
issue?

Thank you for any assistance!

Josh Ain
ITA Software


[jQuery] Change text items in URL

2009-04-29 Thread Tim

I have three radio boxes set up where each one is a different value. -
red - blue - green

I'd like when one of them is clicked to change the value of the url.
So for example --Changethisvalue-- would be actively updated on each
click.

http://domain.com/ad/campaign/g/--Changethisvalue--/dck/35


[jQuery] Re: why is :first-child selecting sub elements?

2009-04-29 Thread Karl Swedberg

Hi Liming,

Just a child combinator rather than a descendant combinator:

$(div[id ^= 'childtest_' ]  :first-child).each(function() {
   alert( $(this).attr(id) )

});



--Karl


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




On Apr 29, 2009, at 4:14 PM, Liming wrote:



my bad. I was changing it around. It shoudl be

$(div[id ^= 'childtest_' ] :first-child).each(function() {
   alert( $(this).attr(id) )

});

On Apr 29, 3:55 pm, MorningZ morni...@gmail.com wrote:

I don't understand.. there's no where that you are using :first-
child like your subject line says

On Apr 29, 11:43 am, Liming lmxudot...@gmail.com wrote:


Hello all, I have a lay out like so



div id=childtest_toprow
div id=subtest_1
div id=subtest_1_1/div
div id=subtest_1_2/div
/div
/div
div id=subtest_2
/div
/div



I want to select the first child of childtest_toprow which is
subtest_1



when i do



$(div[id ^= 'childtest_' ] :nth-child(1)).each(function() {
alert( $(this).attr(id) )



});



I get subtest_1 AND subest_1_1



what am I doing wrong?



Thanks



ps: i'm using firefox 3 and IE 7




[jQuery] Grabbing text inside an alt tag

2009-04-29 Thread Andy

Is there a way to grab the text from inside a alt tag?  I have a site
that will have tons of span tags and I need to go through all of them
searching for the alt= attribute then grab it.


I'm using some non-jQuery javascript, so I'm sure there is an easier
way to format this than what I currently have.  Any thoughts on this
would be great.


- html example:

spantext here/span
span alt=Joetext here/span
span alt=Jimtext here/span
spantext here/span



- Javascript.

// grab all spans on page.
var elem = window.opener.document.getElementsByTagName(span);

// make sure spans have alt attribute
for (var i = 0; i  elem.length; i++) {
   if (!!$(elem[i]).attr(printElement)) {

    Where do I go from here?
   . would like to do a document.write(span element
alt value);

   }

}







Any thoughts on this would be great.


[jQuery] Re: Grabbing text inside an alt tag

2009-04-29 Thread Charlie Griefer

On Wed, Apr 29, 2009 at 3:17 PM, Andy adharb...@gmail.com wrote:

 Is there a way to grab the text from inside a alt tag?  I have a site
 that will have tons of span tags and I need to go through all of them
 searching for the alt= attribute then grab it.


 I'm using some non-jQuery javascript, so I'm sure there is an easier
 way to format this than what I currently have.  Any thoughts on this
 would be great.


 - html example:

 spantext here/span
 span alt=Joetext here/span
 span alt=Jimtext here/span
 spantext here/span

script type=text/javascript
$(document).ready(function() {
$('span').each(function() {
if ($(this).attr('alt') == undefined)
$(this).attr('alt', '');
});
});
/script

-- 
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.


[jQuery] Fade Background Help

2009-04-29 Thread PF

Hi everyone.


I am using the following method to fade backgrounds in and out with
jQuery:

http://www.supercow.nl/jquery/fading_background.html

I am wondering if anyone knows of a way to make the pictures fade into
the next picture instead of fading to a background and then the
picture.

Thanks for any help.


[jQuery] Re: Changing the Cell Colors in DatePicker

2009-04-29 Thread Code Daemon

Thanks, this works.

Before using the attr() method, I was trying to use removeClass
().addClass(). This worked to remove the formatting the previous class
had made, but the class I was trying to add had no effect.





On Apr 29, 1:46 am, MOZ pbe...@gmail.com wrote:
 Try
 $(this).css({'background-color':'', 'color':''});

 http://docs.jquery.com/CSS/css#namevalue

 On Apr 29, 11:40 am, Code Daemon ryan.det...@gmail.com wrote:

  I've tried to two different datepicker scripts and what I'm trying to
  do is hilite which dates satisfy a certain condition.

  For example, when the page loads I will make a JSON call to the server
  to return all dates that are holidays, then on the inline datepicker I
  want to hilite those cells in red.

  What I'm doing now is something like this in the JQuery-UI datepicker
  implementation but nothing works:

                  'onChangeMonthYear':
                                  function(date){
                                          $(.ui-state-default).each(
                                                  function(){
                                                          
  $(this).attr(color, red);  //for testing, change font color
                                                  }
                                          );
                                  }

                          });


[jQuery] Re: Grabbing text inside an alt tag

2009-04-29 Thread mkmanning

A couple thoughts:

'alt' isn't a valid attribute of span; use 'title'.

Using jQuery doesn't necessarily equate to easier.

//POJS
for (var i = 0; i  elem.length; i++) {
  if(!elem[i].title){elem[i].title=;}
}

//jQuery
$('span').each(function(){
  if(!this.title){this.title=;}
});

On Apr 29, 3:17 pm, Andy adharb...@gmail.com wrote:
 Is there a way to grab the text from inside a alt tag?  I have a site
 that will have tons of span tags and I need to go through all of them
 searching for the alt= attribute then grab it.

 I'm using some non-jQuery javascript, so I'm sure there is an easier
 way to format this than what I currently have.  Any thoughts on this
 would be great.

 - html example:

 spantext here/span
 span alt=Joetext here/span
 span alt=Jimtext here/span
 spantext here/span

 - Javascript.

 // grab all spans on page.
 var elem = window.opener.document.getElementsByTagName(span);

 // make sure spans have alt attribute
 for (var i = 0; i  elem.length; i++) {
        if (!!$(elem[i]).attr(printElement)) {

                 Where do I go from here?
                . would like to do a document.write(span element
 alt value);

        }

 }

 Any thoughts on this would be great.


[jQuery] quick question about loading in form elements using load()

2009-04-29 Thread sneaks

Hi, hope everyone is well...
my problem is simple, i am using load() to add an external file form
contents to the dom. normally i have a listener   for form elements
such as inputs and textareas in my $(function() {  }) that adds a
class to inputs on focus and removes it on blur...

but it doesnt work on the form that is load() 'ed in unless i have the
script embedded in the html that is load()'ed

i can live with this but i am curious if anyone knows the proper way
where i can keep my javascript separate from the html?

thanks and for the curious out there here is the code:

[code]
jQuery(function() {
// pretty up the form elements on focus
jQuery('input').focus(function() {
jQuery(this).addClass('focus');
}).blur(function() {
jQuery(this).removeClass('focus');
});

jQuery('textarea').focus(function() {
jQuery(this).addClass('focus');
}).blur(function() {
jQuery(this).removeClass('focus');
});
});
[/code]



[jQuery] full file path from file input

2009-04-29 Thread skunkwerk

Hi,
   some of the newer browsers (firefox 3) only make the filename
available from a file input element, even though the full path is
displayed in the text box.  anyone know of any techniques to get
around this?  i've tried using google gears, flash, and considered a
java applet, but am having trouble with the first 2 and i don't want
to resort to java.  the reason i need the full path is because this
i'm writing a local application, not uploading files to a server or
anything.

https://developer.mozilla.org/en/Updating_web_applications_for_Firefox_3#File_upload_fields

thanks


[jQuery] Re: XMLDOM extension plugin for jQuery

2009-04-29 Thread Jeffrey

Found some issue, the plugin is under modification now and will
republish latter, sorry.

On 4月29日, 下午5時50分, Jeffrey darkthr...@gmail.com wrote:
 I found that appending XML string as XML node will fail in IE, so I
 wrote a small plugin to solve the problem, here is my 
 post:http://blog.darkthread.net/blogs/darkthreadtw/archive/2009/04/29/jque
 Feel free to give me some feedback.


[jQuery] Zebra (stripes) Widget vs Colgroups (CSS)

2009-04-29 Thread David Blomstrom
I'm using jQuery and the Zebra widget to produce alternately colored rows on
my tables. It works great but it kills my CSS colgroup functions. For
example, the following code...
table class=sortphp id=myTable
colgroup style=background: #0ff;/colgroup
colgroup style=background: #ff0;/colgroup
thead
...should produce a table where every cell in the first column is aqua,
every cell in the second yellow. But if my Zebra widget dictates that
alternate rows are gray and white, then EVERY cell in every row and column
is either gray and white.
Does anyone know if there's a way to reverse the relationship, so that
colgroups trump alternate row colors? It isn't absolutely critical, as I
could probably accomplish my goal by simply assigning each cell a class
(e.g. td class=red), but I'd prefer to use colgroups for bigger tables.
I posted my JavaScript links below. Thanks.
* * * * *
script src=http://MySite/js/jquery-1.3.1.min.js;
type=text/javascript/script
script src=http://MySite/js/tablesorter/jquery.tablesorter.js;
type=text/javascript/script
script language=JavaScript type=text/JavaScript
 $(document).ready(function()
  {
  $(#myTable).tablesorter({ widgets: ['zebra']} );

$(#triggerMS).click(function(){
 $(#menuMS).show();
 return false;
});
$(#menuMS).click( function(){
 $(#menuMS).hide();
 return true;
});

$(#triggerReg).click(function(){
 $(#menuReg).show();
 return false;
});
$(#menuReg).click( function(){
 $(#menuReg).hide();
 return true;
});

$(#triggerKids).click(function(){
 $(#menuKids).show();
 return false;
});
$(#menuKids).click( function(){
 $(#menuKids).hide();
 return true;
});

$(#triggerLinks).click(function(){
 $(#menuLinks).show();
 return false;
});
$(#menuLinks).click( function(){
 $(#menuLinks).hide();
 return true;
});

$(#triggerBooks).click(function(){
 $(#menuBooks).show();
 return false;
});
$(#menuBooks).click( function(){
 $(#menuBooks).hide();
 return true;
});

  }
 );
/script
-- 
David Blomstrom
Writer  Web Designer (Mac, M$  Linux)
www.geobop.org


[jQuery] Applying Table Row Sorter to Multiple Tables

2009-04-29 Thread David Blomstrom
I'm using jQuery's tablesorter.js to create tables with sortable rows, as
applied to tables with the ID myTable.
I just wondered if there's a way to make it work with multiple tables on a
single page. I created two tables and gave each of them the ID myTable, but
only the first table worked. I can't remember if the specific ID is required
for my Zebra widget (alternate row colors), too, or not, but I would guess
it is.
I posted my JS links below, to show you my setup. Thanks for any tips.
* * * * *
script src=http://MySite/js/jquery-1.3.1.min.js;
type=text/javascript/script
script src=http://MySite/js/tablesorter/jquery.tablesorter.js;
type=text/javascript/script
script language=JavaScript type=text/JavaScript
 $(document).ready(function()
  {
  $(#myTable).tablesorter({ widgets: ['zebra']} );

$(#triggerMS).click(function(){
 $(#menuMS).show();
 return false;
});
$(#menuMS).click( function(){
 $(#menuMS).hide();
 return true;
});

$(#triggerReg).click(function(){
 $(#menuReg).show();
 return false;
});
$(#menuReg).click( function(){
 $(#menuReg).hide();
 return true;
});

$(#triggerKids).click(function(){
 $(#menuKids).show();
 return false;
});
$(#menuKids).click( function(){
 $(#menuKids).hide();
 return true;
});

$(#triggerLinks).click(function(){
 $(#menuLinks).show();
 return false;
});
$(#menuLinks).click( function(){
 $(#menuLinks).hide();
 return true;
});

$(#triggerBooks).click(function(){
 $(#menuBooks).show();
 return false;
});
$(#menuBooks).click( function(){
 $(#menuBooks).hide();
 return true;
});

  }
 );
/script


-- 
David Blomstrom
Writer  Web Designer (Mac, M$  Linux)
www.geobop.org


-- 
David Blomstrom
Writer  Web Designer (Mac, M$  Linux)
www.geobop.org


[jQuery] tablesorter.js vs Numerals with Commas

2009-04-29 Thread David Blomstrom
I'm using jQuery's tablesorter.js to create tables with sortable rows. It
works fine on both text and numerals - but only if they have no commas. For
example, the following column would sort properly:
2
18
401
3
15
But this column...
1,200
408
26,048
...would sort like this:
1,200
26,048
408
Does anyone know how to fix this?
I'm using PHP and MySQL to derive my data from a database table, using the
following code:
$Area = number_format($row[Area]);
Then I simply insert $Area in a dynamic table cell, like so...
td$Area/td
I posted my JavaScript links below. Thanks for any tips!
* * * * *
script src=http://MySite/js/jquery-1.3.1.min.js;
type=text/javascript/script
script src=http://MySite/js/tablesorter/jquery.tablesorter.js;
type=text/javascript/script
script language=JavaScript type=text/JavaScript
 $(document).ready(function()
  {
  $(#myTable).tablesorter({ widgets: ['zebra']} );

$(#triggerMS).click(function(){
 $(#menuMS).show();
 return false;
});
$(#menuMS).click( function(){
 $(#menuMS).hide();
 return true;
});

$(#triggerReg).click(function(){
 $(#menuReg).show();
 return false;
});
$(#menuReg).click( function(){
 $(#menuReg).hide();
 return true;
});

$(#triggerKids).click(function(){
 $(#menuKids).show();
 return false;
});
$(#menuKids).click( function(){
 $(#menuKids).hide();
 return true;
});

$(#triggerLinks).click(function(){
 $(#menuLinks).show();
 return false;
});
$(#menuLinks).click( function(){
 $(#menuLinks).hide();
 return true;
});

$(#triggerBooks).click(function(){
 $(#menuBooks).show();
 return false;
});
$(#menuBooks).click( function(){
 $(#menuBooks).hide();
 return true;
});

  }
 );
/script

-- 
David Blomstrom
Writer  Web Designer (Mac, M$  Linux)
www.geobop.org


[jQuery] Re: XMLDOM extension plugin for jQuery

2009-04-29 Thread Jeffrey

I just changed the plugin to use XMLDOM more correctly.  It's version
1.1 beta now.
http://blog.darkthread.net/blogs/darkthreadtw/archive/2009/04/29/jquery-xmlext-plugin.aspx



[jQuery] unsubscribe

2009-04-29 Thread Venkatesan Kannan
Please unsubscribe from this group.


  1   2   >