[jQuery] Re: Using jQuery with Wordpress

2009-02-04 Thread MH1988

I finally found some documentation regardng this. It seems that using
jQuery inconjuction with Wordpress is fine however, you must use
jQuery () instead of $. Further details also suggest that Wordpress
won't register a jQuery plugin.

On Feb 4, 6:43 pm, MH1988 m.lawrencehu...@gmail.com wrote:
 Oh, thank you for responding back. I didn't think I would get a reply
 at all.

 The problem I am having seems to be that jQuery + the jQuery Cycle
 plugin with simple fade and prev/next transitions does not work at
 all. My main reason for using it is I would like to include it in each
 Wordpress post when I want to present images. This is my page here: a
 href=http://www.culturesinbetween.net/NEWWEBSITE/archives/260;page/
 a

 I have embedded jQuery v. 2.34 and the Cycle plugin v. 1.3.1

 What I have done is evoked the function within the header.php file.
 The only thing I have done is put in the div's in the Wordpress post
 but nothing works.

 I've put overflow: hidden for the div

 I don't know why but works perfectly for users using Indexhibit
 (www.indexhibit.org)

 Mike

 On Feb 4, 3:20 am, Penner, Matthew mpen...@valverde.edu wrote:

  Is jQuery working at all?  I've noticed that WordPress can be very
  intrusive when you put javascript in posts.  When I would first write a
  post with js embedded it would work, but the instant I edited it online
  the helpful editor textbox would reformat my js and break it.

  If you want your gallery to be a permanent fixture (ie. On the side bar
  rather than just a single post) I would suggest you edit your theme
  directly.  This should avoid any WordPress issues.

  Matt Penner

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

  Behalf Of MH1988
  Sent: Tuesday, February 03, 2009 5:58 AM
  To: jQuery (English)
  Subject: [jQuery] Using jQuery with Wordpress

  I am having problems using jquery with wordpress. I would like to use
  the simple gallery plugin but it will not fade in/out my images. Help?


[jQuery] Re: animations; browser problem or bad code?

2009-02-04 Thread re5et

uh that's odd, I don't get any errors in FF (except Warning: Error in
parsing value for property 'opacity'.  Declaration dropped.)

I know it's not usable in IE6 as I haven't done anything towards IE
compatibility yet.

thanks for telling me about the error, though.

so... does it work for everyone in FF? for me in all browsers but IE7
there's no animation when the content panel opens. the closing
animations works most of the time but then it immediately jumps to
'open' instead of smoothly animating the width of the content div.

I've tried disabling firebug and the dev toolbar to see if it works
better without them but there was no difference - some odd settings in
FF maybe?


[jQuery] [tooltip] Upgraded to jquery 1.3.1 Tooltips doesn't show up

2009-02-04 Thread ksuess

 Upgraded to jquery 1.3.1 Tooltips doesn't show up


[jQuery] Re: Upgraded to jquery 1.3.1 Tooltips doesn't show up

2009-02-04 Thread ksuess

Sorry my first post didn't show up in list and search..

On Feb 4, 10:02 am, ksuess k.su...@crojewe.ch wrote:
  Upgraded to jquery 1.3.1 Tooltips doesn't show up


[jQuery] Re: Simple selector not working in 1.3.1 and webkit (safari and chrome)

2009-02-04 Thread Javier Martinez
Sure!

Created http://dev.jquery.com/ticket/4058

Hope there is some easy patch, if not, I will regret to 1.2.6 inmediately :(



2009/2/3 John Resig jere...@gmail.com


 That's odd. Could you file a bug on this?
 http://dev.jquery.com/newticket

 Thanks!

 --John



 On Tue, Feb 3, 2009 at 10:39 AM, Javier Martinez ecentin...@gmail.com
 wrote:
  I'm creating a component for an application I'm developing and I have
  upgraded jquery to the last version to get it's speed boost.
  After some testing I have seen that my component is not working correctly
 in
  webkit browsers because there is some bug with the new Sizzle selector of
  the new jquery.
  I can't provide my source files, but I have created a simple test case
 that
  shows this error.
 
  !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Strict//EN
  http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd;
  html xmlns=http://www.w3.org/1999/xhtml; xml:lang=en lang=en
  head
  meta http-equiv=Content-Type content=text/html; charset=utf-8 /
  script type=text/javascript src=jquery.js/script
  script type=text/javascript
  $(function() {
  var container = $('#container');
 
  var containerSelecteds = function() {
  return container.find('ul.selected');
  };
 
  var bodySelecteds = function() {
  return $('ul.selected');
  };
 
  var select = function(nodes) {
  containerSelecteds().removeClass('selected');
 
  nodes.addClass('selected');
 
  // the container html show me that the element has the
 class
  selected
  alert(container.html());
 
  // webkit (chrome and safari) says that there are no
  elements inside of container with the class selected
  alert(containerSelecteds().length);
 
  // but the element exists in the dom, and it has the
  classname selected !!
  alert(bodySelecteds().length);
  };
 
  var element = $('ul
  class=someclassliMyText/li/ul').appendTo(container);
  select(element, false);
  });
  /script
  /head
  body
  div id=container style=border:1px solid
  #ccc;height:300px;width:300px/div
  /body
  /html
 
 
  I will try to explain the error: I'm inserting a node inside the
 container
  div, and applying a classname selected to this node. After this, I want
 to
  select the nodes inside container that have this classname. Firefox,
 IE,
  etc, says that there is one node inside container. But webkit browsers
  says that there is a node with this classname in the dom, but not inside
  container.
 
  I think that this is a quite simple css selector, so I don't know why it
  fails.
 
 
  Thanks.
 
  PD: it doesn't fails with jquery 1.2.6
 



[jQuery] Metadata and firefox 3.1beta2

2009-02-04 Thread maxbnet


Firefox 3.1b2 has a problem with \n.

Test OK
div id=test1 class=metadata {type : 'p',colors : ['5131C9'],size :
'300x200'}/div

Test KO
div id=test2 class=metadata {
type : 'p',
colors : ['5131C9'],
size : '300x200'
}/div

you can use this solution to fix this bug:

cre.exec( string.replace(\n,) );


[jQuery] Re: Select empty textbox fields

2009-02-04 Thread Adrian Lynch

I was putting together an simple example to ask another question when
I came across the same problem. Here's a basic example to highlight
what's happening:

script type=text/javascript src=/scripts/jquery-1.3.1.min.js/
script
script type=text/javascript
$(function() {
alert($(input[value='']).attr(id));
});
/script
div
input type=text value=1 id=input-1 /
/div

div
input type=text value= id=input-2 /
/div
div
input type=text value=3 id=input-3 /
/div

I was looking to select empty input but I now might have to loop over
them and check .val instead.

Anyone know if this is a bug or am I doing something wrong?

Adrian

On Feb 3, 10:57 pm, brnwdrng brianwoodr...@gmail.com wrote:
 I have a set of text box inputs in a div, and want to color the empty
 ones red (css) when a user attempts to submit incomplete fields. I've
 tried this with and without an explicit iterator, as shown in the two
 examples below.

 (a)
 $(#%= this.pnlInputFields.ClientID % input[class='inputFields']
 [value='']).toggleClass('inputFields_empty');

 (b)
 $(#%= this.pnlInputFields.ClientID % input
 [class='inputFields']).each(function(i) { $(this).toggleClass
 ('inputFields_empty', $.trim($(this).val()).length  1); });

 The first one fails with an error message indicating that [value='']
 is an unrecognized expression (Firebug), though [value='helloworld']
 works, correctly toggling the inputFields_empty class on (but not off)
 wherever it finds helloworld in a text box.  I've tried countless
 variations on this, and can't seem to get it right for an empty field
 (tried :empty too).

 The second one (b) works, at least initially, highlighting the empty
 text boxes. Not as elegant as something like (a) might be, but I'll
 use it if (a) is infeasible.  Note that it only works the first time
 my button is pushed; subsequent changes in the textbox fields (like
 the user erasing them) fail to remove the inputField_empty class (not
 posting back, just have a onclick call that runs this validator
 method).

 Any suggestions?


[jQuery] Re: click event

2009-02-04 Thread jQuery Lover

You can take advantage of event delegation by binding click event to
the table tag and checking with if statement if the clicked cell is
not the one that has a checkbox.

For event delegation see:
http://www.learningjquery.com/2008/03/working-with-events-part-1

For row checking and stuff see:
http://www.askthecssguy.com/2008/10/josh_asks_the_css_guy_about_ro.html

For other jQuery howto's see: http://jquery-howto.blogspot.com



On Wed, Feb 4, 2009 at 3:28 PM, jq noob sammil...@alliancecom.net wrote:

 I want to do a onclick event for anywhere in a table row except for a
 specific cell. In that cell I want to be able to click a checkbox. I
 have any # of rows and 12 columns in the table. I usually use a
 something like this

 tr onclick=window.location='%=site_location%?noCache=%=randomnum()
 %itemID=%=itemID%';
 onmouseover=this.style.backgroundColor='white';
 this.style.cursor='pointer';
 onmouseout=this.style.backgroundColor='%=strColor%';
 this.style.cursor='default';
 style=background-color:%=strColor%;

 In this instance I also need to allow the user to check on a bunch of
 rows and submit to another page  with the records selected. I also
 would like to still keep the row click because this is used everywhere
 else.

 I presume that someone could tell me how to handle this easily with
 JQuery

 Thanks in advance.


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

2009-02-04 Thread Adrian Lynch

Hello all. I have the following...

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

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

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

More out of curiosity than need ;)

Thanks.

Adrian


[jQuery] Re: animations; browser problem or bad code?

2009-02-04 Thread re5et

will do what you suggested about the content loading, thanks!

I temporarily disabled the content loading but it didn't have any
effect on the animations :(


[jQuery] Re: Select empty textbox fields

2009-02-04 Thread jQuery Lover

Try this:

$(#%= this.pnlInputFields.ClientID %
input.inputFields:empty).addClass('inputFields_empty');


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



On Wed, Feb 4, 2009 at 3:57 AM, brnwdrng brianwoodr...@gmail.com wrote:

 I have a set of text box inputs in a div, and want to color the empty
 ones red (css) when a user attempts to submit incomplete fields. I've
 tried this with and without an explicit iterator, as shown in the two
 examples below.

 (a)
 $(#%= this.pnlInputFields.ClientID % input[class='inputFields']
 [value='']).toggleClass('inputFields_empty');

 (b)
 $(#%= this.pnlInputFields.ClientID % input
 [class='inputFields']).each(function(i) { $(this).toggleClass
 ('inputFields_empty', $.trim($(this).val()).length  1); });

 The first one fails with an error message indicating that [value='']
 is an unrecognized expression (Firebug), though [value='helloworld']
 works, correctly toggling the inputFields_empty class on (but not off)
 wherever it finds helloworld in a text box.  I've tried countless
 variations on this, and can't seem to get it right for an empty field
 (tried :empty too).

 The second one (b) works, at least initially, highlighting the empty
 text boxes. Not as elegant as something like (a) might be, but I'll
 use it if (a) is infeasible.  Note that it only works the first time
 my button is pushed; subsequent changes in the textbox fields (like
 the user erasing them) fail to remove the inputField_empty class (not
 posting back, just have a onclick call that runs this validator
 method).

 Any suggestions?







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

2009-02-04 Thread Mauricio (Maujor) Samy Silva


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

Maurício

-Mensagem Original- 
De: Adrian Lynch adely...@googlemail.com

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




Hello all. I have the following...

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

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

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

More out of curiosity than need ;)

Thanks.

Adrian 




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

2009-02-04 Thread jQuery Lover

Adrian, I recommend using .parent() for better performance...


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



On Wed, Feb 4, 2009 at 4:22 PM, Adrian Lynch adely...@googlemail.com wrote:

 Hello all. I have the following...

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

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

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

 More out of curiosity than need ;)

 Thanks.

 Adrian


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

2009-02-04 Thread Stephan Veigl

Hi,

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

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

by(e)
Stephan


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

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

 Maurício

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



 Hello all. I have the following...

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

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

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

 More out of curiosity than need ;)

 Thanks.

 Adrian




[jQuery] Is this list too busy? jQuery list for your time zone

2009-02-04 Thread boermans

The time when I at least skimmed every message on this list in long
gone.
As jQuery becomes more and more popular, making your voice heard here
gets increasingly difficult.
Could time zone or locality be a useful way to divide the flow more
effectively?
Like local(ish) jQuery groups.

What strategies do you use to make the most of the amazing resource
this list is?

I’m in Adelaide, South Australia
GMT +9.5


[jQuery] Re: Is this list too busy? jQuery list for your time zone

2009-02-04 Thread jQuery Lover

I receive emails from the list and easily keep track of my postings in gmail.

You can click on Sent mail and see if you have any replies in thread
you've posted...


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



On Wed, Feb 4, 2009 at 5:16 PM, boermans boerm...@gmail.com wrote:

 The time when I at least skimmed every message on this list in long
 gone.
 As jQuery becomes more and more popular, making your voice heard here
 gets increasingly difficult.
 Could time zone or locality be a useful way to divide the flow more
 effectively?
 Like local(ish) jQuery groups.

 What strategies do you use to make the most of the amazing resource
 this list is?

 I'm in Adelaide, South Australia
 GMT +9.5


[jQuery] Re: animations; browser problem or bad code?

2009-02-04 Thread jQuery Lover

Worked the same in Chrome, FF, IE7.

My 2 cents...

PS. Thanks Stephan for the tip...


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



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

 Hi,

 I played around with your site and code a little bit (hope this was ok :-).
 What I discovered was that FF (and others) seems to have problems with
 setting (or animating) the width of an empty div via css. Adding a
  $('.main_content').html(nbsp;);
 before your open animation will do the trick.

 This is independent of loading the content in the background. Even
 then you might have an empty div at the start of the animation. So
 place a space in your main content and overwrite it once the page has
 loaded.

 by(e)
 Stephan




 2009/2/4 re5et zerodex...@chello.at:

 btw, I fixed the Could not get the display property. Invalid
 argument error.

 but that didn't help either...



[jQuery] Re: Is this list too busy? jQuery list for your time zone

2009-02-04 Thread Oliver Boermans

