[jQuery] Re: Google Analytics Tracking With jQuery

2007-10-26 Thread jason

Yep, that's my understanding as well, although:

1) I don't know how long it will be in beta -- what's there now is not
recommended for production use and is subject to change.

2) I don't know how configurable it will be out of the box -- a lot
of the things people do with urchin.js now are features that have
never been documented by Google.

3) I would still like to know why this hasn't been logging to my test
accounts.

Thanks,
Jason




On Oct 26, 5:29 am, Mika Tuupola [EMAIL PROTECTED] wrote:
 On Oct 26, 2007, at 3:54 AM, jason wrote:

  - Examine all of the links on the page and attach onclick events to:
  - External links.
  - Mailto links.
  - Downloads.

  - Call urchinTracker() when these links are clicked, prefixing them
  appropriately.

 AFAIK new ga.js tracks outbound links automatically.

 --
 Mika Tuupolahttp://www.appelsiini.net/



[jQuery] Re: Code in loop

2007-10-26 Thread Jean

Ae brazuca naum sei do resto mas sei que vc esta errando aqui
var id = $(this).attr(id_delete)

The attr method catch  or set a the value of the jq object.
Try this
var id = $(this).attr(id)


On 10/25/07, Jimmy Neph [EMAIL PROTECTED] wrote:
 This is the code:
 $(.delete).click(function(e){
 var id = $(this).attr(id_delete)
 $(#confirm_box).css({left: e.pageX-453, top: e.pageY})
 $(#confirm_box).fadeIn(300);
 $(#del_nao).click(function(){
 $(#confirm_box).fadeOut(300);
 $(.delete).attr(id_delete,);
 });
 $(#del_sim).click(function(){
 alert(id);
 $(#del_sim).attr(id_user,id);
 $.ajax({
 type: POST,
 url:../painel/kern_usuarios.php,
 data:
 id=+$(this).attr(id_user)+acao=del_user,
 success: function(msg){
 if(msg)
 {
 $(#confirm_box).fadeOut(300)

 $(#answer_box).text(Usuario deletado com
 sucesso);
 $(#answer_box).fadeIn(1000, function(){
 $(this).animate({opacity:1.0}, 1000, ,
 function(){
 $(this).fadeOut(1000, function(){

 $($(tr).attr(id_linha)).find([EMAIL PROTECTED]+id+]).slideUp(slow);
 });
 });
 });
 }
 else
 {
 $(#confirm_box).fadeOut(300)

 $(#answer_box).text(Erro ao deletar
 usuario);
 $(#answer_box).fadeIn(300);
 }
 }
 });
 });
 });


 I believe that is a sintax problem...But I'm yet noob in Jquery...

 2007/10/25, Glen Lipka  [EMAIL PROTECTED]:
  Can you post a simple page that demonstrates the problem?
  It's easier to debug that way.
 
  Glen
 
 
 
  On 10/25/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
  
   Hi there friends!!!
  
   I'm having problems with a code here using AJAX on Jquery.
   When I do only one click in my object, it works fine, but, when I
   click again in other object the previous result of id continue stored.
  
   What I have to do to solve this problem??
  
  
 
 




-- 

[]´s Jean
www.suissa.info

   Ethereal Agency
www.etherealagency.com


[jQuery] Re: Google Analytics Tracking With jQuery

2007-10-26 Thread Mika Tuupola



On Oct 26, 2007, at 3:54 AM, jason wrote:


- Examine all of the links on the page and attach onclick events to:
- External links.
- Mailto links.
- Downloads.

- Call urchinTracker() when these links are clicked, prefixing them
appropriately.


AFAIK new ga.js tracks outbound links automatically.

--
Mika Tuupola
http://www.appelsiini.net/





[jQuery] load a file from local file system

2007-10-26 Thread [EMAIL PROTECTED]

Hi,

the $(element).load(url) works well, but is there a way load from a
local file system? thanks.

A.C.



[jQuery] Saving contents

2007-10-26 Thread [EMAIL PROTECTED]

Hi,

I have a need to save content of a div id=test/div to some
global variables and re-load it sometime later, possible with jQuery?
thanks.

A.C.



[jQuery] Re: load a file from local file system

2007-10-26 Thread Gordon

No, this is deliberately left out of javascript on the grounds that it
could prove a massive security risk if abused.

On Oct 26, 10:49 am, [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:
 Hi,

 the $(element).load(url) works well, but is there a way load from a
 local file system? thanks.

 A.C.



[jQuery] Re: New Plugin: SimpleModal

2007-10-26 Thread Eric Martin

On Oct 25, 3:54 pm, bbuchs [EMAIL PROTECTED] wrote:
 I think he's referring to the queuing and duration of the fade
 effects. First the overlay fades in, the the modal fades in... start
 to finish it's more than a full second from the moment the trigger was
 clicked.

 Your fade durations are set to 'slow'. I haven't played with it yet,
 but from what I read those can be configured, which would make it
 appear snappier.

  - b


I lowered the delay down to 200, from 500, so that should make it
quicker.

The contact form was intended to just be a demo of ways to enhance the
style and functionality of SimpleModal, so I've added a Basic Modal
Dialog demo to illustrate the bare bones functionality as well.

Thanks for all the input so far...

-Eric



[jQuery] Re: New Plugin: SimpleModal

2007-10-26 Thread Eric Martin

On Oct 25, 6:48 pm, Pops [EMAIL PROTECTED] wrote:
 Ok, I checked into it and I have the FireFox NOSCRIPT plugin. Just too
 dangerous out there to willy nilly allow all sites use Javascript. So
 I turn it on on a site by site basis.  NOSCRIPT puts alittle clickable
 icon in the status bar telling me which sites the current page is
 trying to reach for javascript.


I had to chuckle...having JavaScript disabled for a JavaScript library
demo, probably won't work too well =)

 I normally just temporarily turn it on for the DEMO site in question
 only, like your site, but your DEMO download requirements also
 required googlecode.com which was also blocked.  Once I turn that site
 on your demo worked under firefox as well.


Good to know...I may just put a local copy on the site to prevent
this from happening to others.

 Anyway, other than fine tuning the speed, it worked very well.

 --
 HLS

 On Oct 25, 9:12 pm, Pops [EMAIL PROTECTED] wrote:

  Nice, but it doesn't work under FireFox. Started IE and I was able to
  see the demo.  Let me try Opera. Slow, but it worked.

  Good for your first plugin once you get the X-Browser issues
  resolved. :-)


The issues were related to the delay I had set in the effects...they
should be quicker now.

Thanks again for the feedback.

-Eric



[jQuery] Multiple animate problem

2007-10-26 Thread Globule

Hi all,
I realised something like http://demos.mootools.net/Fx.Elements with
JQuery
with background image transition.
But images are not resized simultaneously, so the last button sometime
get down.
You can see it in action on http://denon.joomlation.org

More precisions
---
I used a link list with images. ulliaimg
Inactive images (shorter) are declared in the A element from the CSS
Active images (larger) are in img, into the html code
The goal is to switch images with a transition and sizing effect.

Here is my actual code (lien=link):

$(function() {
 $(.lien).children(img).hide(); // hide all IMG elements
 var speed = 300;
 $(.lien).mouseover(function(){
  var cur_btn = $(this).attr(href);
  $(.lien).each(function(){
   lien = $(this).attr(href)
   if ( lien == cur_btn ) {
$(this).animate({ width: 320px },
 { queue: false, duration: speed }
);
$(this).children(img).animate({ width: 320px,
opacity: 1 },
 { queue: false, duration: speed }
);
   } else {
$(this).animate({ width: 187px },
 { queue: false, duration: speed }
);

   }
  });
 });

 $(.lien).mouseout(function(){
  var cur_btn = $(this).attr(href);
  $(.lien).each(function(){
   lien = $(this).attr(href)
   if ( lien == cur_btn ) {
$(this).children(img).animate({ opacity: 0 },
 { queue: false, duration: speed }
);
   }
   $(this).animate({ width: 220px },
{ queue: false, duration: speed }
   );
  });
 });

});

But redimensioning links are not simultaneous so I had to keep free
space on the right.
Any solution?



[jQuery] Displaying same input box

2007-10-26 Thread Merlin

Hello everybody,

I am new to jquery and do currently try to add a reply field to each
of many user comments under a picture.

Therefore I have create a function in jquery that displays a html form
with a save and cancel button.
My goal is now to show this form whenever someone clicks on one of the
many reply buttons. Somehow I have a problem with the object and the
code does not work. I hope to get a bit starting help inside this
group. Thank you for any help.

Here is the code:

html
  head
script src=/app_global/jquery-1.2.1.pack.js type=text/
javascript/script
script type=text/javascript
$(document).ready(function() {
  $('#slickbox').hide();

  $('a#reply-box').click(function() {
var textarea = 'divtextarea rows=4 
cols=60'+$(this).html()
+'/textarea';
var button   = 'divinput type=button 
value=SAVE
class=saveButton / OR input type=button value=CANCEL
class=cancelButton //div/div';
var revert = $(obj).html();
$(obj).after(textarea+button).remove();
$('.saveButton').click(function(){saveChanges(this, 
false, i);});
$('.cancelButton').click(function(){saveChanges(this, 
revert,
i);});
  });

  $('a#slick-down').click(function() {
$('#slickbox').toggle('slow');
return false;
  });

});
/script
  /head
  body
a href=# id=slick-downShow test div/abr
div id=slickboxpShow div/div
Text underneathbr
a href=# id=reply-boxReply/abr
Comment text 1br
a href=# id=reply-boxReply/abr
Comment text 2br
  /body
  /html

Best regards,

Merlin



[jQuery] Changing form action with hidden field named action in IE causes error

2007-10-26 Thread Adrian Lynch

The long subject says it all!

If I have a hidden field named 'action', trying to change the form
action attribute fails in IE7.

If I change the hidden field to something other than action it works.

Can anyone think of a way around this? I would like to keep the hidden
field named 'action' if I can.

Is this a jquery bug, an IE7 bug, a quirk in JS or am I in the wrong
for naming a field 'action'?

Here's some sample code to see the problem:

script type=text/javascript src=/shared-scripts/
jquery-1.2.1.min.js/script

form method=post id=agentForm action=nowhere.html
input type=hidden name=action value=No value /
input type=text name=agentName id=agentName value= /
input type=submit name=saveAgent id=saveAgent value=Save /
/form

button id=debugDebug this fecking page!/button

script type=text/javascript

$(function() {

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

// This should alert 'nowhere.html'
alert(action before:  + 
$(#agentForm).attr(action));

// Change to 'somewhere.html'
$(#agentForm).attr(action, somewhere.html); // No 
worky in
IE7!

// This should alert 'somewhere.html' but doesn't in IE7
alert(action changed to:  + 
$(#agentForm).attr(action));

});

});

/script



[jQuery] Re: Hovering over jQuery retrieved HTML

2007-10-26 Thread Charles Sexton

Hi Jolyon,

I believe that's exactly what I'm doing, as it works perfectly fine
for the first dropdown. It's when jQuery is told to look at HTML
gained via Ajax that I begin to see a problem, but only with mouse
gestures. The key functions work perfectly fine.

Here's the code for the first dropdown (sites), which looks at HTML
generated with the page, and the second dropdown (eaas), which looks
at Javascript written HTML.

// Display the list of sites in a dropdown when the form field is
focused on.
$(.activate_site_list).focus(function() {
$(#site_list_dropdown).slideDown('fast');
}).blur(function() {
$(#site_list_dropdown).slideUp('fast');
});
// Display a nice hover colour when the sites are focused on.
$(#site_list_dropdown).find(li).hover(function() {
$(#site_list_dropdown).find(.hover).removeClass(hover);
$(this).addClass(hover);
site_selected = true;
scrollPosSites = 256;
},function() {
$(this).removeClass(hover);
site_selected = false;
scrollPosSites = 256;
});
// Display the list of EAAs in a dropdown when the form field is
focused on.
$(.activate_eaa_list).focus(function() {
$(#eaa_list_dropdown).slideDown('fast');
}).blur(function() {
$(#eaa_list_dropdown).slideUp('fast');
});
// Display a nice hover colour when the EAAs are focused on.
$(#eaa_list_dropdown).find(li).hover(function() {
$(#eaa_list_dropdown).find(.hover).removeClass(hover);
$(this).addClass(hover);
eaaSelected = true;
scrollPosEAAs = 256;
},function() {
$(this).removeClass(hover);
eaaSelected = false;
scrollPosEAAs = 256;
});

On Oct 24, 4:40 pm, Jolyon Terwilliger [EMAIL PROTECTED] wrote:
 Hi Charles,

 I'm not sure exactly how your code is, but it seems like you would
 want to run the code that applies the .hover() function to the li
 items after you pull them in via each ajax request.

 On Oct 24, 5:26 am, Charles Sexton [EMAIL PROTECTED] wrote:



  Hello!

  I'm using jQuery to build a form dynamically. Here's how it works:

  You are presented with an input box. When you focus on the box a
  dropdown list appears that you can click on in order to insert the
  chosen option into the input box, or you can use the keyboard arrow
  buttons to select your choice.
  When you move to the next input box the page makes a call via AJAX to
  grab information for the input box based on the previous selection.

  The problem is that the .hover() function doesn't seem to work with
  the information that has been pulled into the document using jQuery
  (it works fine with the first list). The items that are pulled in are
  all list items (li{name}/li). Using keystrokes works on the items,
  just not mouse gestures. Would this be a jQuery bug or is there
  something I can do?

  Many thanks,

  Charles- Hide quoted text -

 - Show quoted text -



[jQuery] Re: Checkboxes and radios

2007-10-26 Thread Feijó

Here it is

If any checkbox is clicked, it needs do enable the radio next to it.

In the bottom I have 3 links to check it all, uncheck it all, or
toggle.  In those cases the radios need to respond as well.

That's my last jquery attempt:

$('.form-
item:checkbox:not(:checked)').siblings(':radio').removeAttr('disabled');


Thanks!



divfieldset class= collapsiblelegendRules/legenddiv
class=form-item
 labelValues: /label
 div class=form-checkboxesdiv class=form-item
 label class=optioninput type=checkbox name=options[1]
id=edit-options-1 value=1   class=form-checkbox / Option 001/
label

/div
div class=form-item
 label class=optioninput type=checkbox name=options[2]
id=edit-options-2 value=2   class=form-checkbox / Option 002/
label
/div
div class=form-item
 label class=optioninput type=checkbox name=options[3]
id=edit-options-3 value=3   class=form-checkbox / Option 003/
label
/div
div class=form-item
 label class=optioninput type=checkbox name=options[4]
id=edit-options-4 value=4   class=form-checkbox / Option 004/
label

/div
div class=form-item
 label class=optioninput type=checkbox name=options[5]
id=edit-options-5 value=5   class=form-checkbox / Option 005/
label
/div
div class=form-item
 label class=optioninput type=checkbox name=options[6]
id=edit-options-6 value=6   class=form-checkbox / Option 006/
label
/div
div class=form-item
 label class=optioninput type=checkbox name=options[7]
id=edit-options-7 value=7   class=form-checkbox / Option 007/
label

/div
div class=form-item
 label class=optioninput type=checkbox name=options[8]
id=edit-options-8 value=8   class=form-checkbox / Option 008/
label
/div
div class=form-item
 label class=optioninput type=checkbox name=options[9]
id=edit-options-9 value=9   class=form-checkbox / Option 009/
label
/div
div class=form-item
 label class=optioninput type=checkbox name=options[10]
id=edit-options-10 value=10   class=form-checkbox / Option 010/
label

/div
/div
/div
 a href=javascript:; id=toggleInverter/a a href=javascript:;
id=allTodos/a a href=javascript:; id=noneNenhum/a/fieldset


On Oct 25, 8:53 pm, Wizzud [EMAIL PROTECTED] wrote:
 Need a bit more information!
 If you don't show us some HTML it's a bit difficult to second guess
 the relationship between checkbox and radio.

 On Oct 25, 8:34 pm, Alessandro Feijó [EMAIL PROTECTED] wrote:

  I'm trying to control N checkboxes, when one is selected or unselected, I
  need to enable/disable a radio next to the checkbox

  something like this:

  ( ) [ ]
  (o) [x]

  the marked one, turn the radio clickable

  I start this code

$('.form-checkbox').each( function() {
  $('.form-checkbox:radio').attr('disabled', $(this).attr('checked'));
});

  It returns every checkbox, but I cant figure out how to find the radio
  object from each one

  Thanks in advance for any tip :)

  huge hug
  Feijó



[jQuery] Re: Saving contents

2007-10-26 Thread Adrian Lynch

Of course.

var divContent;

function saveDivContent() {
divContent = $(#test).html();
}

function doSomethingWithTheSavedContent() {
alert(divContent);
}

But, be careful if the div content contains a form with dynamically
created elements. I've had trouble with saving those in the past.

On Oct 26, 10:50 am, [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:
 Hi,

 I have a need to save content of a div id=test/div to some
 global variables and re-load it sometime later, possible with jQuery?
 thanks.

 A.C.



[jQuery] Re: load a file from local file system

2007-10-26 Thread Gordon

AJAX requests are cached by default, but they can only occur from a
web server and must occur in the domain the page is hosted in.  For
example if you have a HTML page at www.example.com that includes some
AJAX javascript, the AJAX requests can only occur on files on www.example.com

On Oct 26, 1:16 pm, [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:
 hi,

 ok, so javascript does not have a way to access local file. a related
 question, can ajax loaded file be cahced?

 On Oct 26, 6:37 pm, Gordon [EMAIL PROTECTED] wrote:

  No, this is deliberately left out of javascript on the grounds that it
  could prove a massive security risk if abused.

  On Oct 26, 10:49 am, [EMAIL PROTECTED]

  [EMAIL PROTECTED] wrote:
   Hi,

   the $(element).load(url) works well, but is there a way load from a
   local file system? thanks.

   A.C.



[jQuery] Re: load a file from local file system

2007-10-26 Thread [EMAIL PROTECTED]

hi,

ok, so javascript does not have a way to access local file. a related
question, can ajax loaded file be cahced?

On Oct 26, 6:37 pm, Gordon [EMAIL PROTECTED] wrote:
 No, this is deliberately left out of javascript on the grounds that it
 could prove a massive security risk if abused.

 On Oct 26, 10:49 am, [EMAIL PROTECTED]

 [EMAIL PROTECTED] wrote:
  Hi,

  the $(element).load(url) works well, but is there a way load from a
  local file system? thanks.

  A.C.



[jQuery] How to Check jQuery Status

2007-10-26 Thread SDyke


I am using jQuery to do an AJAX post. The servlet runs code to generate an
Excel file. On the firing page a hyperlink appears that will display the
Excel file. My problem is keeping the link from appearing before the file
has finished generating. How do I use a response flag to tell the page code
to display the link?
-- 
View this message in context: 
http://www.nabble.com/How-to-Check-jQuery-Status-tf4697072s27240.html#a13426453
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



[jQuery] OT: a very simple download indicator (marquee strikes back)

2007-10-26 Thread Klaus Hartl

marquee direction=right.../marquee

;-)


http://www.stilbuero.de/2007/10/26/a-very-simple-download-indicator-the-glorious-return-of-the-marquee-tag/


--Klaus



[jQuery] Re: Method addClass is not working with MS Internet Explorer (IE) 6

2007-10-26 Thread Mindjoy

Karl, you're right, your suggestions work fine in IE. However, I will
settle on attr method since it's shorter and does exactly what I want
to do. Thank you for your help.

Regards,

Ivica Mikic


On Oct 25, 6:19 pm, Karl Swedberg [EMAIL PROTECTED] wrote:
 I'm guessing this is a weird css specificity issue for IE, but it's
 hard to tell without seeing your stylesheet. Also, you can use the
 DOM viewer with the IE developer toolbar to see if the class is
 actually being applied to the element (even if it might not appear to
 do so).

 That said, your plain JS code is *replacing* no-display with
 display-table-row-group while your jQuery code is simply adding the
 display-table-row-group class to what's there already.

 There are a couple ways you can replace all existing classes with a
 new one using jQuery.

 $('#add-new-rows').removeClass().addClass('display-table-row-group');

 $('#add-new-rows').attr('class', 'display-table-row-group');

 Hope that helps.

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

 On Oct 25, 2007, at 4:22 PM, Mindjoy wrote:



  I am using onclick event on input type=button to addClass, but there
  is no effect in IE 6, while it works fine in Mozilla and Opera
  browsers. I know that IE works fine with such CSS styles, since it
  works with my simple code without jQuery (document.getElementById
  ('add-
  new-rows').className='display-table-row-group';). Please investigate.

  Here is the code:

  form
input type=button name=my-button value=Add Something
  onclick=$('#add-new-rows').addClass('display-table-row-group');/
  /form
  ...
  table
tbody id=add-new-rows class=no-display
  tr class=display-table-row-group
tdSomething/td
  /tr
/tbody
  /table

  CSS:
  .no-display
{
display: none;
}
  .display-table-row-group
{
display: table-row-group;
}



[jQuery] Re: Displaying same input box

2007-10-26 Thread Adrian Lynch

How about creating the form once and moving it to where ever it's
needed. Something like this:

script type=text/javascript

var replyForm = $('div id=replyForm/div');

$(document).ready(function() {

replyForm.append($('textarea id=replyText/textarea'));
replyForm.append($('input type=button value=SAVE
id=saveReply / OR input type=button value=CANCEL
id=cancelReply /'));

$(.reply).click(showReplyForm);

// We haven't injected the form into the DOM yet so we give a
reference to where out form is
$(#cancelReply, replyForm).click(cancelReply);
$(#saveReply, replyForm).click(saveReply);

});

function showReplyForm() {

var buttonPressed = $(this)

// Show any that might be hidding, they'll usually be one
$(.reply).show();

// Get the text from the message. There's bound to be a better 
way
to do this!
var messageText =
buttonPressed.parent().find(.messageText).text();

$(#replyText, replyForm).text(messageText);

replyForm.insertAfter(buttonPressed);

replyForm.show();

buttonPressed.hide();

}

function cancelReply() {
$(replyForm).hide();
$(.reply).show();
}

function saveReply() {
alert(Saving...);
}

/script

div class=message
div class=messageTextThis is message one/div
button class=replyReply to message 1/button
/div

div class=message
div class=messageTextThis is message two/div
button class=replyReply to message 2/button
/div

Any good?

Adrian

On Oct 26, 7:53 am, Merlin [EMAIL PROTECTED] wrote:
 Hello everybody,

 I am new to jquery and do currently try to add a reply field to each
 of many user comments under a picture.

 Therefore I have create a function in jquery that displays a html form
 with a save and cancel button.
 My goal is now to show this form whenever someone clicks on one of the
 many reply buttons. Somehow I have a problem with the object and the
 code does not work. I hope to get a bit starting help inside this
 group. Thank you for any help.

 Here is the code:

 html
   head
 script src=/app_global/jquery-1.2.1.pack.js type=text/
 javascript/script
 script type=text/javascript
 $(document).ready(function() {
   $('#slickbox').hide();

   $('a#reply-box').click(function() {
 var textarea = 'divtextarea rows=4 
 cols=60'+$(this).html()
 +'/textarea';
 var button   = 'divinput type=button 
 value=SAVE
 class=saveButton / OR input type=button value=CANCEL
 class=cancelButton //div/div';
 var revert = $(obj).html();
 $(obj).after(textarea+button).remove();
 $('.saveButton').click(function(){saveChanges(this, 
 false, i);});
 $('.cancelButton').click(function(){saveChanges(this, 
 revert,
 i);});
   });

   $('a#slick-down').click(function() {
 $('#slickbox').toggle('slow');
 return false;
   });

 });

 /script
   /head
   body
 a href=# id=slick-downShow test div/abr
 div id=slickboxpShow div/div
 Text underneathbr
 a href=# id=reply-boxReply/abr
 Comment text 1br
 a href=# id=reply-boxReply/abr
 Comment text 2br
   /body
   /html

 Best regards,

 Merlin



[jQuery] Transparencys and Overlays

2007-10-26 Thread S. Robert James

I'm having trouble understanding how various jQuery plugins show
transparency and overlays over certain elements (or the whole page).
I think CSS provides the ability to do this, but I'm not sure.

What is the basic CSS to:
1) Put a gray, semi-transparent sheet over the whole page?
2) To do the same over just one element?
3) And to raise one element over that transparency?

Much appreciated.



[jQuery] DIV resizes in IE using show

2007-10-26 Thread [EMAIL PROTECTED]

I am having problems with showing a DIV after hiding it, but only in
Internet Explorer.

Initally, the div loads fine, but if i hide it and then show it again,
it gets resized.

Can anyone have a look at http://irish-property.ie in Internet
Explorer, click on any of the hide links and then click on show.

When you click on show, you will see the date div being shown but
pushing the content under neath it to the right.

Any ideas what I am doing wrong?



[jQuery] Re: drawing on mousemove - performance problem

2007-10-26 Thread Flesler

$(function(){
   $(document).mousemove(function(e){
 draw([ e.pageX, e.pageY ]);
});
});

do you really need to generate an array?  I suppose draw( e.pageX,
e.pageY ); will be a bit faster.

On Oct 25, 6:57 pm, powtac [EMAIL PROTECTED] wrote:
 Is there a way to reduce the cpu load when I do something like this
 (and move the pointer very fast on the screen):

 $(document).mousemove(function(e) {
 x = e.pageX;
 y = e.pageY;
 draw([x,y]);

 });

 Something like, wait until the browser is ready ?



[jQuery] Re: Scrolling a textarea to the bottom each time it's updated

2007-10-26 Thread Flesler

I haven't tested it but:

var $t = $('textarea');//whatever the selector you use.
$t.animate({ scrollTop: $t.height() }, 1000);

On Oct 25, 8:54 am, Eli [EMAIL PROTECTED] wrote:
 Hey,
 I'm in need for a function that will scroll my textarea to the bottom
 each time it's updated, how can I do that?

 Thanks,
 Eli



[jQuery] Re: Scrolling a textarea to the bottom each time it's updated

2007-10-26 Thread Flesler

I haven't tested it but:

var $t = $('textarea');//whatever the selector you use.
$t.animate({ scrollTop: $t.height() }, 1000);

On Oct 25, 8:54 am, Eli [EMAIL PROTECTED] wrote:
 Hey,
 I'm in need for a function that will scroll my textarea to the bottom
 each time it's updated, how can I do that?

 Thanks,
 Eli



[jQuery] Manipulation image objects

2007-10-26 Thread Nick LaTerra

Hello,

Suppose I load an image in the browser cache using the JS Image
constructor, how safe is it to manipulate directly the resulting
object (which basically isn't in the DOM) with JQuery?

For instance:

var img = new Image();
img = sunset.jpg;
$(#place1).append(img);
$(img).clone().appendTo(#place2);

I've tested it in FF/IE7 for Windows, it seems OK but I want to be
sure.
Should I rather manipulate an HTML fragment referring to this image
(img src=... /) once I know it has been cached?

Thanks,

Nick



[jQuery] Re: Best regex for this, getting software version numbers

2007-10-26 Thread Flesler

Shouldn't that be: [^.]+\.[^.]+  ?
He didn't say he want to capture the first part, and '.?' will match
something else.

Just in case you are interested, you can achieve the same using:
   s.substring( 0, s.indexOf( '.' ,s.indexOf('.')+1 ));

Ariel Flesler

On Oct 25, 10:05 pm, Andy Matthews [EMAIL PROTECTED] wrote:
 That's better than mine (or at least shorter). Thanks!

   _  

 From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of Michael Geary
 Sent: Thursday, October 25, 2007 4:52 PM
 To: jquery-en@googlegroups.com
 Subject: [jQuery] Re: Best regex for this, getting software version numbers

 Call me stupid. You did provide exactly the information I was asking for in
 my other message, I was just not paying close enough attention. D'oh!

 You could probably simplify the RE to this:

 ([^.]+).?[^.]+

 -Mike

   _  

 From: Andy Matthews
 I came up with this:

 ([a-zA-Z0-9 !]+).?([a-zA-Z0-9]+)

 Is there a better way to do this?

   _  

 From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of Andy Matthews
 Sent: Thursday, October 25, 2007 4:32 PM
 To: jquery-en@googlegroups.com
 Subject: [jQuery] Best regex for this, getting software version numbers

 I have these strings:

 Firefox 2.0.0.8 (Firefox 2.0)

 Internet Explorer 7.0 (Internet Explorer 7.0)

 Googlebot 2.1 (Googlebot 2.1)

 Yahoo! Slurp (Yahoo! Slurp)

 etc.

 I'd like to grab everything up to a second period (if it exists). What I
 want is in parens next to each string.

 Anyone have any ideas?

 

 Andy Matthews
 Senior ColdFusion Developer

 Office:  877.707.5467 x747
 Direct:  615.627.9747
 Fax:  615.467.6249
 [EMAIL PROTECTED]http://www.dealerskins.com/

  atte6357.bmp
 6KDownload



[jQuery] Re: ScrollTo

2007-10-26 Thread Flesler

http://jquery.com/plugins/project/ScrollTo

On Oct 25, 8:29 am, djl [EMAIL PROTECTED] wrote:
 jCaroussel Lite is perfect for the Coda-style:-

 http://www.gmarwaha.com/jquery/jcarousellite/

 On 25 Oct 2007, at 05:30, Josh V wrote:





  what about horizontal scrolling panes. the following sites are perfect
  examples of what i am trying to recreate.www.panic.com/codaand
 http://www.hbcweb.com/

  On Sep 19, 3:25 pm, John Resig [EMAIL PROTECTED] wrote:
  jQuery hasscrollTobuilt straight into core:

  $(html,body).animate({ scrollTop: 400 });

  or to scroll to a specific element, do:

  $(html,body).animate({ scrollTop: $(#elem).offset().top });

  More info and demo:http://www.learningjquery.com/2007/09/animated-
  scrolling-with-jquery-12

  --John

  On 9/19/07, Idowatiwant [EMAIL PROTECTED] wrote:

  We need ascrollTofunction like mooTools, the one.. interface
  elements has sucks, plus theirs an unfixed bug in it! something  
  about
  jQuery.dequeue isn't a function.

  But please consider this, it's needed! Lol- Hide quoted text -

 - Show quoted text -



[jQuery] Superfish and IE6 issue

2007-10-26 Thread walterg2

Joel,

I'm currently implementing your superfish JS function into a vertical
navigation structure and so far, it's worked out great.  There is,
however, an issue with IE6 as it doesn't open the menu at all and for
the life of me I cannot figure out why.  I'm using JQuery 1.1.4 and
Superfish 1.3 with the bgIframe plugin.

I've posted the site as it stands now out at the following web URL.
Any help in fixing this is very much appreciated.

http://216.120.230.80/~rieekan/home.html

 - George



[jQuery] Edit in place: only one textfield open per page

2007-10-26 Thread Codex

Hi,

I'm using the code from the '15 days of jquery' demo of edit in place:

http://15daysofjquery.com/examples/jqueryEditInPlace/demo.php

JS: http://15daysofjquery.com/examples/jqueryEditInPlace/jqueryEIP.js


I have a page that has 10+ eip textfields and it all works well. But
when you open 2 eip textfields and you close the first opened you get
an error. So I would like to make it so that you can only open one eip
field at a time. Meaning that if one is already open, it will close
when another is opened.

Is that possible? And if so, how would you achieve this?



[jQuery] Jquery 1.2 API

2007-10-26 Thread Josh Ain
Hello all,

I've been using http://jquery.com/api/ extensively as a reference for
developing with jquery 1.1.2. Is there a comparable gui available for
browsing the jquery 1.2 api?

Thanks,

Josh Ain
ITA Software


[jQuery] Re: New Plugin: SimpleModal

2007-10-26 Thread njsuperfreak

Wow that is pretty sweet, I like the fact that the div flows the
scroll bar, as compared to others. But can the powered by SimpleModel
be removed?



[jQuery] Re: Help with dynamically loading and running Javascript

2007-10-26 Thread [EMAIL PROTECTED]

Perfect.  5 stars. -

On Oct 25, 5:49 pm, Wizzud [EMAIL PROTECTED] wrote:
 Remove the HTML commenters from around the Javascript (the !-- and --

 ).

 On Oct 25, 8:53 pm, [EMAIL PROTECTED]



 [EMAIL PROTECTED] wrote:
  Hi,

  I'm trying to add some HTML to a DIV (the HTML is contained in the var
  data)

  $(#+p_id).empty().append(div class=\itemWrapper\ + data + /
  div);

  but when that HTML contains Javascript, PC IE 7 gives me syntax errors
  after the above call, even when the JS contains none.  Here is an
  example of some of the HTML with JS I'm trying to load:

  form onsubmit=return get(this)/form
  table
  tr
  tdimg width=100 src=images/
  roman.jpg alt= border=0/td
  td valign=top
  table
  trtd
  class=itemHeaderRoman Numerals/td/tr
  trtd
  class=itemType in a number in either form./td/tr
  trtd
  class=iteminput size=16 /td/tr
  trtd class=item
  input type=submit value=Convert/td/tr
  /table
  /td
  /tr
  /table
  /form
  script language=javascript

  !--

  var x = 1;

  //--

  /script

  I seem to be doing something that is not agreeing with IE.  Does
  anyone have suggestions on how to successfully load this on IE?

  Thanks, - Dave- Hide quoted text -

 - Show quoted text -



[jQuery] Re: Best regex for this, getting software version numbers

2007-10-26 Thread Andy Matthews

I should have noted, I'm not using Javascript for the actual code part. I
was just asking this learned community for input on the regex portion.

The .? will match 0 or 1 periods. In some cases, there will not be a period:

Yahoo! Slurp

is a good example.

-Original Message-
From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Flesler
Sent: Friday, October 26, 2007 8:35 AM
To: jQuery (English)
Subject: [jQuery] Re: Best regex for this, getting software version numbers


Shouldn't that be: [^.]+\.[^.]+  ?
He didn't say he want to capture the first part, and '.?' will match
something else.

Just in case you are interested, you can achieve the same using:
   s.substring( 0, s.indexOf( '.' ,s.indexOf('.')+1 ));

Ariel Flesler

On Oct 25, 10:05 pm, Andy Matthews [EMAIL PROTECTED] wrote:
 That's better than mine (or at least shorter). Thanks!

   _

 From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] 
 On Behalf Of Michael Geary
 Sent: Thursday, October 25, 2007 4:52 PM
 To: jquery-en@googlegroups.com
 Subject: [jQuery] Re: Best regex for this, getting software version 
 numbers

 Call me stupid. You did provide exactly the information I was asking 
 for in my other message, I was just not paying close enough attention.
D'oh!

 You could probably simplify the RE to this:

 ([^.]+).?[^.]+

 -Mike

   _

 From: Andy Matthews
 I came up with this:

 ([a-zA-Z0-9 !]+).?([a-zA-Z0-9]+)

 Is there a better way to do this?

   _

 From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] 
 On Behalf Of Andy Matthews
 Sent: Thursday, October 25, 2007 4:32 PM
 To: jquery-en@googlegroups.com
 Subject: [jQuery] Best regex for this, getting software version 
 numbers

 I have these strings:

 Firefox 2.0.0.8 (Firefox 2.0)

 Internet Explorer 7.0 (Internet Explorer 7.0)

 Googlebot 2.1 (Googlebot 2.1)

 Yahoo! Slurp (Yahoo! Slurp)

 etc.

 I'd like to grab everything up to a second period (if it exists). What 
 I want is in parens next to each string.

 Anyone have any ideas?

 

 Andy Matthews
 Senior ColdFusion Developer

 Office:  877.707.5467 x747
 Direct:  615.627.9747
 Fax:  615.467.6249
 [EMAIL PROTECTED]http://www.dealerskins.co
 m/

  atte6357.bmp
 6KDownload




[jQuery] Autocomplete for hierarchical data (aka a Tree)...

2007-10-26 Thread Dan G. Switzer, II

Before I go about re-inventing any wheels, I was wondering if anyone's see
any good Autocomplete plug-ins for handling hierarchical data organized in a
tree?

For those familiar with the program Quicken, I'm looking for something that
provides functionality similar to the Category field (which allows you to
start typing and then press the colon (:) to go to the children items.)

I have some text data that is hierarchical in nature. I looking to add some
kind of autocomplete functionality to an input element that will allow users
to select any of the end nodes.

Let's use this tree as an example:

Books, Music  Movies
Books
DVD
Music
Magazines  Newspapers
VHS
Video Games

Electronics
Audio, TV  Home Theater
Camera  Photo
Cell Phones  Service
Musical Instruments

Computer  Office
All Business Center
Computers  Add-Ons
Office Products
Software

When the user starts typing, they can only select from entries in the first
level (Books, Electronic, Computer.) Once the user types in some
delimiter--let's say a colon (:)--the user could then start typing and
choose from any of its children items. The user should be able to go as deep
in the tree as there is data.

I've been searching to see if anyone's already put together similar code,
but I haven't found anything.

Has anyone seen something similar in the wild? If not, it looks like I have
some work ahead of me. :)

-Dan



[jQuery] Re: How to Check jQuery Status

2007-10-26 Thread Adrian Lynch

You can supply a callback function when making your AJAX call. When
the result is returned it will run the callback and this is where you
can make the link appear.

Adrian

On Oct 26, 2:34 pm, SDyke [EMAIL PROTECTED] wrote:
 I am using jQuery to do an AJAX post. The servlet runs code to generate an
 Excel file. On the firing page a hyperlink appears that will display the
 Excel file. My problem is keeping the link from appearing before the file
 has finished generating. How do I use a response flag to tell the page code
 to display the link?



[jQuery] Re: IE bug with IFRAME?

2007-10-26 Thread cfdvlpr

I have a similar issue and I'd love to see a jquery expert chime in
here.



[jQuery] Re: Jquery 1.2 API

2007-10-26 Thread Tane Piper

The docs have been moved to the Wiki:

http://docs.jquery.com/Main_Page

On 26/10/2007, Josh Ain [EMAIL PROTECTED] wrote:
 Hello all,

 I've been using http://jquery.com/api/ extensively as a reference for
 developing with jquery 1.1.2. Is there a comparable gui available for
 browsing the jquery 1.2 api?

 Thanks,

 Josh Ain
 ITA Software



-- 
Tane Piper
Blog - http://digitalspaghetti.me.uk
AJAX Pastebin - http://pastemonkey.org

This email is: [ ] blogable [ x ] ask first [ ] private


[jQuery] Re: Transparencys and Overlays

2007-10-26 Thread Glen Lipka
CSS is used by the plugins.
Do you use Firebug or IE Dev toolbar?  They are invaluable to inspect
elements on the page and see what makes them tick.

Look at the JS of this page:
http://parkerfox.parkerfox.railsplayground.net/labs/zoombox/

Look at the dimScreen plugin that it uses.  You will notice how it uses the
css tag opacity and z-index to manipulate that stuff.

This article goes over the CSS rules in detail.
http://www.mandarindesign.com/opacity.html

Glen

On 10/26/07, S. Robert James [EMAIL PROTECTED] wrote:


 I'm having trouble understanding how various jQuery plugins show
 transparency and overlays over certain elements (or the whole page).
 I think CSS provides the ability to do this, but I'm not sure.

 What is the basic CSS to:
 1) Put a gray, semi-transparent sheet over the whole page?
 2) To do the same over just one element?
 3) And to raise one element over that transparency?

 Much appreciated.




[jQuery] Re: Jquery 1.2 API

2007-10-26 Thread Glen Lipka
It would be really useful to have the XML version.  Is that in the works?
Glen

On 10/26/07, Tane Piper [EMAIL PROTECTED] wrote:


 The docs have been moved to the Wiki:

 http://docs.jquery.com/Main_Page

 On 26/10/2007, Josh Ain [EMAIL PROTECTED] wrote:
  Hello all,
 
  I've been using http://jquery.com/api/ extensively as a reference for
  developing with jquery 1.1.2. Is there a comparable gui available for
  browsing the jquery 1.2 api?
 
  Thanks,
 
  Josh Ain
  ITA Software
 


 --
 Tane Piper
 Blog - http://digitalspaghetti.me.uk
 AJAX Pastebin - http://pastemonkey.org

 This email is: [ ] blogable [ x ] ask first [ ] private



[jQuery] jQuery 1.2 benchmark

2007-10-26 Thread Lauris Bukšis-Haberkorns

Has anyone seen this one?

http://alexandre-mercier.vinnac.org/slickspeed/

jQuery does not perform that well there.

Lafriks


[jQuery] Re: New Plugin: SimpleModal

2007-10-26 Thread Eric Martin

On Oct 26, 8:08 am, njsuperfreak [EMAIL PROTECTED] wrote:
 Wow that is pretty sweet, I like the fact that the div flows the
 scroll bar, as compared to others.

Thanks =)

 But can the powered by SimpleModel be removed?

Of course! I'll add a license/readme for the demo download(s) with
more information on that sort of stuff.





[jQuery] Re: Jquery 1.2 API

2007-10-26 Thread Tane Piper

AFAIK, someone is looking into using a plugin that allows the Wiki to
be converted to XML so it can be used at sites like Jorn's API Browser
and visualjquery.com


On 26/10/2007, Glen Lipka [EMAIL PROTECTED] wrote:
 It would be really useful to have the XML version.  Is that in the works?
 Glen


  On 10/26/07, Tane Piper [EMAIL PROTECTED] wrote:
 
  The docs have been moved to the Wiki:
 
  http://docs.jquery.com/Main_Page
 
  On 26/10/2007, Josh Ain [EMAIL PROTECTED]  wrote:
   Hello all,
  
   I've been using http://jquery.com/api/ extensively as a reference for
   developing with jquery 1.1.2. Is there a comparable gui available for
   browsing the jquery 1.2 api?
  
   Thanks,
  
   Josh Ain
   ITA Software
  
 
 
  --
  Tane Piper
  Blog - http://digitalspaghetti.me.uk
  AJAX Pastebin - http://pastemonkey.org
 
  This email is: [ ] blogable [ x ] ask first [ ] private
 




-- 
Tane Piper
Blog - http://digitalspaghetti.me.uk
AJAX Pastebin - http://pastemonkey.org

This email is: [ ] blogable [ x ] ask first [ ] private


[jQuery] Re: jQuery 1.2 benchmark

2007-10-26 Thread Rey Bango


Run this test in Internet Explorer and look at the results. jQuery is 
optimized for Internet Explorer which is the most widely used browser 
out. When you run the same tests in IE, you'll see that we perform much 
better and our on par with all of the libs.


Also, the SlickSpeed test suite has already been discussed in great 
detail on this list and many of the actual selectors specified are not 
real-world examples that would represent any type of real performance in 
an actual application. The performance of jQuery's DOM selector engine 
is actually very good and to date, we've not received any complaints 
from our users including Digg, NBC, IBM or Google.


With that said, our focus is on improving features for jQuery. 
SlickSpeed is not on our radar.


Rey

Lauris Bukšis-Haberkorns wrote:

Has anyone seen this one?

http://alexandre-mercier.vinnac.org/slickspeed/

jQuery does not perform that well there.

Lafriks



[jQuery] Re: New Plugin: SimpleModal

2007-10-26 Thread rober_t

I like it. Clean and simple.

Thanks,

robert



[jQuery] Re: Code in loop

2007-10-26 Thread Jean

Então para vc colocar o evento para funcionar apenas 1x p/ cada
elemneto utilize a funcao once, tipo $(.image).once(function(){
alert('Urrul'); }) mas axo que não é isso que vc quer, axoq  eh isso

   $(.delete).bind('click', function(e){
   var _id = $(this).attr(id);
   $(#confirm_box).css({left: e.pageX-453, top: e.pageY})
   $(#confirm_box).fadeIn(300);
   $(#del_nao).bind('click', function(){
   $(#confirm_box).fadeOut(300);
   $(.delete).attr(id,);
   });
   $(#del_sim).bind('click', function(){
   alert(_id);
   $(#del_sim).attr(id,_id);
   $.ajax({
   type: POST,
   url:../painel/kern_usuarios.php,
   data: {id:_id, acao: del_user},
   success: function(msg){
   if(msg)
   {
   $(#confirm_box).fadeOut(300)
  
   $(#answer_box).text(Usuario deletado com
   sucesso);
   $(#answer_box).fadeIn(1000, function(){
  
 $(this).animate({opacity:1.0}, 1000, ,
   function(){
  
 $(this).fadeOut(1000, function(){
  
  
 $($(tr[id=+_id+]).slideUp(slow);
   });
   });
   });
   }
   else
   {
   $(#confirm_box).fadeOut(300)
  
   $(#answer_box).text(Erro ao deletar
   usuario);
   $(#answer_box).fadeIn(300);
   }
   }
   });
   });
   });

On 10/26/07, Jimmy Neph [EMAIL PROTECTED] wrote:
 Opa Jean
 Então...Coloquei esse id aí prá poder zerar e tentar fazer com que o código
 parasse com esse loop...Mas tb naum tá dando muito certo...
 O que rola é que ele acaba pegando todos os eventos onclick que eu faço
 nessas imagens...Queria que ele reconhecesse sempre um só...Entendeu qual a
 treta???rsrsrsrs


 2007/10/26, Jean [EMAIL PROTECTED]:
 
  Ae brazuca naum sei do resto mas sei que vc esta errando aqui
  var id = $(this).attr(id_delete)
 
  The attr method catch  or set a the value of the jq object.
  Try this
  var id = $(this).attr(id)
 
 
  On 10/25/07, Jimmy Neph [EMAIL PROTECTED] wrote:
   This is the code:
   $(.delete).click(function(e){
   var id = $(this).attr(id_delete)
   $(#confirm_box).css({left: e.pageX-453, top: e.pageY})
   $(#confirm_box).fadeIn(300);
   $(#del_nao).click(function(){
   $(#confirm_box).fadeOut(300);
   $(.delete).attr(id_delete,);
   });
   $(#del_sim).click(function(){
   alert(id);
   $(#del_sim).attr(id_user,id);
   $.ajax({
   type: POST,
   url:../painel/kern_usuarios.php,
   data:
   id=+$(this).attr(id_user)+acao=del_user,
   success: function(msg){
   if(msg)
   {
   $(#confirm_box).fadeOut(300)
  
   $(#answer_box).text(Usuario deletado com
   sucesso);
   $(#answer_box).fadeIn(1000, function(){
  
 $(this).animate({opacity:1.0}, 1000, ,
   function(){
  
 $(this).fadeOut(1000, function(){
  
  
 $($(tr).attr(id_linha)).find([EMAIL PROTECTED]+id+]).slideUp(slow);
   });
   });
   });
   }
   else
   {
   $(#confirm_box).fadeOut(300)
  
   $(#answer_box).text(Erro ao deletar
   usuario);
   $(#answer_box).fadeIn(300);
   }
   }
   });
   });
   });
  
  
   I believe that is a sintax problem...But I'm yet noob in Jquery...
  
   2007/10/25, Glen Lipka  [EMAIL PROTECTED]:
Can you post a simple page that demonstrates the problem?
It's easier to debug that way.
   
Glen
   
   
   
On 10/25/07, [EMAIL PROTECTED] [EMAIL PROTECTED]  wrote:

 Hi there friends!!!

 I'm having problems with a code here using AJAX on Jquery.
 When I do only one click in my object, it works fine, but, when I
 click again in other object the previous result of id continue
 stored.

 What I have to do to solve this problem??


   
   
  
  
 
 
  --
 
  []´s Jean
  www.suissa.info
 
Ethereal Agency
  www.etherealagency.com
 




-- 

[]´s Jean

[jQuery] Re: Code in loop

2007-10-26 Thread Jean

I think this will works

$(.delete).bind('click', function(e){
var _id = e.target.id;
$(#confirm_box).css({left: e.pageX-453, top: e.pageY})
$(#confirm_box).fadeIn(300);
$(#del_nao).bind('click', function(){
$(#confirm_box).fadeOut(300);
$(.delete).attr(id,);
});
$(#del_sim).bind('click', function(){
alert(_id);
$(#del_sim).attr(id,_id);
$.ajax({
type: POST,
url:../painel/kern_usuarios.php,
data: {id: _id, acao:del_user,
success: function(msg){
if(msg)
{
$(#confirm_box).fadeOut(300)
$(#answer_box).text(Usuario deletado
com sucesso);
$(#answer_box).fadeIn(1000, function(){
$(this).animate({opacity:1.0}, 1000,
, function(){
$(this).fadeOut(1000, function(){
$(tr[id=+_id+]).slideUp(slow);
});
});
});
}
else
{
$(#confirm_box).fadeOut(300)
$(#answer_box).text(Erro ao deletar usuario);
$(#answer_box).fadeIn(300);
}
}
});
});
});

On 10/26/07, Jimmy Neph [EMAIL PROTECTED] wrote:
 Opa Jean
 Então...Coloquei esse id aí prá poder zerar e tentar fazer com que o código
 parasse com esse loop...Mas tb naum tá dando muito certo...
 O que rola é que ele acaba pegando todos os eventos onclick que eu faço
 nessas imagens...Queria que ele reconhecesse sempre um só...Entendeu qual a
 treta???rsrsrsrs


 2007/10/26, Jean [EMAIL PROTECTED]:
 
  Ae brazuca naum sei do resto mas sei que vc esta errando aqui
  var id = $(this).attr(id_delete)
 
  The attr method catch  or set a the value of the jq object.
  Try this
  var id = $(this).attr(id)
 
 
  On 10/25/07, Jimmy Neph [EMAIL PROTECTED] wrote:
   This is the code:
   $(.delete).click(function(e){
   var id = $(this).attr(id_delete)
   $(#confirm_box).css({left: e.pageX-453, top: e.pageY})
   $(#confirm_box).fadeIn(300);
   $(#del_nao).click(function(){
   $(#confirm_box).fadeOut(300);
   $(.delete).attr(id_delete,);
   });
   $(#del_sim).click(function(){
   alert(id);
   $(#del_sim).attr(id_user,id);
   $.ajax({
   type: POST,
   url:../painel/kern_usuarios.php,
   data:
   id=+$(this).attr(id_user)+acao=del_user,
   success: function(msg){
   if(msg)
   {
   $(#confirm_box).fadeOut(300)
  
   $(#answer_box).text(Usuario deletado com
   sucesso);
   $(#answer_box).fadeIn(1000, function(){
  
 $(this).animate({opacity:1.0}, 1000, ,
   function(){
  
 $(this).fadeOut(1000, function(){
  
  
 $($(tr).attr(id_linha)).find([EMAIL PROTECTED]+id+]).slideUp(slow);
   });
   });
   });
   }
   else
   {
   $(#confirm_box).fadeOut(300)
  
   $(#answer_box).text(Erro ao deletar
   usuario);
   $(#answer_box).fadeIn(300);
   }
   }
   });
   });
   });
  
  
   I believe that is a sintax problem...But I'm yet noob in Jquery...
  
   2007/10/25, Glen Lipka  [EMAIL PROTECTED]:
Can you post a simple page that demonstrates the problem?
It's easier to debug that way.
   
Glen
   
   
   
On 10/25/07, [EMAIL PROTECTED] [EMAIL PROTECTED]  wrote:

 Hi there friends!!!

 I'm having problems with a code here using AJAX on Jquery.
 When I do only one click in my object, it works fine, but, when I
 click again in other object the previous result of id continue
 stored.

 What I have to do to solve this problem??


   
   
  
  
 
 
  --
 
  []´s Jean
  www.suissa.info
 
Ethereal Agency
  www.etherealagency.com
 




-- 

[]´s Jean
www.suissa.info

   Ethereal Agency
www.etherealagency.com


[jQuery] Re: jQuery 1.2 benchmark

2007-10-26 Thread Andy Matthews

Never mind...IE for some reason didn't show the legend colors at the bottom.
I ran the test in FF and saw the colors. 

-Original Message-
From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Andy Matthews
Sent: Friday, October 26, 2007 11:30 AM
To: jquery-en@googlegroups.com
Subject: [jQuery] Re: jQuery 1.2 benchmark


Can someone simply explain what the colors indicate for any specific row?

Red?
Orange?
Green?
Grey?
Black?

Also, in IE7, these are the results I got (for what it's worth):

Dojo query 0.9: 1020 
jQuery 1.2: 1350
Mootools r887:  2525
Prototype 1.6.0:2857
Ext 1.1: 7: 477

-Original Message-
From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Rey Bango
Sent: Friday, October 26, 2007 11:22 AM
To: jquery-en@googlegroups.com
Subject: [jQuery] Re: jQuery 1.2 benchmark


Run this test in Internet Explorer and look at the results. jQuery is
optimized for Internet Explorer which is the most widely used browser out.
When you run the same tests in IE, you'll see that we perform much better
and our on par with all of the libs.

Also, the SlickSpeed test suite has already been discussed in great detail
on this list and many of the actual selectors specified are not real-world
examples that would represent any type of real performance in an actual
application. The performance of jQuery's DOM selector engine is actually
very good and to date, we've not received any complaints from our users
including Digg, NBC, IBM or Google.

With that said, our focus is on improving features for jQuery. 
SlickSpeed is not on our radar.

Rey

Lauris Bukšis-Haberkorns wrote:
 Has anyone seen this one?
 
 http://alexandre-mercier.vinnac.org/slickspeed/
 
 jQuery does not perform that well there.
 
 Lafriks
 





[jQuery] Re: jQuery 1.2 benchmark

2007-10-26 Thread Andy Matthews

Can someone simply explain what the colors indicate for any specific row?

Red?
Orange?
Green?
Grey?
Black?

Also, in IE7, these are the results I got (for what it's worth):

Dojo query 0.9: 1020 
jQuery 1.2: 1350
Mootools r887:  2525
Prototype 1.6.0:2857
Ext 1.1: 7: 477

-Original Message-
From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Rey Bango
Sent: Friday, October 26, 2007 11:22 AM
To: jquery-en@googlegroups.com
Subject: [jQuery] Re: jQuery 1.2 benchmark


Run this test in Internet Explorer and look at the results. jQuery is
optimized for Internet Explorer which is the most widely used browser out.
When you run the same tests in IE, you'll see that we perform much better
and our on par with all of the libs.

Also, the SlickSpeed test suite has already been discussed in great detail
on this list and many of the actual selectors specified are not real-world
examples that would represent any type of real performance in an actual
application. The performance of jQuery's DOM selector engine is actually
very good and to date, we've not received any complaints from our users
including Digg, NBC, IBM or Google.

With that said, our focus is on improving features for jQuery. 
SlickSpeed is not on our radar.

Rey

Lauris Bukšis-Haberkorns wrote:
 Has anyone seen this one?
 
 http://alexandre-mercier.vinnac.org/slickspeed/
 
 jQuery does not perform that well there.
 
 Lafriks
 




[jQuery] Re: table pagination plugin

2007-10-26 Thread FreeFallFred

The doc explains very well how it works.

All you have to do is add a pager div to the existing tablesorter
object.

As for the DB question, you pull all the data once, and the pager
plugin does the magic for you.

On Oct 19, 7:56 am, Bhaarat Sharma [EMAIL PROTECTED] wrote:
 Hi

 is there a good table pagination plugin out there that explains how to
 use it as well? I came across this example but it doesnt explain how
 to use it :(http://tablesorter.com/docs/example-pager.html

 it just shows this snippet

 $(document).ready(function() {
 $(table)
 .tablesorter({widthFixed: true})
 .tablesorterPager({container: $(#pager)});

 });

 If we were getting data from a DB...will we just do a one call to the
 DB and then this plugin will page thru the results? or on every time
 user hits next, this plugin has to call the DB?

 appreciate if someone could explain this plugin a bit ...or know an
 article that explains it.

 Thanks



[jQuery] Re: Jquery 1.2 API

2007-10-26 Thread Josh Ain
Thanks for the response all. I love the alphabetized api list and use it all
the time. I hope we get the 1.2 api exposed in this manner again soon.

Josh

On 10/26/07, Andy Matthews [EMAIL PROTECTED] wrote:


 The problem with the docs version is that it's not at all user-friendly.

 It's difficult to find what you're looking for, you're forced to make
 multiple clicks, and those tabs (while a great UI element for apps), is
 not
 a good choice for documentation set up like this.

 The simple, alphabetized API listing is better, IMO.

 -Original Message-
 From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of Tane Piper
 Sent: Friday, October 26, 2007 11:01 AM
 To: jquery-en@googlegroups.com
 Subject: [jQuery] Re: Jquery 1.2 API


 The docs have been moved to the Wiki:

 http://docs.jquery.com/Main_Page

 On 26/10/2007, Josh Ain [EMAIL PROTECTED] wrote:
  Hello all,
 
  I've been using http://jquery.com/api/ extensively as a reference for
  developing with jquery 1.1.2. Is there a comparable gui available for
  browsing the jquery 1.2 api?
 
  Thanks,
 
  Josh Ain
  ITA Software
 


 --
 Tane Piper
 Blog - http://digitalspaghetti.me.uk
 AJAX Pastebin - http://pastemonkey.org

 This email is: [ ] blogable [ x ] ask first [ ] private





[jQuery] Re: jqModal and the ESC key?

2007-10-26 Thread will

 You may as well use jQuery for that. :-)

  $(document).keydown( function( e ) {
if( e.which == 27) {  // escape, close box
  $(.jqmWindow).jqmHide();
}
  });

 -Mike

nice.  ;)

jQuery ftw.



[jQuery] Re: How to Check jQuery Status

2007-10-26 Thread James Dempster
That's because you are providing the parentheses () which executes the
function there and then rather than passing the function to be executed
later when the ajax request is complete.

Try.
jQuery.post(/BFEWebApp/PreviewBFEDListServlet,detaillitstring= +
detailListString, processReqChange);

/James

On 10/26/07, SDyke [EMAIL PROTECTED] wrote:



 Can you elaborate. I have a third parameter in my calling code:

 jQuery.post(/BFEWebApp/PreviewBFEDListServlet,detaillitstring= +
 detailListString, processReqChange());

 The processReqChange() turns on the link. However, this function is called
 as soon as the post code fires.


 Adrian Lynch-2 wrote:
 
 
  You can supply a callback function when making your AJAX call. When
  the result is returned it will run the callback and this is where you
  can make the link appear.
 
  Adrian
 
  On Oct 26, 2:34 pm, SDyke [EMAIL PROTECTED] wrote:
  I am using jQuery to do an AJAX post. The servlet runs code to generate
  an
  Excel file. On the firing page a hyperlink appears that will display
 the
  Excel file. My problem is keeping the link from appearing before the
 file
  has finished generating. How do I use a response flag to tell the page
  code
  to display the link?
 
 
 

 --
 View this message in context:
 http://www.nabble.com/How-to-Check-jQuery-Status-tf4697072s27240.html#a13431182
 Sent from the jQuery General Discussion mailing list archive at Nabble.com
 .


 



[jQuery] Re: Saving contents

2007-10-26 Thread [EMAIL PROTECTED]

Hi,

Thanks, what I want to do is, a list of items displayed in the div, if
user click one of them, it will be erased and replaced with form, and
later restore the list of items when done, possible?

On Oct 26, 7:19 pm, Adrian Lynch [EMAIL PROTECTED] wrote:
 Of course.

 But, be careful if the div content contains a form with dynamically
 created elements. I've had trouble with saving those in the past.

 On Oct 26, 10:50 am, [EMAIL PROTECTED]

 [EMAIL PROTECTED] wrote:
  Hi,

  I have a need to save content of a div id=test/div to some
  global variables and re-load it sometime later, possible with jQuery?
  thanks.

  A.C.



[jQuery] Re: Checkboxes and radios

2007-10-26 Thread Wizzud

And the radio buttons would be  where?

On Oct 26, 11:35 am, Feijó [EMAIL PROTECTED] wrote:
 Here it is

 If any checkbox is clicked, it needs do enable the radio next to it.

 In the bottom I have 3 links to check it all, uncheck it all, or
 toggle.  In those cases the radios need to respond as well.

 That's my last jquery attempt:

 $('.form-
 item:checkbox:not(:checked)').siblings(':radio').removeAttr('disabled');

 Thanks!

 divfieldset class= collapsiblelegendRules/legenddiv
 class=form-item
  labelValues: /label
  div class=form-checkboxesdiv class=form-item
  label class=optioninput type=checkbox name=options[1]
 id=edit-options-1 value=1   class=form-checkbox / Option 001/
 label

 /div
 div class=form-item
  label class=optioninput type=checkbox name=options[2]
 id=edit-options-2 value=2   class=form-checkbox / Option 002/
 label
 /div
 div class=form-item
  label class=optioninput type=checkbox name=options[3]
 id=edit-options-3 value=3   class=form-checkbox / Option 003/
 label
 /div
 div class=form-item
  label class=optioninput type=checkbox name=options[4]
 id=edit-options-4 value=4   class=form-checkbox / Option 004/
 label

 /div
 div class=form-item
  label class=optioninput type=checkbox name=options[5]
 id=edit-options-5 value=5   class=form-checkbox / Option 005/
 label
 /div
 div class=form-item
  label class=optioninput type=checkbox name=options[6]
 id=edit-options-6 value=6   class=form-checkbox / Option 006/
 label
 /div
 div class=form-item
  label class=optioninput type=checkbox name=options[7]
 id=edit-options-7 value=7   class=form-checkbox / Option 007/
 label

 /div
 div class=form-item
  label class=optioninput type=checkbox name=options[8]
 id=edit-options-8 value=8   class=form-checkbox / Option 008/
 label
 /div
 div class=form-item
  label class=optioninput type=checkbox name=options[9]
 id=edit-options-9 value=9   class=form-checkbox / Option 009/
 label
 /div
 div class=form-item
  label class=optioninput type=checkbox name=options[10]
 id=edit-options-10 value=10   class=form-checkbox / Option 010/
 label

 /div
 /div
 /div
  a href=javascript:; id=toggleInverter/a a href=javascript:;
 id=allTodos/a a href=javascript:; id=noneNenhum/a/fieldset

 On Oct 25, 8:53 pm, Wizzud [EMAIL PROTECTED] wrote:

  Need a bit more information!
  If you don't show us some HTML it's a bit difficult to second guess
  the relationship between checkbox and radio.

  On Oct 25, 8:34 pm, Alessandro Feijó [EMAIL PROTECTED] wrote:

   I'm trying to control N checkboxes, when one is selected or unselected, I
   need to enable/disable a radio next to the checkbox

   something like this:

   ( ) [ ]
   (o) [x]

   the marked one, turn the radio clickable

   I start this code

 $('.form-checkbox').each( function() {
   $('.form-checkbox:radio').attr('disabled', $(this).attr('checked'));
 });

   It returns every checkbox, but I cant figure out how to find the radio
   object from each one

   Thanks in advance for any tip :)

   huge hug
   Feijó



[jQuery] Re: jQuery 1.2 benchmark

2007-10-26 Thread John Resig

Really? It runs really fantastic in IE, for me.

--John

On 10/26/07, Lauris Bukšis-Haberkorns [EMAIL PROTECTED] wrote:

 Has anyone seen this one?

 http://alexandre-mercier.vinnac.org/slickspeed/

 jQuery does not perform that well there.

 Lafriks



[jQuery] Re: Jquery 1.2 API

2007-10-26 Thread Rey Bango


We're working on that.

rey

Josh Ain wrote:

Hello all,

I've been using http://jquery.com/api/ extensively as a reference for 
developing with jquery 1.1.2. Is there a comparable gui available for 
browsing the jquery 1.2 api?


Thanks,

Josh Ain
ITA Software


[jQuery] Re: Jquery 1.2 API

2007-10-26 Thread Andy Matthews

The problem with the docs version is that it's not at all user-friendly.

It's difficult to find what you're looking for, you're forced to make
multiple clicks, and those tabs (while a great UI element for apps), is not
a good choice for documentation set up like this.

The simple, alphabetized API listing is better, IMO.

-Original Message-
From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Tane Piper
Sent: Friday, October 26, 2007 11:01 AM
To: jquery-en@googlegroups.com
Subject: [jQuery] Re: Jquery 1.2 API


The docs have been moved to the Wiki:

http://docs.jquery.com/Main_Page

On 26/10/2007, Josh Ain [EMAIL PROTECTED] wrote:
 Hello all,

 I've been using http://jquery.com/api/ extensively as a reference for 
 developing with jquery 1.1.2. Is there a comparable gui available for 
 browsing the jquery 1.2 api?

 Thanks,

 Josh Ain
 ITA Software



--
Tane Piper
Blog - http://digitalspaghetti.me.uk
AJAX Pastebin - http://pastemonkey.org

This email is: [ ] blogable [ x ] ask first [ ] private




[jQuery] Loop thru options of a Select box

2007-10-26 Thread [EMAIL PROTECTED]

Hi,

given this, how to iterate thru the options? thanks


select name=state id=state
option value=NYNew York/option
option value=ALAlaska/option
option value=KYKentuky/option
option value=IAIOWA/option
  /select



[jQuery] Re: How to Check jQuery Status

2007-10-26 Thread SDyke


Can you elaborate. I have a third parameter in my calling code:

jQuery.post(/BFEWebApp/PreviewBFEDListServlet,detaillitstring= +
detailListString, processReqChange());

The processReqChange() turns on the link. However, this function is called
as soon as the post code fires.


Adrian Lynch-2 wrote:
 
 
 You can supply a callback function when making your AJAX call. When
 the result is returned it will run the callback and this is where you
 can make the link appear.
 
 Adrian
 
 On Oct 26, 2:34 pm, SDyke [EMAIL PROTECTED] wrote:
 I am using jQuery to do an AJAX post. The servlet runs code to generate
 an
 Excel file. On the firing page a hyperlink appears that will display the
 Excel file. My problem is keeping the link from appearing before the file
 has finished generating. How do I use a response flag to tell the page
 code
 to display the link?
 
 
 

-- 
View this message in context: 
http://www.nabble.com/How-to-Check-jQuery-Status-tf4697072s27240.html#a13431182
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



[jQuery] Re: Loop thru options of a Select box

2007-10-26 Thread [EMAIL PROTECTED]

Hi,

Thanks, can you show sample code of accessing every element's value
and label?

On Oct 27, 1:30 am, Wizzud [EMAIL PROTECTED] wrote:
 jQuery('#state option').each(function(i){

   });

 On Oct 26, 5:49 pm, [EMAIL PROTECTED]

 [EMAIL PROTECTED] wrote:
  Hi,

  given this, how to iterate thru the options? thanks

  select name=state id=state
  option value=NYNew York/option
  option value=ALAlaska/option
  option value=KYKentuky/option
  option value=IAIOWA/option
/select



[jQuery] How to set selected of Select box which works with Safari as well?

2007-10-26 Thread [EMAIL PROTECTED]

Hi,

I ajax load a list of options into a Select box and then set the value
to 'AL', this will display the currently selected options as Alaska,
it works with Firefox, but not with Safari,  although the selected one
is 'AL', but it does not show ALASKA in the display, it shows the
first element in the list which is 'new york', why?

here is the url that you can test:

http://catalina.ph/test2.html


$(document).ready(function(){
var s = jQuery(select#state);
s.load(http://catalina.ph/states.html;,  function() {
jQuery(select#state).val(AL);
 })
})

form id=form1 name=form1 method=post action=
  select name=state id=state
 /select
/form



[jQuery] Re: Loop thru options of a Select box

2007-10-26 Thread Wizzud

jQuery('#state option').each(function(i){
   
  });

On Oct 26, 5:49 pm, [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:
 Hi,

 given this, how to iterate thru the options? thanks

 select name=state id=state
 option value=NYNew York/option
 option value=ALAlaska/option
 option value=KYKentuky/option
 option value=IAIOWA/option
   /select



[jQuery] DropDown list and selected Index - SelectedIndex ?

2007-10-26 Thread BuckRogers

How do I go about retreiving the selected value of a dropdown list
using jquery?


In regular js I do this :

select onchange=f(this.selectedIndex)
option/option
option/option

/select



[jQuery] Re: Transparencys and Overlays

2007-10-26 Thread bbuchs

Take a look at BlockUI:
http://jquery.com/plugins/project/blockUI

It will apply an overlay to either the whole page or a specific
element. Might not be exactly what you need, but it's a good starting
point.

 - b





On Oct 26, 11:02 am, Glen Lipka [EMAIL PROTECTED] wrote:
 CSS is used by the plugins.
 Do you use Firebug or IE Dev toolbar?  They are invaluable to inspect
 elements on the page and see what makes them tick.

 Look at the JS of this 
 page:http://parkerfox.parkerfox.railsplayground.net/labs/zoombox/

 Look at the dimScreen plugin that it uses.  You will notice how it uses the
 css tag opacity and z-index to manipulate that stuff.

 This article goes over the CSS rules in 
 detail.http://www.mandarindesign.com/opacity.html

 Glen

 On 10/26/07, S. Robert James [EMAIL PROTECTED] wrote:



  I'm having trouble understanding how various jQuery plugins show
  transparency and overlays over certain elements (or the whole page).
  I think CSS provides the ability to do this, but I'm not sure.

  What is the basic CSS to:
  1) Put a gray, semi-transparent sheet over the whole page?
  2) To do the same over just one element?
  3) And to raise one element over that transparency?

  Much appreciated.



[jQuery] Re: Changing form action with hidden field named action in IE causes error

2007-10-26 Thread Wizzud

There is no way round it, and it's not down to jQuery.
You're going to have to call your 'action'  field something else.


On Oct 26, 12:10 pm, Adrian Lynch [EMAIL PROTECTED] wrote:
 The long subject says it all!

 If I have a hidden field named 'action', trying to change the form
 action attribute fails in IE7.

 If I change the hidden field to something other than action it works.

 Can anyone think of a way around this? I would like to keep the hidden
 field named 'action' if I can.

 Is this a jquery bug, an IE7 bug, a quirk in JS or am I in the wrong
 for naming a field 'action'?

 Here's some sample code to see the problem:

 script type=text/javascript src=/shared-scripts/
 jquery-1.2.1.min.js/script

 form method=post id=agentForm action=nowhere.html
 input type=hidden name=action value=No value /
 input type=text name=agentName id=agentName value= /
 input type=submit name=saveAgent id=saveAgent value=Save /
 /form

 button id=debugDebug this fecking page!/button

 script type=text/javascript

 $(function() {

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

 // This should alert 'nowhere.html'
 alert(action before:  + 
 $(#agentForm).attr(action));

 // Change to 'somewhere.html'
 $(#agentForm).attr(action, somewhere.html); // 
 No worky in
 IE7!

 // This should alert 'somewhere.html' but doesn't in 
 IE7
 alert(action changed to:  + 
 $(#agentForm).attr(action));

 });

 });

 /script



[jQuery] Re: Best regex for this, getting software version numbers

2007-10-26 Thread d . wachss

At first glance, I thought he needed to escape the '.' the way you
have it, but he doesn't since the [^.] matches everything that isn't a
period, so the wildcard '.' has to match only a real period, so [^.]+.?
[^.]+ works. Still, I think \. makes it clearer.

Danny

On Oct 26, 8:34 am, Flesler [EMAIL PROTECTED] wrote:
 Shouldn't that be: [^.]+\.[^.]+  ?
 He didn't say he want to capture the first part, and '.?' will match
 something else.

 Just in case you are interested, you can achieve the same using:
s.substring( 0, s.indexOf( '.' ,s.indexOf('.')+1 ));

 Ariel Flesler





[jQuery] Re: Validating checkboxes

2007-10-26 Thread wattaka

Thanks Josh, sorry for the confusion. I am actually using Jörns plugin
for validation, so my question should have been:

How do I use Jörns Validation plugin to validate that a user has
checked at least one box in a group of uniquely named checkboxes


Thanks

On Oct 25, 10:45 pm, Josh Nathanson [EMAIL PROTECTED] wrote:
 Can you put a class on the checkboxes?  Then you can do:

 return $(input.myclass:checked).size();

 -- Josh

 - Original Message -
 From: wattaka [EMAIL PROTECTED]
 To: jQuery (English) jquery-en@googlegroups.com
 Sent: Thursday, October 25, 2007 12:34 PM
 Subject: [jQuery] Validating checkboxes

 Hi all,

 how does one validate that a user checks at least one checkbox from a
 group of checkboxes. I have seen the example on Jörns site, but the
 example has the same names for all checkboxes, I cant have the same
 name for all checkboxes due to the backend code.

 Thanks



[jQuery] Re: 1px rounded corners issue

2007-10-26 Thread weepy

that plugin is the bomb

it should be promoted more in the jQuery world. .




On Oct 25, 12:08 am, SterlingK [EMAIL PROTECTED] wrote:
 @ weepy - Thanks so much for posting that link.  That answered some of
 my issues as well.  We all appreciate it when people like you go the
 extra mile to help on this list!



[jQuery] Re: Checkboxes and radios

2007-10-26 Thread Feijó

Ops, sorry

I add this jquery to dynamicaly insert the radio

$(document).ready(function() {
  $('.form-checkbox').parent().parent().prepend(' input type=radio
name=radio class=radio disabled ');
});


On Oct 26, 3:28 pm, Wizzud [EMAIL PROTECTED] wrote:
 And the radio buttons would be  where?

 On Oct 26, 11:35 am, Feijó [EMAIL PROTECTED] wrote:

  Here it is

  If any checkbox is clicked, it needs do enable the radio next to it.

  In the bottom I have 3 links to check it all, uncheck it all, or
  toggle.  In those cases the radios need to respond as well.

  That's my last jquery attempt:

  $('.form-
  item:checkbox:not(:checked)').siblings(':radio').removeAttr('disabled');

  Thanks!

  divfieldset class= collapsiblelegendRules/legenddiv
  class=form-item
   labelValues: /label
   div class=form-checkboxesdiv class=form-item
   label class=optioninput type=checkbox name=options[1]
  id=edit-options-1 value=1   class=form-checkbox / Option 001/
  label

  /div
  div class=form-item
   label class=optioninput type=checkbox name=options[2]
  id=edit-options-2 value=2   class=form-checkbox / Option 002/
  label
  /div
  div class=form-item
   label class=optioninput type=checkbox name=options[3]
  id=edit-options-3 value=3   class=form-checkbox / Option 003/
  label
  /div
  div class=form-item
   label class=optioninput type=checkbox name=options[4]
  id=edit-options-4 value=4   class=form-checkbox / Option 004/
  label

  /div
  div class=form-item
   label class=optioninput type=checkbox name=options[5]
  id=edit-options-5 value=5   class=form-checkbox / Option 005/
  label
  /div
  div class=form-item
   label class=optioninput type=checkbox name=options[6]
  id=edit-options-6 value=6   class=form-checkbox / Option 006/
  label
  /div
  div class=form-item
   label class=optioninput type=checkbox name=options[7]
  id=edit-options-7 value=7   class=form-checkbox / Option 007/
  label

  /div
  div class=form-item
   label class=optioninput type=checkbox name=options[8]
  id=edit-options-8 value=8   class=form-checkbox / Option 008/
  label
  /div
  div class=form-item
   label class=optioninput type=checkbox name=options[9]
  id=edit-options-9 value=9   class=form-checkbox / Option 009/
  label
  /div
  div class=form-item
   label class=optioninput type=checkbox name=options[10]
  id=edit-options-10 value=10   class=form-checkbox / Option 010/
  label

  /div
  /div
  /div
   a href=javascript:; id=toggleInverter/a a href=javascript:;
  id=allTodos/a a href=javascript:; id=noneNenhum/a/fieldset

  On Oct 25, 8:53 pm, Wizzud [EMAIL PROTECTED] wrote:

   Need a bit more information!
   If you don't show us some HTML it's a bit difficult to second guess
   the relationship between checkbox and radio.

   On Oct 25, 8:34 pm, Alessandro Feijó [EMAIL PROTECTED] wrote:

I'm trying to control N checkboxes, when one is selected or unselected, 
I
need to enable/disable a radio next to the checkbox

something like this:

( ) [ ]
(o) [x]

the marked one, turn the radio clickable

I start this code

  $('.form-checkbox').each( function() {
$('.form-checkbox:radio').attr('disabled', $(this).attr('checked'));
  });

It returns every checkbox, but I cant figure out how to find the radio
object from each one

Thanks in advance for any tip :)

huge hug
Feijó



[jQuery] Re: New Plugin: ZoomBox

2007-10-26 Thread weepy


 faster than before when you upgraded it to jQuery 1.2?

possibly :) i don't have the old one to compare :)




[jQuery] Re: Loop thru options of a Select box

2007-10-26 Thread Glen Lipka
The code Wizzud gave is pretty good.

To get a value and label just use the attr function.

jQuery('#state option').each(function(i){
  alert($(this).attr(value));
   alert($(this).attr(label));
  });


Glen

On 10/26/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:


 Hi,

 Thanks, can you show sample code of accessing every element's value
 and label?

 On Oct 27, 1:30 am, Wizzud [EMAIL PROTECTED] wrote:
  jQuery('#state option').each(function(i){
 
});
 
  On Oct 26, 5:49 pm, [EMAIL PROTECTED]
 
  [EMAIL PROTECTED] wrote:
   Hi,
 
   given this, how to iterate thru the options? thanks
 
   select name=state id=state
   option value=NYNew York/option
   option value=ALAlaska/option
   option value=KYKentuky/option
   option value=IAIOWA/option
 /select




[jQuery] Re: OT: a very simple download indicator (marquee strikes back)

2007-10-26 Thread Jean

LOL

On 10/26/07, Klaus Hartl [EMAIL PROTECTED] wrote:

 marquee direction=right.../marquee

 ;-)


 http://www.stilbuero.de/2007/10/26/a-very-simple-download-indicator-the-glorious-return-of-the-marquee-tag/


 --Klaus




-- 

[]´s Jean
www.suissa.info

   Ethereal Agency
www.etherealagency.com


[jQuery] Re: DropDown list and selected Index - SelectedIndex ?

2007-10-26 Thread George


Hi Buck,

To mimick your onchange event you might use unobtrusive js instead,
perhaps something like...

script ...

$(function(){

$(SELECT).change(function(){ f(this.selectedIndex) });

// or:

$(SELECT).change(function(){

// This old js method will still work:
this.selectedIndex

// or use this 'cos its more jQueryfied:
$(this).attr(selectedIndex)

// or if you just want the selected items:
$(OPTION:selected, this).val()

});

});

/script


On Oct 26, 5:29 pm, BuckRogers [EMAIL PROTECTED] wrote:
 How do I go about retreiving the selected value of a dropdown list
 using jquery?

 In regular js I do this :

 select onchange=f(this.selectedIndex)
 option/option
 option/option

 /select



[jQuery] Re: Newbie question on hide objects

2007-10-26 Thread Adrian Lynch

How about creating the form once and moving it to where ever it's
needed. This assumes you can only have one form displayed at a time.
Failing that. Make one form and clone it each time it's needed.

Adrian

On Oct 25, 9:15 pm, Merlin [EMAIL PROTECTED] wrote:
 Hello everybody,

 I am trying to add a comment functionality to my webapp that includes
 a reply possibility on each comment. Like on digg for example. I am
 new to AJAX, but would like to take this oportunity and to jump into
 cold water with that task now.

 My goal is to use JQuery to show and hide a dialog box which contains
 the form to reply on the comments.
 Basicaly I managed to do this, but now I have a general understanding
 problem. Let's say there are 100 comments there and I want to have
 reply possiblity for each of them. Do I have to integrate the same
 code underneath each one? I would rather like to have a box in that is
 used for everyone of them. I believe this is somehow done with divs,
 but I do not know how.

 Here is my code:
 html
   head
 script src=/app_global/jquery-1.2.1.pack.js type=text/
 javascript/script
 script type=text/javascript
 $(document).ready(function() {
   $('#slickbox').hide();
   $('a#reply').click(function() {
 $('#slickbox').toggle('slow');
 return false;
   });

 });

 /script
   /head
   body
 a href=# id=replyReply/a
 div id=slickboxpSpace for reply box/div
 p
 next comment
   /body
   /html

 I would like to place a complex reply form into the id=slickbox, but
 here is where the problems starts. If I do this for all 100 comments
 the code will be way to much to load. There must be a smarter way to
 achieve this.

 Thank you for any help on this. I am pretty much stuck here.

 Best regards,

 Merlin
 --
   Merlin
   [EMAIL PROTECTED]

 --http://www.fastmail.fm- Does exactly what it says on the tin



[jQuery] Re: Modding WYMeditor dialogs

2007-10-26 Thread Paul Colomiets

Hydro007 wrote:
 I'm trying to load he WYMeditor dialogs in a seperate div instead of a
 popup window. This all works quite nice, but I have some issues when
 it comes to retrieving the submitted data and inserting it into the
 WYMeditor instance. Right now i'm stuck at the point where var
 dialogType = jQuery(wym._options.dialogTypeSelector).val(); gets
 called in WYM_INIT_DIALOG(). The correct selected gets loaded, but
 jQuery does not return the appropiate object. Any idea's how this
 can't be working?

   
Look at this patch:
http://trac.wymeditor.org/trac/ticket/83

It does something like this.


[jQuery] Re: open file after posting data

2007-10-26 Thread Adrian Lynch

If I understand correctly, yes it is.

Use the form plugin to post the form data then in the callback call
the onclick of the link.

Form plugin:
http://jqueryjs.googlecode.com/svn/trunk/plugins/form/jquery.form.js

Sample code:

script type=text/javascript src=/shared-scripts/
jquery-1.2.1.min.js/script
script type=text/javascript src=/shared-scripts/jquery.form.js/
script
script type=text/javascript
$(function() {
$(#mySubmit).click(function() {
$(#myForm).ajaxSubmit({success: postComplete});
return false;
});
});

function postComplete() {
alert(Going to  + $(#myLink).get(0).href + now. Bye bye!);
document.location = $(#myLink).get(0).href;
}
/script

form action=temp.cfm id=myForm
input type=text name=somefield /
input type=submit id=mySubmit /
/form

a href=http://www.adrianlynch.co.uk/; id=myLinkNow a jQuery
Developer!/a

Adrian

On Oct 24, 1:13 pm, urmo [EMAIL PROTECTED] wrote:
 Is it possible to open file after posting data via $.post()?
 Example i have form and submit link:
 form
 input name=test value=1
 /form
 a href=# onclick=openPDF()

 And i have function:
 function openPDF(){
 var url = some url;
 var posts = some kind of serializeArray(); //posting values

 now, here i need to post my form data to my url and next i want to see
 pdf. Is it possible?

 }



[jQuery] Re: How to set selected of Select box which works with Safari as well?

2007-10-26 Thread Adrian Lynch

Just a thought, maybe set it to be selected with attr(selected,
selected).

Adrian

On Oct 26, 6:34 pm, [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:
 Hi,

 I ajax load a list of options into a Select box and then set the value
 to 'AL', this will display the currently selected options as Alaska,
 it works with Firefox, but not with Safari,  although the selected one
 is 'AL', but it does not show ALASKA in the display, it shows the
 first element in the list which is 'new york', why?

 here is the url that you can test:

 http://catalina.ph/test2.html

 $(document).ready(function(){
 var s = jQuery(select#state);
 s.load(http://catalina.ph/states.html;,  function() {
 jQuery(select#state).val(AL);
  })

 })

 form id=form1 name=form1 method=post action=
   select name=state id=state
  /select
 /form



[jQuery] Re: Saving contents

2007-10-26 Thread Adrian Lynch

Yup, have a look at this:

http://www.appelsiini.net/projects/jeditable

Adrian

On Oct 26, 5:53 pm, [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:
 Hi,

 Thanks, what I want to do is, a list of items displayed in the div, if
 user click one of them, it will be erased and replaced with form, and
 later restore the list of items when done, possible?

 On Oct 26, 7:19 pm, Adrian Lynch [EMAIL PROTECTED] wrote:

  Of course.

  But, be careful if the div content contains a form with dynamically
  created elements. I've had trouble with saving those in the past.

  On Oct 26, 10:50 am, [EMAIL PROTECTED]

  [EMAIL PROTECTED] wrote:
   Hi,

   I have a need to save content of a div id=test/div to some
   global variables and re-load it sometime later, possible with jQuery?
   thanks.

   A.C.



[jQuery] Re: DropDown list and selected Index - SelectedIndex ?

2007-10-26 Thread Adrian Lynch

Try selecting different options and clicking debug:

$(function() {
$(#debug).click(function() {
var selected = $(#state [EMAIL PROTECTED]);
alert(selected.text() +  :  + selected.val());
});
});

select name=state id=state
option value=NYNew York/option
option value=ALAlaska/option
/select

button id=debugDebug/button

Adrian

On Oct 26, 5:29 pm, BuckRogers [EMAIL PROTECTED] wrote:
 How do I go about retreiving the selected value of a dropdown list
 using jquery?

 In regular js I do this :

 select onchange=f(this.selectedIndex)
 option/option
 option/option

 /select



[jQuery] Re: Changing form action with hidden field named action in IE causes error

2007-10-26 Thread Adrian Lynch

I'm in agreement. I've changed the name to 'act'.

I won't tell you how long it took to debug the problem as it's kind of
embarrassing! In case anyone else has issues like this, watch out for
naming your submit button 'submit'.

Adrian

On Oct 26, 7:14 pm, Wizzud [EMAIL PROTECTED] wrote:
 There is no way round it, and it's not down to jQuery.
 You're going to have to call your 'action'  field something else.

 On Oct 26, 12:10 pm, Adrian Lynch [EMAIL PROTECTED] wrote:

  The long subject says it all!

  If I have a hidden field named 'action', trying to change the form
  action attribute fails in IE7.

  If I change the hidden field to something other than action it works.

  Can anyone think of a way around this? I would like to keep the hidden
  field named 'action' if I can.

  Is this a jquery bug, an IE7 bug, a quirk in JS or am I in the wrong
  for naming a field 'action'?

  Here's some sample code to see the problem:

  script type=text/javascript src=/shared-scripts/
  jquery-1.2.1.min.js/script

  form method=post id=agentForm action=nowhere.html
  input type=hidden name=action value=No value /
  input type=text name=agentName id=agentName value= /
  input type=submit name=saveAgent id=saveAgent value=Save /
  /form

  button id=debugDebug this fecking page!/button

  script type=text/javascript

  $(function() {

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

  // This should alert 'nowhere.html'
  alert(action before:  + 
  $(#agentForm).attr(action));

  // Change to 'somewhere.html'
  $(#agentForm).attr(action, somewhere.html); 
  // No worky in
  IE7!

  // This should alert 'somewhere.html' but doesn't 
  in IE7
  alert(action changed to:  + 
  $(#agentForm).attr(action));

  });

  });

  /script



[jQuery] setRequestHeader(Accept, text/xml) - problem with

2007-10-26 Thread AlexK

My server expects the dataType as text/xml.  This is the code I use to
set the the type.

$(function() {
$.ajax({
type: GET,
url: location.href,
dataType: xml,
beforeSend : function(req) {
req.setRequestHeader(Accept, text/xml);
},
success: function(xml) {
alert(success= + xml.responseText);
},
complete: function(xml) {
alert(complete= + xml.responseText);
},
failure: function(xml) {
alert(in failure);
}
});
});

When I set Accept to text/xml or xml I see on the line going to
the server that the Accept contains three types text/xml, application/
xml and application/xhtml+xml.  My server expects only text/xml.  How
can I force it to be just text/xml.

Thanks,

Alex.



[jQuery] Re: Show/Hide divs depending on choice made in a select box

2007-10-26 Thread Adrian Lynch

Hey ioor, this sort of thing should be fairly straight forward, what
are you having trouble with?

To get you started:

$(function() {
$(#edit-taxonomy-3).change(editTaxonomyChanged);
});

function editTaxonomyChanged() {
var selectedOption = $([EMAIL PROTECTED]);
alert(Do something with this data:  + selectedOption.text() +  : 
+ selectedOption.val());
}

select name=taxonomy[3] class=form-select required id=edit-
taxonomy-3
option value=4OPTION1/option
option value=5OPTION2/option
option value=984OPTION3/option
/select

Adrian

On Oct 25, 2:02 pm, ioor [EMAIL PROTECTED] wrote:
 I have a select box with this structure:

 select name=taxonomy[3] class=form-select required id=edit-
 taxonomy-3 
 option value=4OPTION1/option
 option value=5.OPTION2/option
 option value=984.-OPTION3/option
 option value=983-OPTION4/option
 option value=35OPTION5/option
 option value=986-OPTION6/option
 option value=25-OPTION7/option
 option value=100-OPTION8/option
 option value=6. OPTION9t/option
 /select

 And I'd like a different div containing other forms to show up and
 hide the others depending on what choice is made in the select box.
 I've tried to get it to work, but couldn't quite get all of it working.



[jQuery] Re: is it possible to call jqModal after the page has loaded?

2007-10-26 Thread Adrian Lynch

As far as I know you can run whatever JS you want in the a tags
onclick attribute. Is it not working?

Adrian

On Oct 25, 4:21 pm, vanwil [EMAIL PROTECTED] wrote:
 Hi.

 I would like to call jqm on an element's onclick event.  It does not work.
 Why is that?  Is it MANDATORY to make these calls inside the $().ready
 function? Is it impossible to do something like this $('#myDiv').jqm({ajax:
 '@href', trigger: 'a.ex2trigger'}); inside a button's onclick event?

 Thank you!



[jQuery] Re: sortable problem ...

2007-10-26 Thread [EMAIL PROTECTED]

I just found this same issue, was trying to get some sortables to do
an ajax call and couldn't get stop or update to work...

Has anyone found a solution or work around for this?

On Oct 24, 6:23 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
 I have started to user the Sortables and I see that update doesn't
 callback to the function properly, nor does stop.

 After looking through ui.sortables.js I see that it's not even coded
 in.  The update callback is commented out and stop isn't even coded
 in.

 How am I supposed to do my AJAX call without any way of calling a
 function after I drop the sortable?



[jQuery] Subscription problems

2007-10-26 Thread bostone

I changed my subscription options to Abridged Email and I still get
each posting. I think it comes from some email archive service that I
sign in with previously and I can't find link to it any longer (I
signed through jQuery.com website)
Any ideas?



[jQuery] [SITE] newsweek.com

2007-10-26 Thread Alexandre Plennevaux
wow, the redesigned newsweek.com uses jquery!  HYPERLINK 
http://www.newsweek.com/id/57485http://www.newsweek.com/id/57485
 
 
 

Alexandre Plennevaux - LAb[au] asbl.vzw / MediaRuimte
Lakensestraat/Rue de Laeken 104
B-1000 Brussel-Bruxelles-Brussels
Belgie-Belgique-Belgium

Tel:+32(0)2.219.65.55
Fax:+32(0)2.426.69.86
Mobile:+32(0)476.23.21.42
HYPERLINK blocked::http://www.lab-au.com/http://www.lab-au.com
HYPERLINK blocked::http://www.mediaruimte.be/http://www.mediaruimte.be

HYPERLINK 
blocked::http://www.mediaruimte.be/__

The information in this e-mail is intended only for the addressee named above.  
If you are not that addressee, please note that any disclosure, distribution or 
copying of this e-mail is prohibited.
Because e-mail can be electronically altered, the integrity of this 
communication cannot be guaranteed.

__

 

Ce message Envoi est certifié sans virus connu.
Analyse effectuée par AVG.
Version: 7.5.503 / Base de données virus: 269.15.11/1093 - Date: 25/10/2007 
17:38
 


[jQuery] Re: BlockUI Dialog + FireFox - Breaks down

2007-10-26 Thread Mike Alsup

I just tried it 10 times on that page without any problem.  I'm also
using 2.0.0.8.  Maybe one of your FF plugins is causing a problem?

On 10/26/07, Gediminas [EMAIL PROTECTED] wrote:

 Hey,
 When i'm trying to open BlockUI Dialog (Yes/No) few times in a row -
 my FireFox (v2.0.0.8) breaks down.
 Any solutions to this problem?
 If i'm trying to open BlockUI few times without that dialog -
 everything is ok...
 The same problem is not only on my page, but on BlockUI demo page
 also:
 http://www.malsup.com/jquery/block/#dialog

 Everything is ok with both IE 6/7.

 Gediminas




[jQuery] BlockUI Dialog + FireFox - Breaks down

2007-10-26 Thread Gediminas

Hey,
When i'm trying to open BlockUI Dialog (Yes/No) few times in a row -
my FireFox (v2.0.0.8) breaks down.
Any solutions to this problem?
If i'm trying to open BlockUI few times without that dialog -
everything is ok...
The same problem is not only on my page, but on BlockUI demo page
also:
http://www.malsup.com/jquery/block/#dialog

Everything is ok with both IE 6/7.

Gediminas



[jQuery] Re: Changing form action with hidden field named action in IE causes error

2007-10-26 Thread Mike Alsup

 I'm in agreement. I've changed the name to 'act'.

 I won't tell you how long it took to debug the problem as it's kind of
 embarrassing! In case anyone else has issues like this, watch out for
 naming your submit button 'submit'.


You must be very careful when naming your form inputs.  IE promotes
those names to element properties so there are many opportunities to
clash with existing props (action, method, nodeName, and on and on
and).

Mike


[jQuery] Re: clueTip feedback and suggestions

2007-10-26 Thread DaveG



Karl Swedberg wrote:
thanks, Dave. You're right about that. Problem is, I'm not sure how to 
deal with it. I'm afraid I was too stingy with the DIVs when I decided 
on the HTML structure. The rounded-corner theme was an afterthought that 
I kind of shoe-horned into what was there. 
Guess that explains why the top/bottom arrow doesn't work with shadow 
either ;)


Now, if you don't want 
anything to appear in the title part, you can write start the title 
attribute's value with a pipe, like this: title=|first line body|second 
line body

That's the approach I have been using, thanks.

Then, (only tested in FF because it's past midnight), you can modify the 
margin declaration for .cluetip-rounded #cluetip-inner to have a top 
margin of -12px. That will adjust the text up into a bit more appealing 
position within the tooltip. 

I'll try that -- thanks again.



[jQuery] Re: DropDown list and selected Index - SelectedIndex ?

2007-10-26 Thread Wizzud

var selected = jQuery('select :selected');



On Oct 26, 7:37 pm, Adrian Lynch [EMAIL PROTECTED] wrote:
 Try selecting different options and clicking debug:

 $(function() {
 $(#debug).click(function() {
 var selected = $(#state [EMAIL PROTECTED]);
 alert(selected.text() +  :  + selected.val());
 });

 });

 select name=state id=state
 option value=NYNew York/option
 option value=ALAlaska/option
 /select

 button id=debugDebug/button

 Adrian

 On Oct 26, 5:29 pm, BuckRogers [EMAIL PROTECTED] wrote:

  How do I go about retreiving the selected value of a dropdown list
  using jquery?

  In regular js I do this :

  select onchange=f(this.selectedIndex)
  option/option
  option/option

  /select



[jQuery] Need a cookie to cap the frequency of my sliding div

2007-10-26 Thread somnamblst

I just tried the cookie I used with my scriptaculous sliding div  it
did not cap frequency. I would like my cookie to cap the frequency of $
('#slidebar').slideDown(normal); but not prevent a user from using $
('#slidebartrigger').click(function(){$
('#slidebar').slideToggle(); }); to interact with the same div. Is
this possible?


 My JQuery  function

$(document).ready(function() {
initSlideboxes();

function initSlideboxes()

{
$('#slidebar').slideDown(normal);
setTimeout(function()
{
  $('#slidebar').slideUp(3000);

}, 5000);

$('#slidebar').html($('#hidebar').html());
$('#slidebartrigger').click(function(){$
('#slidebar').slideToggle(); });

};

});



[jQuery] Re: New Plugin: SimpleModal

2007-10-26 Thread Eric Martin

On Oct 26, 9:07 am, rober_t [EMAIL PROTECTED] wrote:
 I like it. Clean and simple.

 Thanks,

 robert

Thanks robert!

I just updated the demo's (http://www.ericmmartin.com/simplemodal/)
and included client-side validation for the email address as well as a
few other browser specific fixes.

I also localized the jQuery and SimpleModal js files, so that should
improve the speed as well as prevent the NOSCRIPT issues identified
earlier.

-Eric



[jQuery] Re: BlockUI Dialog + FireFox - Breaks down

2007-10-26 Thread Gediminas

Yes you are right!
The AI Roboform toolbar v6.9.1plugin was causing all my problems...
(really strange though... i suspected some Web developer tools or
FireBug :)

Thanks for the idea to check FF plugins :) It saved lot's of time!

Gediminas

On 26 Spa, 23:35, Mike Alsup [EMAIL PROTECTED] wrote:
 I just tried it 10 times on that page without any problem.  I'm also
 using 2.0.0.8.  Maybe one of your FF plugins is causing a problem?




[jQuery] Re: BlockUI Dialog + FireFox - Breaks down

2007-10-26 Thread Gediminas

Yay! It helped!
The plugin that was causing problems was AI Roboform Toolbar v6.9.1

Thanks!
Gediminas

btw i might have pressed not Reply to group, but Reply to author,
while sending one message here,
so Mike if you'll get an email - sorry, it had to go here ;)

On 26 Spa, 23:35, Mike Alsup [EMAIL PROTECTED] wrote:
 I just tried it 10 times on that page without any problem.  I'm also
 using 2.0.0.8.  Maybe one of your FF plugins is causing a problem?

 On 10/26/07, Gediminas [EMAIL PROTECTED] wrote:



  Hey,
  When i'm trying to open BlockUI Dialog (Yes/No) few times in a row -
  my FireFox (v2.0.0.8) breaks down.
  Any solutions to this problem?
  If i'm trying to open BlockUI few times without that dialog -
  everything is ok...
  The same problem is not only on my page, but on BlockUI demo page
  also:
 http://www.malsup.com/jquery/block/#dialog

  Everything is ok with both IE 6/7.

  Gediminas



[jQuery] Re: Edit in place: only one textfield open per page

2007-10-26 Thread Codex

Anyone?

On 26 okt, 16:24, Codex [EMAIL PROTECTED] wrote:
 Hi,

 I'm using the code from the '15 days of jquery' demo of edit in place:

 http://15daysofjquery.com/examples/jqueryEditInPlace/demo.php

 JS:http://15daysofjquery.com/examples/jqueryEditInPlace/jqueryEIP.js

 I have a page that has 10+ eip textfields and it all works well. But
 when you open 2 eip textfields and you close the first opened you get
 an error. So I would like to make it so that you can only open one eip
 field at a time. Meaning that if one is already open, it will close
 when another is opened.

 Is that possible? And if so, how would you achieve this?



[jQuery] Re: clueTip feedback and suggestions

2007-10-26 Thread DaveG


And another buglet. In my implementation, for some reason, the bl.gif is 
not positioned correctly (ie, the bl corner is not visible/round, and 
it's squared off) -- this is across all browsers. I'm basically using 
the standard clueTip, with the rounded theme. However, removing the line:


   $cluetip.css({backgroundPosition: bgPos});

Seems to make everything better, across all browsers. I'm not using 
arrows, so not sure if that line even needs to be active in that case.


 ~ ~ Dave

(btw, let me know if there's somewhere else you'd rather I report these 
things to.)


[jQuery] Re: Checkboxes and radios

2007-10-26 Thread Wizzud

OK, so they're actually children of the grandparents (aunts/
uncles?)...

var checkBoxes = $('.form-checkbox').click(function(e, triggered){
  $(this).parent().siblings('input:radio')[0].disabled =
triggered ? this.checked : !this.checked;
});
$('#toggle').click(function(){ checkBoxes.trigger('click',
[true]); });
$('#all').click(function()
{ checkBoxes.not(':checked').trigger('click', [true]); });
$('#none').click(function()
{ checkBoxes.filter(':checked').trigger('click', [true]); });


On Oct 26, 7:01 pm, Feijó [EMAIL PROTECTED] wrote:
 Ops, sorry

 I add this jquery to dynamicaly insert the radio

 $(document).ready(function() {
   $('.form-checkbox').parent().parent().prepend(' input type=radio
 name=radio class=radio disabled ');

 });

 On Oct 26, 3:28 pm, Wizzud [EMAIL PROTECTED] wrote:

  And the radio buttons would be  where?

  On Oct 26, 11:35 am, Feijó [EMAIL PROTECTED] wrote:

   Here it is

   If any checkbox is clicked, it needs do enable the radio next to it.

   In the bottom I have 3 links to check it all, uncheck it all, or
   toggle.  In those cases the radios need to respond as well.

   That's my last jquery attempt:

   $('.form-
   item:checkbox:not(:checked)').siblings(':radio').removeAttr('disabled');

   Thanks!

   divfieldset class= collapsiblelegendRules/legenddiv
   class=form-item
labelValues: /label
div class=form-checkboxesdiv class=form-item
label class=optioninput type=checkbox name=options[1]
   id=edit-options-1 value=1   class=form-checkbox / Option 001/
   label

   /div
   div class=form-item
label class=optioninput type=checkbox name=options[2]
   id=edit-options-2 value=2   class=form-checkbox / Option 002/
   label
   /div
   div class=form-item
label class=optioninput type=checkbox name=options[3]
   id=edit-options-3 value=3   class=form-checkbox / Option 003/
   label
   /div
   div class=form-item
label class=optioninput type=checkbox name=options[4]
   id=edit-options-4 value=4   class=form-checkbox / Option 004/
   label

   /div
   div class=form-item
label class=optioninput type=checkbox name=options[5]
   id=edit-options-5 value=5   class=form-checkbox / Option 005/
   label
   /div
   div class=form-item
label class=optioninput type=checkbox name=options[6]
   id=edit-options-6 value=6   class=form-checkbox / Option 006/
   label
   /div
   div class=form-item
label class=optioninput type=checkbox name=options[7]
   id=edit-options-7 value=7   class=form-checkbox / Option 007/
   label

   /div
   div class=form-item
label class=optioninput type=checkbox name=options[8]
   id=edit-options-8 value=8   class=form-checkbox / Option 008/
   label
   /div
   div class=form-item
label class=optioninput type=checkbox name=options[9]
   id=edit-options-9 value=9   class=form-checkbox / Option 009/
   label
   /div
   div class=form-item
label class=optioninput type=checkbox name=options[10]
   id=edit-options-10 value=10   class=form-checkbox / Option 010/
   label

   /div
   /div
   /div
a href=javascript:; id=toggleInverter/a a href=javascript:;
   id=allTodos/a a href=javascript:; id=noneNenhum/a/fieldset

   On Oct 25, 8:53 pm, Wizzud [EMAIL PROTECTED] wrote:

Need a bit more information!
If you don't show us some HTML it's a bit difficult to second guess
the relationship between checkbox and radio.

On Oct 25, 8:34 pm, Alessandro Feijó [EMAIL PROTECTED] wrote:

 I'm trying to control N checkboxes, when one is selected or 
 unselected, I
 need to enable/disable a radio next to the checkbox

 something like this:

 ( ) [ ]
 (o) [x]

 the marked one, turn the radio clickable

 I start this code

   $('.form-checkbox').each( function() {
 $('.form-checkbox:radio').attr('disabled', 
 $(this).attr('checked'));
   });

 It returns every checkbox, but I cant figure out how to find the radio
 object from each one

 Thanks in advance for any tip :)

 huge hug
 Feijó



[jQuery] Re: Need a cookie to cap the frequency of my sliding div

2007-10-26 Thread Wizzud

Where does frequency come into your script?
You have a one-off timeout delay, and 2 durations (on the
animations) ... no frequency.
I think there may possibly be more script (that's still relevant to
the question)?

Also, you should avoid setting html() on an element while it's being
animated.

On Oct 26, 9:56 pm, somnamblst [EMAIL PROTECTED] wrote:
 I just tried the cookie I used with my scriptaculous sliding div  it
 did not cap frequency. I would like my cookie to cap the frequency of $
 ('#slidebar').slideDown(normal); but not prevent a user from using $
 ('#slidebartrigger').click(function(){$
 ('#slidebar').slideToggle(); }); to interact with the same div. Is
 this possible?

  My JQuery  function

 $(document).ready(function() {
 initSlideboxes();

 function initSlideboxes()

 {
 $('#slidebar').slideDown(normal);
 setTimeout(function()
 {
   $('#slidebar').slideUp(3000);

 }, 5000);

 $('#slidebar').html($('#hidebar').html());
 $('#slidebartrigger').click(function(){$
 ('#slidebar').slideToggle(); });

 };
 });



  1   2   >