[jQuery] Re: jQuery History Plugin

2008-07-06 Thread pedramphp

But this is a serious Problem we all know that Gmail has this ability
since 2 years ago and still we are stick in it ... this is very bad
for some Programmers like us o something about it

On Jul 6, 1:54 am, timothytoe [EMAIL PROTECTED] wrote:
 I'm still waiting to find something reasonable.

 On Jul 5, 3:49 am, [EMAIL PROTECTED] wrote:

  Did you find the History Plugin which You need I have the same Problem
  with Bookmarking

  On May 30, 6:11 pm, timothytoe [EMAIL PROTECTED] wrote:

   Great. I'll keep my eyes peeled.

   On May 30, 7:55 am, Klaus Hartl [EMAIL PROTECTED] wrote:

On May 30, 1:35 am, timothytoe [EMAIL PROTECTED] wrote:

 Yes. Oh well.

 Where should I watch for updates? Will there be an update of history
 to accommodate UI Tabs? Or is it more likely that UI Tabs will
 incorporate a history feature?

I have roughly rewritten the history plugin already so that it will be
much more flexible... (and work in Safari 3 and 
IE8):http://www.stilbuero.de/jquery/ui_history/

I will then nicely integrate history into tabs so that a user wouldn't
have to care too much except for including both plugins and enabling
history via an option.

Due to immense workload the last few month I got stuck though. The
biggest thing missing is actually a strange bug in IE 6, that needs to
be fixed before I would call it a beta version.

History will be released as part of jQuery UI and I will surely
anounce it on the list.

--Klaus


[jQuery] Re: Why (function($){ ...})(jQuery) instead of (function(){var $ = jQuery; ...})()?

2008-07-06 Thread benjam

I kinda figured that it was an anonymous function, but the outer
parens were kinda throwing me off.

Thanks for the info.


On Jul 4, 2:38 pm, Aaron Heimlich [EMAIL PROTECTED] wrote:
 On Fri, Jul 4, 2008 at 3:08 PM, benjam [EMAIL PROTECTED] wrote:
  What exactly does (function($){ ... })(jQuery) do?

 This

 function($){ ... }

 is an anonymous function. Because functions are first-class objects in
 JavaScript, they can be treated just like any other object; which means that
 you can immediately execute an anonymous function by doing this:

 function($){ ... }(jQuery)

 However, because of a quirk in JavaScript syntax, to be able to do this
 properly, you need to put parentheses around the anonymous function, like
 this:

 (function($){ ... })(jQuery)

 --
 Aaron Heimlich
 Web Developer
 [EMAIL PROTECTED]


[jQuery] jqModal problem with IE6

2008-07-06 Thread Arnold

Hello!

For the past 3 days I have been staring at this problem and I can't
get a
grip on it. I am using this code in my js:

$('.opmerking').click(function(){
var a = #test + $(this).attr(title);
$(a).jqm({
onShow:function(h) {
h.w.css('opacity',0.92).slideDown();
},
onHide: function(h) {
h.w.slideUp(slow,function() { if(h.o)
h.o.remove(); });
}
})
.jqmShow();
});

Within firefox this works fine. Every modalWindow that is triggered by
a
hyperlink with class=opmerking, is shown correctly.
But within IE6 it shows the content of my modalwindow in line of the
other
content instead of 'on top of' the other content in a seperate
modalWindow where I want it (as it does in firefox).

Any suggestions how to make it work in IE6?

Sincerely,
Arnold Consten
The Netherlands


[jQuery] [validate] updated variable not pass to remote method

2008-07-06 Thread Marco

Hi,
I use captcha to prevent spam in this way (token is a random string
needed to validate user input field)

var token = 'somerandomstring';
$(.myform).validate({
rules: {
captcha: {
required: true,
remote: /captcha.php?
t=+token
}
}

});

Now i need to refresh che captcha code, so I call this function:

function newCaptcha()
{
$.getJSON(/newCaptcha.php, function(data){
token = data.t;
   // some stuff
});

}

Why the validator doesn't pass the new token?


[jQuery] jqModal problem with IE6

2008-07-06 Thread Arnold

Hello!

For the past 3 days I have been staring at this problem and I can't
get a
grip on it. I am using this code in my js:

$('.opmerking').click(function(){
var a = #test + $(this).attr(title);
$(a).jqm({
onShow:function(h) {
h.w.css('opacity',0.92).slideDown();
},
onHide: function(h) {
h.w.slideUp(slow,function() { if(h.o)
h.o.remove(); });
}
})
.jqmShow();
});

Within firefox this works fine. Every modalWindow that is triggered by
a
hyperlink with class=opmerking, is shown correctly.
But within IE6 it shows the content of my modalwindow in line of the
other
content instead of 'on top of' the other content in a seperate
modalWindow where I want it (as it does in firefox).

Any suggestions how to make it work in IE6?

Sincerely,
Arnold Consten
The Netherlands


[jQuery] jeditable and remote update failure

2008-07-06 Thread felixg

Hello,
If I understand correctly jeditable submits the changes in fire and
forget mode. What if the submitted data failed to be saved on the
server side? Can jeditable revert the changes if the call returned
some error?

Felix.


[jQuery] Re: jQuery issues in Firefox 3

2008-07-06 Thread MorningZ

The problem, as far as I can
tell, stems from what appears to be an early execution of the
document.ready function - in this case before an external stylesheet
has been loaded

document.ready fires when the DOM is loaded, it doesn't wait for
external things to load, that's the whole point! :-)




If so, is there a call I can use instead of document.ready to trigger
the code once the CSS has loaded?

$(window).load(function() {
 // your code to run after the whole page, external things and
all, have loaded
});










