[jQuery] Re: Shadowbox Media Viewer

2008-01-26 Thread Aaron Heimlich
Very impressive stuff! A couple of comments:
1. Everything that Mike Alsup said
2. You should take a look at the file extension -- plugin mappings in
Mike's media plugin[1] as it's much more extensive than yours for roughly
the same list of plugins
3. Make the extension -- plugin mappings extensible (this is particularly
useful for the external player)

[1] http://dev.jquery.com/browser/trunk/plugins/media/jquery.media.js#L180

On Jan 25, 2008 3:45 AM, mjijackson [EMAIL PROTECTED] wrote:


 Hello all,

 I'm putting the finishing touches on a media viewer application that I
 coded up recently (think Thickbox). It can be used with jQuery or any
 other library. I created an adapter for jQuery, and I thought that
 somebody on this list might be interested.

 http://mjijackson.com/2008/01/22/shadowbox-js-media-viewer-1-0-beta/

 Enjoy,

 Michael




-- 
Aaron Heimlich
Web Developer
[EMAIL PROTECTED]
http://aheimlich.freepgs.com


[jQuery] Re: blockUI onClick stops processing in IE7

2008-01-26 Thread Mike Alsup

 I'm using the blockUI plugin and it's tied to a form submit.  When I click
 the submit button in IE7, blockUI goes into effect, but the form doesn't
 get
 submitted and the page just sits there with blockUI running.  It works
 fine
 in Firefox though.


That sounds vaguely familiar.  What version of blockUI are you using?


[jQuery] Re: Is there a .new() ?

2008-01-26 Thread Karl Swedberg


On Jan 25, 2008, at 10:13 PM, David Serduke wrote:



How about

$(input type='hidden'/).attr({id:myid,
name:myname}).val(foo).appendTo(this);

I think that would work although the way you have it would be faster.
Most elements you could just say $(div/) to create a new one but
in IE the input requires the type be set.  So you have to specify the
type in the inital jQuery call as shown above.


Hey David,

Very interesting that the way you mention above is not as fast as  
putting in the whole HTML string at once. In our books, Jonathan  
Chaffer and I chose to build new elements the slower way --  
with .attr({}) -- to make the code more readable and to keep it closer  
to the DOM Scripting ideal, but I hadn't tested comparative speeds,  
assuming that there wouldn't be much of a performance hit.



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



[jQuery] Re: Tabs stopped working in IE

2008-01-26 Thread Klaus Hartl

On Jan 25, 8:12 pm, carvingcode [EMAIL PROTECTED] wrote:
 Thanks, Klaus!  I know exactly when I added that.  Surprised Aptana
 didn't notice it...

 On another note, any suggestions on where I could best start to get
 the tabs located better within IE?  I'm currently using the unmodified
 tabs.css from the flora theme.

 -- Randy

It seems you're using a pretty outdated style sheet. You need to
download the latest one, that'll fix a bunch of browser issues...

--Klaus


[jQuery] Re: Can't get new Shadowbox plug-in to work. :o(

2008-01-26 Thread Mike Alsup

 return e.srcElement || e.currentTarget || e.target;


That still doesn't work in Safari though, does it?


[jQuery] Re: Is there a .new() ?

2008-01-26 Thread David Serduke

Actually I was just thinking about this and I'm not positive which is
faster either but I think not using attr would be.  And I'm not sure
the speed difference is significant, so take all this with a grain of
salt. :)

It might actually depend on what type of element is being created
too.  Some really have to go through the jQuery.clean() function like
an input type=hidden/ or a tr but a div might be faster to just
do $(document.createElement(div)).attr(...);  Again I'm not sure the
speed difference is significant in most cases.  These are all just gut
feelings at this point since I haven't done the tests.

David