2009/2/4 jQuery Lover ilovejqu...@gmail.com:

 I receive emails from the list and easily keep track of my postings in gmail.

 You can click on Sent mail and see if you have any replies in thread
 you've posted...

Ah, perhaps the mistake I have been making is sending and reading my
messages in the group interface.
I always switch on the notifications and reply like I am now in gmail.

Regardless what I mean is keeping up with everyone else's message
rather than my own.


[jQuery] Turning JSON-formatted AJAX data into data usable by ColdFusion

2009-02-04 Thread Rick Faircloth

Ok, so I'm at the point in using jQuery AJAX where I'm now
returning complicated data of queries (multiple) and bits of
data for use back on the calling page.

In my CFC's, I use the returnFormat=json to send data back
properly json-formatted.

However, now, I need to know how to get that json data back
into a form that I can use with my CF knowledge.  Such as
looping queries, referring to data by myQuery.name, etc.
In other words, I want to get that json data back into my
comfort zone.

I need to know what technique to look at.  I've looked over
many resources and they all seem to offer a little different
approach.  I have no experience with which to evaluate these
approaches.  CFSON seems to be the most likely candidate.

So, to get this json data (below--from one of my CFC functions),
back into ColdFusion, what does everyone suggest?

Thanks for *any* guidance!

Rick

Here's the data mentioned above--does using CFJSON translate this
back into ColdFusion format without me having to write a bunch
of js code to loop the code etc, to translate it?



{MONTH:2,QGETSCHEDULE:{COLUMNS:[DUTY_ID,DATE,AM_PM,AGENT_ID,POSITION,FIRST_NAME,L
AST_NAME

],DATA:[[1677,February, 28 2009 
00:00:00,am,18,primary,Mary,Fail],[1678,February, 28
2009

 00:00:00,am,19,alternate,Rebecca,Nottingham],[1679,February, 28 2009
00:00:00,pm,20,primary

,Renea,Camper],[1680,February, 28 2009
00:00:00,pm,21,alternate,Verjuana,Underwood]]},MESSAGE

:Success,YEAR:2009,SELECTED_DATE:2009-02-01,QGETDUTYDATES:{COLUMNS:[DATE],DATA:[[Fe
bruary

, 01 2009 00:00:00],[February, 02 2009 00:00:00],[February, 03 2009 
00:00:00],[February, 04
2009

 00:00:00],[February, 05 2009 00:00:00],[February, 06 2009 
00:00:00],[February, 07 2009
00:00:00

],[February, 08 2009 00:00:00],[February, 09 2009 00:00:00],[February, 10 
2009
00:00:00],[February

, 11 2009 00:00:00],[February, 12 2009 00:00:00],[February, 13 2009 
00:00:00],[February, 14
2009

 00:00:00],[February, 15 2009 00:00:00],[February, 16 2009 
00:00:00],[February, 17 2009
00:00:00

],[February, 18 2009 00:00:00],[February, 19 2009 00:00:00],[February, 20 
2009
00:00:00],[February

, 21 2009 00:00:00],[February, 22 2009 00:00:00],[February, 23 2009 
00:00:00],[February, 24
2009

 00:00:00],[February, 25 2009 00:00:00],[February, 26 2009 
00:00:00],[February, 27 2009
00:00:00

],[February, 28 2009 00:00:00]]}}



[jQuery] Re: Not work opacity in jQuery 1.3.1 and opera 9.2

2009-02-04 Thread zhekanax

This happens because jQuery think Opera9.2 doesn't support opacity css
parameter.
So I use this workaround:

  if($.browser.opera) {
$.support.opacity = true;
  }


On Jan 23, 11:52 am, NeX nex...@ya.ru wrote:
 Can anyone help me?
 In jQ 1.3.1 andopera9.23 i can't changeopacityof element with $
 (id).css({opacity: 1});
 In jQ 1.2.6 all works fine.
 Is there bug of jQ?

 Examplehttp://new.globalres.ru/index.html


[jQuery] getscript without parameters... an alernative?

2009-02-04 Thread pere roca


hi all,
if I'm not wrong we cannot send parameters to a script called by getScript
function; 
so, if we download or get the script and then we call a function inside
the script, shouldn't it work? the function is there, now in our browser...
but doesn't work.

$.getScript('script.js'); x();

script.js:
$(document).ready(function(){
//x function is declared as global
x=function(datas)
{
alert(datas)
};
})

Thanks!!
-- 
View this message in context: 
http://www.nabble.com/getscript-without-parameters...-an-alernative--tp21829807s27240p21829807.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



[jQuery] Re: jQuery image rotating

2009-02-04 Thread Liam Potter


Nice plugin, the bug that doesn't load the images in IE first time round 
still occurs in IE6. And the animation is quite choppy in IE6 as well.


I'm not sure you should be worried about IE6 issues though. I think with 
the RC1 release of 8 we should (as a group of designers and developers) 
drop support for ie6.


wilq wrote:

Recently I just finished mine project of rotating images using jQuery
and CANVAS. This small plugin, when called on img element, replaces it
with canvas supported by all modern browsers and IE (by excanvas),
then using built functionality - rotate, and animate it. Any
suggestions are welcome:)

http://wilq32.googlepages.com/wilq32.rollimage222
  


[jQuery] Re: How to submit a form with an Anchor rather than an Input tag?

2009-02-04 Thread Liam Potter


why you using get element by id?

make sure your form has a name ( form name=myform )

then use this

a class=button href=javascript://document.myform.submit();Send/a

||
Tintin81 wrote:

Hi,

I have a very simple contact form that I would like to submit using an
anchor rather than an input tag. This is what I've got so far:

[code]a class=button href=javascript:{}
onclick=document.getElementById('contact-form').submit(); return
false;Send/a[/code]

Unfortunately, it doesn't work :-(

Can anybody help me with this?

Thanks a lot...
  


[jQuery] Re: $.css() onload

2009-02-04 Thread eagleon

kim3er, I think MorningZ was answering my question about  $
(window).load's intended usage, and where I could use it!

On Feb 4, 2:37 am, kim3er rich...@dogma.co.uk wrote:
 Not sure what you mean MorningZ, looks okay to me. I tend put my code
 before the closing body tag though.

 On Feb 3, 10:03 pm, MorningZ morni...@gmail.com wrote:

  where does this belong then? 

  html
     head
          script type=text/javascript src=jquery.js/script
          script type=text/javascript
          $(document).ready(function() {
                //Fires when the DOM is ready
          });
          $(window).load(function() {
                //Fires when the page is loaded
                //(images all loaded, DOM objects placed/sized, etc)
          });
          /script
     /head
  body
        .. Your HTML ...
  /body
  /html

  On Feb 3, 4:47 pm, kim3er rich...@dogma.co.uk wrote:

   $(document).ready() fires when the document has finished loading. It
   is generally appropirate to attach any onload code to that event. If
   you need to attach code to the window load event, do so at the top of
   the page before the page has started rendering.

   Rich

   On Feb 3, 9:30 pm, eagleon antonypei...@gmail.com wrote:

thanks for the reply, I got it to work without the $(window).load
() ... but just to learn, where does this belong then?