On Jun 21, 5:17 am, David Webster [EMAIL PROTECTED] wrote:
 Hi all,

 I'm having a few issues using jQuery in Firefox 3 and was wondering if
 anyone else has had similar problems. The problem, as far as I can
 tell, stems from what appears to be an early execution of the
 document.ready function - in this case before an external stylesheet
 has been loaded - making width(), height() and any css() method
 unpredictable.

 I've put together a test case here:http://dev.cognite.net/sandbox/jquery.html
 That's basically a wrapper that contains two iframes, both with
 exactly the same code, one with an embedded css and one with external
 css. The results I'm getting are that the two iframes report different
 values for the height, width and colour of elements, but only under
 Firefox 3. This is an intermittent problem - sometimes it doesn't show
 up, but most of the time it does, on both Mac and PC.

 Is this the correct behaviour? If so, is there a call I can use
 instead of document.ready to trigger the code once the CSS has loaded?

 If this is a bug, has it been reported already and is there a known
 work around - my googling hasn't thrown up anything on this topic.

 Thanks,
 David.
 --
 Kayak Travel:http://www.travellingkayak.com


[jQuery] Re: jQuery History Plugin

2008-07-06 Thread Rey Bango


Demanding that someone do something about it isn't the way to go about 
asking for assistance, especially on the jQuery mailing list. If you're 
in that urgent of a need, please feel free to try and contribute a 
solution. Otherwise, you will need to be patient.


Rey
jQuery Team

[EMAIL PROTECTED] wrote:

But this is a serious Problem we all know that Gmail has this ability
since 2 years ago and still we are stick in it ... this is very bad
for some Programmers like us o something about it

On Jul 6, 1:54 am, timothytoe [EMAIL PROTECTED] wrote:

I'm still waiting to find something reasonable.

On Jul 5, 3:49 am, [EMAIL PROTECTED] wrote:


Did you find the History Plugin which You need I have the same Problem
with Bookmarking
On May 30, 6:11 pm, timothytoe [EMAIL PROTECTED] wrote:

Great. I'll keep my eyes peeled.
On May 30, 7:55 am, Klaus Hartl [EMAIL PROTECTED] wrote:

On May 30, 1:35 am, timothytoe [EMAIL PROTECTED] wrote:

Yes. Oh well.
Where should I watch for updates? Will there be an update of history
to accommodate UI Tabs? Or is it more likely that UI Tabs will
incorporate a history feature?

I have roughly rewritten the history plugin already so that it will be
much more flexible... (and work in Safari 3 and 
IE8):http://www.stilbuero.de/jquery/ui_history/
I will then nicely integrate history into tabs so that a user wouldn't
have to care too much except for including both plugins and enabling
history via an option.
Due to immense workload the last few month I got stuck though. The
biggest thing missing is actually a strange bug in IE 6, that needs to
be fixed before I would call it a beta version.
History will be released as part of jQuery UI and I will surely
anounce it on the list.
--Klaus


__ Information from ESET NOD32 Antivirus, version of virus signature 
database 3244 (20080705) __

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com





[jQuery] Re: jqModal problem with IE6

2008-07-06 Thread alconsten


Found it.
Check the jqmodal.css it has a line with position: fixed; this causes
problems in IE6.
Change it into: position: absloute; and the problem is solved.


alconsten wrote:
 
 Hello!
 
 For the past 3 days I have been staring at this problem and I can't get a
 grip on it. I am using this code in my js:
 
 $('.opmerking').click(function(){
 var a = #test + $(this).attr(title);
 $(a).jqm({
 onShow:function(h) {
 h.w.css('opacity',0.92).slideDown();
 },
 onHide: function(h) {
 h.w.slideUp(slow,function() { if(h.o) h.o.remove(); });
 }
 })
 .jqmShow();
 });
 
 Within firefox this works fine. Every modalWindow that is triggered by a
 hyperlink with class=opmerking, is shown correctly.
 But within IE6 it shows the content of my modalwindow in line of the other
 content instead of 'on top of' the other content in a seperate
 modalWindow where I want it (as it does in firefox).
 
 Any suggestions how to make it work in IE6?
 
 Sincerely,
 Arnold Consten
 The Netherlands
 

-- 
View this message in context: 
http://www.nabble.com/jqModal-problem-with-IE6-tp18300850s27240p18301691.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



[jQuery] Re: Plugin better than Lighbox or Thickbox

2008-07-06 Thread David Morton
Why do you think it is better?

On Sun, Jul 6, 2008 at 6:59 AM, [EMAIL PROTECTED] wrote:


 Dear folk,
 do we have such a plugin like below ...
 I have test the Demo version it is much more better from our Lightbox
 Plugin, the only problem it has is with AJAX , it can not support
 it 
 please let me know if there is such an ability in our jQuery
 http://www.magictoolbox.com/magicthumb/




-- 
David Morton
[EMAIL PROTECTED] - bulk address
[EMAIL PROTECTED] - direct to my server