On Jan 26, 7:17 am, Karl Swedberg [EMAIL PROTECTED] wrote:
 On Jan 25, 2008, at 10:13 PM, David Serduke wrote:



  How about

  $(input type='hidden'/).attr({id:myid,
  name:myname}).val(foo).appendTo(this);

  I think that would work although the way you have it would be faster.
  Most elements you could just say $(div/) to create a new one but
  in IE the input requires the type be set.  So you have to specify the
  type in the inital jQuery call as shown above.

 Hey David,

 Very interesting that the way you mention above is not as fast as  
 putting in the whole HTML string at once. In our books, Jonathan  
 Chaffer and I chose to build new elements the slower way --  
 with .attr({}) -- to make the code more readable and to keep it closer  
 to the DOM Scripting ideal, but I hadn't tested comparative speeds,  
 assuming that there wouldn't be much of a performance hit.

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


[jQuery] Re: howto properly rebind hover

2008-01-26 Thread David Serduke

Looks like you already figured it out but yes, with 1.2.2 hover now
binds mouseenter and mouseleave.  Also unbind('hover') shouldn't do
anything since hover() is a helper function not an actual event so
that part shouldn't be necessary.

David

On Jan 25, 6:18 pm, h0tzen [EMAIL PROTECTED] wrote:
 in the current jquery-version 1.2 you have to unbind mouseenter and
 mouseleave.

 code
 this.table.find(' tbody 
 tr').unbind('hover').unbind('mouseenter').unbind('mouseleave').removeClass(­'gt-
 hover')
 /code


[jQuery] Re: slideToggle weirdness - also Easing question

2008-01-26 Thread David Serduke

On Jan 25, 3:27 pm, Rus Miller [EMAIL PROTECTED] wrote:
 1. JQ 1.2.2  Interface.SlideToggleUp:

 After the SlideToggleUp event, Firebug started logging a string of
 errors and the script crashed in both FF and IE:
   this.options.curAnim has no properties
  http://monovisiondesign.com/client/jquery/js/jquery-1.2.2.js
   Line 3217

I suspect most of your problems are caused by the inclusion of
interface.js.  Unfortunately it hasn't been updated since release 1.2
so it causes problems.  There is work going on ui.jquery.com which
should eventually replace it (although it has some quirks of its
own).  Try taking out that file and see how it looks.

 2. JQ 1.1.2.  Interface.SlideToggleUp:

 No errors.  But in FF there is a flicker or a jump when the event
 fires.  In both FF and IE there is some funkiness with the element
 width and/or height.  I saw a post somewhere that suggested setting
 the height to 'auto' in the callback function but that didn't work.

I'm afraid 1.1.2 is before my time so I'm not sure what's going on
here.

 3. JQ 1.2.2 / 1.1.2  JQ.slideToggle:

 Smooth sailing in FF, (except for the effect itself (the eclipse of
 the element)).  However, very jumpy in IE, with the text popping up to
 the top of the div before being eclipsed.

Again I think a lot of this is because interface.js is included in
your file.  Try taking it out.  I still see some strange behavior
without it but it helps a lot.  Try adding this to your html file too
for the last IE problem.

style type=text/css
  p { margin:1em 0; }
/style

 I also attempted to use the jQuery.easing plugin.  On its website
 (http://gsgd.co.uk/sandbox/jquery/easing/) instructions stated that
 the default JQ easing method could be set thusly: jQuery.easing.def =
 'easeInBounce';

It should work if you take interface.js out.

 I don't know how many of these problems are my inexperience with JQ
 and/or Interface, or one or the other not being quite ready for prime
 time (I don't mean that offensively).  Any assistance would be very
 much appreciated.  I do like JQ's style much better than Prototype or
 Mootools but it seems that compatibility issues still exist across
 browsers and plugins.

jQuery is used all over the place but that certainly doesn't mean it
is bug free.  Plus there are quirks that just does seem worth the code
necessary/performance hit to fix it.  I've never seen this particular
issue with slide where the default margins on a paragraph in IE
somehow mess up the height calls during an animation.  I guess I
usually set my own margin so I haven't seen it.

In any case try those two changes and see if that fixes your
problems.  It seemed to work in my tests.

Good luck. :)

David


[jQuery] Re: Announce: clueTip Plugin update (0.9.5)

2008-01-26 Thread Mike Alsup
This is awesome, Karl!  Great work.

Mike

On Jan 25, 2008 3:09 PM, Karl Swedberg [EMAIL PROTECTED] wrote:


 Hi everyone,

 Wanted to let you know that I released a new version (0.9.5) of the
 clueTip plugin at http://plugins.jquery.com/project/cluetip/

 Here is a list of the changes since the last release:

 * added clickThrough option to allow click to go to page, even if href
 and tipAttribute are equal.
 * added experimental mouse tracking option
 * added simple/experimental delayedClose option to allow auto-closing
 of clueTip after given number of milliseconds.
 * added focus as an available value for activation option. Will
 show clueTip on focus of a form element, hide on blur.
 * added support for bgiframe plugin. When the bgiframe plugin is
 referenced in the docuement, clueTip will use it (in IE6).
 * cleaned up default ajaxProcess option.
 * provided public access to all default plugin settings (thanks malsup!)
 * fixed bug (reported at http://jquery.com/plugins/node/941) when
 splitTitle is used and title attribute is empty
 * fixed bug where a variable was improperly nested in an if statement
 * fixed bug with incorrectly disabling link when no href is present in
 invoking element
 * fixed annoyance (reported at http://plugins.jquery.com/node/1081):
 default title attributes showing before cluetip when using long
 interval in hoverIntent.
 * fixed bug where hoverIntent's timeout setting wasn't working with
 mouseoutClose when user moused out of the clueTip
 * fixed problem with setting width option to auto. Now, non-number
 widths such as 'auto' default to 275px.
 * fixed bug with activation by click where it wouldn't show clueTip
 under certain circumstances


 One thing I'm not sure about is how I'm stripping out certain elements
 from ajaxed files before displaying the contents in a tooltip. Here is
 what I'm doing (it looks pretty ugly):

 // process data retrieved via xhr before it's displayed
 ajaxProcess:  function(data) {
 data = 
 data.replace(/s(cript|tyle)(.|\s)*?\/s(cript|tyle)/g,
 '')

  .replace(/(link|title)(.|\s)*?\/(link|title)/g,'');
 return data;
 },

 If anyone has a suggestion for how to deal with this better, I'd love
 some help.


 Thanks,


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






[jQuery] Re: Shadowbox Media Viewer

2008-01-26 Thread Michael J. I. Jackson

Scratch that...I've got it worked out now...ugghh...


On Jan 25, 2008, at 10:42 PM, Michael J. I. Jackson wrote:

 Hmm...one email to the jQuery mailing list and an obscure post in  
 the Ext.js forums and 20 hours and 687 downloads later I've  
 exceeded my bandwidth. ;) Bummer...

 Well...while I look for new hosting, anybody who is still  
 interested in getting this code can get it from Google Code (where  
 it was hosted in the first place).

 michaeljackson.googlecode.com

 I should be back up and running within a few days, just time enough  
 to transfer the domain registration.

 Thanks,

 Michael

 On Jan 25, 2008, at 4:57 PM, Mike Alsup wrote:

 I think I over simplified this.  There will need to be a few other  
 changes.
 But you see where I'm going...


 Of course there are more restrictions than one might expect from a
 traditional jQuery plugin (like not being able to pass options on  
 a per-call
 basis), but it's a pretty minor change.  Food for thought.

 Mike






[jQuery] Re: problem with .attr(alt);

2008-01-26 Thread Yansky

I think it's because children() returns an array, so you may have to
use .children(img.text:first) or .children(img.text).eq(0)

On Jan 26, 7:10 am, tsr [EMAIL PROTECTED] wrote:
 Hi,

 I'm trying to create a dynamic rollover effect for a client, but I
 just can't get my code to work, don't really know why.

 Here it is:

 1   $(a.menu-text).hover (
 2   function() {
 3   var titleStr = 
 $(this).children(img.text).attr(title);
 4   $(this).children(img.text).attr(src, 
 motrSiteUrl + binary/
 (output)(text text=' + titleStr + ' font='InfoTexBoo' size='13'
 fg='ff'/)(/output).png);
 4   },
 5   function() {
 6   var titleStr = 
 $(this).children(img.text).attr(title);
 7   $(this).children(img.text).attr(src, 
 motrSiteUrl + binary/
 (output)(text text=' + titleStr2 + ' font='InfoTexBoo' size='13'
 fg='00'/)(/output).png);
 8   }
 9   );

 Problem is with getting the value of title (line 3 and 6), setting the
 value (line 4 and 7) that is returned (in this case 'undefiend') is no
 problem.

 Where did I go wrong?

 /tsr


[jQuery] change error message

2008-01-26 Thread Kayed Qunibi

hi all,
im using this approach in  validation  class=required on the element
form action= method=POST id=formEdit
input class=required type=text name=name 
input  type=submit name=clicker value=click
/form
script
 $(document).ready(function(){
$(#formEdit).validate();
  });
  /script
it works well but i want to change the text of error message
any help ?


[jQuery] Re: problem with .attr(alt);

2008-01-26 Thread tsr

Sorry to bump this, but anyone?

(I can solve this in another way, but it much more complex)

/tsr


[jQuery] Re: jquery xml help

2008-01-26 Thread Yansky

I'm not 100% sure what you're try to do, but here's what I might do:

UI.dsAnchor = function(UI.item, UI.sortBy){

  $.get(projects/datascapes.xml, function(xmlData){

  return $(xmlData).find(UI.sortBy+'[title=' + UI.sortBy + ']//
item:contains(' + UI.item + ')');

  });

}

I have no idea if that'll work, but it's what I might try first. :)


On Jan 26, 2:25 am, Alexandre Plennevaux [EMAIL PROTECTED]
wrote:
 Hello again,

 gosh this should be so easy yet i can't make it work. Here is what i'm trying 
 to do:  i have a data structure stored as an xml file.

 I need to load this structure once at the start of the application.
 I need a function to search through this data structure and return the 
 corresponding value.

 So far i fail miserably because i don't quite get the 
 synchronous/asynchronous side of jlife.

 Here is the code i came up with (you might have seen it in my other post, i'm 
 fighting against it since this morning):

 function findProjectAnchor(projectName, scape){
 var thisDS = datascapeAnchorsXml.find('scape[title=' + scape + ']');
 var myVal = $(item:contains(' + project + '), thisDS).attr('rel');
 return myVal;

 }

 jQuery(function($){

 $.get(projects/datascapes.xml, {}, function(xmlData, strStatus){
 var datascapeAnchorsXml = $(xmlData);
 });

 /// this is how i call it:
 UI.dsAnchor = findProjectAnchor(UI.item, UI.sortBy);

 );

 what's wrong with it ?

 thank you for your time and assistance,

 Alexandre Plennevaux


[jQuery] .html(val) not working in ie6 7

2008-01-26 Thread mickyjtwin


I am doing an ajax post, whereby I am returning an xml document that has html
in it. I grab the html text, and the use .html to replace an unordered list.
This works fine in FF, but ie6 and ie7 just show the last li elements
text...

$j(xml).find('Response').each(function(){
var type = $j(this).attr('type');
if(type == update)
{
var html = $j(this).text();
Module.UpdateList(widget, html);
}
});


UpdateList: function(widget, htmlText)
{
var listBody = widget.find('.userlistbody');
listBody.slideUp(normal, function(){
var list = listBody.find(ul);
list.html(htmlText);
listBody.slideDown();
});
}

if i alert before the list.html, the html text is there:

li link strongtext/string /lili link strongtext/strong
/lili class=moreMore /li

, but if I do a 
alert(list.html()); afterwwards i am getting this back...   More
Just the word more, nothing else.



-- 
View this message in context: 
http://www.nabble.com/.html%28val%29-not-working-in-ie6---7-tp15101863s27240p15101863.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



[jQuery] http://jquery.com/api/ page broken

2008-01-26 Thread Yansky

The http://jquery.com/api/ page doesn't seem to be working for me.
When I click on a link, nothing happens.

I'm using Firefox on Windows XP.


[jQuery] Odd behaviour of image.load()?

2008-01-26 Thread Sebioff

Hi,
I'm having some troubles using the load() event for images, since it
seems to behave totally different in every browser...
What I try to do is:
 - fade an image out
 - load another image (or the same again)
 - fade the image in as soon as it's finished loading

Heres the code I use for testing (jQuery version: 1.2.2):

script type=text/javascript
   var images = new Array(images/resultate/D RESULTATE.JPG);
   var imagePos = 0;

   $(document).ready(function() {
  $(#image).bind('load', function(){
 $(#image).fadeIn();
 $(#log).append(load() triggeredbr);
  });

  $(#link).bind('click', function(){
 change_img();
  });
   });

function change_img() {
   imagePos = (++imagePos  images.length-1) ? 0 : imagePos;
   $(#image).fadeOut(function() {
 $(#image).attr(src, images[imagePos]);
   });
}
/script


img src=images/resultate/D RESULTATE.JPG width=100 alt=
border=0 id=image
br
a href=# id=linkClick/a


You can also see it in action here: 
http://www.rakuun.de/Stuff/Schasler/load_test.html
Now, the strange things are:
 - In IE 6, the load event of the image isn't always triggered when
the page is loaded (probably got something to do with caching, but I
think it should fire anyway?). This is especially noticeable when you
try it with a page from your hard disk.
- In FF 2, it seems to fire too early/not at all for huge images?
Can't really prove that, though. I guess it got something to do with
caching as well.
- In Opera 9, the event is ONLY fired when the page is loaded, never
again after that!

So, I think the main problem is caching.
Shouldn't the event be triggered if the image is loaded from some
cache instead from the web as well?
Is there any way I can get the correct behaviour in every browser?


[jQuery] Re: ajax variable scope (?) problem

2008-01-26 Thread Zhami

The problem is that the ajax success function runs asynchronously. In
it, you refer to the variable id. So, when that function runs, it uses
the latest value of id, not the value of id when the click event
happened. Another way of handling the situation is to have your
deleteprivatemessage return data (json is easy) that contains the id

On Jan 25, 2:56 am, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
 Hi,

 I have the following problem. I have a page with several links with
 class deletepm, and when I click on the links in a very quick
 sequence, the following happens:

 deleting 3
 deleting 4
 deleting 5

 5 deleted
 5 deleted
 5 deleted

 Here's the code:

 $('a.deletepm').click(function(){

     id = $(this).attr('id');
     console.log('deleting '+id);

     $.ajax({
         type: POST,
         url: ajax.php?action=deleteprivatemessage,
         data: id=+id,
         success: function(response){
             console.log('comment '+id+' deleted.');
         }
     });
     return false;

 });

 For some reason, the ID inside the ajax callback doesn't get the right
 values.. Any idea why this could be? Thanks in advance!


[jQuery] Populate Form Values with Json returned Ajax call

2008-01-26 Thread MikeP

I do an ajax call to load a form. The data is returned via json.
What's the best way to mass populate the form without setting each
id...one by one? Also, does this mean that I would need to
name my form fields the same as the database field names?

Thanks,
Mike


[jQuery] Re: Tabs stopped working in IE

2008-01-26 Thread carvingcode


 It seems you're using a pretty outdated style sheet. You need to
 download the latest one, that'll fix a bunch of browser issues...

I thought I had current a version.  Where do I find the most recent?


[jQuery] Re: Shadowbox Media Viewer

2008-01-26 Thread Michael J. I. Jackson

Hmm...one email to the jQuery mailing list and an obscure post in the  
Ext.js forums and 20 hours and 687 downloads later I've exceeded my  
bandwidth. ;) Bummer...

Well...while I look for new hosting, anybody who is still interested  
in getting this code can get it from Google Code (where it was hosted  
in the first place).

michaeljackson.googlecode.com

I should be back up and running within a few days, just time enough  
to transfer the domain registration.

Thanks,

Michael

On Jan 25, 2008, at 4:57 PM, Mike Alsup wrote:

 I think I over simplified this.  There will need to be a few other  
 changes.
 But you see where I'm going...


 Of course there are more restrictions than one might expect from a
 traditional jQuery plugin (like not being able to pass options on  
 a per-call
 basis), but it's a pretty minor change.  Food for thought.

 Mike





[jQuery] Re: problem with .attr(alt);

2008-01-26 Thread tsr

Sorry to bump this, but anyone?

I've been trying to search for .attr but I found nothing relevant.

/tsr

ps. I would also like to know if I'm breaking protocol on this list,
just let me know, ok?


[jQuery] Re: Is there a .new() ?

2008-01-26 Thread Eli_Cochran

Hi folks,
I was mulling over both those two DOM instantiation patterns just this
week.

Has anyone actually run that test?  I'm curious what the numbers
were.

There is this delightful feel of control and power in

  $(input type='hidden'/).attr({id:myid,
name:myname}).val(foo).appendTo(this);

but

   $(this).append(input type='hidden' name='myname' id='myid'
value='foo' /);

*seems* more efficient (no chaining). My code has a few of these and I
opted for the latter, not only because my brain said less cycles but
also because, for me, it proved easier just to write out the markup as
markup and then plug that into the JS. Make sense?

- Eli

On Jan 26, 7:17 am, Karl Swedberg [EMAIL PROTECTED] wrote:
 On Jan 25, 2008, at 10:13 PM, David Serduke wrote:



  How about

  $(input type='hidden'/).attr({id:myid,
  name:myname}).val(foo).appendTo(this);

  I think that would work although the way you have it would be faster.
  Most elements you could just say $(div/) to create a new one but
  in IE the input requires the type be set.  So you have to specify the
  type in the inital jQuery call as shown above.

 Hey David,

 Very interesting that the way you mention above is not as fast as  
 putting in the whole HTML string at once. In our books, Jonathan  
 Chaffer and I chose to build new elements the slower way --  
 with .attr({}) -- to make the code more readable and to keep it closer  
 to the DOM Scripting ideal, but I hadn't tested comparative speeds,  
 assuming that there wouldn't be much of a performance hit.

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


[jQuery] Someone who can help me about multi select

2008-01-26 Thread Xinhao Zheng

hi all,

  Is there a plugin for multi select?I think we often need a pop
up,multi select plugin,if it can write back the selected thing back to
input field or support tree view.

  Anyone can give me some idea if there already exist one?Thanks in
advance!


George


[jQuery] Re: change error message

2008-01-26 Thread Kayed Qunibi
ops i found it :)
put tilte='you text' on on the element you want to validate.
thanks

On Jan 26, 2008 5:11 PM, Kayed Qunibi [EMAIL PROTECTED] wrote:

 hi all,
 im using this approach in  validation  class=required on the element
 form action= method=POST id=formEdit
 input class=required type=text name=name 
 input  type=submit name=clicker value=click
 /form
 script
  $(document).ready(function(){
$(#formEdit).validate();
  });
  /script
 it works well but i want to change the text of error message
 any help ?



[jQuery] Make money online so easy

2008-01-26 Thread mona samy
Step by step make free money online
Click Here http://smarts-way.info/main


[jQuery] Re: Reloading contact page in tab - using UI.TABS

2008-01-26 Thread carvingcode

I opted for the separate login page.  Main page auto redirects if a
session var is not found.


[jQuery] Re: Can't get new Shadowbox plug-in to work. :o(

2008-01-26 Thread Michael J. I. Jackson

Hi Nico,

I just got finished updating the script. You hit the nail on the  
head, but I fixed it in a slightly different way. I updated the  
examples page accordingly.

Thanks,

Michael

On Jan 25, 2008, at 10:24 PM, Andronicus Riyono wrote:


 On Jan 26, 2008 4:33 AM, Rick Faircloth [EMAIL PROTECTED]  
 wrote:
 ...
 As soon as I changed it to a normal text link, it worked perfectly!
 ...

 I was trying to use shadowbox on image link like:

 a href=images/large/39884_2.jpg rel=shadowboximg width=140
 src=images/thumb/39884_2.jpg//a

 and can't get it right, until,

 I changed the shadowbox-jquery.js, line 99 (from the src one) from:

 return e.target;

 to

 return e.srcElement || e.currentTarget || e.target;


 Because shadowbox was looking for href attribute in the img element.

 Hope this helps people with similar problem.

 Regards,
 Nico

 -- 
 -
  There's nothing impossible for an open mind
 -



[jQuery] jQuery/JavaScript Jobs

2008-01-26 Thread John Resig

Hey Everyone -

I just posted a whole bunch of JavaScript/jQuery jobs to my blog, in
case anyone is looking for work:
http://ejohn.org/blog/javascript-jobs/

Hope this helps!

--John


[jQuery] Re: Can't get new Shadowbox plug-in to work. :o(

2008-01-26 Thread Rick Faircloth

Hey, Michael...

How do I get the Next Previous Close to show up
at the bottom of the page.  I couldn't see instructions
for that.  (My eyesight is getting bad so that could be the problem. :o)

Thanks,

Rick

 -Original Message-
 From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of 
 Michael J.
 I. Jackson
 Sent: Saturday, January 26, 2008 2:46 AM
 To: jquery-en@googlegroups.com
 Subject: [jQuery] Re: Can't get new Shadowbox plug-in to work. :o(
 
 
 Hi Nico,
 
 I just got finished updating the script. You hit the nail on the
 head, but I fixed it in a slightly different way. I updated the
 examples page accordingly.
 
 Thanks,
 
 Michael
 
 On Jan 25, 2008, at 10:24 PM, Andronicus Riyono wrote:
 
 
  On Jan 26, 2008 4:33 AM, Rick Faircloth [EMAIL PROTECTED]
  wrote:
  ...
  As soon as I changed it to a normal text link, it worked perfectly!
  ...
 
  I was trying to use shadowbox on image link like:
 
  a href=images/large/39884_2.jpg rel=shadowboximg width=140
  src=images/thumb/39884_2.jpg//a
 
  and can't get it right, until,
 
  I changed the shadowbox-jquery.js, line 99 (from the src one) from:
 
  return e.target;
 
  to
 
  return e.srcElement || e.currentTarget || e.target;
 
 
  Because shadowbox was looking for href attribute in the img element.
 
  Hope this helps people with similar problem.
 
  Regards,
  Nico
 
  --
  -
   There's nothing impossible for an open mind
  -





[jQuery] Re: slideToggle weirdness - also Easing question

2008-01-26 Thread Rus Miller

David, you're right about Interface. It has problems, but then so does
Mootools as I found out when I hooked it up to the test page (it won't
un-toggle, something to do with the height of the element not being 0
I think).  Also, after running test after test with different styles
and markup I found there are many ways to mess everything up.  It's
very strange that mootools works perfectly on a fully marked-up and
CSS'd page on my new site.

The original problem was that I couldn't get the Interface toggle to
work on my completed page.  The problem there, of course, was that I
hadn't checked the version compatibility.  After reading your reply I
reverted to JQ 1.1.2 on that page, but...after firing the Interface
toggle event I got this error: too much recursion.  jQuery v1.2.2
worked like a champ, except that I don't like the effect itself.

It looks like Interface's slide method isn't quite ready yet and
because I like the Mootools effect better I think I'm going to stick
with Mootools for the time being for this effect...UNLESS...somebody
knows how to achieve the Mootools effect with jQuery.  Please?!?!?

For the easing problem, setting the default easing only works for
1.2.2.  There's probably an easy way to do it in 1.1.2 but I haven't
dug through the code.

That's all for now.  My brain hurts.


On Jan 26, 2:10 pm, David Serduke [EMAIL PROTECTED] wrote:
 On Jan 25, 3:27 pm, Rus Miller [EMAIL PROTECTED] wrote:

  1. JQ 1.2.2  Interface.SlideToggleUp:

  After the SlideToggleUp event, Firebug started logging a string of
  errors and the script crashed in both FF and IE:
this.options.curAnim has no properties
   http://monovisiondesign.com/client/jquery/js/jquery-1.2.2.js
Line 3217

 I suspect most of your problems are caused by the inclusion of
 interface.js.  Unfortunately it hasn't been updated since release 1.2
 so it causes problems.  There is work going on ui.jquery.com which
 should eventually replace it (although it has some quirks of its
 own).  Try taking out that file and see how it looks.

  2. JQ 1.1.2.  Interface.SlideToggleUp:

  No errors.  But in FF there is a flicker or a jump when the event
  fires.  In both FF and IE there is some funkiness with the element
  width and/or height.  I saw a post somewhere that suggested setting
  the height to 'auto' in the callback function but that didn't work.

 I'm afraid 1.1.2 is before my time so I'm not sure what's going on
 here.

  3. JQ 1.2.2 / 1.1.2  JQ.slideToggle:

  Smooth sailing in FF, (except for the effect itself (the eclipse of
  the element)).  However, very jumpy in IE, with the text popping up to
  the top of the div before being eclipsed.

 Again I think a lot of this is because interface.js is included in
 your file.  Try taking it out.  I still see some strange behavior
 without it but it helps a lot.  Try adding this to your html file too
 for the last IE problem.

 style type=text/css
   p { margin:1em 0; }
 /style

  I also attempted to use the jQuery.easing plugin.  On its website
  (http://gsgd.co.uk/sandbox/jquery/easing/) instructions stated that
  the default JQ easing method could be set thusly: jQuery.easing.def =
  'easeInBounce';

 It should work if you take interface.js out.

  I don't know how many of these problems are my inexperience with JQ
  and/or Interface, or one or the other not being quite ready for prime
  time (I don't mean that offensively).  Any assistance would be very
  much appreciated.  I do like JQ's style much better than Prototype or
  Mootools but it seems that compatibility issues still exist across
  browsers and plugins.

 jQuery is used all over the place but that certainly doesn't mean it
 is bug free.  Plus there are quirks that just does seem worth the code
 necessary/performance hit to fix it.  I've never seen this particular
 issue with slide where the default margins on a paragraph in IE
 somehow mess up the height calls during an animation.  I guess I
 usually set my own margin so I haven't seen it.

 In any case try those two changes and see if that fixes your
 problems.  It seemed to work in my tests.

 Good luck. :)

 David


[jQuery] Re: http://jquery.com/api/ page broken

2008-01-26 Thread Charles K. Clarkson

Yansky wrote:
: The http://jquery.com/api/ page doesn't seem to be working for me.
: When I click on a link, nothing happens.
: 
: I'm using Firefox on Windows XP.

Works for me on Firefox 2.0.0.11 and XP. It's a little slow
loading at first. Clicking on a link slides down the detail.

HTH,

Charles K. Clarkson
-- 
Mobile Homes Specialist
Free Market Advocate
Web Programmer

254 968-8328

http://www.clarksonenergyhomes.com/wordpress/about/



[jQuery] Re: http://jquery.com/api/ page broken

2008-01-26 Thread Yansky

Hmm weird. I tried it in Opera on my machine and Firefox and IE7 on
another machine and it didn't work with any of them.

On Jan 27, 8:58 am, Charles K. Clarkson [EMAIL PROTECTED]
wrote:
 Yansky wrote:

 : Thehttp://jquery.com/api/page doesn't seem to be working for me.
 : When I click on a link, nothing happens.
 :
 : I'm using Firefox on Windows XP.

 Works for me on Firefox 2.0.0.11 and XP. It's a little slow
 loading at first. Clicking on a link slides down the detail.

 HTH,

 Charles K. Clarkson
 --
 Mobile Homes Specialist
 Free Market Advocate
 Web Programmer

 254 968-8328

 http://www.clarksonenergyhomes.com/wordpress/about/


[jQuery] Re: slideToggle weirdness - also Easing question

2008-01-26 Thread David Serduke

I've never used any of them so I don't know their state but I know
people have been adding fx here:

http://dev.jquery.com/browser/trunk/fx

Just FYI. :)

David


[jQuery] Re: http://jquery.com/api/ page broken

2008-01-26 Thread John Beppu
It works for me on Firefox 2.0.0.11 and Linux.

On Jan 26, 2008 3:49 PM, Yansky [EMAIL PROTECTED] wrote:


 Hmm weird. I tried it in Opera on my machine and Firefox and IE7 on
 another machine and it didn't work with any of them.