On Feb 3, 4:26 pm, MorningZ morni...@gmail.com wrote:

 Don't put

 $(window).load()

 inside

 $(document).ready()

 On Feb 3, 4:12 pm, eagleon antonypei...@gmail.com wrote:

  Hi Guys,

  I was trying to fire an $.css() during the onload event. For some
  reason, it does not work. It works fine if I attach it to another
  event such as a resize event, but not onload.

  This is what I have done:

  Code:
  [code]
  function myFunc() {

        $(#example).css({'width' : 10px;});

  }

  $(document).ready(function() {

        $(window).load(function() {

              myFunc();

        });

  });

  [/code]

  I need this element to be sized immediately after loading. This 
  works
  if the event was anything else, but dosen't work with 'load' at all.

  Please help!

  Thanks


[jQuery] Re: animations; browser problem or bad code?

2009-02-04 Thread re5et

awesome.

thanks a million times, I would never have thought of that.


[jQuery] Re: ajaxSubmit using validate and form plugin (succes option)

2009-02-04 Thread TUNGA

Hello,

just try:

submitHandler: function(form) {

$.ajax({
type: 'POST',
url: 'sendmail.php',
data: $('#FormName').serialize(),
success: function(responseText) {
alert(responseText);
}
});
}

Mesut TUNGA



On 15 Ocak, 21:59, koenoe koenrom...@gmail.com wrote:
 Hi there!

 When I do an ajaxSubmit using the form plugin I don't get a response
 by using the succes option.

 I make an ajaxSubmit in thesubmitHandleroption from the validate
 plugin.

 Part of my code:

 submitHandler: function(form) {
         $(form).ajaxSubmit({
                 type: POST,
                 clearForm: true,
                 url: sendmail.php,
                 succes: function(data) {
                         alert(data);
                 }
         });
         return false;

 }

 I've tried a lot but without succes. I already tried this:
 - replacing $(form) with $(#idForm)
 - before the ajaxSubmit function a $(form).submit(function() { with a
 return false

 When I use this code it works sometimes but then I'm not able to add
 options to my ajaxSubmit function :

 $(form).ajaxSubmit(function(data) {
       alert(data);

 });

 I hope someone can help me.

 Thanks in advance!

 Greetings,

 Koen


[jQuery] Re: [Superfish] Submenus appear underneath menu items when the menu wraps

2009-02-04 Thread jQuery Lover

This is how IE interprets z-index settings for positioned elements.

Google it and you will surely find a fix:
http://www.google.com/search?q=ie+z-index+issue


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



On Wed, Feb 4, 2009 at 2:56 PM, Michael Smith smi...@gmail.com wrote:

 Hi again

 I added this css:

 .sf-menu li li a {
background:red;
z-index:100;
}

 and as you can see on :

 http://dev2.savingforchildren.co.uk/mjs/menu.epl

 When using IE (in my case IE6) the submenus still appear under the main menus.

 Anything I can do to get them on top?

 Michael

 On Tue, Feb 3, 2009 at 11:03 AM, Michael Smith smi...@gmail.com wrote:
 Thanks jQuery Lover - I messed around with a few things without
 success.  Any chance you can be more specific as to the css change
 needed?

 Thanks again
 Michael


 On Tue, Feb 3, 2009 at 9:48 AM, jQuery Lover ilovejqu...@gmail.com wrote:

 Try setting z-index value in CSS for the current menu list with a
 higher value like  1000.

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



 On Tue, Feb 3, 2009 at 2:42 PM, Michael Smith smi...@gmail.com wrote:

 Hi,

 As per this example:

 http://dev2.savingforchildren.co.uk/mjs/menu.epl

 I find that if my menus wrap in IE, then the submenus appear
 underneath the other menus.  In Firefox it's fine.  Is there a way
 round this or is wrapping menus not supported?

 Thanks

 Michael






[jQuery] Re: How to submit a form with an Anchor rather than an Input tag?

2009-02-04 Thread Liam Potter


didn't know this, cheers.

ok, replace the javascript with this then

|document.forms['myformid'].submit();|

Klaus Hartl wrote:

The name attribute is deprecated for the form element. Using an id ist
good practice.

--Klaus

On 4 Feb., 14:41, Liam Potter radioactiv...@gmail.com wrote:
  

why you using get element by id?

make sure your form has a name ( form name=myform )

then use this

a class=button href=javascript://document.myform.submit();Send/a

||

Tintin81 wrote:


Hi,
  
I have a very simple contact form that I would like to submit using an

anchor rather than an input tag. This is what I've got so far:
  
[code]a class=button href=javascript:{}

onclick=document.getElementById('contact-form').submit(); return
false;Send/a[/code]
  
Unfortunately, it doesn't work :-(
  
Can anybody help me with this?
  
Thanks a lot...
  


[jQuery] Re: Is this list too busy? jQuery list for your time zone

2009-02-04 Thread Liam Potter


It will be too many email clients, as I have my work email setup in 
thunderbird as well.


jQuery Lover wrote:

Gmail moves new threads to the top :)

Use gmail (offline version) :)


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



On Wed, Feb 4, 2009 at 6:11 PM, Liam Potter radioactiv...@gmail.com wrote:
  

I use thunderbird, which has a threaded option, keeps tracks of
conversations quite well, new posts are bold. I just wish it would move the
entire conversation to the top of the list though.

I only use this list at work though, so when I come in on a monday, unless
I've asked some questions on the friday I just mark everything as read and
use as normal through out the day.

Oliver Boermans wrote:


2009/2/4 jQuery Lover ilovejqu...@gmail.com:

  

I receive emails from the list and easily keep track of my postings in
gmail.

You can click on Sent mail and see if you have any replies in thread
you've posted...



Ah, perhaps the mistake I have been making is sending and reading my
messages in the group interface.
I always switch on the notifications and reply like I am now in gmail.

Regardless what I mean is keeping up with everyone else's message
rather than my own.

  


[jQuery] Re: getscript without parameters... an alernative?

2009-02-04 Thread pere roca



   hi Eric,

   I don't understand what you mean...
   the functions in script.js (called via getScript) work if I call
$.getScript but I wanna call these functions from outside (after script is
loaded), so I can pass some parameter to the functions that are inside
script.js.
   $.getScript is not called when the page is loaded (I think that's what
you mean). I'm firing it via Firebug console. 

   thanks,   
   Pere   


Eric Garside wrote:
 
 
 If you call $.getScript after your regular scripts are already loaded,
 domready will not fire again.
 
 On Feb 4, 8:16 am, pere roca pero...@gmail.com wrote:
 hi all,
 if I'm not wrong we cannot send parameters to a script called by
 getScript
 function;
 so, if we download or get the script and then we call a function inside
 the script, shouldn't it work? the function is there, now in our
 browser...
 but doesn't work.

 $.getScript('script.js'); x();

 script.js:
 $(document).ready(function(){
 //x function is declared as global
 x=function(datas)
 {
         alert(datas)

 };
 })

 Thanks!!
 --
 View this message in
 context:http://www.nabble.com/getscript-without-parameters...-an-alernative--...
 Sent from the jQuery General Discussion mailing list archive at
 Nabble.com.
 
 

-- 
View this message in context: 
http://www.nabble.com/getscript-without-parameters...-an-alernative--tp21829807s27240p21831561.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



[jQuery] Re: How to submit a form with an Anchor rather than an Input tag?

2009-02-04 Thread Tintin81

Hi Liam and Klaus,

thanks for your swift feedback.

I forgot to say that I am using the a href=http://docs.jquery.com/
Plugins/ValidationJQuery Validation Plugin/a for this matter.

The function I am using is rather simple:

$(document).ready(function() {
$(#contact-form).validate();
$.extend($.validator.messages, {
required: ,
email: ,
});

How can I get it to work from an anchor tag in the form??

Any helo is appeciated...


[jQuery] having a problem with ' and strings

2009-02-04 Thread dirk w

hello jquery community,
i am getting some strings from a page i don't have influence on. i
just append those to elements (thanks to jquery this works like a
charm!):

$(#searchResultList).append(li class='searchResultEntry'id=' +
videoId + ' title=' + titleFull +  ( + minutes + : + seconds +
)'img src=' + thumbnailUrl + ' class='thumbnail' alt=' +
titleFull +  ( + minutes + : + seconds + )'//li);

my problem is:
sometimes the variable title contains a ' in the string, like
doesn't that look funny... in this case my output get's completely
messed up.
is there a more reliable way to use ' and   ? any ideas how i could
prevent ' to crack this up?

thanks in advance
dirk


[jQuery] How to use validator in my existing HTML pages

2009-02-04 Thread himanshu

Hi,

I have to apply jQuery validation on my existing HTML page using From
Validator Plug-in. But it is not working.
Can any one help me with some sample How I can apply jQuery validation
on my existing HTML pages without changing much in existing tags.

Thanks,
Himanshu


[jQuery] a tag with good text popup (without title)

2009-02-04 Thread Petty Pavlow

Hi
I would like to do some html (a tag) links.When u go with mouse on the
top of this link it will pop up a box with  (maybe with a photo or
without) some good texts.I know i could do it with html (a tag title)
but it seems like old kind.

Thanks.


[jQuery] Re: a tag with good text popup (without title)

2009-02-04 Thread Liam Potter


from what I understand, you would need to do this to achieve the effect

next to the link, put a div, containing what you want to popup
hide this div (display:block)
use the hover event to show the div when you hover over the link and to 
hide it when you move out.


Petty Pavlow wrote:

Hi
I would like to do some html (a tag) links.When u go with mouse on the
top of this link it will pop up a box with  (maybe with a photo or
without) some good texts.I know i could do it with html (a tag title)
but it seems like old kind.

Thanks.
  


[jQuery] Re: Click Links in the Nnavigation Bar

2009-02-04 Thread Karl Swedberg

On Feb 4, 2009, at 1:09 AM, Pedram wrote:


Thanks  Karl , It helped me alot


Not a problem. Glad to help.


Since it's not possible in a valid DOM to have an A that is a
descendant of a UL but not a descendant of an LI, the LI is
superfluous. No need to do an extra getElementsByTagName there.


On second thought, I'm not sure that there would actually be an extra  
getElementsByTagName as of jQuery 1.3, since Sizzle (1.3's selector  
engine) starts on the right side of the selector and then walks up the  
DOM tree, checking for matches on each selector to the left in turn.  
It might still matter, but it probably matters less. Please don't take  
these musings as fact, though. I have not run any comparative  
benchmarks. You would have to do that to know for sure which is faster.


If someone else has benchmarks on these things, I'd be interested to  
see them. Also, I haven't taken a close look at Sizzle, so my  
understanding of it could be off. Please, anyone, feel free to correct  
me.


Cheers,

--Karl

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



[jQuery] Re: Is this list too busy? jQuery list for your time zone

2009-02-04 Thread Ricardo Tomasi

I opted for the daily digest mail. I just take a look at the messages'
subjects and choose what I want to read, works quite well, I don't
waste any time.

- ricardo

On Feb 4, 10:16 am, boermans boerm...@gmail.com wrote:
 The time when I at least skimmed every message on this list in long
 gone.
 As jQuery becomes more and more popular, making your voice heard here
 gets increasingly difficult.
 Could time zone or locality be a useful way to divide the flow more
 effectively?
 Like local(ish) jQuery groups.

 What strategies do you use to make the most of the amazing resource
 this list is?

 I’m in Adelaide, South Australia
 GMT +9.5


[jQuery] Re: having a problem with ' and strings

2009-02-04 Thread dirk w

hello liam,
thanks for the tip, i will try using them the same way.
you actually forgot one  in your code but now it works fine, thanks!

$(#searchResultList).append('li class=searchResultEntry id=' +
videoId + ' title=' + titleFull + ' (' + minutes + ':' + seconds
+')img src=' + thumbnailUrl + ' class=thumbnail alt=' +
titleFull + ' (' + minutes + ':' + seconds + ')//li');

On 4 Feb., 15:51, Liam Potter radioactiv...@gmail.com wrote:
 you need to switch it around,

 replace all  to be ' and all ' to be 

 Personally, all my selectors use 
 then functions use '

 $(#searchResultList).append('li class=searchResultEntryid=' + videoId + 
 ' title=' + titleFull + ' (' + minutes + ':' + seconds +')'img src=' + 
 thumbnailUrl + '       class=thumbnail alt=' + titleFull + ' (' + minutes 
 + ':' + seconds + ')//li');

 that's how I would do this.

 dirk w wrote:
  hello jquery community,
  i am getting some strings from a page i don't have influence on. i
  just append those to elements (thanks to jquery this works like a
  charm!):

  $(#searchResultList).append(li class='searchResultEntry'id=' +
  videoId + ' title=' + titleFull +  ( + minutes + : + seconds +
  )'img src=' + thumbnailUrl + '   class='thumbnail' alt=' +
  titleFull +  ( + minutes + : + seconds + )'//li);

  my problem is:
  sometimes the variable title contains a ' in the string, like
  doesn't that look funny... in this case my output get's completely
  messed up.
  is there a more reliable way to use ' and   ? any ideas how i could
  prevent ' to crack this up?

  thanks in advance
  dirk


[jQuery] Re: having a problem with ' and strings

2009-02-04 Thread Liam Potter


Glad to of helped.
My system has worked for me so far, but I'm sure there are people who 
would argue another way of doing things.


dirk w wrote:

hello liam,
thanks for the tip, i will try using them the same way.
you actually forgot one  in your code but now it works fine, thanks!

$(#searchResultList).append('li class=searchResultEntry id=' +
videoId + ' title=' + titleFull + ' (' + minutes + ':' + seconds
+')img src=' + thumbnailUrl + ' class=thumbnail alt=' +
titleFull + ' (' + minutes + ':' + seconds + ')//li');

On 4 Feb., 15:51, Liam Potter radioactiv...@gmail.com wrote:
  

you need to switch it around,

replace all  to be ' and all ' to be 

Personally, all my selectors use 
then functions use '

$(#searchResultList).append('li class=searchResultEntryid=' + videoId + ' title=' + titleFull + ' (' + minutes + ':' 
+ seconds +')'img src=' + thumbnailUrl + '   class=thumbnail alt=' + titleFull + ' (' + minutes + ':' + seconds + 
')//li');

that's how I would do this.

dirk w wrote:


hello jquery community,
i am getting some strings from a page i don't have influence on. i
just append those to elements (thanks to jquery this works like a
charm!):
  
$(#searchResultList).append(li class='searchResultEntry'id=' +

videoId + ' title=' + titleFull +  ( + minutes + : + seconds +
)'img src=' + thumbnailUrl + '   class='thumbnail' alt=' +
titleFull +  ( + minutes + : + seconds + )'//li);
  
my problem is:

sometimes the variable title contains a ' in the string, like
doesn't that look funny... in this case my output get's completely
messed up.
is there a more reliable way to use ' and   ? any ideas how i could
prevent ' to crack this up?
  
thanks in advance

dirk
  


[jQuery] Tablesorter plugin - lazy caching

2009-02-04 Thread petrillodavide


Hello everybody,

I'm developing an application in which the users will deal with a big table
(600+ rows).
One target for the application is that it has to show up as fast as
possible; anyway, applying the tablesorter on the table, the initial caching
steals more than one second to the process.

Do anybody knows if it's possible to run the cache initialization only when
the user clicks on one of the table's headers? 

Thanks in advance!
Davide.
-- 
View this message in context: 
http://www.nabble.com/Tablesorter-plugin---lazy-caching-tp21830458s27240p21830458.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



[jQuery] Re: Select empty textbox fields

2009-02-04 Thread Aaron Gundel

 $(#%= this.pnlInputFields.ClientID %
input[class='inputFields']:not([value])).toggleClass('inputFields_empty');
should do the trick.

On Tue, Feb 3, 2009 at 2:57 PM, brnwdrng brianwoodr...@gmail.com wrote:

 I have a set of text box inputs in a div, and want to color the empty
 ones red (css) when a user attempts to submit incomplete fields. I've
 tried this with and without an explicit iterator, as shown in the two
 examples below.

 (a)
 $(#%= this.pnlInputFields.ClientID % input[class='inputFields']
 [value='']).toggleClass('inputFields_empty');

 (b)
 $(#%= this.pnlInputFields.ClientID % input
 [class='inputFields']).each(function(i) { $(this).toggleClass
 ('inputFields_empty', $.trim($(this).val()).length  1); });

 The first one fails with an error message indicating that [value='']
 is an unrecognized expression (Firebug), though [value='helloworld']
 works, correctly toggling the inputFields_empty class on (but not off)
 wherever it finds helloworld in a text box.  I've tried countless
 variations on this, and can't seem to get it right for an empty field
 (tried :empty too).

 The second one (b) works, at least initially, highlighting the empty
 text boxes. Not as elegant as something like (a) might be, but I'll
 use it if (a) is infeasible.  Note that it only works the first time
 my button is pushed; subsequent changes in the textbox fields (like
 the user erasing them) fail to remove the inputField_empty class (not
 posting back, just have a onclick call that runs this validator
 method).

 Any suggestions?







[jQuery] Re: getscript without parameters... an alernative?

2009-02-04 Thread Eric Garside

Oh, neat. I didn't know jQuery continued to fire docready code after
it loaded. Awesome. :D

On Feb 4, 10:14 am, Ricardo Tomasi ricardob...@gmail.com wrote:
 Actually after the document has loaded, any function passed to $
 (document).ready() will fire immediately. Also functions are called in
 the order they were added, so you can put it inside the getScript
 callback like this:

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

 });

 $.getScript('script.js', function(){
    $(function(){
         x('script loaded and DOM ready');
    });

 });

 getScript() will be fired before DOM ready, then it's callback will
 add a function to $(doc).ready() which will execute after the function
 assignment.

 cheers,
 - ricardo

 On Feb 4, 12:53 pm, Eric Garside gars...@gmail.com wrote:

  Basically, the problem is this here:
  $(document).ready(function(){

  You wrapped it inside an event that will only fire when the document
  throws its ready event. If you include the script after the page is
  loaded, regardless from where, th event will never fire. If you remove
  the $(document).ready(function(){ wrapper from script.js (called via
  getScript), it will work a lot easier.

  I've done a small snippet which does javascript backloading, which
  includes js files after the page has loaded. Worst case, it should
  still give you some idea of how to use a callback with getScript to
  fire a defined function within the script.js file.

 http://snipplr.com/view/10368/jquery-automatic-script-includer/

  On Feb 4, 9:32 am, pere roca pero...@gmail.com wrote:

      hi Eric,

      I don't understand what you mean...
      the functions in script.js (called via getScript) work if I call
   $.getScript but I wanna call these functions from outside (after script is
   loaded), so I can pass some parameter to the functions that are inside
   script.js.
      $.getScript is not called when the page is loaded (I think that's what
   you mean). I'm firing it via Firebug console.

      thanks,  
      Pere  

   Eric Garside wrote:

If you call $.getScript after your regular scripts are already loaded,
domready will not fire again.

On Feb 4, 8:16 am, pere roca pero...@gmail.com wrote:
hi all,
if I'm not wrong we cannot send parameters to a script called by
getScript
function;
so, if we download or get the script and then we call a function 
inside
the script, shouldn't it work? the function is there, now in our
browser...
but doesn't work.

$.getScript('script.js'); x();

script.js:
$(document).ready(function(){
//x function is declared as global
x=function(datas)
{
        alert(datas)

};
})

Thanks!!
--
View this message in
context:http://www.nabble.com/getscript-without-parameters...-an-alernative--...
Sent from the jQuery General Discussion mailing list archive at
Nabble.com.

   --
   View this message in 
   context:http://www.nabble.com/getscript-without-parameters...-an-alernative--...
   Sent from the jQuery General Discussion mailing list archive at 
   Nabble.com.


[jQuery] Re: Detecting wether an image link is going to work

2009-02-04 Thread daveJay



On Feb 3, 6:15 pm, Karl Rudd karl.r...@gmail.com wrote:
 You could try using the error handler:

   $(image[1]).bind('error', function(){ /* ... */ });

 I believe it works for all the common browsers.

 Karl Rudd

Thanks Karl, that works fantastically! As you can see here now, it
just skips over the broken images: 
http://sandbox.exit42design.com/photography/folio_1.html


[jQuery] Re: Detecting wether an image link is going to work

2009-02-04 Thread daveJay

 I'd try to avoid writing a routine explicitly for each image and
 instead use a loop. This is thoroughly untested.

Thanks a ton Brian for the help with that code, I had no idea you
could load an array like that! The loops were helpful as well, I used
the each loop on the image object array to make Karl's error handler
suggestion work very easily.

The only problem though is putting the load function in a loop.
Logically, it would seem to work, however in both methods you
suggested, I got a parse error near the end of the loop. I took out
the load function and the loop works fine. So I'm not sure if there's
a workaround or not. Eventually, we're going to put a PHP backend on
this site for managing the photos, I think we could just print each
load event via a PHP loop if I can't make it work with jQuery.

 Nice pics. In FF3.0.5 (linux) when I click a thumbnail, the main image
 fades out (could be a tad faster), fades back in, then abruptly
 switches to the new image. I had a look at the gallery script but
 couldn't figure out where the problem lies. My gut tells me that could
 be optimised, too. But, one can't really say for sure without
 understanding everything that's being done and I really should stop
 procrastinating ;-)

I need to clean up, organize and comment that gallery script a little
bit more :-! But yeah, I've been struggling with that problem for
months. It's only a problem in Firefox, and it only affects *certain*
firefox users. There's no delay on my client's firefox, or on my
mother's machine either. I can see it on my machine though, and it's
still there in FF 3.1 :( I wish I could nail down what's causing the
problem.



[jQuery] Next/Previous element in each loop

2009-02-04 Thread Adrian Lynch

Hey all, I'm loop over some nodes with each() and I need to look at
the next and previous elements for the current iteration.

script type=text/javascript
$(function() {
$(div).each(function(i) {
var prev = [SELECTOR FOR PREVIOUS DIV].text();
var next = [SELECTOR FOR NEXT DIV].text();
alert(prev +  :  + next);
});
});
/script

div1/div
div2/div
div3/div

Will I have to store a reference to the divs and access it with i in
the loop like this:

script type=text/javascript
$(function() {

var divs = $(div);

divs.each(function(i) {

var prev = ;
var next = ;

if (i  0)
prev = $(divs.get(i - 1)).text();

if (i  divs.size() - 1)
next = $(divs.get(i + 1)).text();

alert(prev +  -  + next);

});
});
/script

div1/div
spanSpanner in the works/span
div2/div
spanDon't select me!/span
div3/div

Is next() the answer maybe?



[jQuery] After update to jQuery 1.3.1, jQuery UI dialog relatived event handle options don't work

2009-02-04 Thread snow

After update jQuery from 1.2.6 to jQuery 1.3.1.
The jQuery UI dialog relatived event handle options don't work
ex.
drag
dragStop
resize
resizeStop
etc.

and i tried 1.3.0, it seems the same problem.
btw, i'm not sure if the other widgets have the same issue.
only 1.2.6 work fine.

Does anybody has the same problem with it?


[jQuery] Re: A couple of jQuery questions (recent converter from Prototype to jQuery)

2009-02-04 Thread Ricardo Tomasi

Hi and welcome to jQuery :]

A simple but not very effective way to do that is $
('#myelement').parents('body').length, or, if you are sure you're
dealing with a single element, a check for $('#myel')[0].parentNode
would suffice.

You can also implement this as a plug-in:

jQuery.fn.inDOM = function(){
  var d = false,
  m = (document.contains)
 ? function(){ return (d = document.contains(this)) }
 : function(){ return (d = !!(document.compareDocumentPosition
(this)  16)) }

   this.each(m);
   return d;
};

(there was a lengthy discussion about this at jquery-dev:
http://groups.google.com/group/jquery-dev/browse_thread/thread/ac5ca8eaa64fe9f1/af83ebdd79de479a)

jQuery has a few helper functions for strings, arrays, etc:
http://docs.jquery.com/Utilities. I have yet to find something I can't
do with it :)

cheers,
- ricardo

On Feb 4, 9:29 am, Bisbo cappuccinof...@googlemail.com wrote:
 Hi there,

 I'm a recent converter from Prototype to jQuery and I've got a couple
 of questions.

 Firstly, if I am storing a jQuery object containing an element (var el
 = $('#myelement');) and then I subsequently remove that element ($
 ('#myelement').remove()), how can I test my el variable to see if that
 element exists in the document or has been removed? I cannot simply
 test using the id of the element as I I'm storing tens of elements
 this way and it's not practical. It would appear that the jQuery
 object is still holding a reference to the removed element and hence
 any checks for it on the object return as okay.

 Secondly, I'm having some withdrawal symptoms from Prototype and I'm
 missing the many other functions such as it's String, Array, Object
 and even some of it's Element functions. I did think about using both
 libraries as the same time but that would be a hefty download. Are
 there any other options that anyone is using, perhaps some good
 plugins or other smaller libraries the do the job nicely?

 Many thanks,

 Michael


[jQuery] Re: getscript without parameters... an alernative?

2009-02-04 Thread Ricardo Tomasi

Actually after the document has loaded, any function passed to $
(document).ready() will fire immediately. Also functions are called in
the order they were added, so you can put it inside the getScript
callback like this:

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

$.getScript('script.js', function(){
   $(function(){
x('script loaded and DOM ready');
   });
});

getScript() will be fired before DOM ready, then it's callback will
add a function to $(doc).ready() which will execute after the function
assignment.

cheers,
- ricardo

On Feb 4, 12:53 pm, Eric Garside gars...@gmail.com wrote:
 Basically, the problem is this here:
 $(document).ready(function(){

 You wrapped it inside an event that will only fire when the document
 throws its ready event. If you include the script after the page is
 loaded, regardless from where, th event will never fire. If you remove
 the $(document).ready(function(){ wrapper from script.js (called via
 getScript), it will work a lot easier.

 I've done a small snippet which does javascript backloading, which
 includes js files after the page has loaded. Worst case, it should
 still give you some idea of how to use a callback with getScript to
 fire a defined function within the script.js file.

 http://snipplr.com/view/10368/jquery-automatic-script-includer/

 On Feb 4, 9:32 am, pere roca pero...@gmail.com wrote:

     hi Eric,

     I don't understand what you mean...
     the functions in script.js (called via getScript) work if I call
  $.getScript but I wanna call these functions from outside (after script is
  loaded), so I can pass some parameter to the functions that are inside
  script.js.
     $.getScript is not called when the page is loaded (I think that's what
  you mean). I'm firing it via Firebug console.

     thanks,  
     Pere  

  Eric Garside wrote:

   If you call $.getScript after your regular scripts are already loaded,
   domready will not fire again.

   On Feb 4, 8:16 am, pere roca pero...@gmail.com wrote:
   hi all,
   if I'm not wrong we cannot send parameters to a script called by
   getScript
   function;
   so, if we download or get the script and then we call a function inside
   the script, shouldn't it work? the function is there, now in our
   browser...
   but doesn't work.

   $.getScript('script.js'); x();

   script.js:
   $(document).ready(function(){
   //x function is declared as global
   x=function(datas)
   {
           alert(datas)

   };
   })

   Thanks!!
   --
   View this message in
   context:http://www.nabble.com/getscript-without-parameters...-an-alernative--...
   Sent from the jQuery General Discussion mailing list archive at
   Nabble.com.

  --
  View this message in 
  context:http://www.nabble.com/getscript-without-parameters...-an-alernative--...
  Sent from the jQuery General Discussion mailing list archive at Nabble.com.


[jQuery] JQuery Collapsing Lists

2009-02-04 Thread Gilbert

Hi

I'm a newbie to JQuery. I have a collapsible list made from an
unordered html list usin the following code I found at
http://homework.nwsnet.de/news/ea21_turn-nested-lists-into-a-collapsible-tree-with-jquery
which works fine. I've even managed to workout how it works :-)

$(document).ready(function() {
// Find list items representing folders and
// style them accordingly.  Also, turn them
// into links that can expand/collapse the
// tree leaf.
$('li  ul').each(function(i) {
// Find this list's parent list item.
var parent_li = $(this).parent('li');

// Style the list item as folder.
parent_li.addClass('folder');

// Temporarily remove the list from the
// parent list item, wrap the remaining
// text in an anchor, then reattach it.
var sub_ul = $(this).remove();
parent_li.wrapInner('a/').find('a').click(function() {
// Make the anchor toggle the leaf display.
sub_ul.toggle();
});
parent_li.append(sub_ul);
});

// Hide all lists except the outermost.
$('ul ul').hide();
});

Now I need to modify this so that only one branch or sub-branch can be
open at anyone time by closing any other open branches. I've managed
to capture the sibling information I think I need by adding the line
var siblings_li = $(this).parent('li').siblings(); after the
definition of parent_li and verified through the firebug plugin to
Firefox that it selects the nodes that I expect.

What do I need to put in the click function definition so that the
onClick() a) closes any open sibling branches and b) toggles child
branches - I hope that this makes sense


Regards


[jQuery] Re: How to use validator in my existing HTML pages

2009-02-04 Thread Liam Potter


can we see the page please

himanshu wrote:

Hi,

I have to apply jQuery validation on my existing HTML page using From
Validator Plug-in. But it is not working.
Can any one help me with some sample How I can apply jQuery validation
on my existing HTML pages without changing much in existing tags.

Thanks,
Himanshu
  


[jQuery] Re: animations; browser problem or bad code?

2009-02-04 Thread Stephan Veigl

Hi,

I played around with your site and code a little bit (hope this was ok :-).
What I discovered was that FF (and others) seems to have problems with
setting (or animating) the width of an empty div via css. Adding a
  $('.main_content').html(nbsp;);
before your open animation will do the trick.

This is independent of loading the content in the background. Even
then you might have an empty div at the start of the animation. So
place a space in your main content and overwrite it once the page has
loaded.

by(e)
Stephan




2009/2/4 re5et zerodex...@chello.at:

 btw, I fixed the Could not get the display property. Invalid
 argument error.

 but that didn't help either...


[jQuery] Re: Next/Previous element in each loop

2009-02-04 Thread Stephan Veigl

Hi,

there are prev() and next() functions doing exactly what you need:

$(div).each( function() {
  var prev = $(this).prev();
  var next = $(this).next();
  alert( prev.text() + - + next.text() );
});

(I've skipped the extra code for the first and last element for simplicity.)

by(e)
Stephan


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

 Hey all, I'm loop over some nodes with each() and I need to look at
 the next and previous elements for the current iteration.

 script type=text/javascript
$(function() {
$(div).each(function(i) {
var prev = [SELECTOR FOR PREVIOUS DIV].text();
var next = [SELECTOR FOR NEXT DIV].text();
alert(prev +  :  + next);
});
});
 /script

 div1/div
 div2/div
 div3/div

 Will I have to store a reference to the divs and access it with i in
 the loop like this:

 script type=text/javascript
$(function() {

var divs = $(div);

divs.each(function(i) {

var prev = ;
var next = ;

if (i  0)
prev = $(divs.get(i - 1)).text();

if (i  divs.size() - 1)
next = $(divs.get(i + 1)).text();

alert(prev +  -  + next);

});
});
 /script

 div1/div
 spanSpanner in the works/span
 div2/div
 spanDon't select me!/span
 div3/div

 Is next() the answer maybe?




[jQuery] After update to jQuery 1.3.1, jQuery UI dialog relatived event handle options don't work

2009-02-04 Thread snow

After update jQuery from 1.2.6 to jQuery 1.3.1.
The jQuery UI dialog relatived event handle options don't work
ex.
drag
dragStop
resize
resizeStop
etc.

and i tried 1.3.0, it seems the same problem.
btw, i'm not sure if the other widgets have the same issue.
only 1.2.6 work fine.

Does anybody has the same problem with it?


[jQuery] Re: Detecting wether an image link is going to work

2009-02-04 Thread brian

On Wed, Feb 4, 2009 at 10:46 AM, daveJay davidjo...@exit42design.com wrote:

 I'd try to avoid writing a routine explicitly for each image and
 instead use a loop. This is thoroughly untested.

 Thanks a ton Brian for the help with that code, I had no idea you
 could load an array like that! The loops were helpful as well, I used
 the each loop on the image object array to make Karl's error handler
 suggestion work very easily.

 The only problem though is putting the load function in a loop.
 Logically, it would seem to work, however in both methods you
 suggested, I got a parse error near the end of the loop. I took out
 the load function and the loop works fine. So I'm not sure if there's
 a workaround or not. Eventually, we're going to put a PHP backend on
 this site for managing the photos, I think we could just print each
 load event via a PHP loop if I can't make it work with jQuery.

Yeah, I thought it didn't look right. Even doing it with each() like
that . It's too bad one can't create an Image oject with with both the
dimensions and the src.

 Nice pics. In FF3.0.5 (linux) when I click a thumbnail, the main image
 fades out (could be a tad faster), fades back in, then abruptly
 switches to the new image. I had a look at the gallery script but
 couldn't figure out where the problem lies. My gut tells me that could
 be optimised, too. But, one can't really say for sure without
 understanding everything that's being done and I really should stop
 procrastinating ;-)

 I need to clean up, organize and comment that gallery script a little
 bit more :-! But yeah, I've been struggling with that problem for
 months. It's only a problem in Firefox, and it only affects *certain*
 firefox users. There's no delay on my client's firefox, or on my
 mother's machine either. I can see it on my machine though, and it's
 still there in FF 3.1 :( I wish I could nail down what's causing the
 problem.

The code doesn't seem too bad. I really didn't spend too much time
looking through it.

As for the strange effect, I wonder if it has something to do with my cache.


[jQuery] jQuery UI Dialog - how to hide 'X' close box?

2009-02-04 Thread Sam H

Is there any way with jQuery UI Dialog to not show the X close box
in the titlebar? (what if I want to show a message dialog that the
user cannot close, such as a Loading... dialog)


[jQuery] Re: Turning JSON-formatted AJAX data into data usable by ColdFusion

2009-02-04 Thread Charlie Griefer
you're overlooking the fact that CF executes on the server.  JS executes on
the client.
When you get data returned from an AJAX call, you're on the client.  You're
in the realm of JS.  There's no converting the data into a usable (CF)
format at that point.  All of the CF is done on the server (during the AJAX
call, when you're returning JSON from the CFC).

Once it's been returned to your jQuery, you'll be working with the data in
JS (jQuery).

On Wed, Feb 4, 2009 at 5:07 AM, Rick Faircloth r...@whitestonemedia.comwrote:


 Ok, so I'm at the point in using jQuery AJAX where I'm now
 returning complicated data of queries (multiple) and bits of
 data for use back on the calling page.

 In my CFC's, I use the returnFormat=json to send data back
 properly json-formatted.

 However, now, I need to know how to get that json data back
 into a form that I can use with my CF knowledge.  Such as
 looping queries, referring to data by myQuery.name, etc.
 In other words, I want to get that json data back into my
 comfort zone.

 I need to know what technique to look at.  I've looked over
 many resources and they all seem to offer a little different
 approach.  I have no experience with which to evaluate these
 approaches.  CFSON seems to be the most likely candidate.

 So, to get this json data (below--from one of my CFC functions),
 back into ColdFusion, what does everyone suggest?

 Thanks for *any* guidance!

 Rick

 Here's the data mentioned above--does using CFJSON translate this
 back into ColdFusion format without me having to write a bunch
 of js code to loop the code etc, to translate it?




 {MONTH:2,QGETSCHEDULE:{COLUMNS:[DUTY_ID,DATE,AM_PM,AGENT_ID,POSITION,FIRST_NAME,L
 AST_NAME

 ],DATA:[[1677,February, 28 2009
 00:00:00,am,18,primary,Mary,Fail],[1678,February, 28
 2009

  00:00:00,am,19,alternate,Rebecca,Nottingham],[1679,February, 28
 2009
 00:00:00,pm,20,primary

 ,Renea,Camper],[1680,February, 28 2009
 00:00:00,pm,21,alternate,Verjuana,Underwood]]},MESSAGE


 :Success,YEAR:2009,SELECTED_DATE:2009-02-01,QGETDUTYDATES:{COLUMNS:[DATE],DATA:[[Fe
 bruary

 , 01 2009 00:00:00],[February, 02 2009 00:00:00],[February, 03 2009
 00:00:00],[February, 04
 2009

  00:00:00],[February, 05 2009 00:00:00],[February, 06 2009
 00:00:00],[February, 07 2009
 00:00:00

 ],[February, 08 2009 00:00:00],[February, 09 2009 00:00:00],[February,
 10 2009
 00:00:00],[February

 , 11 2009 00:00:00],[February, 12 2009 00:00:00],[February, 13 2009
 00:00:00],[February, 14
 2009

  00:00:00],[February, 15 2009 00:00:00],[February, 16 2009
 00:00:00],[February, 17 2009
 00:00:00

 ],[February, 18 2009 00:00:00],[February, 19 2009 00:00:00],[February,
 20 2009
 00:00:00],[February

 , 21 2009 00:00:00],[February, 22 2009 00:00:00],[February, 23 2009
 00:00:00],[February, 24
 2009

  00:00:00],[February, 25 2009 00:00:00],[February, 26 2009
 00:00:00],[February, 27 2009
 00:00:00

 ],[February, 28 2009 00:00:00]]}}




-- 
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] Re: Using jQuery with Wordpress

2009-02-04 Thread Richard D. Worth
Also, you can use this pattern to use $ inside a closure:

(function($) {

// ... all your jQuery code using a $ in here

})(jQuery);

- Richard

On Wed, Feb 4, 2009 at 3:04 AM, MH1988 m.lawrencehu...@gmail.com wrote:


 I finally found some documentation regardng this. It seems that using
 jQuery inconjuction with Wordpress is fine however, you must use
 jQuery () instead of $. Further details also suggest that Wordpress
 won't register a jQuery plugin.

 On Feb 4, 6:43 pm, MH1988 m.lawrencehu...@gmail.com wrote:
  Oh, thank you for responding back. I didn't think I would get a reply
  at all.
 
  The problem I am having seems to be that jQuery + the jQuery Cycle
  plugin with simple fade and prev/next transitions does not work at
  all. My main reason for using it is I would like to include it in each
  Wordpress post when I want to present images. This is my page here: a
  href=http://www.culturesinbetween.net/NEWWEBSITE/archives/260;page/
  a
 
  I have embedded jQuery v. 2.34 and the Cycle plugin v. 1.3.1
 
  What I have done is evoked the function within the header.php file.
  The only thing I have done is put in the div's in the Wordpress post
  but nothing works.
 
  I've put overflow: hidden for the div
 
  I don't know why but works perfectly for users using Indexhibit
  (www.indexhibit.org)
 
  Mike
 
  On Feb 4, 3:20 am, Penner, Matthew mpen...@valverde.edu wrote:
 
   Is jQuery working at all?  I've noticed that WordPress can be very
   intrusive when you put javascript in posts.  When I would first write a
   post with js embedded it would work, but the instant I edited it online
   the helpful editor textbox would reformat my js and break it.
 
   If you want your gallery to be a permanent fixture (ie. On the side bar
   rather than just a single post) I would suggest you edit your theme
   directly.  This should avoid any WordPress issues.
 
   Matt Penner
 
   -Original Message-
   From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com]
 On
 
   Behalf Of MH1988
   Sent: Tuesday, February 03, 2009 5:58 AM
   To: jQuery (English)
   Subject: [jQuery] Using jQuery with Wordpress
 
   I am having problems using jquery with wordpress. I would like to use
   the simple gallery plugin but it will not fade in/out my images. Help?



[jQuery] Re: Detecting wether an image link is going to work

2009-02-04 Thread Liam Potter


I don't see the gallery glitch, it probably has more to do with your CPU 
speed and RAM then your browser, as it is a large area to apply an 
opacity fade too. Is you mother's machine higher spec then yours?


brian wrote:

On Wed, Feb 4, 2009 at 10:46 AM, daveJay davidjo...@exit42design.com wrote:
  

I'd try to avoid writing a routine explicitly for each image and
instead use a loop. This is thoroughly untested.
  

Thanks a ton Brian for the help with that code, I had no idea you
could load an array like that! The loops were helpful as well, I used
the each loop on the image object array to make Karl's error handler
suggestion work very easily.

The only problem though is putting the load function in a loop.
Logically, it would seem to work, however in both methods you
suggested, I got a parse error near the end of the loop. I took out
the load function and the loop works fine. So I'm not sure if there's
a workaround or not. Eventually, we're going to put a PHP backend on
this site for managing the photos, I think we could just print each
load event via a PHP loop if I can't make it work with jQuery.



Yeah, I thought it didn't look right. Even doing it with each() like
that . It's too bad one can't create an Image oject with with both the
dimensions and the src.

  

Nice pics. In FF3.0.5 (linux) when I click a thumbnail, the main image
fades out (could be a tad faster), fades back in, then abruptly
switches to the new image. I had a look at the gallery script but
couldn't figure out where the problem lies. My gut tells me that could
be optimised, too. But, one can't really say for sure without
understanding everything that's being done and I really should stop
procrastinating ;-)
  

I need to clean up, organize and comment that gallery script a little
bit more :-! But yeah, I've been struggling with that problem for
months. It's only a problem in Firefox, and it only affects *certain*
firefox users. There's no delay on my client's firefox, or on my
mother's machine either. I can see it on my machine though, and it's
still there in FF 3.1 :( I wish I could nail down what's causing the
problem.



The code doesn't seem too bad. I really didn't spend too much time
looking through it.

As for the strange effect, I wonder if it has something to do with my cache.
  


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

2009-02-04 Thread Stephan Veigl

Good point.

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


by(e)
Stephan


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

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

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

 input[value='']

 ... work for any of you?

 Adrian

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

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

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

 by(e)
 Stephan

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



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

  Maurício

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

  Hello all. I have the following...

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

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

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

  More out of curiosity than need ;)

  Thanks.

  Adrian


[jQuery] Re: jQuery UI Dialog - how to hide 'X' close box?

2009-02-04 Thread Liam Potter


css

Sam H wrote:

Is there any way with jQuery UI Dialog to not show the X close box
in the titlebar? (what if I want to show a message dialog that the
user cannot close, such as a Loading... dialog)
  


[jQuery] Re: Is this list too busy? jQuery list for your time zone

2009-02-04 Thread jQuery Lover

Gmail moves new threads to the top :)

Use gmail (offline version) :)


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



On Wed, Feb 4, 2009 at 6:11 PM, Liam Potter radioactiv...@gmail.com wrote:

 I use thunderbird, which has a threaded option, keeps tracks of
 conversations quite well, new posts are bold. I just wish it would move the
 entire conversation to the top of the list though.

 I only use this list at work though, so when I come in on a monday, unless
 I've asked some questions on the friday I just mark everything as read and
 use as normal through out the day.

 Oliver Boermans wrote:

 2009/2/4 jQuery Lover ilovejqu...@gmail.com:


 I receive emails from the list and easily keep track of my postings in
 gmail.

 You can click on Sent mail and see if you have any replies in thread
 you've posted...


 Ah, perhaps the mistake I have been making is sending and reading my
 messages in the group interface.
 I always switch on the notifications and reply like I am now in gmail.

 Regardless what I mean is keeping up with everyone else's message
 rather than my own.




[jQuery] Re: toggle checkbox when clicking td

2009-02-04 Thread Karl Swedberg

On Feb 2, 2009, at 10:37 PM, Karl Swedberg wrote:




On Feb 2, 2009, at 6:47 PM, Slafs wrote:


Karl thanks for your tutorial. But it seems that examples for adding
the selected class doesn't work when I click the row but only the
checkbox itself


Well, that is very strange. It works with jQuery 1.2.6, but not with  
1.3.1. Hmm. Will have to investigate.



(and it doesn't work at all on Konqueror).


I don't have Konqueror, but I'll take your word for it. Wonder if  
it's related to the other issue.




Sorry about my multiple posts to this thread.

Slafs, I just installed Ubuntu and Konqueror 4.0.3 and tested the  
updates I made to the blog post. Looks like Konqueror handles the two  
new approaches without a problem.



--Karl

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



[jQuery] Re: After update to jQuery 1.3.1, jQuery UI dialog relatived event handle options don't work

2009-02-04 Thread Richard D. Worth
jQuery UI 1.5.3 (stable) is only compatible with jQuery 1.2.6
jQuery UI 1.6rc6 (preview) is only compatible with jQuery 1.3+

If you have any further jQuery UI questions, we'd love to help you out with
them over on the jQuery UI list:

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

See you there. Thanks.

- Richard

On Wed, Feb 4, 2009 at 4:30 AM, snow white.sm...@gmail.com wrote:


 After update jQuery from 1.2.6 to jQuery 1.3.1.
 The jQuery UI dialog relatived event handle options don't work
 ex.
 drag
 dragStop
 resize
 resizeStop
 etc.

 and i tried 1.3.0, it seems the same problem.
 btw, i'm not sure if the other widgets have the same issue.
 only 1.2.6 work fine.

 Does anybody has the same problem with it?



[jQuery] Re: getscript without parameters... an alernative?

2009-02-04 Thread Eric Garside

Basically, the problem is this here:
$(document).ready(function(){

You wrapped it inside an event that will only fire when the document
throws its ready event. If you include the script after the page is
loaded, regardless from where, th event will never fire. If you remove
the $(document).ready(function(){ wrapper from script.js (called via
getScript), it will work a lot easier.

I've done a small snippet which does javascript backloading, which
includes js files after the page has loaded. Worst case, it should
still give you some idea of how to use a callback with getScript to
fire a defined function within the script.js file.

http://snipplr.com/view/10368/jquery-automatic-script-includer/

On Feb 4, 9:32 am, pere roca pero...@gmail.com wrote:
    hi Eric,

    I don't understand what you mean...
    the functions in script.js (called via getScript) work if I call
 $.getScript but I wanna call these functions from outside (after script is
 loaded), so I can pass some parameter to the functions that are inside
 script.js.
    $.getScript is not called when the page is loaded (I think that's what
 you mean). I'm firing it via Firebug console.

    thanks,  
    Pere  



 Eric Garside wrote:

  If you call $.getScript after your regular scripts are already loaded,
  domready will not fire again.

  On Feb 4, 8:16 am, pere roca pero...@gmail.com wrote:
  hi all,
  if I'm not wrong we cannot send parameters to a script called by
  getScript
  function;
  so, if we download or get the script and then we call a function inside
  the script, shouldn't it work? the function is there, now in our
  browser...
  but doesn't work.

  $.getScript('script.js'); x();

  script.js:
  $(document).ready(function(){
  //x function is declared as global
  x=function(datas)
  {
          alert(datas)

  };
  })

  Thanks!!
  --
  View this message in
  context:http://www.nabble.com/getscript-without-parameters...-an-alernative--...
  Sent from the jQuery General Discussion mailing list archive at
  Nabble.com.

 --
 View this message in 
 context:http://www.nabble.com/getscript-without-parameters...-an-alernative--...
 Sent from the jQuery General Discussion mailing list archive at Nabble.com.


[jQuery] Re: jQuery UI Dialog - how to hide 'X' close box?

2009-02-04 Thread Richard D. Worth
See this thread

http://groups.google.com/group/jquery-ui/browse_thread/thread/9c8fbe30a91396cc

for some examples.

- Richard

On Wed, Feb 4, 2009 at 11:24 AM, Liam Potter radioactiv...@gmail.comwrote:


 css


 Sam H wrote:

 Is there any way with jQuery UI Dialog to not show the X close box
 in the titlebar? (what if I want to show a message dialog that the
 user cannot close, such as a Loading... dialog)





[jQuery] Re: animations; browser problem or bad code?

2009-02-04 Thread re5et

btw, I fixed the Could not get the display property. Invalid
argument error.

but that didn't help either...


[jQuery] click event

2009-02-04 Thread jq noob

I want to do a onclick event for anywhere in a table row except for a
specific cell. In that cell I want to be able to click a checkbox. I
have any # of rows and 12 columns in the table. I usually use a
something like this

tr onclick=window.location='%=site_location%?noCache=%=randomnum()
%itemID=%=itemID%';
onmouseover=this.style.backgroundColor='white';
this.style.cursor='pointer';
onmouseout=this.style.backgroundColor='%=strColor%';
this.style.cursor='default';
style=background-color:%=strColor%;

In this instance I also need to allow the user to check on a bunch of
rows and submit to another page  with the records selected. I also
would like to still keep the row click because this is used everywhere
else.

I presume that someone could tell me how to handle this easily with
JQuery

Thanks in advance.


[jQuery] How to submit a form with an Anchor rather than an Input tag?

2009-02-04 Thread Tintin81

Hi,

I have a very simple contact form that I would like to submit using an
anchor rather than an input tag. This is what I've got so far:

[code]a class=button href=javascript:{}
onclick=document.getElementById('contact-form').submit(); return
false;Send/a[/code]

Unfortunately, it doesn't work :-(

Can anybody help me with this?

Thanks a lot...


[jQuery] After update to jQuery 1.3.1, jQuery UI dialog relatived event handle options don't work

2009-02-04 Thread snow

After update jQuery from 1.2.6 to jQuery 1.3.1.
The jQuery UI dialog relatived event handle options don't work
ex.
drag
dragStop
resize
resizeStop
etc.

and i tried 1.3.0, it seems the same problem.
btw, i'm not sure if the other widgets have the same issue.
only 1.2.6 work fine.

Does anybody has the same problem with it?


[jQuery] Re: having a problem with ' and strings

2009-02-04 Thread Liam Potter


you need to switch it around,

replace all  to be ' and all ' to be 

Personally, all my selectors use 
then functions use '

$(#searchResultList).append('li class=searchResultEntryid=' + videoId + ' title=' + titleFull + ' (' + minutes + ':' 
+ seconds +')'img src=' + thumbnailUrl + '   class=thumbnail alt=' + titleFull + ' (' + minutes + ':' + seconds + 
')//li');

that's how I would do this.






dirk w wrote:

hello jquery community,
i am getting some strings from a page i don't have influence on. i
just append those to elements (thanks to jquery this works like a
charm!):

$(#searchResultList).append(li class='searchResultEntry'id=' +
videoId + ' title=' + titleFull +  ( + minutes + : + seconds +
)'img src=' + thumbnailUrl + 'class='thumbnail' alt=' +
titleFull +  ( + minutes + : + seconds + )'//li);

my problem is:
sometimes the variable title contains a ' in the string, like
doesn't that look funny... in this case my output get's completely
messed up.
is there a more reliable way to use ' and   ? any ideas how i could
prevent ' to crack this up?

thanks in advance
dirk
  


[jQuery] Re: Turning JSON-formatted AJAX data into data usable by ColdFusion

2009-02-04 Thread Rick Faircloth
Oh..so true.  Didn't even think of it that way.

 

Bummer.that means I've got to learn more JS!

 

I've looked at some blogs and tutorials that deal

with outputting JS, but they've all dealt with queries.

 

Know of any resources that provide guidance for dealing

with structs?

 

My current CFC creates data from two queries and some

single pieces of data and puts them into a struct.

 

Parsing through that is proving to be a little more

than I can figure out at this point.

 

Is there any jQuery plug-ins that help deal with parsing

and outputting JS data that I can use to by-pass writing

raw JS?

 

Projects are getting behind trying to figure out the

AJAX approach.perhaps it's just time to shelve AJAX

and go back to regular CF code for awhile.

 

Thoughts?

 

Thanks,

 

Rick

 

 

 

From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On Behalf 
Of Charlie Griefer
Sent: Wednesday, February 04, 2009 11:23 AM
To: jquery-en@googlegroups.com
Subject: [jQuery] Re: Turning JSON-formatted AJAX data into data usable by 
ColdFusion

 

you're overlooking the fact that CF executes on the server.  JS executes on the 
client.

 

When you get data returned from an AJAX call, you're on the client.  You're in 
the realm of JS.
There's no converting the data into a usable (CF) format at that point.  
All of the CF is done
on the server (during the AJAX call, when you're returning JSON from the CFC).

 

Once it's been returned to your jQuery, you'll be working with the data in JS 
(jQuery).

On Wed, Feb 4, 2009 at 5:07 AM, Rick Faircloth r...@whitestonemedia.com wrote:


Ok, so I'm at the point in using jQuery AJAX where I'm now
returning complicated data of queries (multiple) and bits of
data for use back on the calling page.

In my CFC's, I use the returnFormat=json to send data back
properly json-formatted.

However, now, I need to know how to get that json data back
into a form that I can use with my CF knowledge.  Such as
looping queries, referring to data by myQuery.name, etc.
In other words, I want to get that json data back into my
comfort zone.

I need to know what technique to look at.  I've looked over
many resources and they all seem to offer a little different
approach.  I have no experience with which to evaluate these
approaches.  CFSON seems to be the most likely candidate.

So, to get this json data (below--from one of my CFC functions),
back into ColdFusion, what does everyone suggest?

Thanks for *any* guidance!

Rick

Here's the data mentioned above--does using CFJSON translate this
back into ColdFusion format without me having to write a bunch
of js code to loop the code etc, to translate it?



{MONTH:2,QGETSCHEDULE:{COLUMNS:[DUTY_ID,DATE,AM_PM,AGENT_ID,POSITION,FIRST_NAME,L
AST_NAME

],DATA:[[1677,February, 28 2009 
00:00:00,am,18,primary,Mary,Fail],[1678,February, 28
2009

 00:00:00,am,19,alternate,Rebecca,Nottingham],[1679,February, 28 2009
00:00:00,pm,20,primary

,Renea,Camper],[1680,February, 28 2009
00:00:00,pm,21,alternate,Verjuana,Underwood]]},MESSAGE

:Success,YEAR:2009,SELECTED_DATE:2009-02-01,QGETDUTYDATES:{COLUMNS:[DATE],DATA:[[Fe
bruary

, 01 2009 00:00:00],[February, 02 2009 00:00:00],[February, 03 2009 
00:00:00],[February, 04
2009

 00:00:00],[February, 05 2009 00:00:00],[February, 06 2009 
00:00:00],[February, 07 2009
00:00:00

],[February, 08 2009 00:00:00],[February, 09 2009 00:00:00],[February, 10 
2009
00:00:00],[February

, 11 2009 00:00:00],[February, 12 2009 00:00:00],[February, 13 2009 
00:00:00],[February, 14
2009

 00:00:00],[February, 15 2009 00:00:00],[February, 16 2009 
00:00:00],[February, 17 2009
00:00:00

],[February, 18 2009 00:00:00],[February, 19 2009 00:00:00],[February, 20 
2009
00:00:00],[February

, 21 2009 00:00:00],[February, 22 2009 00:00:00],[February, 23 2009 
00:00:00],[February, 24
2009

 00:00:00],[February, 25 2009 00:00:00],[February, 26 2009 
00:00:00],[February, 27 2009
00:00:00

],[February, 28 2009 00:00:00]]}}




-- 
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] Re: getscript without parameters... an alernative?

2009-02-04 Thread Eric Garside

If you call $.getScript after your regular scripts are already loaded,
domready will not fire again.

On Feb 4, 8:16 am, pere roca pero...@gmail.com wrote:
 hi all,
 if I'm not wrong we cannot send parameters to a script called by getScript
 function;
 so, if we download or get the script and then we call a function inside
 the script, shouldn't it work? the function is there, now in our browser...
 but doesn't work.

 $.getScript('script.js'); x();

 script.js:
 $(document).ready(function(){
 //x function is declared as global
 x=function(datas)
 {
         alert(datas)

 };
 })

 Thanks!!
 --
 View this message in 
 context:http://www.nabble.com/getscript-without-parameters...-an-alernative--...
 Sent from the jQuery General Discussion mailing list archive at Nabble.com.


[jQuery] Re: Select empty textbox fields

2009-02-04 Thread brnwdrng

I got the second suggestion to work (Aaron's); though there was a
minor typo that had to be fixed - the ending double quote
before ).toggleClass

I fixed my secondary problem by removing the class from all the fields
prior to applying the shade effect on each user submit.  So, it ends
up looking like this, for future viewers:

$(#%= this.pnlInputFields.ClientID % input).removeClass
('inputFields_empty');
$(#%= this.pnlInputFields.ClientID % input[class='inputFields']:not
([value])).toggleClass('inputFields_empty');

or, my lamer iteration version now works with the remove statement
preceding it:

$(#%= this.pnlInputFields.ClientID % input).removeClass
('inputFields_empty');
$(#%= this.pnlInputFields.ClientID % input
[class='inputFields']).each(function(i) { $(this).toggleClass
('inputFields_empty', $.trim($(this).val()).length  1); });

Thanks for the help!


On Feb 4, 7:22 am, Aaron Gundel aaron.gun...@gmail.com wrote:
  $(#%= this.pnlInputFields.ClientID %
 input[class='inputFields']:not([value])).toggleClass('inputFields_empty');
 should do the trick.

 On Tue, Feb 3, 2009 at 2:57 PM, brnwdrng brianwoodr...@gmail.com wrote:

  I have a set of text box inputs in a div, and want to color the empty
  ones red (css) when a user attempts to submit incomplete fields. I've
  tried this with and without an explicit iterator, as shown in the two
  examples below.

  (a)
  $(#%= this.pnlInputFields.ClientID % input[class='inputFields']
  [value='']).toggleClass('inputFields_empty');

  (b)
  $(#%= this.pnlInputFields.ClientID % input
  [class='inputFields']).each(function(i) { $(this).toggleClass
  ('inputFields_empty', $.trim($(this).val()).length  1); });

  The first one fails with an error message indicating that [value='']
  is an unrecognized expression (Firebug), though [value='helloworld']
  works, correctly toggling the inputFields_empty class on (but not off)
  wherever it finds helloworld in a text box.  I've tried countless
  variations on this, and can't seem to get it right for an empty field
  (tried :empty too).

  The second one (b) works, at least initially, highlighting the empty
  text boxes. Not as elegant as something like (a) might be, but I'll
  use it if (a) is infeasible.  Note that it only works the first time
  my button is pushed; subsequent changes in the textbox fields (like
  the user erasing them) fail to remove the inputField_empty class (not
  posting back, just have a onclick call that runs this validator
  method).

  Any suggestions?


[jQuery] Re: Detecting wether an image link is going to work

2009-02-04 Thread daveJay

On Feb 4, 11:20 am, brian bally.z...@gmail.com wrote:
 Yeah, I thought it didn't look right. Even doing it with each() like
 that . It's too bad one can't create an Image oject with with both the
 dimensions and the src.

Well the other factor is that I want the images to load in succession
as opposed to all at once. That way the first image pops in right
away, and then people can view the others as they come in instead of
waiting for all of them to load before doing anything.


On Feb 4, 11:24 am, Liam Potter radioactiv...@gmail.com wrote:
 I don't see the gallery glitch, it probably has more to do with your CPU
 speed and RAM then your browser, as it is a large area to apply an
 opacity fade too. Is you mother's machine higher spec then yours?

I don't think that's it because she has a macbook and I have a 15
Unibody Macbook Pro 2.4GHz Intel Core 2 Duo - 4GB 1067 MHz DDR3.
And it has the NVIDIA GeForce 9600M GT with 256MB if VRAM.
My mom's macbook has the Intel GMA 950 with 64MB VRAM

So I'm really at a loss to explain it. I'm not sure how it could be a
caching issue, and if it is, how to address it.


[jQuery] CLick event for Select Box not supported by IE

2009-02-04 Thread Pedram

Dear folk ,
 I have a select box with Multiple Options
Such as below
Select class=actions
  option value=NEWNew/Edit/option
  option value=a1/option
  option value=b2/option
  option value=c3/option
/select

I wanted to bind a Click event to the select box , so when ever we
Click on the Option with the NEW value
alert box appears this is my code

$(select.actions option[value=NEW]).click(function(){
  alert(worked);
});

this works in Firefox no problem I have problem in IE it doesn't work
without any error it seems .CLICK is not supported by IE for
Selectboxes , I also checked the .Change Worked

$(select.actions).change(function(){
  if($(this).find(option[value=NEW])
alert(worked);
});

But does anyone have an Idea or solution for me
Thanks


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

2009-02-04 Thread Adrian Lynch

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

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

input[value='']

... work for any of you?

Adrian

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

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

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

 by(e)
 Stephan

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



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

  Maurício

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

  Hello all. I have the following...

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

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

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

  More out of curiosity than need ;)

  Thanks.

  Adrian


[jQuery] A couple of jQuery questions (recent converter from Prototype to jQuery)

2009-02-04 Thread Bisbo

Hi there,

I'm a recent converter from Prototype to jQuery and I've got a couple
of questions.

Firstly, if I am storing a jQuery object containing an element (var el
= $('#myelement');) and then I subsequently remove that element ($
('#myelement').remove()), how can I test my el variable to see if that
element exists in the document or has been removed? I cannot simply
test using the id of the element as I I'm storing tens of elements
this way and it's not practical. It would appear that the jQuery
object is still holding a reference to the removed element and hence
any checks for it on the object return as okay.

Secondly, I'm having some withdrawal symptoms from Prototype and I'm
missing the many other functions such as it's String, Array, Object
and even some of it's Element functions. I did think about using both
libraries as the same time but that would be a hefty download. Are
there any other options that anyone is using, perhaps some good
plugins or other smaller libraries the do the job nicely?

Many thanks,

Michael


[jQuery] Re: animations; browser problem or bad code?

2009-02-04 Thread Stephan Veigl

Hi,

I took a short look on your code and noticed that you load your main
content after the animation has finished. Is this really what you want
to do? Shouldn't it be rather that the main content is loaded in
background as soon as the link is clicked, and set to visible after
the animation has finished?

Anyway, what happens if you comment out the content loading completely
and test the animation only.

by(e)
Stephan


2009/2/4 re5et zerodex...@chello.at:

 uh that's odd, I don't get any errors in FF (except Warning: Error in
 parsing value for property 'opacity'.  Declaration dropped.)

 I know it's not usable in IE6 as I haven't done anything towards IE
 compatibility yet.

 thanks for telling me about the error, though.

 so... does it work for everyone in FF? for me in all browsers but IE7
 there's no animation when the content panel opens. the closing
 animations works most of the time but then it immediately jumps to
 'open' instead of smoothly animating the width of the content div.

 I've tried disabling firebug and the dev toolbar to see if it works
 better without them but there was no difference - some odd settings in
 FF maybe?


[jQuery] Re: Turning JSON-formatted AJAX data into data usable by ColdFusion

2009-02-04 Thread Charlie Griefer
Having to learn more JS shouldn't really be a bummer.  More tools in the
toolbox isn't a bad thing.
i don't think you need any particular plug-ins... just read the jQuery docs.

http://docs.jquery.com/Utilities/jQuery.each#objectcallback

that'll iterate over a JS object or array.

As you're looping over the data, you'll likely be wanting to manipulate
various page elements with that data.

http://docs.jquery.com/Manipulation


On Wed, Feb 4, 2009 at 8:51 AM, Rick Faircloth r...@whitestonemedia.comwrote:

  Oh..so true.  Didn't even think of it that way.



 Bummer…that means I've got to learn more JS!



 I've looked at some blogs and tutorials that deal

 with outputting JS, but they've all dealt with queries.



 Know of any resources that provide guidance for dealing

 with structs?



 My current CFC creates data from two queries and some

 single pieces of data and puts them into a struct.



 Parsing through that is proving to be a little more

 than I can figure out at this point.



 Is there any jQuery plug-ins that help deal with parsing

 and outputting JS data that I can use to by-pass writing

 raw JS?



 Projects are getting behind trying to figure out the

 AJAX approach…perhaps it's just time to shelve AJAX

 and go back to regular CF code for awhile.



 Thoughts?



 Thanks,



 Rick







 *From:* jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] *On
 Behalf Of *Charlie Griefer
 *Sent:* Wednesday, February 04, 2009 11:23 AM
 *To:* jquery-en@googlegroups.com
 *Subject:* [jQuery] Re: Turning JSON-formatted AJAX data into data usable
 by ColdFusion



 you're overlooking the fact that CF executes on the server.  JS executes on
 the client.



 When you get data returned from an AJAX call, you're on the client.  You're
 in the realm of JS.  There's no converting the data into a usable (CF)
 format at that point.  All of the CF is done on the server (during the AJAX
 call, when you're returning JSON from the CFC).



 Once it's been returned to your jQuery, you'll be working with the data in
 JS (jQuery).

 On Wed, Feb 4, 2009 at 5:07 AM, Rick Faircloth r...@whitestonemedia.com
 wrote:


 Ok, so I'm at the point in using jQuery AJAX where I'm now
 returning complicated data of queries (multiple) and bits of
 data for use back on the calling page.

 In my CFC's, I use the returnFormat=json to send data back
 properly json-formatted.

 However, now, I need to know how to get that json data back
 into a form that I can use with my CF knowledge.  Such as
 looping queries, referring to data by myQuery.name, etc.
 In other words, I want to get that json data back into my
 comfort zone.

 I need to know what technique to look at.  I've looked over
 many resources and they all seem to offer a little different
 approach.  I have no experience with which to evaluate these
 approaches.  CFSON seems to be the most likely candidate.

 So, to get this json data (below--from one of my CFC functions),
 back into ColdFusion, what does everyone suggest?

 Thanks for *any* guidance!

 Rick

 Here's the data mentioned above--does using CFJSON translate this
 back into ColdFusion format without me having to write a bunch
 of js code to loop the code etc, to translate it?




 {MONTH:2,QGETSCHEDULE:{COLUMNS:[DUTY_ID,DATE,AM_PM,AGENT_ID,POSITION,FIRST_NAME,L
 AST_NAME

 ],DATA:[[1677,February, 28 2009
 00:00:00,am,18,primary,Mary,Fail],[1678,February, 28
 2009

  00:00:00,am,19,alternate,Rebecca,Nottingham],[1679,February, 28
 2009
 00:00:00,pm,20,primary

 ,Renea,Camper],[1680,February, 28 2009
 00:00:00,pm,21,alternate,Verjuana,Underwood]]},MESSAGE


 :Success,YEAR:2009,SELECTED_DATE:2009-02-01,QGETDUTYDATES:{COLUMNS:[DATE],DATA:[[Fe
 bruary

 , 01 2009 00:00:00],[February, 02 2009 00:00:00],[February, 03 2009
 00:00:00],[February, 04
 2009

  00:00:00],[February, 05 2009 00:00:00],[February, 06 2009
 00:00:00],[February, 07 2009
 00:00:00

 ],[February, 08 2009 00:00:00],[February, 09 2009 00:00:00],[February,
 10 2009
 00:00:00],[February

 , 11 2009 00:00:00],[February, 12 2009 00:00:00],[February, 13 2009
 00:00:00],[February, 14
 2009

  00:00:00],[February, 15 2009 00:00:00],[February, 16 2009
 00:00:00],[February, 17 2009
 00:00:00

 ],[February, 18 2009 00:00:00],[February, 19 2009 00:00:00],[February,
 20 2009
 00:00:00],[February

 , 21 2009 00:00:00],[February, 22 2009 00:00:00],[February, 23 2009
 00:00:00],[February, 24
 2009

  00:00:00],[February, 25 2009 00:00:00],[February, 26 2009
 00:00:00],[February, 27 2009
 00:00:00

 ],[February, 28 2009 00:00:00]]}}




 --
 I have failed as much as I have succeeded. But I love my life. I love my
 wife. And I wish you my kind of success.




-- 
I have failed as much as I have succeeded. But I love my life. I love my
wife. And I wish you my kind of success.


[jQuery] Re: Long List, no particular order of IDs

2009-02-04 Thread Stephan Veigl

Hi Drew,

I'm not a JavsScript optimization expert, but here's my approach.

Do you create the item list dynamically?
If so, I would add every newly created jQuery object of an item into
an array. Then loop through the array and expand / collapse as you
like.
If the HTML is created on server side, add a class (e.g.'top-level')
to each top level item, get them once when the page has been loaded
$(li.top-level) and store this jQuery selection in a global variable
for later use.

by(e)
Stephan


2009/2/3 drewtown drew.t...@gmail.com:

 I have a long list of items for example

 + item 1
 -- sub item 1
 -- sub item 23

 + item 45
 -- sub item 142

 +item 995
 -- sub item 198
 -- sub item 244

 As you can see the ids are in no particular order.  I'm looking for
 the most efficient way of expanding the top level ones.  Also I would
 like all the items to be editable by their respective owners. b It's
 essentially a threaded comment system that is collapsed by default./
 b

 Right now I have them in a foreach loop that is generated when the
 page is called but I'm guessing there is a faster way to do this.

 I look forward to your ideas.

 Drew


[jQuery] Re: [Superfish] Submenus appear underneath menu items when the menu wraps

2009-02-04 Thread Michael Smith

Hi again

I added this css:

.sf-menu li li a {
background:red;
z-index:100;
}

and as you can see on :

http://dev2.savingforchildren.co.uk/mjs/menu.epl

When using IE (in my case IE6) the submenus still appear under the main menus.

Anything I can do to get them on top?

Michael

On Tue, Feb 3, 2009 at 11:03 AM, Michael Smith smi...@gmail.com wrote:
 Thanks jQuery Lover - I messed around with a few things without
 success.  Any chance you can be more specific as to the css change
 needed?

 Thanks again
 Michael


 On Tue, Feb 3, 2009 at 9:48 AM, jQuery Lover ilovejqu...@gmail.com wrote:

 Try setting z-index value in CSS for the current menu list with a
 higher value like  1000.

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



 On Tue, Feb 3, 2009 at 2:42 PM, Michael Smith smi...@gmail.com wrote:

 Hi,

 As per this example:

 http://dev2.savingforchildren.co.uk/mjs/menu.epl

 I find that if my menus wrap in IE, then the submenus appear
 underneath the other menus.  In Firefox it's fine.  Is there a way
 round this or is wrapping menus not supported?

 Thanks

 Michael





[jQuery] Re: How to submit a form with an Anchor rather than an Input tag?

2009-02-04 Thread Klaus Hartl

The name attribute is deprecated for the form element. Using an id ist
good practice.

--Klaus

On 4 Feb., 14:41, Liam Potter radioactiv...@gmail.com wrote:
 why you using get element by id?

 make sure your form has a name ( form name=myform )

 then use this

 a class=button href=javascript://document.myform.submit();Send/a

 ||

 Tintin81 wrote:
  Hi,

  I have a very simple contact form that I would like to submit using an
  anchor rather than an input tag. This is what I've got so far:

  [code]a class=button href=javascript:{}
  onclick=document.getElementById('contact-form').submit(); return
  false;Send/a[/code]

  Unfortunately, it doesn't work :-(

  Can anybody help me with this?

  Thanks a lot...


[jQuery] Re: Is this list too busy? jQuery list for your time zone

2009-02-04 Thread Liam Potter


I use thunderbird, which has a threaded option, keeps tracks of 
conversations quite well, new posts are bold. I just wish it would move 
the entire conversation to the top of the list though.


I only use this list at work though, so when I come in on a monday, 
unless I've asked some questions on the friday I just mark everything as 
read and use as normal through out the day.


Oliver Boermans wrote:

2009/2/4 jQuery Lover ilovejqu...@gmail.com:
  

I receive emails from the list and easily keep track of my postings in gmail.

You can click on Sent mail and see if you have any replies in thread
you've posted...



Ah, perhaps the mistake I have been making is sending and reading my
messages in the group interface.
I always switch on the notifications and reply like I am now in gmail.

Regardless what I mean is keeping up with everyone else's message
rather than my own.
  


[jQuery] Re: Jquery cycle plugin - YouTube videos

2009-02-04 Thread Ado

Still no joy, very frustrating :( Although Im no expert...

Would really appreciate to hear from anyone who has had a similar
issue, and if they ever found a fix...

A.




On Feb 3, 5:51 pm, Ado adrianja...@gmail.com wrote:
 Thanks for looking, cant see much on Google at the moment apart from
 people having similar problems with flash video when they try and make
 it display:none (which is esentially cycle plug-in is doing)

 Anybody else have any code for this? I will keep hunting and post back
 here if I come across anything...

 On Feb 3, 5:27 pm, Mike Alsup mal...@gmail.com wrote:

   I dont suppose you have a quick demo, or code to hand to show me how
   this would be done. Would be most appreciated...

  Hmm, I thought I did but can seem to find it.  It depends what
  functions are exposed on the element so you may want to google it.
  Maybe someone else will chime in with a suggestion.


[jQuery] Re: validation plugin and ui tabs

2009-02-04 Thread Caldur

Well, you can have as many form elements as you want on a page, but
you can only have one form runat=server element per page. Not sure
if that will help you any.

On Feb 3, 6:12 pm, varun khatri.vk1...@gmail.com wrote:
 Hi Everybody

 I am trying to use validation plugin with ui tbas.

 suppose I have 5 tabs on page and every tab have submit button  in
 that case how can I use validation plugin...

 I know i can use validation as:

 ('#form-id').validate();

 but since i have 5 tabs but i cant have 5 forms in asp.net(please
 correct me if I am wrong)...

 can some one please let me know workaround for this ?

 Thanks
 Varun


[jQuery] Re: Tablesorter plugin - lazy caching

2009-02-04 Thread aquaone
you could have the intiial page give a class to the th (or thead w/
closest/delegation) and bind a click event to that class that would enable
tablesorter and remove the class,

stephen


On Wed, Feb 4, 2009 at 05:28, petrillodavide davide.petri...@gmail.comwrote:



 Hello everybody,

 I'm developing an application in which the users will deal with a big table
 (600+ rows).
 One target for the application is that it has to show up as fast as
 possible; anyway, applying the tablesorter on the table, the initial
 caching
 steals more than one second to the process.

 Do anybody knows if it's possible to run the cache initialization only when
 the user clicks on one of the table's headers?

 Thanks in advance!
 Davide.
 --
 View this message in context:
 http://www.nabble.com/Tablesorter-plugin---lazy-caching-tp21830458s27240p21830458.html
 Sent from the jQuery General Discussion mailing list archive at Nabble.com.




[jQuery] Posting a serialized string without Ajax ??

2009-02-04 Thread sinkingfish


Hi,

I think i might be overlooking the obvious but I've got a string from my
sortable list, something like :
item[]=3item[]=1...

I don't want to post this using ajax, I want to do a plain old post, but how
do I append the string to the post url?

Thanks
Brian
-- 
View this message in context: 
http://www.nabble.com/Posting-a-serialized-string-without-Ajaxtp21834948s27240p21834948.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



[jQuery] Re: Turning JSON-formatted AJAX data into data usable by ColdFusion

2009-02-04 Thread Rick Faircloth
yeah, I know.it's not a bummer knowing more JS, but at this point

projects are falling behind and I can't afford much more time for

education.  It's time to produce!  I could have written this app 20 times

by now except for the JS/AJAX part!  

 

Maybe it's time to once again turn to a private tutor to get me over the hump.

Are you interested in an hour or two soon to work out the code for this app

(basically, just showing me how to use the data that I'm putting out now)

and showing me how to use it for some wish-list gifts or something?

 

You can just email me off-list about it. r...@whitestonemedia.com

I can post code online at some of the code-posting sites and we could

IM and/or email responses.  I did this recently and the person who helped

out just wrote the necessary code and then explained it to me.  Took about

an hour or so.

 

I know that you understand jQuery *and* CF, which be essential to making this

work properly.  Just let me know.  If you're not interested or don't have the 
time,

perhaps someone else who can help will be.

 

Meanwhile, I'll check out the jQuery docs and see if any bells ring or lights 
come on!

 

Rick

 

 

From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On Behalf 
Of Charlie Griefer
Sent: Wednesday, February 04, 2009 12:00 PM
To: jquery-en@googlegroups.com
Subject: [jQuery] Re: Turning JSON-formatted AJAX data into data usable by 
ColdFusion

 

Having to learn more JS shouldn't really be a bummer.  More tools in the 
toolbox isn't a bad
thing.

 

i don't think you need any particular plug-ins... just read the jQuery docs.

 

http://docs.jquery.com/Utilities/jQuery.each#objectcallback

 

that'll iterate over a JS object or array.

 

As you're looping over the data, you'll likely be wanting to manipulate various 
page elements with
that data.

 

http://docs.jquery.com/Manipulation

 

On Wed, Feb 4, 2009 at 8:51 AM, Rick Faircloth r...@whitestonemedia.com wrote:

Oh..so true.  Didn't even think of it that way.

 

Bummer.that means I've got to learn more JS!

 

I've looked at some blogs and tutorials that deal

with outputting JS, but they've all dealt with queries.

 

Know of any resources that provide guidance for dealing

with structs?

 

My current CFC creates data from two queries and some

single pieces of data and puts them into a struct.

 

Parsing through that is proving to be a little more

than I can figure out at this point.

 

Is there any jQuery plug-ins that help deal with parsing

and outputting JS data that I can use to by-pass writing

raw JS?

 

Projects are getting behind trying to figure out the

AJAX approach.perhaps it's just time to shelve AJAX

and go back to regular CF code for awhile.

 

Thoughts?

 

Thanks,

 

Rick

 

 

 

From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On Behalf 
Of Charlie Griefer
Sent: Wednesday, February 04, 2009 11:23 AM
To: jquery-en@googlegroups.com
Subject: [jQuery] Re: Turning JSON-formatted AJAX data into data usable by 
ColdFusion

 

you're overlooking the fact that CF executes on the server.  JS executes on the 
client.

 

When you get data returned from an AJAX call, you're on the client.  You're in 
the realm of JS.
There's no converting the data into a usable (CF) format at that point.  
All of the CF is done
on the server (during the AJAX call, when you're returning JSON from the CFC).

 

Once it's been returned to your jQuery, you'll be working with the data in JS 
(jQuery).

On Wed, Feb 4, 2009 at 5:07 AM, Rick Faircloth r...@whitestonemedia.com wrote:


Ok, so I'm at the point in using jQuery AJAX where I'm now
returning complicated data of queries (multiple) and bits of
data for use back on the calling page.

In my CFC's, I use the returnFormat=json to send data back
properly json-formatted.

However, now, I need to know how to get that json data back
into a form that I can use with my CF knowledge.  Such as
looping queries, referring to data by myQuery.name, etc.
In other words, I want to get that json data back into my
comfort zone.

I need to know what technique to look at.  I've looked over
many resources and they all seem to offer a little different
approach.  I have no experience with which to evaluate these
approaches.  CFSON seems to be the most likely candidate.

So, to get this json data (below--from one of my CFC functions),
back into ColdFusion, what does everyone suggest?

Thanks for *any* guidance!

Rick

Here's the data mentioned above--does using CFJSON translate this
back into ColdFusion format without me having to write a bunch
of js code to loop the code etc, to translate it?



{MONTH:2,QGETSCHEDULE:{COLUMNS:[DUTY_ID,DATE,AM_PM,AGENT_ID,POSITION,FIRST_NAME,L
AST_NAME

],DATA:[[1677,February, 28 2009 
00:00:00,am,18,primary,Mary,Fail],[1678,February, 28
2009

 00:00:00,am,19,alternate,Rebecca,Nottingham],[1679,February, 28 2009
00:00:00,pm,20,primary

,Renea,Camper],[1680,February, 28 2009

[jQuery] Re: Posting a serialized string without Ajax ??

2009-02-04 Thread Liam Potter


put it into a variable, and post the variable.

sinkingfish wrote:

Hi,

I think i might be overlooking the obvious but I've got a string from my
sortable list, something like :
item[]=3item[]=1...

I don't want to post this using ajax, I want to do a plain old post, but how
do I append the string to the post url?

Thanks
Brian
  


[jQuery] Re: Posting a serialized string without Ajax ??

2009-02-04 Thread Stephan Veigl

Hi Brain,

you can put it into a hidden input field and do a normal user submit
of the form.

by(e)
Stephan


2009/2/4 sinkingfish sinkingf...@gmail.com:


 Hi,

 I think i might be overlooking the obvious but I've got a string from my
 sortable list, something like :
 item[]=3item[]=1...

 I don't want to post this using ajax, I want to do a plain old post, but how
 do I append the string to the post url?

 Thanks
 Brian
 --
 View this message in context: 
 http://www.nabble.com/Posting-a-serialized-string-without-Ajaxtp21834948s27240p21834948.html
 Sent from the jQuery General Discussion mailing list archive at Nabble.com.




[jQuery] Re: Posting a serialized string without Ajax ??

2009-02-04 Thread brian

On Wed, Feb 4, 2009 at 12:10 PM, sinkingfish sinkingf...@gmail.com wrote:


 Hi,

 I think i might be overlooking the obvious but I've got a string from my
 sortable list, something like :
 item[]=3item[]=1...

 I don't want to post this using ajax, I want to do a plain old post, but how
 do I append the string to the post url?


The way I did this once was to create a form dynamically and then
submit it. This is essentially the same thing that I did:

http://mentaljetsam.wordpress.com/2008/06/02/using-javascript-to-post-data-between-pages/

A little jquery in there would tighten that up even more ;-)


[jQuery] Re: ajaxfileupload response problem

2009-02-04 Thread Matt

to update regarding my error. Now I’m getting to the error callback.
And I’m getting a:

TypeError io.contentDocument.document is undefined happening here in
the code:

try
{
if(io.contentWindow)
{
xml.responseText = io.contentWindow.document.body?
io.contentWindow.document.body.innerHTML:null;
xml.responseXML = io.contentWindow.document.XMLDocument?
io.contentWindow.document.XMLDocument:io.contentWindow.document;

}else if(io.contentDocument)
{
xml.responseText = io.contentDocument.document.body?
io.contentDocument.document.body.innerHTML:null;
xml.responseXML = io.contentDocument.document.XMLDocument?
io.contentDocument.document.XMLDocument:io.contentDocument.document;
}
}catch(e)
{
jQuery.handleError(s, xml, null, e);
}

however looking at the html via Firebug, i can see the data did come
back from the servlet:
iframe id=jUploadFrame1233767850121
name=jUploadFrame1233767850121 style=position: absolute; top:
-1000px; left: -1000px;
html
head/
body
pre{”result”:”success”}/pre
/body
/html
/iframe

Any idea what’s going on here?


On Feb 3, 2:20 pm, Matt matt.critch...@gmail.com wrote:
 Hi All,

 I'm trying to use the following plugin to allow me to submit data and
 upload a file via ajax. The plugin homepage 
 is:http://www.phpletter.com/Demo/AjaxFileUpload-Demo/

 The submission itself works fine, the data is being stored and the
 file is uploaded. I have a java servlet which i pass a number of
 parameters to, and the plugin creates the iframe with the file input
 element inside. The servlet returns as content-type application/json
 and the json being sent back is either { result:success } or
 { result:error }

 The problem is in the response. Instead of the callbacks being called,
 an attachment popup is shown in the browser with the name of my
 servlet and all the parameters, yet it is of the content-type
 application/json. I've verified the response is correct, so I think it
 might have to do with how the plugin is handling the iframe response.
 Does anyone have any ideas on this?

 Thanks,

 Matt


[jQuery] Re: jQuery UI Dialog - how to hide 'X' close box?

2009-02-04 Thread Sam H

Perfect - thanks!

On Feb 4, 10:32 am, Richard D. Worth rdwo...@gmail.com wrote:
 See this thread

 http://groups.google.com/group/jquery-ui/browse_thread/thread/9c8fbe3...

 for some examples.

 - Richard

 On Wed, Feb 4, 2009 at 11:24 AM, Liam Potter radioactiv...@gmail.comwrote:



  css

  Sam H wrote:

  Is there any way with jQuery UI Dialog to not show the X close box
  in the titlebar? (what if I want to show a message dialog that the
  user cannot close, such as a Loading... dialog)


[jQuery] Re: Turning JSON-formatted AJAX data into data usable by ColdFusion

2009-02-04 Thread Charlie Griefer
Unfortunately, right now I just don't have the time to take on another
project (even a small one like 'code consulting'), otherwise I'd be happy
to.
As far as someone who knows CF... that shouldn't really be an issue.  You've
-got- the data back already.  You just need someone to show you how to work
with it in jQuery.  Hopefully someone else on the list has some extra time
and needs some wish list items :)

But yeah, in the interim just rely heavily on the docs and write out some
static examples of your own to get a feel for it.  The first link I gave you
shows an example of using .each() to loop over JSON data:

var obj = { one:1, two:2, three:3, four:4, five:5 };

I understand that the data you're working with might be more complex than
that... but if you can get comfortable working with that, it's less of a
shock to the system to work with more complex data.


On Wed, Feb 4, 2009 at 9:18 AM, Rick Faircloth r...@whitestonemedia.comwrote:

  yeah, I know…it's not a bummer knowing more JS, but at this point

 projects are falling behind and I can't afford much more time for

 education.  It's time to produce!  I could have written this app 20 times

 by now except for the JS/AJAX part!



 Maybe it's time to once again turn to a private tutor to get me over the
 hump.

 Are you interested in an hour or two soon to work out the code for this app

 (basically, just showing me how to use the data that I'm putting out now)

 and showing me how to use it for some wish-list gifts or something?



 You can just email me off-list about it… r...@whitestonemedia.com

 I can post code online at some of the code-posting sites and we could

 IM and/or email responses.  I did this recently and the person who helped

 out just wrote the necessary code and then explained it to me.  Took about

 an hour or so.



 I know that you understand jQuery **and** CF, which be essential to making
 this

 work properly.  Just let me know.  If you're not interested or don't have
 the time,

 perhaps someone else who can help will be…



 Meanwhile, I'll check out the jQuery docs and see if any bells ring or
 lights come on!



 Rick





 *From:* jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] *On
 Behalf Of *Charlie Griefer
 *Sent:* Wednesday, February 04, 2009 12:00 PM

 *To:* jquery-en@googlegroups.com
 *Subject:* [jQuery] Re: Turning JSON-formatted AJAX data into data usable
 by ColdFusion



 Having to learn more JS shouldn't really be a bummer.  More tools in the
 toolbox isn't a bad thing.



 i don't think you need any particular plug-ins... just read the jQuery
 docs.



 http://docs.jquery.com/Utilities/jQuery.each#objectcallback



 that'll iterate over a JS object or array.



 As you're looping over the data, you'll likely be wanting to manipulate
 various page elements with that data.



 http://docs.jquery.com/Manipulation



 On Wed, Feb 4, 2009 at 8:51 AM, Rick Faircloth r...@whitestonemedia.com
 wrote:

 Oh..so true.  Didn't even think of it that way.



 Bummer…that means I've got to learn more JS!



 I've looked at some blogs and tutorials that deal

 with outputting JS, but they've all dealt with queries.



 Know of any resources that provide guidance for dealing

 with structs?



 My current CFC creates data from two queries and some

 single pieces of data and puts them into a struct.



 Parsing through that is proving to be a little more

 than I can figure out at this point.



 Is there any jQuery plug-ins that help deal with parsing

 and outputting JS data that I can use to by-pass writing

 raw JS?



 Projects are getting behind trying to figure out the

 AJAX approach…perhaps it's just time to shelve AJAX

 and go back to regular CF code for awhile.



 Thoughts?



 Thanks,



 Rick







 *From:* jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] *On
 Behalf Of *Charlie Griefer
 *Sent:* Wednesday, February 04, 2009 11:23 AM
 *To:* jquery-en@googlegroups.com
 *Subject:* [jQuery] Re: Turning JSON-formatted AJAX data into data usable
 by ColdFusion



 you're overlooking the fact that CF executes on the server.  JS executes on
 the client.



 When you get data returned from an AJAX call, you're on the client.  You're
 in the realm of JS.  There's no converting the data into a usable (CF)
 format at that point.  All of the CF is done on the server (during the AJAX
 call, when you're returning JSON from the CFC).



 Once it's been returned to your jQuery, you'll be working with the data in
 JS (jQuery).

 On Wed, Feb 4, 2009 at 5:07 AM, Rick Faircloth r...@whitestonemedia.com
 wrote:


 Ok, so I'm at the point in using jQuery AJAX where I'm now
 returning complicated data of queries (multiple) and bits of
 data for use back on the calling page.

 In my CFC's, I use the returnFormat=json to send data back
 properly json-formatted.

 However, now, I need to know how to get that json data back
 into a form that I can use with my CF knowledge.  Such as
 looping queries, 

[jQuery] slideUp/Down jumpy in Firefox 3 but not in IE7?

2009-02-04 Thread Sam H

I don't remember if it was like this in jQuery 1.2, but I have 1.3.1
and I can clearly see that slideDown/Up is much smoother in IE7 than
in Firefox 3.

Is it just me?


[jQuery] Re: Tablesorter plugin - lazy caching

2009-02-04 Thread petrillodavide


Stephen,

thanks for the tip ;)
I'm using a similar workaround at the moment, I anyway think a lazy caching
would be an useful feature for the plugin.

Ciao,
Davide.
-- 
View this message in context: 
http://www.nabble.com/Tablesorter-plugin---lazy-caching-tp21830458s27240p21835411.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



[jQuery] Re: slideUp/Down jumpy in Firefox 3 but not in IE7?

2009-02-04 Thread Andy Matthews

The jQuery team freely admits that they optimize for IE more so than the
other browsers. So it's distinctly possible that this is true. 

-Original Message-
From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On
Behalf Of Sam H
Sent: Wednesday, February 04, 2009 11:28 AM
To: jQuery (English)
Subject: [jQuery] slideUp/Down jumpy in Firefox 3 but not in IE7?


I don't remember if it was like this in jQuery 1.2, but I have 1.3.1 and I
can clearly see that slideDown/Up is much smoother in IE7 than in Firefox 3.

Is it just me?




[jQuery] Re: a tag with good text popup (without title)

2009-02-04 Thread Ricardo Tomasi

Look for 'tooltip' at plugins.jquery.com

This is the first result on google:
http://www.codylindley.com/blogstuff/js/jtip/

On Feb 4, 12:35 pm, Petty Pavlow pettypav...@googlemail.com wrote:
 Hi
 I would like to do some html (a tag) links.When u go with mouse on the
 top of this link it will pop up a box with      (maybe with a photo or
 without) some good texts.I know i could do it with html (a tag title)
 but it seems like old kind.

 Thanks.


[jQuery] Change subdomain on same page...

2009-02-04 Thread atomk

I have different subdomains pointing to the same file on my server -
simple enough. What I'd like to do is essentially reverse that: Can
the same file redirect to different subdomains?

For example: http://adamkobrin.com  When you click on any of the top 4
links, different content is loaded, but you remain on the same page
with (hopefully) nice smooth transitions - the url remains unchanged.
I'm looking for a client-side way to change the subdomain in the
location bar based on each link, making it possible for the user to
bookmark each page differently, without compromising my smooth
transitions by loading a new page...

Make sense? Possible?

Thanks!


[jQuery] Re: having a problem with ' and strings

2009-02-04 Thread Ricardo Tomasi

Replace all quotes inside your text variables with their correspondent
HTML entities, then you should face no issues:

titleFull = titleFull.replace(',#145;).replace('',quot;);

I agree with Liam, it's best to use single quotes for the strings
passed so you can use double quotes inside them. In XHTML all atribute
values should use double quotes.

- ricardo

On Feb 4, 12:44 pm, dirk w dirkwendl...@googlemail.com wrote:
 hello jquery community,
 i am getting some strings from a page i don't have influence on. i
 just append those to elements (thanks to jquery this works like a
 charm!):

 $(#searchResultList).append(li class='searchResultEntry'id=' +
 videoId + ' title=' + titleFull +  ( + minutes + : + seconds +
 )'img src=' + thumbnailUrl + '        class='thumbnail' alt=' +
 titleFull +  ( + minutes + : + seconds + )'//li);

 my problem is:
 sometimes the variable title contains a ' in the string, like
 doesn't that look funny... in this case my output get's completely
 messed up.
 is there a more reliable way to use ' and   ? any ideas how i could
 prevent ' to crack this up?

 thanks in advance
 dirk


  1   2   >