[jQuery] Need truncator/Expander help (trimming on # of objects rather than character count)

2008-07-06 Thread clorentzen

I am looking to add an expander/truncator feature to a site I'm
building. However, the plugins and other code snippets I've found cut
off text based on character count. What I'm looking for is something
that cuts off based on a specific number of paragraphs. So, for
example, inside a targeted div, after the second p it would hide all
remaining ps, and insert a read more link. Clicking would expose
the hidden elements and add a read less link.

I haven't been able to figure out a way to do this... Can anyone point
me in the right direction? I've posted an example page here:

http://www.cement-site.com/truncator/example.shtml

It's making use of the truncator plugin found here:
http://henrik.nyh.se/2008/02/jquery-html-truncate

(I've also tried Karl Swedberg's Expander plugin, but it doesn't seem
appropriate in this case since it's not intended to truncate/expand
across multiple block-level elements.)

Can this truncator plugin code be modified to count ps rather than
characters? Or is there a simpler/better way to accomplish this?

Thanks!


[jQuery] Re: jQuery History Plugin

2008-07-06 Thread pedramphp

Dear Ray ,
  I'm patient about it ...


On Jul 6, 4:09 pm, Rey Bango [EMAIL PROTECTED] wrote:
 Demanding that someone do something about it isn't the way to go about
 asking for assistance, especially on the jQuery mailing list. If you're
 in that urgent of a need, please feel free to try and contribute a
 solution. Otherwise, you will need to be patient.

 Rey
 jQuery Team

 [EMAIL PROTECTED] wrote:
  But this is a serious Problem we all know that Gmail has this ability
  since 2 years ago and still we are stick in it ... this is very bad
  for some Programmers like us o something about it

  On Jul 6, 1:54 am, timothytoe [EMAIL PROTECTED] wrote:
  I'm still waiting to find something reasonable.

  On Jul 5, 3:49 am, [EMAIL PROTECTED] wrote:

  Did you find the History Plugin which You need I have the same Problem
  with Bookmarking
  On May 30, 6:11 pm, timothytoe [EMAIL PROTECTED] wrote:
  Great. I'll keep my eyes peeled.
  On May 30, 7:55 am, Klaus Hartl [EMAIL PROTECTED] wrote:
  On May 30, 1:35 am, timothytoe [EMAIL PROTECTED] wrote:
  Yes. Oh well.
  Where should I watch for updates? Will there be an update of history
  to accommodate UI Tabs? Or is it more likely that UI Tabs will
  incorporate a history feature?
  I have roughly rewritten the history plugin already so that it will be
  much more flexible... (and work in Safari 3 and 
  IE8):http://www.stilbuero.de/jquery/ui_history/
  I will then nicely integrate history into tabs so that a user wouldn't
  have to care too much except for including both plugins and enabling
  history via an option.
  Due to immense workload the last few month I got stuck though. The
  biggest thing missing is actually a strange bug in IE 6, that needs to
  be fixed before I would call it a beta version.
  History will be released as part of jQuery UI and I will surely
  anounce it on the list.
  --Klaus

  __ Information from ESET NOD32 Antivirus, version of virus 
  signature database 3244 (20080705) __

  The message was checked by ESET NOD32 Antivirus.

 http://www.eset.com


[jQuery] tag being output in wrong order from load call

2008-07-06 Thread paulp75

The code which is created on the page is like this
 a href=jq-remove.php id=Delete_?php echo $thiscart-
DisplayIndex; ? class=removeitem / img src=images/remove.gif
border=0 alt=remove / /a

note that the /a is after the image.

i call the page from  this jquery query

(.removeitem).livequery('click', function(){
var removeidno = $(this).attr(id);
$('#cartcontents').load(jq-remove.php, { removeid: removeidno } );
 return false; });

now for some reason when it is output to the browser it comes back as
a href=linketc.php/aimg src=images/remove.gif border=0
alt=remove /

anyone know why this would be happening?
thanks


[jQuery] Re: jQuery issues in Firefox 3

2008-07-06 Thread Karl Swedberg


Putting the link (or style) tags before script tags in the head  
can ameliorate the problem. Others have tested this and have found  
that they have access to those style properties.


--Karl

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




On Jul 6, 2008, at 8:28 AM, MorningZ wrote:



The problem, as far as I can
tell, stems from what appears to be an early execution of the
document.ready function - in this case before an external stylesheet
has been loaded

document.ready fires when the DOM is loaded, it doesn't wait for
external things to load, that's the whole point! :-)




If so, is there a call I can use instead of document.ready to trigger
the code once the CSS has loaded?

$(window).load(function() {
// your code to run after the whole page, external things and
all, have loaded
});










On Jun 21, 5:17 am, David Webster [EMAIL PROTECTED] wrote:

Hi all,

I'm having a few issues using jQuery in Firefox 3 and was wondering  
if

anyone else has had similar problems. The problem, as far as I can
tell, stems from what appears to be an early execution of the
document.ready function - in this case before an external stylesheet
has been loaded - making width(), height() and any css() method
unpredictable.

I've put together a test case here:http://dev.cognite.net/sandbox/jquery.html
That's basically a wrapper that contains two iframes, both with
exactly the same code, one with an embedded css and one with external
css. The results I'm getting are that the two iframes report  
different

values for the height, width and colour of elements, but only under
Firefox 3. This is an intermittent problem - sometimes it doesn't  
show

up, but most of the time it does, on both Mac and PC.

Is this the correct behaviour? If so, is there a call I can use
instead of document.ready to trigger the code once the CSS has  
loaded?


If this is a bug, has it been reported already and is there a known
work around - my googling hasn't thrown up anything on this topic.

Thanks,
David.
--
Kayak Travel:http://www.travellingkayak.com




[jQuery] Re: [Pagination Plugin] How to use it?

2008-07-06 Thread Sebastián V. Würtz

i use

function pageselectCallback(page_id, jq) {
   $('#libro_result').text(Mostrando resultados del 
+((page_id*10)+1)+-+((page_id*10)+10));

   $(#firmas).load(libro.php,{action: listar, page: page_id});
   return false;
}

Raghu escribió:

Hi, I am trying to use Jquery pagination plugin.
I have read documentation but things are still not clear to me.  Can 
someone please help me?
What exactly we need to do in callback function? Will this pagination 
plugin work with Ajax call?


$(#News-Pagination).pagination(122, {
items_per_page:20, 
	callback:loadContents

});
  
callback
	A callback function that is called when a user clicks on the link. the The 

	function receives two parameters: the new page id and the pagination 
	container (a DOM element). If the callback returns false, the event 


propagation is stopped. Default value: ``function(){return false;}``

Thanks
Raghu
  


[jQuery] Re: Database Request

2008-07-06 Thread DigiCelebs

Anyone ?? please

On Jul 4, 10:34 am, DigiCelebs [EMAIL PROTECTED] wrote:
 Hi ..

 I found your jquery script and it's great cause it's the first that i
 found with multiplie field.

 But you don't take list from a database ( sql ) , only from file.
 Is it possible to have a field that take the list from a sql
 database ??

 Thanks


[jQuery] Re: jqModal problem with IE6

2008-07-06 Thread Brice Burgess

Aarnold,

  Great to hear you found a workaround. It is important to note that
most of the examples use fixed positioning to keep the popup dialolg
in the center of the screen (even when scrolling). This is all in the
CSS and can be changed from there. As IE6 does not support position:
fixed, a workaround is implemented. The workaround uses position:
absolute, and sets the offsets via an expression to keep the dialog
centered and 17% below the top of the viewport. Again, feel free to
position the dialog however you like.

~ Brice


On Jul 6, 7:34 am, alconsten [EMAIL PROTECTED] wrote:
 Found it.
 Check the jqmodal.css it has a line with position: fixed; this causes
 problems in IE6.
 Change it into: position: absloute; and the problem is solved.



 alconsten wrote:

  Hello!

  For the past 3 days I have been staring at this problem and I can't get a
  grip on it. I am using this code in my js:

  $('.opmerking').click(function(){
          var a = #test + $(this).attr(title);
          $(a).jqm({
              onShow:function(h) {
                  h.w.css('opacity',0.92).slideDown();
              },
              onHide: function(h) {
                  h.w.slideUp(slow,function() { if(h.o) h.o.remove(); });
              }
          })
          .jqmShow();
      });

  Within firefox this works fine. Every modalWindow that is triggered by a
  hyperlink with class=opmerking, is shown correctly.
  But within IE6 it shows the content of my modalwindow in line of the other
  content instead of 'on top of' the other content in a seperate
  modalWindow where I want it (as it does in firefox).

  Any suggestions how to make it work in IE6?

  Sincerely,
  Arnold Consten
  The Netherlands

 --
 View this message in 
 context:http://www.nabble.com/jqModal-problem-with-IE6-tp18300850s27240p18301...
 Sent from the jQuery General Discussion mailing list archive at Nabble.com.


[jQuery] Re: Database Request

2008-07-06 Thread Rey Bango


Which script are you referring to?

Rey...

DigiCelebs wrote:

Anyone ?? please

On Jul 4, 10:34 am, DigiCelebs [EMAIL PROTECTED] wrote:

Hi ..

I found your jquery script and it's great cause it's the first that i
found with multiplie field.

But you don't take list from a database ( sql ) , only from file.
Is it possible to have a field that take the list from a sql
database ??

Thanks


__ Information from ESET NOD32 Antivirus, version of virus signature 
database 3244 (20080705) __

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com





[jQuery] Re: Need truncator/Expander help (trimming on # of objects rather than character count)

2008-07-06 Thread Karl Swedberg


sounds like a reasonable thing to want, so I just whipped up a new  
plugin for you:


http://plugins.learningjquery.com/summarizer/

Please keep in mind that it hasn't been tested extensively, and the  
documentation is kind of spotty, but it shouldn't be too hard to  
figure out how it works.


One important thing to note is that your selector should be the parent  
element of the elements you want to expand/collapse.


--Karl

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




On Jul 6, 2008, at 11:55 AM, clorentzen wrote:



I am looking to add an expander/truncator feature to a site I'm
building. However, the plugins and other code snippets I've found cut
off text based on character count. What I'm looking for is something
that cuts off based on a specific number of paragraphs. So, for
example, inside a targeted div, after the second p it would hide all
remaining ps, and insert a read more link. Clicking would expose
the hidden elements and add a read less link.

I haven't been able to figure out a way to do this... Can anyone point
me in the right direction? I've posted an example page here:

http://www.cement-site.com/truncator/example.shtml

It's making use of the truncator plugin found here:
http://henrik.nyh.se/2008/02/jquery-html-truncate

(I've also tried Karl Swedberg's Expander plugin, but it doesn't seem
appropriate in this case since it's not intended to truncate/expand
across multiple block-level elements.)

Can this truncator plugin code be modified to count ps rather than
characters? Or is there a simpler/better way to accomplish this?

Thanks!




[jQuery] Re: Need truncator/Expander help (trimming on # of objects rather than character count)

2008-07-06 Thread Karl Swedberg


sorry, but I'm changing the name from summarizer (with an r) to  
summarize. Seems to make more sense as a verb. so now you can find it  
at:


http://plugins.learningjquery.com/summarize/

--Karl

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




On Jul 6, 2008, at 3:22 PM, Karl Swedberg wrote:



sounds like a reasonable thing to want, so I just whipped up a new  
plugin for you:


http://plugins.learningjquery.com/summarizer/

Please keep in mind that it hasn't been tested extensively, and the  
documentation is kind of spotty, but it shouldn't be too hard to  
figure out how it works.


One important thing to note is that your selector should be the  
parent element of the elements you want to expand/collapse.


--Karl

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




On Jul 6, 2008, at 11:55 AM, clorentzen wrote:



I am looking to add an expander/truncator feature to a site I'm
building. However, the plugins and other code snippets I've found cut
off text based on character count. What I'm looking for is something
that cuts off based on a specific number of paragraphs. So, for
example, inside a targeted div, after the second p it would hide  
all

remaining ps, and insert a read more link. Clicking would expose
the hidden elements and add a read less link.

I haven't been able to figure out a way to do this... Can anyone  
point

me in the right direction? I've posted an example page here:

http://www.cement-site.com/truncator/example.shtml

It's making use of the truncator plugin found here:
http://henrik.nyh.se/2008/02/jquery-html-truncate

(I've also tried Karl Swedberg's Expander plugin, but it doesn't seem
appropriate in this case since it's not intended to truncate/expand
across multiple block-level elements.)

Can this truncator plugin code be modified to count ps rather than
characters? Or is there a simpler/better way to accomplish this?

Thanks!






[jQuery] Re: MouseOver/MouseOut Hover

2008-07-06 Thread Mike

Yes I eventually did this thanks!

On Jul 3, 11:18 pm, Joel Birch [EMAIL PROTECTED] wrote:
 Hi Mike,

 Does it work if you remove the inline JavaScript from the div and
 instead attach the handlers like this:

 $(document).ready(function() {
 $('div.zoom').hover(
 function() {
 setHoverState(this.id);
 },
 function() {
 setHoverState(this.id);
 }
 );

 });

 The .hover() function takes two arguments - the mouseover function and
 the mouseout function, and it takes care of the types of problem you
 seem to be describing, which is probably that mouseover is getting
 confused when you hover over child elements, like the img for
 instance.

 Joel Birch.


[jQuery] Re: Transparent png fade bug IE7

2008-07-06 Thread Mike

I had same issue have you fixed this?

On May 21, 4:16 pm, Adam Housman [EMAIL PROTECTED] wrote:
 Hello everyone,

 I'm having a problem that seems to have been brought up here and on
 other discussion boards all over the web, but no one seems to have
 come up with a solution... I am trying to fadeOut and fadeIn
 transparent pngs. In IE7, all pixels that are transparent quickly turn
 toblackas soon as the opacity begins to change on the image. This
 effect is fixed if I put a background-color other than transparent on
 the images, but this is not an option, since there is content behind
 the image. Does anyone have any ideas as to what I could do to fix
 this, or do I need to tell the designer that this is impossible to do
 w/ javascript? I appreciate any ideas...

 script
 var JQ = jQuery.noConflict();
 JQ(#athlete-photo).fadeOut(300);
 setTimeout(function(){
 JQ(#athlete-photo).attr({'src':name+'.png'}).fadeIn(300); }, 300);
 /script

 html
 head
 style
 #athlete-photo { position: absolute; bottom: 0; left: 144px;
 background-color: transparent; }
 /style
 /head

 body
 div id=athlete-photo-containerimg id=athlete-photo
 class=slideshow-img src=name_01.png alt= //div
 /body
 /html


[jQuery] Re: Plugin better than Lighbox or Thickbox

2008-07-06 Thread Alexandre Plennevaux

On Sun, Jul 6, 2008 at 3:39 PM, David Morton [EMAIL PROTECTED] wrote:
 Why do you think it is better?

 On Sun, Jul 6, 2008 at 6:59 AM, [EMAIL PROTECTED] wrote:

 Dear folk,
 do we have such a plugin like below ...
 I have test the Demo version it is much more better from our Lightbox
 Plugin, the only problem it has is with AJAX , it can not support
 it 
 please let me know if there is such an ability in our jQuery
 http://www.magictoolbox.com/magicthumb/



 --
 David Morton
 [EMAIL PROTECTED] - bulk address
 [EMAIL PROTECTED] - direct to my server


i can't believe they charge 20 pounds for such a script. I can make
this kind of implementation using jqModal in 2 hours.


[jQuery] Re: Need truncator/Expander help (trimming on # of objects rather than character count)

2008-07-06 Thread clorentzen

Karl --

Wow! Thank you so much for this! Exactly what I needed!

Best,

--Carl.


On Jul 6, 3:50 pm, Karl Swedberg [EMAIL PROTECTED] wrote:
 sorry, but I'm changing the name from summarizer (with an r) to
 summarize. Seems to make more sense as a verb. so now you can find it
 at:

 http://plugins.learningjquery.com/summarize/

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

 On Jul 6, 2008, at 3:22 PM, Karl Swedberg wrote:



  sounds like a reasonable thing to want, so I just whipped up a new
  plugin for you:

 http://plugins.learningjquery.com/summarizer/

  Please keep in mind that it hasn't been tested extensively, and the
  documentation is kind of spotty, but it shouldn't be too hard to
  figure out how it works.

  One important thing to note is that your selector should be the
  parent element of the elements you want to expand/collapse.

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

  On Jul 6, 2008, at 11:55 AM, clorentzen wrote:

  I am looking to add an expander/truncator feature to a site I'm
  building. However, the plugins and other code snippets I've found cut
  off text based on character count. What I'm looking for is something
  that cuts off based on a specific number of paragraphs. So, for
  example, inside a targeted div, after the second p it would hide
  all
  remaining ps, and insert a read more link. Clicking would expose
  the hidden elements and add a read less link.

  I haven't been able to figure out a way to do this... Can anyone
  point
  me in the right direction? I've posted an example page here:

 http://www.cement-site.com/truncator/example.shtml

  It's making use of the truncator plugin found here:
 http://henrik.nyh.se/2008/02/jquery-html-truncate

  (I've also tried Karl Swedberg's Expander plugin, but it doesn't seem
  appropriate in this case since it's not intended to truncate/expand
  across multiple block-level elements.)

  Can this truncator plugin code be modified to count ps rather than
  characters? Or is there a simpler/better way to accomplish this?

  Thanks!


[jQuery] traversing over items (like foreach in php)

2008-07-06 Thread Samuel Vogel
Hey guys,

I have a list that contains images as anachors. I need to iterate over the
items and apply the height of each image to the anachor that surround it (to
fix a displaying problem in IE).
My code would look somehow like this:
$(#navi ul li a).attr(height, $(#navi ul li a img).attr(height));

Of course this doesn't work, as the code needs to iterate over every list
item seperately.
How would I achieve that?

Thanks for you help,
Samy


[jQuery] Re: Plugin better than Lighbox or Thickbox

2008-07-06 Thread Kevin Pepperman
That majicthumb script looks a lot like this one.

http://vikjavev.no/highslide/

Charging for this is pretty lame. They would be better off making tham free
and benefiting from the traffic they would generate.

On Sun, Jul 6, 2008 at 5:07 PM, Alexandre Plennevaux [EMAIL PROTECTED]
wrote:


 On Sun, Jul 6, 2008 at 3:39 PM, David Morton [EMAIL PROTECTED] wrote:
  Why do you think it is better?
 
  On Sun, Jul 6, 2008 at 6:59 AM, [EMAIL PROTECTED] wrote:
 
  Dear folk,
  do we have such a plugin like below ...
  I have test the Demo version it is much more better from our Lightbox
  Plugin, the only problem it has is with AJAX , it can not support
  it 
  please let me know if there is such an ability in our jQuery
  http://www.magictoolbox.com/magicthumb/
 
 
 
  --
  David Morton
  [EMAIL PROTECTED] - bulk address
  [EMAIL PROTECTED] - direct to my server


 i can't believe they charge 20 pounds for such a script. I can make
 this kind of implementation using jqModal in 2 hours.




-- 
Rita Rudner  - When I eventually met Mr. Right I had no idea that his first
name was Always.


[jQuery] Re: traversing over items (like foreach in php)

2008-07-06 Thread Karl Swedberg


you could use the .each() method. I'm not sure from your post whether  
you want to get image height/set anchor height or get anchor height/ 
set image height. If you're trying to se the anchor height, you can do  
it like this:


$(#navi li img).each(function(index) {
  var $img = $(this);
  $img.parent('a').height( $img.height() );
});

The other way would go like this:

$(#navi li img).each(function(index) {
  var $img = $(this);
  $img.height( $img.parent('a').height() );
});



--Karl

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




On Jul 6, 2008, at 4:26 PM, Samuel Vogel wrote:


Hey guys,

I have a list that contains images as anachors. I need to iterate  
over the items and apply the height of each image to the anachor  
that surround it (to fix a displaying problem in IE).

My code would look somehow like this:
$(#navi ul li a).attr(height, $(#navi ul li a  
img).attr(height));


Of course this doesn't work, as the code needs to iterate over every  
list item seperately.

How would I achieve that?

Thanks for you help,
Samy




[jQuery] $(something).text() doesn't preserve whitespace in IE

2008-07-06 Thread alistairholt

I'm having some issues when calling $(something).text() in IE 6/7.
Basically I'm getting the calling text() on a pre element which is
whitespace sensitive. In Firefox and Safari it works perfectly
returning the text with whitespace intact. Is it possible to make it
work in IE or shall I give up?

Thanks


[jQuery] Re: Need truncator/Expander help (trimming on # of objects rather than character count)

2008-07-06 Thread clorentzen

Karl --

Also, fyi, the insertAfter method spec'd in the plugin doesn't seem to
play nice in Safari 3.1. But the other choice you mention in the
comments, appendTo, works just fine.

Best,

--Carl.



On Jul 6, 5:11 pm, clorentzen [EMAIL PROTECTED] wrote:
 Karl --

 Wow! Thank you so much for this! Exactly what I needed!

 Best,

 --Carl.

 On Jul 6, 3:50 pm, Karl Swedberg [EMAIL PROTECTED] wrote:

  sorry, but I'm changing the name from summarizer (with an r) to
  summarize. Seems to make more sense as a verb. so now you can find it
  at:

 http://plugins.learningjquery.com/summarize/

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

  On Jul 6, 2008, at 3:22 PM, Karl Swedberg wrote:

   sounds like a reasonable thing to want, so I just whipped up a new
   plugin for you:

  http://plugins.learningjquery.com/summarizer/

   Please keep in mind that it hasn't been tested extensively, and the
   documentation is kind of spotty, but it shouldn't be too hard to
   figure out how it works.

   One important thing to note is that your selector should be the
   parent element of the elements you want to expand/collapse.

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

   On Jul 6, 2008, at 11:55 AM, clorentzen wrote:

   I am looking to add an expander/truncator feature to a site I'm
   building. However, the plugins and other code snippets I've found cut
   off text based on character count. What I'm looking for is something
   that cuts off based on a specific number of paragraphs. So, for
   example, inside a targeted div, after the second p it would hide
   all
   remaining ps, and insert a read more link. Clicking would expose
   the hidden elements and add a read less link.

   I haven't been able to figure out a way to do this... Can anyone
   point
   me in the right direction? I've posted an example page here:

  http://www.cement-site.com/truncator/example.shtml

   It's making use of the truncator plugin found here:
  http://henrik.nyh.se/2008/02/jquery-html-truncate

   (I've also tried Karl Swedberg's Expander plugin, but it doesn't seem
   appropriate in this case since it's not intended to truncate/expand
   across multiple block-level elements.)

   Can this truncator plugin code be modified to count ps rather than
   characters? Or is there a simpler/better way to accomplish this?

   Thanks!


[jQuery] Re: Need truncator/Expander help (trimming on # of objects rather than character count)

2008-07-06 Thread Erik Beeson

Seems to have some HTML escaping issues on your options page:
http://plugins.learningjquery.com/summarize/index.html#options

At least in Safari.

--Erik


On 7/6/08, Karl Swedberg [EMAIL PROTECTED] wrote:

  sorry, but I'm changing the name from summarizer (with an r) to summarize.
 Seems to make more sense as a verb. so now you can find it at:

  http://plugins.learningjquery.com/summarize/

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




  On Jul 6, 2008, at 3:22 PM, Karl Swedberg wrote:


 
  sounds like a reasonable thing to want, so I just whipped up a new plugin
 for you:
 
  http://plugins.learningjquery.com/summarizer/
 
  Please keep in mind that it hasn't been tested extensively, and the
 documentation is kind of spotty, but it shouldn't be too hard to figure out
 how it works.
 
  One important thing to note is that your selector should be the parent
 element of the elements you want to expand/collapse.
 
  --Karl
  
  Karl Swedberg
  www.englishrules.com
  www.learningjquery.com
 
 
 
 
  On Jul 6, 2008, at 11:55 AM, clorentzen wrote:
 
 
  
   I am looking to add an expander/truncator feature to a site I'm
   building. However, the plugins and other code snippets I've found cut
   off text based on character count. What I'm looking for is something
   that cuts off based on a specific number of paragraphs. So, for
   example, inside a targeted div, after the second p it would hide all
   remaining ps, and insert a read more link. Clicking would expose
   the hidden elements and add a read less link.
  
   I haven't been able to figure out a way to do this... Can anyone point
   me in the right direction? I've posted an example page here:
  
   http://www.cement-site.com/truncator/example.shtml
  
   It's making use of the truncator plugin found here:
   http://henrik.nyh.se/2008/02/jquery-html-truncate
  
   (I've also tried Karl Swedberg's Expander plugin, but it doesn't seem
   appropriate in this case since it's not intended to truncate/expand
   across multiple block-level elements.)
  
   Can this truncator plugin code be modified to count ps rather than
   characters? Or is there a simpler/better way to accomplish this?
  
   Thanks!
  
 
 




[jQuery] Re: $(something).text() doesn't preserve whitespace in IE

2008-07-06 Thread Dave Methvin

 I'm having some issues when calling $(something).text() in IE 6/7.
 Basically I'm getting the calling text() on a pre element which is
 whitespace sensitive. In Firefox and Safari it works perfectly
 returning the text with whitespace intact. Is it possible to make it
 work in IE or shall I give up?

I noticed that too quite a while back, if you run the test in this
message does it still do the same thing?

http://www.nabble.com/.text()-method-quirks-p6933512s27240.html


[jQuery] Re: Need truncator/Expander help (trimming on # of objects rather than character count)

2008-07-06 Thread Karl Swedberg


oooh, thanks for catching that, Erik! fixed now.

Cheers,

--Karl

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




On Jul 6, 2008, at 7:02 PM, Erik Beeson wrote:



Seems to have some HTML escaping issues on your options page:
http://plugins.learningjquery.com/summarize/index.html#options

At least in Safari.

--Erik


On 7/6/08, Karl Swedberg [EMAIL PROTECTED] wrote:


sorry, but I'm changing the name from summarizer (with an r) to  
summarize.

Seems to make more sense as a verb. so now you can find it at:

http://plugins.learningjquery.com/summarize/

--Karl

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




On Jul 6, 2008, at 3:22 PM, Karl Swedberg wrote:




sounds like a reasonable thing to want, so I just whipped up a new  
plugin

for you:


http://plugins.learningjquery.com/summarizer/

Please keep in mind that it hasn't been tested extensively, and the
documentation is kind of spotty, but it shouldn't be too hard to  
figure out

how it works.


One important thing to note is that your selector should be the  
parent

element of the elements you want to expand/collapse.


--Karl

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




On Jul 6, 2008, at 11:55 AM, clorentzen wrote:




I am looking to add an expander/truncator feature to a site I'm
building. However, the plugins and other code snippets I've found  
cut
off text based on character count. What I'm looking for is  
something

that cuts off based on a specific number of paragraphs. So, for
example, inside a targeted div, after the second p it would  
hide all
remaining ps, and insert a read more link. Clicking would  
expose

the hidden elements and add a read less link.

I haven't been able to figure out a way to do this... Can anyone  
point

me in the right direction? I've posted an example page here:

http://www.cement-site.com/truncator/example.shtml

It's making use of the truncator plugin found here:
http://henrik.nyh.se/2008/02/jquery-html-truncate

(I've also tried Karl Swedberg's Expander plugin, but it doesn't  
seem

appropriate in this case since it's not intended to truncate/expand
across multiple block-level elements.)

Can this truncator plugin code be modified to count ps rather  
than

characters? Or is there a simpler/better way to accomplish this?

Thanks!











[jQuery] Re: $(something).text() doesn't preserve whitespace in IE

2008-07-06 Thread John Resig

I'm fairly certain that our .text() support has changed a lot since
October 2006 (!). It would be interesting to re-examine this issue -
if there are any current problems I know that we'd really like to get
them fixed.

--John


On Sun, Jul 6, 2008 at 8:05 PM, Dave Methvin [EMAIL PROTECTED] wrote:

 I'm having some issues when calling $(something).text() in IE 6/7.
 Basically I'm getting the calling text() on a pre element which is
 whitespace sensitive. In Firefox and Safari it works perfectly
 returning the text with whitespace intact. Is it possible to make it
 work in IE or shall I give up?

 I noticed that too quite a while back, if you run the test in this
 message does it still do the same thing?

 http://www.nabble.com/.text()-method-quirks-p6933512s27240.html



[jQuery] $.getScript() - how to load into JSON formatted object?

2008-07-06 Thread jquertil

var blah = {
   something : function(variable){
  alert(variable);
   },
   something_else : 'hello'
}

alert( blah.something_else() ); // 'hello'
blah.something('whatsup'); // 'whatsup'

so far nothing unusual... but... how can I put the blah.something
function into a separate .js file and load it?
Played around with $.getScript() but nothing works :(
Ideally, my file alert.js would contain only the line with
alert(variable); in it. Can that be done?


[jQuery] Re: $.getScript() - how to load into JSON formatted object?

2008-07-06 Thread Michael Geary

This is all from the same domain, so you don't have cross-domain issues,
right?

I just tried this code, and it works nicely:

$.get( 'alert.js', function( code ) {
var blah = {
something : new Function( 'variable', code ),
something_else : 'hello'
};

blah.something('whatsup'); // 'whatsup'
});

alert.js contains the one line:

alert(variable);

BTW, in case it's of interest, the file extension doesn't have to be .js for
this code to work, since it's just loading it as a text file.

-Mike

 From: jquertil
 
 var blah = {
something : function(variable){
   alert(variable);
},
something_else : 'hello'
 }
 
 alert( blah.something_else() ); // 'hello'
 blah.something('whatsup'); // 'whatsup'
 
 so far nothing unusual... but... how can I put the blah.something
 function into a separate .js file and load it?
 Played around with $.getScript() but nothing works :( 
 Ideally, my file alert.js would contain only the line with 
 alert(variable); in it. Can that be done?



[jQuery] jqModal r13 released!

2008-07-06 Thread Brice Burgess

I've released the 13th revision of jqModal. Maybe I should have jumped
to 14... but scientists are not superstitious. I do believe in Stevie
Wonder though ;) If you have a chance; see him on his latest tour.
Anyhow;

jqModal is a tiny general-purpose windowing / dialog / popup / modal /
*box /
what-have-you plugin.

The new revision contains
  some minor code tweaks,
  the ability to overide default parameter values via the new
$.jqm.params global,
  and the removal of hard-coded pointer styling of modal overlays.

The plugin page was updated with more documentation and a link to
Alexandre Plennevaux's tutorial  on effectively using jqModal to load
external sites into a popup dialog (His method updates an iframe
inside a dialog with the HREF attribute of the triggering element. It
is an excellent example of real-world jqModal usage. As an added
bonus; the bling-factor is furthered by showing off some fancy
animated transistions! Be sure to check out his demonstration.)

  As usual, the plugin can be grabbed from;

http://dev.iceburg.net/jquery/jqModal/

I hope you all had a fantastic weekend!

~ Brice



[jQuery] Re: Loading external contetnt slows website

2008-07-06 Thread Karl Rudd

Remember that browsers usually (unless the users changes the defaults)
load only 4 things at the same time from the same website.

http://yuiblog.com/blog/2007/04/11/performance-research-part-4/

Actually that says 2 at a time but my understanding is that Firefox
(and probably others) do 4 at a time.

Karl Rudd

On Sun, Jul 6, 2008 at 8:31 PM, mark [EMAIL PROTECTED] wrote:

 I use the ajax function of jquery and the load function to include
 html (menu-content of clickmenu and selectbox). In FF3 the webpage
 loads pretty quick, but in IE7 it takes way too much time.
 Why is that. I thought ajax should speed up the process 'cos it loads
 content asynch by default.

 http://www.sionvalais.com/toprated



[jQuery] Re: jqModal r13 released!

2008-07-06 Thread Benjamin Sterling
Brice, very nice work!  There is not a project that goes by that I don't use
your plugin in.

On Sun, Jul 6, 2008 at 10:18 PM, Brice Burgess [EMAIL PROTECTED] wrote:


 I've released the 13th revision of jqModal. Maybe I should have jumped
 to 14... but scientists are not superstitious. I do believe in Stevie
 Wonder though ;) If you have a chance; see him on his latest tour.
 Anyhow;

 jqModal is a tiny general-purpose windowing / dialog / popup / modal /
 *box /
 what-have-you plugin.

 The new revision contains
  some minor code tweaks,
  the ability to overide default parameter values via the new
 $.jqm.params global,
  and the removal of hard-coded pointer styling of modal overlays.

 The plugin page was updated with more documentation and a link to
 Alexandre Plennevaux's tutorial  on effectively using jqModal to load
 external sites into a popup dialog (His method updates an iframe
 inside a dialog with the HREF attribute of the triggering element. It
 is an excellent example of real-world jqModal usage. As an added
 bonus; the bling-factor is furthered by showing off some fancy
 animated transistions! Be sure to check out his demonstration.)

  As usual, the plugin can be grabbed from;

 http://dev.iceburg.net/jquery/jqModal/

 I hope you all had a fantastic weekend!

 ~ Brice




-- 
Benjamin Sterling
http://www.KenzoMedia.com
http://www.KenzoHosting.com
http://www.BenjaminSterling.com


[jQuery] Re: UI Dialog with BUG when resize in IE?

2008-07-06 Thread Leandro Vieira Pinho

Hi,

Sorry for don´t say the version of IE. The version is 6.

Cheers

On Jul 4, 9:53 pm, C.Everson [EMAIL PROTECTED] wrote:
 On Fri, 4 Jul 2008 12:18:52 -0700 (PDT), Leandro Vieira Pinho wrote:
  I´m with problem withUIDialog, and I´m thing it´s abug.

  In thisUIDialog examplehttp://docs.jquery.com/UI/Dialogis possible
  to verify.

  If you resize the Dialog to right, for example, and then try to resize
  to left, the titlebar and content doesn´t seems to reduce it´s width.
  You can observe looking the X icon used to close the Dialog.

  It´s aBUG?

 It works fine here in IE7.

 What version ofIEare you using?

 Chuck


[jQuery] Re: jqModal r13 released!

2008-07-06 Thread Alexandre Plennevaux

On Mon, Jul 7, 2008 at 4:52 AM, Benjamin Sterling
[EMAIL PROTECTED] wrote:
 Brice, very nice work!  There is not a project that goes by that I don't use
 your plugin in.

 On Sun, Jul 6, 2008 at 10:18 PM, Brice Burgess [EMAIL PROTECTED] wrote:

 I've released the 13th revision of jqModal. Maybe I should have jumped
 to 14... but scientists are not superstitious. I do believe in Stevie
 Wonder though ;) If you have a chance; see him on his latest tour.
 Anyhow;

 jqModal is a tiny general-purpose windowing / dialog / popup / modal /
 *box /
 what-have-you plugin.

 The new revision contains
  some minor code tweaks,
  the ability to overide default parameter values via the new
 $.jqm.params global,
  and the removal of hard-coded pointer styling of modal overlays.

 The plugin page was updated with more documentation and a link to
 Alexandre Plennevaux's tutorial  on effectively using jqModal to load
 external sites into a popup dialog (His method updates an iframe
 inside a dialog with the HREF attribute of the triggering element. It
 is an excellent example of real-world jqModal usage. As an added
 bonus; the bling-factor is furthered by showing off some fancy
 animated transistions! Be sure to check out his demonstration.)

  As usual, the plugin can be grabbed from;

 http://dev.iceburg.net/jquery/jqModal/

 I hope you all had a fantastic weekend!

 ~ Brice




 --
 Benjamin Sterling
 http://www.KenzoMedia.com
 http://www.KenzoHosting.com
 http://www.BenjaminSterling.com


youpee! thanks for the link Brice !

Alex