[jQuery] Re: livequery $(this) is null? (this is second post, accidentally clicked post)

2007-11-20 Thread Brandon Aaron

I created an example based on the code you provided and was unable to
reproduce an error. Could you provide an example online somewhere?

http://brandonaaron.net/jquery/issues/livequery/table_test/table_test_2.html

--
Brandon Aaron

On Nov 20, 7:09 pm, wahyudinata <[EMAIL PROTECTED]> wrote:
> jQuery.create_table.prepare_add_item=function()
> {
> var items=$('#canvas > thead > tr > th');
> var prev_value='';
> var input_item=$('#input_item');
> var head=$('#canvas > thead > tr');
>
>// FIRST METHOD
> $('#canvas > thead > tr > th').click(
> function()
> {
> alert($(this).attr('id'));
> }
> );
> ///SECOND METHOD
> $('#canvas > thead > tr > th').livequery(
> function()
> {
> $(this).click(function(){
> alert($(this).attr('id'));
> })
> }
> );
> //THIRD METHOD
> $('#canvas > thead > tr > th').livequery('click',
> function(event)
> {
> var elem=$(this);
> alert(elem.attr('class'));
> if (elem.is('.manipulated'))return;
>
> elem.addClass('manipulated');//add class that it is 
> being
> manipulated
> prev_value=elem.html();//store whatever it's in here 
> before
> //  alert(elem.id);
> elem.empty();
> elem.append(input_item);
>
> }
>
> );
>
> THIS IS THE HTML
>
> 
>
> 
>
> 
> was
> First item to 
> compare
> 
> 
>
> 
> 
>  
> 
> 
>
> 
>
> 
> 
> 
> 
> 
> 
> text
> number
> time
> true/false
> video
>
> 
> 
> 
>
> on clicking:
> The first method works as advertised.
> the second method gives me undefined
> the third method gives me undefined and will throw an error on
> elem.addClass() , the error is "t has no properties"
> Am I missing something?


[jQuery] Re: AJAX Security

2007-11-20 Thread howa



On 11月21日, 上午6時34分, "Fabien Meghazi" <[EMAIL PROTECTED]> wrote:
> > With a blank or mismatched referrer, the script will always return a
> > username as unavailable.
>
> > Unfortunately the referrer is easily spoofed, so I'm not sure how effective
> > this will be.
>
> And just because it can be easily spoofed then you should not use referer.
>

Yes, I agreed using referrer is not a reliable method.

> Please explain the difference between your worries about an ajax
> application and a non-ajax application.
>

In non AJAX apps, automatic checking can be prevented using Captcha in
the registration page.

For example, in Yahoo, guess how they are checking?

e.g.

https://edit.yahoo.com/membership/json?PartnerName=yahoo_default&RequestVersion=1&AccountID=johndoe&GivenName=&FamilyName=&ApiName=ValidateFields&1763407


Howard



[jQuery] Re: Selector Not Working in IE7?

2007-11-20 Thread Rob Wilkerson

On Nov 20, 2007 5:02 PM, Josh Nathanson <[EMAIL PROTECTED]> wrote:
>
> WOW, thanks for that link to debugbar.com -- I had been searching far and
> wide for an IE debugger and couldn't find anything good -- that is sweet!

It's no Firebug, but it's the best I've seen for IE.


[jQuery] Re: How to speed up jQuery

2007-11-20 Thread Flesler

@Snook
First of all, this:
//check the checkbox when the edit form is loaded
if (checkbox.checked) {
targets.show();
}
Won't be called, but that check is already done, when you
do: ...triggerHandler('click')
Do you have an online example? I'll check, that seems to be the
easiest solution.

Cheers.

Ariel Flesler


On 20 nov, 10:10, Snook <[EMAIL PROTECTED]> wrote:
> I also have found a thread in jQuery dev, which explain that a regex
> could be improved. But it didn't improve my JS :-(
>
> http://groups.google.com/group/jquery-dev/browse_thread/thread/0611db...
>
> Cheers,
> Damien
>
> On Nov 14, 10:30 pm, Flesler <[EMAIL PROTECTED]> wrote:
>
>
>
> > Can you make a model of your situation ? that could help.
> > What do you want to do exactly? to show/hide many tds when a checkbox
> > is clicked? and changeBg(), that's for creating a zebra-like striping
> > of the cells ?
> > First of all, if you want to show ALL the cells in a table, or a row,
> > you can just toggle the table or the row. That's surely faster. Maybe
> > this helps...
>
> > function myToggleShow( checkbox, targets ){
> >   targets = $(targets);
> >   $(checkbox).click( function() {
> >  if ( this.checked ){
> > targets.show('slow');
> > changeBg(); //is really neccesary to call this EVERY time you
> > click the checkbox?
> >  } else {
> >  targets.hide('slow');
> >  }
> >   }).triggerHandler('click');
>
> > }
>
> > myToggleDisplay('#myCheckboxID', 'td.areaToShow');
>
> > Ariel Flesler
>
> > On 14 nov, 13:54, Snook <[EMAIL PROTECTED]> wrote:
>
> > > Dear developers,
>
> > > I have a function which is called several times, when my page is
> > > loaded. This is VERY slow under IE, because I have a lot of checkbox.
>
> > > Did someone can explain me this difference between FF and IE ? And
> > > maybe how to improve this function :
>
> > > function myToggleShow(checkboxElem, showHideElem){
> > >   var showHide = $(showHideElem);
> > >   var checkbox = $(checkboxElem);
> > >   checkbox.click( function() {
> > > if (checkbox.is(":checked")) {
> > >   showHide.show('slow');
>
> > >   // Change the background for "even" lignes
> > >   changeBg()
> > > } else {
> > > showHide.hide('slow');
> > > }
> > >   });
>
> > >   // check the checkbox status when the form is loaded
> > >   if (checkbox.is(":checked")) {
> > > showHide.show('slow');
> > >   }
>
> > > }
>
> > > myToggleDisplay('#myCheckboxID', 'td.areaToShow');
>
> > > FYI, I cannot use the toggle function, which didn't work with
> > > checkbox !!!
>
> > > Thanks,
>
> > > Damien- Ocultar texto de la cita -
>
> - Mostrar texto de la cita -


[jQuery] livequery $(this) is null? (this is second post, accidentally clicked post)

2007-11-20 Thread wahyudinata

jQuery.create_table.prepare_add_item=function()
{
var items=$('#canvas > thead > tr > th');
var prev_value='';
var input_item=$('#input_item');
var head=$('#canvas > thead > tr');

   // FIRST METHOD
$('#canvas > thead > tr > th').click(
function()
{
alert($(this).attr('id'));
}
);
///SECOND METHOD
$('#canvas > thead > tr > th').livequery(
function()
{
$(this).click(function(){
alert($(this).attr('id'));
})
}
);
//THIRD METHOD
$('#canvas > thead > tr > th').livequery('click',
function(event)
{
var elem=$(this);
alert(elem.attr('class'));
if (elem.is('.manipulated'))return;

elem.addClass('manipulated');//add class that it is 
being
manipulated
prev_value=elem.html();//store whatever it's in here 
before
//  alert(elem.id);
elem.empty();
elem.append(input_item);

}

);

THIS IS THE HTML






was
First item to compare





 













text
number
time
true/false
video





on clicking:
The first method works as advertised.
the second method gives me undefined
the third method gives me undefined and will throw an error on
elem.addClass() , the error is "t has no properties"
Am I missing something?


[jQuery] dealing with unresponsive script

2007-11-20 Thread james_027

hi,

I am using tablesorter 2. I can't help it but I have a large set of
data which lead the firefox to popup a dialog saying unresponsive
script with options of cancel, debug or continue. how can I prevent
the firefox from popping this dialog and display a more user friendly
message like "This could take a while..."

Thanks
james


[jQuery] Re: Improving .hover on this basic Jquery?

2007-11-20 Thread soupenvy

Thanks Brian

HoverIntent seems too much to me as well, even as simple as it is to
put in use. That really seems the way to go though, unfortunately.


[jQuery] livequery $(this) is null?

2007-11-20 Thread wahyudinata

jQuery.create_table.prepare_add_item=function()
{
var items=$('#canvas > thead > tr > th');
var prev_value='';
var input_item=$('#input_item');
var head=$('#canvas > thead > tr');

   // FIRST METHOD
$('#canvas > thead > tr > th').click(
function()
{
alert($(this).attr('id'));
}
);
///SECOND METHOD
$('#canvas > thead > tr > th').livequery(
function()
{
$(this).click(function(){
alert($(this).attr('id'));
})
}
);
//THIRD METHOD
$('#canvas > thead > tr > th').livequery('click',
function(event)
{
var elem=$(this);
alert(elem.attr('class'));
if (elem.is('.manipulated'))return;

elem.addClass('manipulated');//add class that it is 
being
manipulated
prev_value=elem.html();//store whatever it's in here 
before
//  alert(elem.id);
elem.empty();
elem.append(input_item);

}

);



[jQuery] Re: replace XPath functions for XML parsing

2007-11-20 Thread chrismarx

sweet!! thanks

On Nov 19, 12:21 pm, Karl Swedberg <[EMAIL PROTECTED]> wrote:
> On Nov 19, 2007, at 7:23 AM, chrismarx wrote:
>
>
>
>
>
> > anybody?
>
> > On Nov 13, 11:50 pm, chrismarx <[EMAIL PROTECTED]> wrote:
> >> I'd like to keep up with the new jquery release and abandon my xpath
> >> code for parsing xml, but I haven't seen anything that will do what i
> >> need. Here's an example of what i did with xpath:
>
> >> //xml
> >> 
> >> http://earth.google.com/kml/2.0";>
> >> 
> >> 
> >> Final_Label_geom
> >> 1
> >> 
> >> 
> >> 
> >> ffc0c0c0 >> color>
> >> 
> >> 
> >> 
> >> 1
> >> -77.988788,30.779793,0.00 
> >> 
> >> 
> >> 
> >> 
> >> 
> >> ff00 >> color>
> >> 1
> >> 
> >> 
> >> 
> >> 1
> >> 1
>
> >> -96.621063,33.166782,0.00
> >> -101.993915,34.013136,0.00 
> >> 
> >> 
>
> >> as you can see, each placemark can contain different types of
> >> tags, so
> >> i need to just be able to access the coordinates by giving different
> >> paths like:
>
> >> for (var j=0; j >>   var coords = $('Document/Folder:eq('+1+')/Placemark:eq('+j+')/
> >> LineString/coordinates', xml).text();
> >> etc...
>
> >> is there any good way to do this?
>
> You should be able to simply replace each slash with a greater than
> symbol:
>
> var coords = $('Document > Folder:eq('+1+') > Placemark:eq('+j+') >
> LineString > coordinates', xml).text();
>
> --Karl
> _
> Karl Swedbergwww.englishrules.comwww.learningjquery.com


[jQuery] Re: New Plugin: jQuery Fx Queues

2007-11-20 Thread Luciano G. Panaro

jQuery's core queueing method does it only for the selected element.
But when you want to do it for different elements (first fade in #1,
then slide down #2, etc.), you need to do it by passing callbacks to
each animation.

This plugin does something similar to what there is already in jQuery,
but for global queueing.

On 20 nov, 16:11, polyrhythmic <[EMAIL PROTECTED]> wrote:
> Very useful.  I thought that jQuery already had the ability to queue
> fx and process arrays of fx similar to your 'scope', however.  What is
> the difference between your FX Queues and the core queue method?
>
> Thanks,
>
> Charles
>
> On Nov 19, 5:30 pm, bigethan <[EMAIL PROTECTED]> wrote:
>
> > > Any comments, bugs, enhancements, ideas, whatever are more
> > > than welcomed :).
>
> > Sweet stuff.  Though in my rabid clicking, I found a glitch.
>
> > Using: Mac Safari 3  and FF 2
>
> > Page:http://www.decodeuri.com/fxqueues/fxqueues.html
>
> > If I press 'Stop' after the '7' has moved, but in the 2 second wait
> > for '8', the '8' still slides over.  And occasionally the '8' will
> > slide out a bit after the animation has begun (eg: around the same
> > time as the '3' or '4' fires).
>
> > -Ethan


[jQuery] History Remote Post

2007-11-20 Thread Talv

Hi all,

Im vey new to Jquery started today infact moving over from mootools
and so far whilst things are differnet im developing at a very fast
rate, the main reason i moved was because i couldnt get history
managers to work correctly so in the applicaition in developing all
the pages i "GET" are working correctly but im not sure how to "POST"
or if thats even possbile using History Remote, i notice that it uses
the .load function:

target.load(href, function() {
target['locked'] = null;
callback.apply(a);
});


which suggests that currently this is not possible but if it is so
could someone please enlighten me. Another question i have is can i
use history manager for form submits to note a page change, sounds
weird i know but i have an unavoidable multi page form (groan!) and
was wondering if this would be possible at all.

Thanks in advance guys :D

Talv


[jQuery] Re: Superfish - issues with hover links in IE6

2007-11-20 Thread Jared

I don't know if this helps, but I preferred to make the entire
latticework ul/li apparatus transparent (background/border: none) and
use margin/padding/background/border for a container div, and I
thought it worked pretty good.

My problem now is that I need to leave breadcrumbs for highlight, so
it's easier to tell what root menu was selected.

Anyways, put this at the very bottom of your navStyle.css file:


#nav LI.sfHover A {
COLOR: #51749f; FONT-WEIGHT: bold;
}


You might try this for a neat effect:


#nav li.sfHover a {
COLOR: #ff; FONT-WEIGHT: bold;
}
#nav li.sfHover ul li a {
COLOR: #505050;
}


HTH

On Nov 20, 4:04 pm, cromeis <[EMAIL PROTECTED]> wrote:
> Hi Joel,
>   Thank you so much for your css suggestion and for explaining your
> choice of a class vs. an id.
> Unfortunately the css suggestion did not correct the issue.  I updated
> the css with the following code:
>
> #nav li:hover, #nav li.sfHover,
> #nav li:hover a, #nav li:sfHover a,
> #nav a:hover, #nav li a:hover,
> #nav a:focus, #nav a:active {
> color:#51749F;
> background:#ff;
> text-decoration:line-through;
> }
>
> I added the text-decoration:line-through code as a test to see what IE
> and Firefox pick up.  What is interesting is that IE6 picks up the
> line-through but not the color, and I don't think Firefox sees this
> chunk of code at all.
>
> I also tried moving the order of things around, thinking maybe
> something was overwriting it somewhere, but that did not make a
> difference.  I'm afraid IE6 just may not work the way I want it to...
>
> The updated code is online athttp://home.comcast.net/~mtrinen/test/test.html
> if you have time to take another look at it.
>
> Thank you so much for all of the help you have already given, I would
> appreciate any advice you may be able to offer!
>
> cheers,
>   carleigh
>
> On Nov 16, 11:27 pm, "Joel Birch" <[EMAIL PROTECTED]> wrote:
>
> > Hi Carleigh,
>
> > Sorry for the delay in replying - I've been really busy.
>
> > This should solve it I think. In the css rule with the selector:
> > #nav li:hover, #nav li.sfHover, #nav a:focus, #nav a:hover, #nav
> > a:active { ... }
>
> > you need to have this selector also: #nav li:hover a, #nav li:sfHover a
> > I notice that further down in that file you have #nav li:hover > a,
> > #nav li.sfHover > a but that will not work in IE6 as that type of
> > selector was not supported in that browser. Hope this helps.
>
> > As for why the class instead of id: I wanted to make it easy for
> > people to addSuperfishto already existing suckerfish menus which
> > likely already have an id associated with them. I figured adding a
> > class to the nav and adding the bits ofSuperfishcss as necessary
> > would be less work than the other way. Also, if you want multiple
> > menus on a page a class approach is better than an id.
>
> > Good luck.
> > Joel Birch.


[jQuery] Re: Superfish - issues with hover links in IE6

2007-11-20 Thread Joel Birch

On 21/11/2007, cromeis <[EMAIL PROTECTED]> wrote:
> #nav li:hover, #nav li.sfHover,
> #nav li:hover a, #nav li:sfHover a,
> #nav a:hover, #nav li a:hover,
> #nav a:focus, #nav a:active {
> color:#51749F;
> background:#ff;
> text-decoration:line-through;
> }

Oh sorry, I made an error. I put a colon in front of sfHover but it
needs to be a period to denote a class. Considering my error, it makes
sense that it still does not work in IE6. Try correcting the code so
it will be like this:

#nav li:hover, #nav li.sfHover,
#nav li:hover a, #nav li.sfHover a,
#nav li a:focus, #nav li a:hover, #nav li a:active {
   color:#51749F;
   background:#ff;
}

Notice I also slightly tweaked some of the other selectors to ensure
their reliability. I still have hope that this will fix your issue.

Joel Birch.


[jQuery] Re: My jquery-Project

2007-11-20 Thread polyrhythmic

Phew, two corner plugins just for a rounded corner?  Safari's only
issue is that it incorrectly reads the background color, but this can
be set with one of the corner() options: .corner("tl 18px
cc:#FF").  I have no problem with crossbrowser corners on my site
(doublerebel.com).  I am about to release my own code which modifies
corner to use border-radius when available, check code.doublerebel.com
for updates.

Charles


On Nov 20, 2:11 pm, Ralph Whitbeck <[EMAIL PROTECTED]> wrote:
> I noticed you are using jquery.corner,  That plugin still has some
> problems...particularly in Safari.  There is CurvyCorner jQuery Plugin
> but I found it has issues with IE 7 possibly 6 too.
>
> I found that if you call the curvycorners plugin and then under it
> call within an IE conditional statement the plugin in for
> jquery.corner and then in your document.ready just call the .corner()
> like normal it'll solve all rounded corner issues...it's a hack but
> it'll work.
>
> You can look at the source of my blog for an example of what I am
> talking abouthttp://www.damnralph.com
>
> On Nov 19, 5:56 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
> wrote:
>
> > Hello everybody,
>
> > first of all a big thank you to everybody who contributes to this
> > mailinglist - it's a lot of help just to read through the comments!
>
> > Now I want to present my project which makes massiv usage of the
> > brillant jquery-library!
>
> > It's called TUBESEARCH and you can find it 
> > here:http://www.checker-forum.de/wbblite/tubesearch.php
>
> > Plugins in use are jquery.corner and jquery.modal!
>
> > What do you think about my project? Any improvements to make?


[jQuery] Re: HELP: Debugging Issue

2007-11-20 Thread polyrhythmic

On Nov 20, 2:54 pm, "Josh Nathanson" <[EMAIL PROTECTED]> wrote:
> > In many cases, a better solution for the thousand mouseovers, clicks, etc.
> > is to use a single event handler on a parent element and inspect
> > event.target in the event handler. That's extremely efficient and nearly
> > as easy to code.

+1

> Good point Michael, that should be investigated before going to the last
> resort of inline events.

I was reading somewhere today that inline events cause memory
leakage.  Is this true?  Because in that case I would avoid inline at
all costs...

Charles


[jQuery] Re: IE6 .height() problem

2007-11-20 Thread polyrhythmic

Trying reading the height back after you've set it.  I bet it's being
correctly set (but not displayed) at 1px.

For a debug console in IE, try CompanionJS:
http://www.my-debugbar.com/wiki/CompanionJS/HomePage
The DebugBar tools are great as well but they are not free.

IE6 has a habit of displaying the height of a div based on other
factors, such as line-height.  Try setting your line-height to 1px and
overflow to hidden.

Without an example page, that's the best I can do.  It's not a jQuery
error, I'm pretty sure.

HTH

Charles


On Nov 20, 4:44 am, wellmoon <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I am creating a new div and using the .height(1) method to set it's
> height to 1 pxiel high.  In IE7 and FF this works fine, however in IE6
> for some reason 18 pixels are mysteriously added to the height of the
> new div.  It seems to be added at the point when it is inserted into
> the DOM so getting the height value before it is appended shows the
> correct height but getting it after it is appended shows the wrong
> height.
>
> I have tried to set the height after the element has been appended but
> this doesn't work.  Its proving really difficult to debug as IE6 is
> utter poo and doesn't have a DOM explorer or proper error console or
> any useful tools at all, so it's difficult to see what is going on or
> why this is happening.
>
> No live site I'm afraid so can't give a demo page...any suggestions
> hugely appreciated :)


[jQuery] Re: Storing last clicked to check against in future function calls.

2007-11-20 Thread Wizzud

Some questions:

What happens on the first click? Nothing, or "Hide child ul"?
What happens on the third, fourth, nth, clicks? Does any one click
always check against the preceding click, regardless of whether that
preceding click matched it's own preceding click or not?
Are you always checking nth click against (n-1)th click? Or, if you
get a match [ nth = (n-1)th ] are you clearing down your 'clicks
stack' and starting again from 'first' click?
What is 'child ul' a child of? The preceding [ (n-1)th ] clicked
element? Or does it depend on whether nth = (n-1)th?

On Nov 20, 6:22 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
> Hello everyone,
>
> Just started working with jQuery in the past few weeks, fairly
> impressed thus far. :)
>
> I've got a questions which actually might touch base more on a general
> JS question but figured might as well ask it.
>
> What I'm trying to do:
>
> // What got clicked first? (capture)
> // What was clicked Second? (capture)
> // Was the second click the same as the first?
>// Hide child ul
>// else
>// Hide child ul + open new child from second parent
>
> I guess my key stumbling block is storing the last clicked element
> into memory to check agaist during the next function call.
>
> I've this so far:
> var $whatClicked = ($(this).get());
>
> Any help is greatly appreciated.
>
> Cheers,
> David


[jQuery] Re: How to concatenate all the OPTIONs of a SELECT to a text field ?

2007-11-20 Thread Wizzud

The literal answer would be $('#TheSelect').html() but I suspect that
is not what you're after.

Do you have a sample of the select's HTML, and the required result of
the concatenation (given that sample)?


On Nov 20, 4:22 pm, guix69 <[EMAIL PROTECTED]> wrote:
> Hello, I guess the title says it all   :)
>
> I have a SELECT which I manipulate thanks to this plugin 
> (http://www.texotela.co.uk/code/jquery/select/)
> and I would like to concatenate its OPTIONs into a text field when I
> click on a button. How can I do that ?
>
> Thanks a lot for your help !
> G.


[jQuery] Re: .append() is not inserting data into my div

2007-11-20 Thread Wizzud

I have just run this script (changed name of called script and
params)...

$(document).ready(function(){
$.get("test.php", {itemId:'foo', mediaType:'bar'}, function(data){
alert("Data Loaded: " + data);
$("#playlist div.scrollbox").append(data);
  });
});

against this HTML...


  
  


retrieving this PHP script (HTML lifted directly from previous
post)...




 (Video) 0:00




in both FF2 and IE7, using jQuery v1.2.1, and both worked perfectly.
The alert went off, and the HTML was appended to div.scrollbox.
I removed the alert ... no problem.
I added other content to div.scrollbox ... no problem.


On Nov 20, 2:49 am, "Shawn Molloy" <[EMAIL PROTECTED]> wrote:
> The HTML that is inside of the data var looks like this:
>
> 
>  src="/shared/WiseImage.ashx?Image=albm_98_633126866844334376.jpg&height=33&cropwidth=33"/>
>  (Video) 0:00
> 
> 
> 
>
> Seems like its formed all right to me. Could it be the output mode or
> content type of the page (its asp.net)? Thanks for taking a look.
>
> On Nov 19, 2007 8:19 AM, kef <[EMAIL PROTECTED]> wrote:
>
>
>
> > Most of the problems I've personally had with .append is when my xhtml
> > is malformed or I'm not escaping something properly.
>
> > On Nov 19, 5:20 am, James Dempster <[EMAIL PROTECTED]> wrote:
> > > append expects html data starting with a html element e.g  > > element please check that this is the case. can you provide an example
> > > of what data contains?
>
> > > On Nov 18, 8:31 pm, Shawn <[EMAIL PROTECTED]> wrote:
>
> > > > Hello, this code doesn't seem to insert or append any HTML when I call
> > > > it,
> > > > but it does insert the HTML when I use the HTML() function.
>
> > > > *
> > > > This does not work.*
> > > > function queue(itemId, mediaType) {
> > > >$.get("ajax/getPlaylistItem.aspx", {itemId: itemId, mediaType:
> > > > mediaType}, function(data){
> > > >   alert("Data Loaded: " + data);$("#playlist
> > > > div.scrollbox").append(data);
>
> > > > });
>
> > > > }
>
> > > > *
> > > > This works!*
> > > > function queue(itemId, mediaType) {
> > > >$.get("ajax/getPlaylistItem.aspx", {itemId: itemId, mediaType:
> > > > mediaType}, function(data){
> > > >   alert("Data Loaded: " + data);$("#playlist
> > > > div.scrollbox").html(data);
> > > > // append() doesnt work!
> > > > });
>
> > > > }
>
> > > > I've also tried a couple other methods of inserting data, but they
> > > > didn't
> > > > respond either.
>
> > > > Thanks,
>
> > > > -- shawn- Hide quoted text -
>
> > > - Show quoted text -


[jQuery] Re: Canvas based Mocha UI

2007-11-20 Thread polyrhythmic

Glen: I was unaware of this, but explorercanvas is a JS script that
translates (!) canvas into VML explorer 6 & 7 can understand.  I would
have been using Canvas a long time ago, had I known.  Apparently all
you do is include the script and canvas works for IE.  There's no
documentation for the project (!!), except for the README when you
download the .zip.  The JS is only 10K compressed (not packed).

Explorer Canvas
http://excanvas.sourceforge.net/

Charles

On Nov 20, 2:44 pm, polyrhythmic <[EMAIL PROTECTED]> wrote:
> I'd like to see it.  The bulk of Mocha-UI doesn't seem to be too
> Mootools-specific, mostly uses Mt for CSS manipulation and DOM element
> creation - nothing jQuery couldn't do. Hmm..
>
> Charles
>
> On Nov 20, 11:31 am, Guy Fraser <[EMAIL PROTECTED]> wrote:
>
> > For anyone who hasn't seen it yet, this is pretty awesome:
>
> >http://ajaxian.com/archives/mocha-ui-mootools-canvas-ui-class
>
> > Wasn't John working on some canvas stuff? Maybe we'll see a jQuery
> > canvas-based UI?
>
> >http://ejohn.org/blog/sneak-peek/
>
> >http://ejohn.org/blog/sneaky-2/
>
> > Guy


[jQuery] Re: HELP: Debugging Issue

2007-11-20 Thread Josh Nathanson



In many cases, a better solution for the thousand mouseovers, clicks, etc.
is to use a single event handler on a parent element and inspect
event.target in the event handler. That's extremely efficient and nearly 
as

easy to code.



Good point Michael, that should be investigated before going to the last 
resort of inline events.


-- Josh 



[jQuery] Re: Canvas based Mocha UI

2007-11-20 Thread polyrhythmic

I'd like to see it.  The bulk of Mocha-UI doesn't seem to be too
Mootools-specific, mostly uses Mt for CSS manipulation and DOM element
creation - nothing jQuery couldn't do. Hmm..

Charles

On Nov 20, 11:31 am, Guy Fraser <[EMAIL PROTECTED]> wrote:
> For anyone who hasn't seen it yet, this is pretty awesome:
>
> http://ajaxian.com/archives/mocha-ui-mootools-canvas-ui-class
>
> Wasn't John working on some canvas stuff? Maybe we'll see a jQuery
> canvas-based UI?
>
> http://ejohn.org/blog/sneak-peek/
>
> http://ejohn.org/blog/sneaky-2/
>
> Guy


[jQuery] Re: My jquery-Project

2007-11-20 Thread Ralph Whitbeck

I noticed you are using jquery.corner,  That plugin still has some
problems...particularly in Safari.  There is CurvyCorner jQuery Plugin
but I found it has issues with IE 7 possibly 6 too.

I found that if you call the curvycorners plugin and then under it
call within an IE conditional statement the plugin in for
jquery.corner and then in your document.ready just call the .corner()
like normal it'll solve all rounded corner issues...it's a hack but
it'll work.

You can look at the source of my blog for an example of what I am
talking about http://www.damnralph.com

On Nov 19, 5:56 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
wrote:
> Hello everybody,
>
> first of all a big thank you to everybody who contributes to this
> mailinglist - it's a lot of help just to read through the comments!
>
> Now I want to present my project which makes massiv usage of the
> brillant jquery-library!
>
> It's called TUBESEARCH and you can find it 
> here:http://www.checker-forum.de/wbblite/tubesearch.php
>
> Plugins in use are jquery.corner and jquery.modal!
>
> What do you think about my project? Any improvements to make?


[jQuery] Re: A few jQuery Patterns

2007-11-20 Thread Jared

Hire an experienced jQuery person to help you out. A couple hundred
dollars might get you some one-on-one time with a pretty good
developer.

Or, if you have the time and/or no inclination to pay, just peruse the
plugins page at jquery.com. There's plugins that do and example code
that describes everything you're wanting to do.

On Nov 20, 5:50 am, TunaSandwich <[EMAIL PROTECTED]> wrote:
> Hello Everyone,
>
> I just hopped on the jQuery bandwagon and I'm working on the following
> functionality so if there are any examples or tutorials that do
> anything like this I'd love to hear about them. I realize I will
> eventually figure all this out but if anyone knows of any working
> models, examples that are close to what I want or a list of what
> methods to study would be greatly appreciated because it would speed
> things up. (And that's what we're all here for right? �� )
>
> Type 'n List:
> I would like to type into a box. A list of links would appear just
> below the box that will have been retrieved from the database using
> AJAX. Ideally there would be a timer. The user starts typing and as
> soon as they stop typing for say 900ms, then the links would be
> retrieved from the database. If the user starts typing again, then
> again the box isn't refreshed till they stop typing for 900ms. I have
> done this often with Visual Basic or FoxPro and the trick there was to
> have a timer that you reset whenever the user types. The logic for the
> database refresh is in the timer event so it doesn't fire unless the
> timer fires. I did this once in plain JavaScript and I used the
> clearTimeout and setTimeout functions.
>
> Dynamo-List:
> A list of links is inserted in a DIV. The list is refreshed by the
> server every few seconds. When new items appear, they are inserted
> rather than having the whole list refresh. I have seen the hide(500)
> method and it would be nice is items appeared and disappeared in the
> list using a similar effect.
>
> Dynamo-Check'em:
> I have a list of a lot of check boxes so what I'd like to do is have a
> text box at the top of the list. When the user types in the text box,
> then the list of check boxes is refined by what the user types (based
> on the name of the check boxes stored in a database). The user can
> check the boxes. Once checked they always remain in the list
> regardless of whether or not they meet the criteria. To make them
> disappear, the user has to uncheck them. The reason they stay visible
> once checked is so that the user can see which ones are checked
> regardless of what's in the text box. For this control, the timer
> pattern in the Dynamo-List above isn't as important because the number
> of check boxes will not be very large. Perhaps a thousand at the outer
> limit. The boxes the user has checked off should always be reflected
> in the database.
>
> Expando-Show:
> In a given list of items (anchor tags), I'd like to be able to hide
> and show the description and other fields that go with each item. This
> needs to be done two ways. One where the data is just hidden and shown
> and the other where it is disposed of and loaded from the database as
> required in real time.
>
> Scroll'm-Rollem:
> Given say 100 items in a database, I'd like to show about 5 of them.
> Every few seconds, I'd like to hide the bottom one and thin insert a
> new one at the top. So it's like a scrolling list that runs on a
> timer. When a user is hovering an item, we don't want to make it
> disappear. I would like scroll-up and scroll-down links as well so
> that the user can manually scroll the list.
>
> I'm using PHP and MySQL (I realize it doesn't matter what's at the
> back end as long as the back end returns the same results). Obviously
> I can learn faster from any examples that use PHP but I'll take
> anything. ��
>
> Thanks again! Also, if there's anyone here floating around Ottawa that
> would like to join my support groups for programmers and business
> people, don't hesitate to contact me!
>
> I look forward to hearing from anybody!
>
> Darcy Whyte
> Social Software, Analyst, Database
>
> [EMAIL PROTECTED] | 613-563-3634
> Ottawa, Ontario, Canada | N 45° 25'03.1" W 75° 
> 42'21.4"www.Siteware.com|www.siteware.com/pictures
> MSN: [EMAIL PROTECTED]
>
> Think Tank: Share ideas about face to face and online social networks.
> Explore and
> analyze existing systems. Look for answers on how systems can
> facilitate constructive social networks. Be in the know about what's
> transforming your world.www.JumpSocial.com/blog
>
> 2.0 Lab: Share Web 2.0 development techniques. AJAX, Network Metrics,
> Rich Interfaces, Frameworks, Yahoo UI etc.www.JumpSocial.com/blog
>
> Ottawa Facebook Developer Garage: Learn about Facebook development and
> meet others who are doing it.www.JumpSocial.com/blog
>
> Social and Dance Calendar:www.JumpSocial.com
>
> Model Aviation:www.Rubber-Power.com


[jQuery] Re: Superfish - issues with hover links in IE6

2007-11-20 Thread cromeis

Hi Joel,
  Thank you so much for your css suggestion and for explaining your
choice of a class vs. an id.
Unfortunately the css suggestion did not correct the issue.  I updated
the css with the following code:

#nav li:hover, #nav li.sfHover,
#nav li:hover a, #nav li:sfHover a,
#nav a:hover, #nav li a:hover,
#nav a:focus, #nav a:active {
color:#51749F;
background:#ff;
text-decoration:line-through;
}

I added the text-decoration:line-through code as a test to see what IE
and Firefox pick up.  What is interesting is that IE6 picks up the
line-through but not the color, and I don't think Firefox sees this
chunk of code at all.

I also tried moving the order of things around, thinking maybe
something was overwriting it somewhere, but that did not make a
difference.  I'm afraid IE6 just may not work the way I want it to...

The updated code is online at http://home.comcast.net/~mtrinen/test/test.html
if you have time to take another look at it.

Thank you so much for all of the help you have already given, I would
appreciate any advice you may be able to offer!

cheers,
  carleigh





On Nov 16, 11:27 pm, "Joel Birch" <[EMAIL PROTECTED]> wrote:
> Hi Carleigh,
>
> Sorry for the delay in replying - I've been really busy.
>
> This should solve it I think. In the css rule with the selector:
> #nav li:hover, #nav li.sfHover, #nav a:focus, #nav a:hover, #nav
> a:active { ... }
>
> you need to have this selector also: #nav li:hover a, #nav li:sfHover a
> I notice that further down in that file you have #nav li:hover > a,
> #nav li.sfHover > a but that will not work in IE6 as that type of
> selector was not supported in that browser. Hope this helps.
>
> As for why the class instead of id: I wanted to make it easy for
> people to addSuperfishto already existing suckerfish menus which
> likely already have an id associated with them. I figured adding a
> class to the nav and adding the bits ofSuperfishcss as necessary
> would be less work than the other way. Also, if you want multiple
> menus on a page a class approach is better than an id.
>
> Good luck.
> Joel Birch.


[jQuery] Re: Using slideout in a ul

2007-11-20 Thread [EMAIL PROTECTED]

Thats wicked thanks Glen. Just what needed

On Nov 20, 9:36 pm, "Glen Lipka" <[EMAIL PROTECTED]> wrote:
> Like this?  I whipped this up a while back.  That directory has lots of
> simple examples like that.http://www.commadot.com/jquery/faq.php
>
> Glen
>
> On Nov 20, 2007 11:37 AM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
>
>
>
>
> > Hi ,
> > I want to render a list where each li has a link that when clicked
> > reveals content sliding out. When clicked again the content will slide
> > back up.
>
> > Could someone please help me out. I'm a newy here and initial reads of
> > tutorials only show a single caqse example rather than one that has
> > uses this effect in the same UL.
>
> > Any help would be appreicated.- Hide quoted text -
>
> - Show quoted text -


[jQuery] How to wrap multiple elements at once in one tag.

2007-11-20 Thread [EMAIL PROTECTED]

I have a very ugly piece of html coming off a server that I am trying
to make pretty.

So far things have gone well, I have been able to manipulate the html
using jquery as well as the Tabs and frames plug-ins.  However, I have
one out standing issue.  I would like to section the content of the
page into divs.

Currently it is a long series of tables as below:










As you can see the sections are already defined, in a very poor way,
by the pagestart class on the first table of a group.  I would like to
wrap all the tables starting with a pagestartclass, up until the next
pagestart class with a div element.

I have tried using

$("#example table.pagestart").each(
   function(i){
   if i==0{
 $(this).before("");}
   else{
 $(this).before("");}
 })

However, this does not work, because the before function always
expects a complete element and my html ends up like this.












Which leaves me in the same situation as before.  Is there a way to do
this, does anyone have any creative suggestions?  I would really hate
to have to hand code the javascript parsing of the dom and inserting
of the tags.

Thanks,
K


[jQuery] Re: AJAX Security

2007-11-20 Thread Fabien Meghazi

> With a blank or mismatched referrer, the script will always return a
> username as unavailable.
>
> Unfortunately the referrer is easily spoofed, so I'm not sure how effective
> this will be.

And just because it can be easily spoofed then you should not use referer.

Please explain the difference between your worries about an ajax
application and a non-ajax application.


-- 
Fabien Meghazi

Website: http://www.amigrave.com
Email: [EMAIL PROTECTED]
IM: [EMAIL PROTECTED]


[jQuery] Re: tinyMCE jquery equivalent

2007-11-20 Thread polyrhythmic

The a3 revision you're pointing to is a result of the Ajaxian
comments, unfortunately I haven't had a chance to play with it yet:
Nov. 2 Ajaxian Post: TinyMCE 3 First Look
http://ajaxian.com/archives/tinymce-3-first-look

However, adapters are not what I want -- to their credit the TinyMCE
coders have worked hard on adding a lot of stable features to the
program, to the point that now there's a mini-framework inside of
TinyMCE!  Running TinyMCE and a seperate framework side by side will
result in about 40K of extra code.  Look at the source: bind, trim,
map, grep, each, is, inArray, AJAX request fns, DOM manipulation fns,
even hide/show effects...
I think it's a good time to transition to a very-well-tested framework
that's already being maintained, and enjoy the stability, efficiency,
and small size of jQuery.  I think it's a for-sure success, and any
bugs discovered along the way will only improve both projects.  Then,
TinyMCE could concentrate efforts on being an Editor rather than a
framework, and jQuery would get to expand to a new set of users.

Charles
doublerebel.com

On Nov 20, 12:18 pm, "Sam Sherlock" <[EMAIL PROTECTED]> wrote:
> I have downloaded the latest tinyMCE 3
>
> and noticed this in the changelog
>
> Version 3.0a3 (2007-11-13)
>
> > Added new experimental jQuery and Prototype framework adapters to the
> > development package.
>
> but I could not find any info about it (did'nt have the time to look that
> hard)
>
> Is this what your referring to, Charles?
>
> On 20/11/2007, polyrhythmic <[EMAIL PROTECTED]> wrote:
>
>
>
> > From looking at the TinyMCE 3 source, I believe we could replace the
> > entirety of their core functions with jQuery, and the total jQuery +
> > TinyMCE package would be smaller than the current TinyMCE release!  I
> > discussed this briefly on Ajaxian when ver 3 was released, but haven't
> > had the time to follow up.  Anyone interested in the conversion?
>
> > Charles
>
> > On Nov 19, 7:16 am, Cloudream <[EMAIL PROTECTED]> wrote:
> > >http://www.wymeditor.org/en/
>
> > > On Nov 19, 10:46 pm, FrankTudor <[EMAIL PROTECTED]> wrote:
>
> > > > Hi all I am looking for a tinyMCE jquery equivalent (if one exists)...
>
> > > > Thanks,
> > > > Frank


[jQuery] Re: Canvas based Mocha UI

2007-11-20 Thread Karl Swedberg


On Nov 20, 2007, at 2:31 PM, Guy Fraser wrote:


For anyone who hasn't seen it yet, this is pretty awesome:

http://ajaxian.com/archives/mocha-ui-mootools-canvas-ui-class


that's really slick.

Wasn't John working on some canvas stuff? Maybe we'll see a jQuery  
canvas-based UI?


http://ejohn.org/blog/sneak-peek/

http://ejohn.org/blog/sneaky-2/


yeah, he showed some demos of canvas and Processing at jQueryCamp07.  
It was phenomenal. Jaw-dropping.



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



[jQuery] Re: Selector Not Working in IE7?

2007-11-20 Thread Josh Nathanson


WOW, thanks for that link to debugbar.com -- I had been searching far and 
wide for an IE debugger and couldn't find anything good -- that is sweet!


-- Josh

- Original Message - 
From: "Rob Wilkerson" <[EMAIL PROTECTED]>

To: "jQuery (English)" 
Sent: Tuesday, November 20, 2007 11:51 AM
Subject: [jQuery] Re: Selector Not Working in IE7?





On Nov 16, 1:33 pm, Rob Wilkerson <[EMAIL PROTECTED]> wrote:

I'm trying to "manually" interact with the multifile plugin and, as
part of that endeavor, I need to systemically access the anchor tag
that provides "Delete" functionality.  The following works great in FF
(of course):

$('a[href^="#multimulti_"]')

The objects are returned as expected and alert ( $
('a[href^="#multimulti_"]').length ) returns the expected number of
elements.  In IE7, though, the former value is undefined and the
latter is 0.  Anyone have any idea why this might be happening?


For anyone who may be interested and searching, I finally tracked this
down thanks to the most excellent DebugBar (http://
www.debugbar.com/).

Seems that IE, in its infinite wisdom, thinks that the hrefs created
by the multifile upload code aren't good enough and prepends the rest
of the page URI to them at runtime. The href coded "Delete", rendered in IE, is transformed into
"http://www.mydomain.com/survey#multimulti_0";>Delete".

As a result, the attribute-begins-with selector ([attribute^=value])
doesn't work. I replaced it with the attribute-contains selector
([attribute*=value]) so that the code will work in both IE & Firefox. 




[jQuery] Re: HELP: Debugging Issue

2007-11-20 Thread Michael Geary

> > no you should NOT use inline code, never again...
 
> Sorry Nicolas, that is not true - try to do 1000 mouseover 
> binds or so on a page and see how it goes for you.  jQuery
> is fantastic but in some (very few) situations it is not quite
> fast enough.
> 
> Obviously this is a "last resort" method but in a few cases 
> it is necessary.

In many cases, a better solution for the thousand mouseovers, clicks, etc.
is to use a single event handler on a parent element and inspect
event.target in the event handler. That's extremely efficient and nearly as
easy to code.

There's an example here:

http://groups.google.com/group/jquery-en/msg/785b404914c25511

(Click More Options/View Thread to see the original code that used multiple
event handlers.)

-Mike



[jQuery] Re: Canvas based Mocha UI

2007-11-20 Thread Glen Lipka
A quick test shows that the drag/drop and the corner radius and shadow all
work on (at least)
IE6 - XP
IE7 - Vista
Opera 9.24 - XP
Safari 3 beta - XP
FF 2 - Vista

Pretty good.  I didnt think canvas had such good support.

Seems like there are several plugins that could benefit from this.
Block UI,
jQModal
Cluetip
CurvyCorners
etc


Glen


On Nov 20, 2007 1:37 PM, Glen Lipka <[EMAIL PROTECTED]> wrote:

> What browsers does this work on?
> It would be cool to have a curvycorners that used canvas instead of lots
> of divs.  Or shadows that used it.
>
> Glen
>
>
> On Nov 20, 2007 11:31 AM, Guy Fraser < [EMAIL PROTECTED]> wrote:
>
> >  For anyone who hasn't seen it yet, this is pretty awesome:
> >
> > http://ajaxian.com/archives/mocha-ui-mootools-canvas-ui-class
> >
> > Wasn't John working on some canvas stuff? Maybe we'll see a jQuery
> > canvas-based UI?
> >
> > http://ejohn.org/blog/sneak-peek/
> >
> > http://ejohn.org/blog/sneaky-2/
> >
> > Guy
> >
>
>


[jQuery] Re: Canvas based Mocha UI

2007-11-20 Thread Glen Lipka
What browsers does this work on?
It would be cool to have a curvycorners that used canvas instead of lots of
divs.  Or shadows that used it.

Glen

On Nov 20, 2007 11:31 AM, Guy Fraser <[EMAIL PROTECTED]> wrote:

>  For anyone who hasn't seen it yet, this is pretty awesome:
>
> http://ajaxian.com/archives/mocha-ui-mootools-canvas-ui-class
>
> Wasn't John working on some canvas stuff? Maybe we'll see a jQuery
> canvas-based UI?
>
> http://ejohn.org/blog/sneak-peek/
>
> http://ejohn.org/blog/sneaky-2/
>
> Guy
>


[jQuery] Re: Using slideout in a ul

2007-11-20 Thread Glen Lipka
Like this?  I whipped this up a while back.  That directory has lots of
simple examples like that.
http://www.commadot.com/jquery/faq.php

Glen

On Nov 20, 2007 11:37 AM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:

>
> Hi ,
> I want to render a list where each li has a link that when clicked
> reveals content sliding out. When clicked again the content will slide
> back up.
>
> Could someone please help me out. I'm a newy here and initial reads of
> tutorials only show a single caqse example rather than one that has
> uses this effect in the same UL.
>
> Any help would be appreicated.
>


[jQuery] Re: Superfish not working on PHP page

2007-11-20 Thread Jangla

Er, WOW! Talk about going the extra mile - thanks Joel!!!

I'm under pressure to get the site finished but once it's done, I'll
have a look at the changes you've made so I can learn something from
them.

On Nov 17, 7:13 am, "Joel Birch" <[EMAIL PROTECTED]> wrote:
> I had a look at your page and it seems that you just need to adjust
> your widths and padding of all the elements involved. I altered the
> css from within Firebug to what I think is a more robust set of
> values. The resulting css should be more stable across all browsers.
> I've posted the resulting file here for you to look 
> at:http://users.tpg.com.au/j_birch/clinicnine/clinicnine.css
>
> I think you could just use this file instead of your current
> vertical.css file, however, note that I also included a rule to
> override the .main #sidebar1 width and padding to suit the new values
> for the rest of the nav.
>
> Hope this helps.
>
> Joel Birch.


[jQuery] Using slideout in a ul

2007-11-20 Thread [EMAIL PROTECTED]

Hi ,
I want to render a list where each li has a link that when clicked
reveals content sliding out. When clicked again the content will slide
back up.

Could someone please help me out. I'm a newy here and initial reads of
tutorials only show a single caqse example rather than one that has
uses this effect in the same UL.

Any help would be appreicated.


[jQuery] Re: Superfish v1.3.1 - ie third level menu clipping display problem

2007-11-20 Thread Jared

Just wondering why when I post the forum software doesn't seem to
notice it's a *new* post...

On Nov 19, 8:57 pm, Jared <[EMAIL PROTECTED]> wrote:
> Here's another guy, so I guess I'm not alone. Interface andSuperfish
> don't play well together, looksit.
>
> http://groups.google.com/group/jquery-en/browse_thread/thread/e50dc16...
>
> On Nov 19, 3:24 pm,Jared<[EMAIL PROTECTED]> wrote:
>
> > Hi Joel,
>
> > Well, I have found the source of the problem (which isn'tsuperfish
> > per se). If I un-include the jQuery plugin "interface," the entire
> > menu works as it should.
>
> > Here's a link to the problem in action:
>
> >http://web3.unt.edu/riskman/Test/testcases/superfishnav/UNT_RMS-EMP-a...
>
> > If you comment out the script element for interface.js, the problem
> > goes away in IE. The interface plugin is interfering somehow, I just
> > have not figured out how yet...
>
> > Thanks!
> > jd
>
> > On Nov 17, 12:38 am, "Joel Birch" <[EMAIL PROTECTED]> wrote:
>
> > > HiJared,
>
> > > I have not been able to reproduce this problem at all so it's hard to
> > > give any decent advice. The thread you linked to shows that Noobert's
> > > problem was resolved and his issue turned out to be other CSS on the
> > > page interfering with the menu.
>
> > > Quote from that thread:
> > > "Aha! I found the problem. It has nothing to do with your excellent 
> > > plugin.
> > > There was a z-index issue with some of the absolutely positioned elements 
> > > on
> > > the page. My mistake."
>
> > > If this was aSuperfishbug then I would think that the vertical 
> > > example:http://users.tpg.com.au/j_birch/plugins/superfish/vertical-example/
> > > ...would suffer from it as there are four levels of menu there, but it
> > > works perfectly for me in IE6 and IE7. Do you have a link we could
> > > look at so we can investigate further and get to the bottom of the
> > > matter in your case?
>
> > > Joel Birch.


[jQuery] Canvas based Mocha UI

2007-11-20 Thread Guy Fraser
For anyone who hasn't seen it yet, this is pretty awesome:

http://ajaxian.com/archives/mocha-ui-mootools-canvas-ui-class

Wasn't John working on some canvas stuff? Maybe we'll see a jQuery 
canvas-based UI?

http://ejohn.org/blog/sneak-peek/

http://ejohn.org/blog/sneaky-2/

Guy


[jQuery] Re: My jquery-Project

2007-11-20 Thread [EMAIL PROTECTED]

Unfortunately TubeSearch is no plugin - it's more or less a proof of
concept.
I also use a little bit of php programming in my backend so it's
difficult to turn my code into a plugin and my coding is not very
clean.


[jQuery] Re: My jquery-Project

2007-11-20 Thread [EMAIL PROTECTED]

Thanks a lot!

I would like to hear some feedback about my little project! Features
request, critic, etc...



[jQuery] Re: updated Tablefilter Feedback please

2007-11-20 Thread Chris



On Nov 19, 4:37 pm, James Dempster <[EMAIL PROTECTED]> wrote:
> Do you think this plugin needs a default UI? Or shall it remain event
> driven only requiring the end developer to implement there own UI?
> Does some one have any thoughts or comments on the subject?

As someone who needs a more dynamic user-driven UI (many columns, so a
field controlling a column should only appear when they ask for it),
I'd suggest functionality to make it easy to connect UI elements to
the tablefilter, e.g.,

   $('#targetTable').tablefilter(...)
 .addFilterField('#txtFilter_targetTable')
 .addFilterField('#txtFilter_targetTableGender', 2)
 .addFilterField('#txtFilter_targetTableEnglish', 3)

could set up your demo. (It seems like you can avoid that repeated
code your demo has there using closures internally.)

I'm not sure what the common jQuery API convention is for a function
that "gets the tablefilter attached to table X" but if it was
$.tablefilter(id) then my dynamic UI JS code could create a form field
on the fly and do

  $.tablefilter('#targetTable').addFilterField('new-field-id', col#)

etc


[jQuery] Re: tinyMCE jquery equivalent

2007-11-20 Thread Sam Sherlock
I have downloaded the latest tinyMCE 3

and noticed this in the changelog

Version 3.0a3 (2007-11-13)
> Added new experimental jQuery and Prototype framework adapters to the
> development package.



but I could not find any info about it (did'nt have the time to look that
hard)

Is this what your referring to, Charles?


On 20/11/2007, polyrhythmic <[EMAIL PROTECTED]> wrote:
>
>
> From looking at the TinyMCE 3 source, I believe we could replace the
> entirety of their core functions with jQuery, and the total jQuery +
> TinyMCE package would be smaller than the current TinyMCE release!  I
> discussed this briefly on Ajaxian when ver 3 was released, but haven't
> had the time to follow up.  Anyone interested in the conversion?
>
> Charles
>
>
> On Nov 19, 7:16 am, Cloudream <[EMAIL PROTECTED]> wrote:
> > http://www.wymeditor.org/en/
> >
> > On Nov 19, 10:46 pm, FrankTudor <[EMAIL PROTECTED]> wrote:
> >
> > > Hi all I am looking for a tinyMCE jquery equivalent (if one exists)...
> >
> > > Thanks,
> > > Frank
>


[jQuery] Re: A few jQuery Patterns

2007-11-20 Thread polyrhythmic

I answered much of this with examples on the other thread.  FYI, there
is a delay before your post is visible, this list is lightly
moderated, so no need to double post, just wait :-).

Welcome to jQuery!

Charles

On Nov 20, 9:59 am, rolfsf <[EMAIL PROTECTED]> wrote:
> If you get a solution to your "Dynamo Check'em", I'd love to hear it. We'll
> be looking at a similar challenge in the new year.
>
>
>
> TunaSandwich wrote:
>
> > Dynamo-Check'em:
> > I have a list of a lot of check boxes so what I'd like to do is have a
> > text box at the top of the list. When the user types in the text box,
> > then the list of check boxes is refined by what the user types (based
> > on the name of the check boxes stored in a database). The user can
> > check the boxes. Once checked they always remain in the list
> > regardless of whether or not they meet the criteria. To make them
> > disappear, the user has to uncheck them. The reason they stay visible
> > once checked is so that the user can see which ones are checked
> > regardless of what's in the text box. For this control, the timer
> > pattern in the Dynamo-List above isn't as important because the number
> > of check boxes will not be very large. Perhaps a thousand at the outer
> > limit. The boxes the user has checked off should always be reflected
> > in the database.
>
> --
> View this message in 
> context:http://www.nabble.com/A-few-jQuery-Patterns-tf4843538s27240.html#a138...
> Sent from the jQuery General Discussion mailing list archive at Nabble.com.


[jQuery] Re: Selector Not Working in IE7?

2007-11-20 Thread Rob Wilkerson


On Nov 16, 1:33 pm, Rob Wilkerson <[EMAIL PROTECTED]> wrote:
> I'm trying to "manually" interact with the multifile plugin and, as
> part of that endeavor, I need to systemically access the anchor tag
> that provides "Delete" functionality.  The following works great in FF
> (of course):
>
> $('a[href^="#multimulti_"]')
>
> The objects are returned as expected and alert ( $
> ('a[href^="#multimulti_"]').length ) returns the expected number of
> elements.  In IE7, though, the former value is undefined and the
> latter is 0.  Anyone have any idea why this might be happening?

For anyone who may be interested and searching, I finally tracked this
down thanks to the most excellent DebugBar (http://
www.debugbar.com/).

Seems that IE, in its infinite wisdom, thinks that the hrefs created
by the multifile upload code aren't good enough and prepends the rest
of the page URI to them at runtime. The href coded "Delete", rendered in IE, is transformed into
"http://www.mydomain.com/survey#multimulti_0";>Delete".

As a result, the attribute-begins-with selector ([attribute^=value])
doesn't work. I replaced it with the attribute-contains selector
([attribute*=value]) so that the code will work in both IE & Firefox.


[jQuery] Re: HELP: Debugging Issue

2007-11-20 Thread Josh Nathanson



no you should NOT use inline code, never again, even if you're playing
your life !
'Script taking to long' is usually a bad code design: infinite loop or
something like that.


Sorry Nicolas, that is not true - try to do 1000 mouseover binds or so on a 
page and see how it goes for you.  jQuery is fantastic but in some (very 
few) situations it is not quite fast enough.


Obviously this is a "last resort" method but in a few cases it is necessary.

-- Josh



- Original Message - 
From: "STuFF" <[EMAIL PROTECTED]>

To: "jQuery (English)" 
Sent: Tuesday, November 20, 2007 4:19 AM
Subject: [jQuery] Re: HELP: Debugging Issue




no you should NOT use inline code, never again, even if you're playing
your life !
'Script taking to long' is usually a bad code design: infinite loop or
something like that.

nicolas challeil


On Nov 19, 6:24 pm, "Josh Nathanson" <[EMAIL PROTECTED]> wrote:
A "script taking too long" error generally means that you are trying to 
bind event handlers to too many elements, or just overloading the 
capability of jquery in some way.  You may want to look at going "old 
school" and putting events inline in your html markup:


onmouseout="anotherfunction">


-- Josh

  - Original Message -
  From: [EMAIL PROTECTED]
  To: jquery-en@googlegroups.com
  Sent: Sunday, November 18, 2007 9:07 PM
  Subject: [jQuery] HELP: Debugging Issue

  On one page, Firefox throws the "a script is taking too long" message.

  On clicking 'Debug Script', it points to the following line of jQuery:

  first.push(second[i]);

  Which is in...

  merge: function(first, second)
  {
   }

  Assuming that there aren't any problems with jQuery, how can i find out 
which code is throwing this error?


  Thanks

  Fahed 




[jQuery] Re: Autosuggest

2007-11-20 Thread Jean

I noted the speed for ie6 is very slow, but for FF is very good =p

On Nov 20, 2007 7:37 AM, Gordon <[EMAIL PROTECTED]> wrote:
>
> $(document).ready (function ()
> {
> var searchBox   = $(' id="addrSearch" />');
> var addrList= $('#storedAddresses li');
> var matchErr= $('No matches found');
> var addrStrings = [];
>
> // Cache the contents of each list item
> addrList.each (function ()
> {
> addrStrings.push ($(this).text ().toLowerCase ());
> });
>
> //console.log (addrStrings);
>
> $('#storedAddresses').append (matchErr);
> matchErr.hide ();
> $('#scroller').before (searchBox);
> searchBox.keyup (function ()
> {
> // Convert input value to lower case, strip non-alphanumeric
> characters, strip multiple white space and split into an array of
> search terms
> var searches = this.value.toLowerCase ().replace (/[^a-z0-9 
> ]/g, '
> ').replace (/\s+/g, ' ').split (' ');
> // Match elements against the supplied list of search words
> var elemsToShow = addrList.filter (function (index)
> {
> for (var thisSearch = 0; thisSearch < 
> searches.length; thisSearch+
> +)
> {
> if (addrStrings [index].match (searches 
> [thisSearch]) === null)
> {
> return (false);
> }
> }
> return (true);
> });
> // Show matches, hide non-matches
> var elemsToHide = addrList.not (elemsToShow);
> elemsToHide.hide ();
> elemsToShow.show ();
> // If the search resulted in 0 matches then display an error 
> message
> elemsToShow.length > 0? matchErr.hide () : matchErr.show ();
> });
> });
>
> #storedAddresses is a HTML list of stored delivery addresses.
>
> #scroller is of no significance to the script and is simply a point in
> the DOM into which the search text box can be inserted.
>
> I was worried about speed, as the main loop does quite a lot of work,
> but it seems to remain responsive even with around 150 addresses in
> the address list.  It also provides the behaviour I want, all the
> typed words have to be in the address for a match, but the order of
> the words in the search box is unimportant.
>
>
> On Nov 19, 9:54 pm, Gordon <[EMAIL PROTECTED]> wrote:
> > Thanks for the suggestion, but it came too late.  I've now already
> > written something that seems to work pretty well.  Will post source
> > later for comments and in the hopes someone else will find it useful.
> >
> > On Nov 19, 6:49 pm, Sean O <[EMAIL PROTECTED]> wrote:
> >
> > > Gordon,
> >
> > > I think the quickSearch plugin:http://rikrikrik.com/jquery/quicksearch/
> >
> > > will help you.
> >
> > > SEAN O
> > > __www.sean=o.com
> >
> > > Gordon-35 wrote:
> >
> > > >http://www.vulgarisoip.com/2007/06/29/jquerysuggest-an-alternative-jq...
> > > > demonstrates a plugin that's really close to what I want, it will pick
> > > > up on elements where the word entered isn't the first word in the
> > > > strings being searched.  Unfortunately, it still requires all the
> > > > words to be in the order they appear in the strings and doesn't seem
> > > > to match when words are ommited.  Try "eastern", "warbler" and
> > > > "eastern warbler" to see what I mean.  If this plugin matched on
> > > > "eastern warbler" or even on "warbler eastern" it would be pretty much
> > > > just what I needed functionality wise.  Additionally it doesn't need
> > > > any ajax support as the UL with all the addresses in it is already on
> > > > the page.  I just need to process that list, and use it as the basis
> > > > of the autocomplete.
> >
> > > > On Nov 19, 10:16 am, Gordon <[EMAIL PROTECTED]> wrote:
> > > >> I currently have a brief to develop a system to help people find
> > > >> addresses in a list loaded into a web page.  At the moment they're
> > > >> displayed as a single long list (a ul), and the oser clicks the one he
> > > >> wants to use.  The problem is that in some cases this list can run to
> > > >> hundreds of entries.
> >
> > > >> The first plan was to simply have a button to click on the page that
> > > >> invokes the browser's ctrl-f behaviour, but there doesn't seem to be a
> > > >> sensible cross-browser way to do it.
> >
> > > >> My second idea was to use jQuery and one of the autocomplete plugins,
> > > >> convert the list into the data the autocomplete plugin needs to
> > > >> operate on and suggest addresses as users type into the field.  This
> > > >> seemed a better approach but then I hit a problem that the
> > > >> autocomplete plugins that I've found so far all seem to search on
> 

[jQuery] Re: Tab plugin always first tab after reload

2007-11-20 Thread Klaus Hartl

On Nov 20, 1:13 pm, gizze <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I installed the Tab Plugin in my page and I got a question:
>
> Once I'm in the second tab and my page get reloaded, I always return
> to the first tab.
> Is it possible to stay in the second tab after a page reload?
>
> Can someone give me an example ?
>
> Thank you

You can use the cookie option to capture and start on the next load
with the last clicked tab. Simple example:

$('#example').tabs({ cookie: { expires: 30 } });

For more information on cookie options see documentation:
http://docs.jquery.com/UI/Tabs/tabs#toptions. Requires cookie plugin:
http://jqueryjs.googlecode.com/svn/trunk/plugins/cookie/


--Klaus


[jQuery] Re: tinyMCE jquery equivalent

2007-11-20 Thread polyrhythmic

>From looking at the TinyMCE 3 source, I believe we could replace the
entirety of their core functions with jQuery, and the total jQuery +
TinyMCE package would be smaller than the current TinyMCE release!  I
discussed this briefly on Ajaxian when ver 3 was released, but haven't
had the time to follow up.  Anyone interested in the conversion?

Charles


On Nov 19, 7:16 am, Cloudream <[EMAIL PROTECTED]> wrote:
> http://www.wymeditor.org/en/
>
> On Nov 19, 10:46 pm, FrankTudor <[EMAIL PROTECTED]> wrote:
>
> > Hi all I am looking for a tinyMCE jquery equivalent (if one exists)...
>
> > Thanks,
> > Frank


[jQuery] Re: Starter

2007-11-20 Thread Glen Lipka
You need to wrap your script in a ready block.

$(document).ready(function(){
//your stuff here
});

The reason is that the  links dont exist yet when your run your script.
Browsers run scripts the second they see them and dont wait for the rest of
the page to load.  The ready block makes the script wait until the page
shows up before running.

Other helpful things:
*Where to start:* http://docs.jquery.com/Main_Page
*Plugins:* http://jquery.com/plugins/
*Tutorial Blog: *
http://www.learningjQuery.com(also a
book)
*Some basic samples:* http://www.commadot.com/jquery

Glen


On Nov 20, 2007 9:25 AM, iPhenom <[EMAIL PROTECTED]> wrote:

>
> Respected Seniors
>
> i just came across jQuery on my way searching for something else n
> decided to learn coding with jQuery.
> Here is my very first piece of code with jQuery but I cant get it to
> work:
>
> 
> 
>
> tut1
> 
> 
> $("a").click(function(){
>   $(this).hide("slow");
>   return false;
>  });
>
> 
> 
>
> 
> Click http://www.yahoo.com";>here
> 
> 
>
> the jquery.js file is in same folder as this html file. there is no
> other file in the folder. I m using IE7.
> Please Help. waiting to get started.
>
> Regards
> iPhenom
>


[jQuery] Re: SITE SUBMISSION: iFilm.com

2007-11-20 Thread polyrhythmic

Wow.  This bandwagon must be huge, maybe we should start running on
biodiesel.  Think of the children! ;-)  Seriously though, I look
forward to jQuery being around for a long time.

Charles

On Nov 19, 7:03 am, Rey Bango <[EMAIL PROTECTED]> wrote:
> Another high-profile jQuery site:
>
> iFilm.com/Spike Digital Entertainment - Leading online video network,
> serving user-uploaded and professional content to over ten million
> viewers monthly.
>
> Rey...


[jQuery] Re: starter

2007-11-20 Thread Josh Nathanson


You have to have the ready call wrapped around your function:

$(document).ready(function() {
// your script here
});

-- Josh

- Original Message - 
From: "iPhenom" <[EMAIL PROTECTED]>

To: "jQuery (English)" 
Sent: Tuesday, November 20, 2007 9:17 AM
Subject: [jQuery] starter




respected seniors
i found out jquery on my way to something else and realised how great
it is n decided to start learning it.

i have just written my very first code with jQuery but it doesnt seem
to work:




tut1


$("a").click(function(){
  $(this).hide("slow");
  return false;
});abc





Click http://www.yahoo.com";>here



jquery.js is in the same folder as this file. There is no other file
in the folder. I am using IE7.
Please Help. I cant wait to get started...

Regards
iPhenom


[jQuery] Re: New Plugin: jQuery Fx Queues

2007-11-20 Thread polyrhythmic

Very useful.  I thought that jQuery already had the ability to queue
fx and process arrays of fx similar to your 'scope', however.  What is
the difference between your FX Queues and the core queue method?

Thanks,

Charles

On Nov 19, 5:30 pm, bigethan <[EMAIL PROTECTED]> wrote:
> > Any comments, bugs, enhancements, ideas, whatever are more
> > than welcomed :).
>
> Sweet stuff.  Though in my rabid clicking, I found a glitch.
>
> Using: Mac Safari 3  and FF 2
>
> Page:http://www.decodeuri.com/fxqueues/fxqueues.html
>
> If I press 'Stop' after the '7' has moved, but in the 2 second wait
> for '8', the '8' still slides over.  And occasionally the '8' will
> slide out a bit after the animation has begun (eg: around the same
> time as the '3' or '4' fires).
>
> -Ethan


[jQuery] Re: jQuery Bandwagon! Wohoo!

2007-11-20 Thread polyrhythmic

Hello Darcy,

Good news! All your tasks are easily accomplishable with jQuery!

> Type n' List

Check out the plugin list for the autocomplete plugins, such as the
popular Jorn's Autocomplete Plugin:
http://bassistance.de/jquery-plugins/

> Dynamo-List:

Use jQuery core functions:
Call the AJAX function to check for a list update, and if changed, add
new item and remove old one:
$.ajax({
   type: "POST",
   url: "some.php",
   data: "name=John&location=Boston",
   ifModified: true,
   success: function(li_data){
   $('#linklistdiv').prepend(''+li_data+'')
   .find(':first-child').show().parent().find(':last-
child').hide(500).remove();
   }
 });


> Dynamo-Check'em:
There is a long list of Form plugins in the Plugin DB:
http://jquery.com/plugins/project/Plugins/category/20

> Expando-Show:
Too many ways to answer this one. Off the top of my head:
(Loads description from PHP backend based on ANCHOR tag's REL
attribute)
$('a.list').click( function() {
   $('div.description').load('descriptioner.php?' + $
(this).attr('rel');
});

> Scroll'm-Rollem:
A combination of plugins.  Similar to your 'Dynamo-List' with
scrolling and timers, probably pretty easy.

The best place to start might be with http://learningjquery.com, once
you have a good grasp of jQuery these answers will come easily to you.

HTH

Charles
doublerebel.com

On Nov 19, 5:41 am, TunaSandwich <[EMAIL PROTECTED]> wrote:
> Hello Everyone,
>
> I just hopped on and I'm working on the following functionality so if
> there are any examples or tutorials that do anything like this I'd
> love to hear about them. I realize I will eventually figure all this
> out but if anyone knows of any working models, examples that are close
> to what I want or a list of what methods to study would be greatly
> appreciated because it would speed things up. (And that's what we're
> all here for right? �� )
>
> Type 'n List:
> I would like to type into a box. A list of links would appear just
> below the box that will have been retreived from the database using
> AJAX. Ideally there would be a timer. The user starts typing and as
> soon as they stop typing for say 900ms, then the links would be
> retrieved from the database. If the user starts typing again, then
> again the box isn't refreshed till they stop typing for 900ms. I have
> done this often with Visual Basic or FoxPro and the trick there was to
> have a timer that you reset whenever the user types. The logic for the
> database refresh is in the timer event so it doesn't fire unless the
> timer fires. I did this once in plain JavaScript and I used the
> clearTimeout and setTimeout functions.
>
> Dynamo-List:
> A list of links is inserted in a DIV. The list is refresed by the
> server every few seconds. When new items appear, they are inserted
> rather than having the whole list refresh. I have seen the hide(500)
> method and it would be nice is items appeared and disappeared in the
> list using a similar effect.
>
> Dynamo-Check'em:
> I have a list of a lot of check boxes so what I'd like to do is have a
> text box at the top of the list. When the user types in the text box,
> then the list of check boxes is refined by what the user types (based
> on the name of the check boxes stored in a database). The user can
> check the boxes. Once checked they always remain in the list
> regardless of weather or not they meet they criteria. To make them
> disappear, the user has to uncheck them. The reason they stay visible
> once checked is so that the user can see which ones are checked
> regardless of what's in the text box. For this control, the timer
> pattern in the Dynamo-List above isn't as important because the number
> of check boxes will not be very lart. Perhaps a thousand at the outer
> limit. The boxes the user has checked off should always be reflected
> in the database.
>
> Expando-Show:
> In a given list of items (anchor tags), I'd like to be able to hide
> and show the description and other fields that go with each item. This
> needs to be done two ways. One where the data is just hidden and shown
> and the other where it is disposed of and loaded from the database as
> required in real time.
>
> Scroll'm-Rollem:
> Given say 100 items in a database, I'd like to show about 5 of them.
> Every few seconds, I'd like to hide the bottom one and thin insert a
> new one at the top. So it's like a scrolling list that runs on a
> timer. When a user is hovering an item, we don't want to make it
> disappear. I would like scroll-up and scroll-down links as well so
> that the user can manually sroll the list.
>
> I'm using PHP and MySQL (I realize it doesn't matter what's at the
> back end as long as the back end returns the same results). Obviously
> I can learn faster from any examples that use PHP but I'll take
> anything. ��
>
> Thanks again! Also, if there's anyone here floating around Ottawa that
> would like to join my support groups for programmers and business
> people, don't hesitate to contact me!

[jQuery] Re: Cycle and Ajax give problems

2007-11-20 Thread Mike Alsup

Try it like this:

$("#fade").load("pictures.php", function() {
$(this).cycle();
});

This will kick off Cycle *after* your slides have been added to the
DOM.  But note that if the slides are images then they are not
necessarily downloaded and available yet.  To deal with that it works
well to have a couple images statically declared and then add the rest
dynamically.

Mike


On Nov 20, 2007 11:30 AM, EvilMotter <[EMAIL PROTECTED]> wrote:
>
> The Cycle plugin for jQuery http://www.malsup.com/jquery/cycle/ , wont
> work if i load the images to be "cycled" with ajax.
>
> This works as the pictures are staticly on the page, like on the cycle
> webpage:
> $(function()
> {
> // run the code in the markup!
> $("#fade").cycle();
> }
> );
> #fade:
> 
> 
> 
> 
>
> But if i want to load the pictures from a file using some basic Ajax
> it doesn't do anything than displaying the first picture, a closer
> look in FireBug, shows that the pictures have been loaded correctly
> into the page.
> $(function()
> {
> $("#fade2").load("pictures.php");
> // run the code in the markup!
> $("#fade").cycle();
> }
> );
>
> #fade:
> 
> 
> pictures.php:
> 
> 
>
> Am I doing something completely wrong or is this just a no go ?
>
> .EvilMotter
>


[jQuery] Duplicate row in a table + Masked Input Plugin for jQuery v1.1.1

2007-11-20 Thread Milko

Hello everyone

I am a html page like this




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

$("#btnAdd").click(function(){
addRow();
});

$("#dbirthdate").mask("99/99/");
})

function addRow()
{
var clonedRow = $("#gridBody tr:last").clone(true);
$("#gridBody").append(clonedRow);
}






Nombre
Fecha de nacimiento
Parentesco














Note that i have this code $("#dbirthdate").mask("99/99/");

I am using the plugins  Masked Input Plugin for jQuery
v1.1.1(www.digitalbush.com) for validate data enter.

The first input work fine, it show the mask but when I am duplicating
the row with the option clone(true), the news
date input don't have the mask

Any idea?

Thanks


[jQuery] clueTip: activate from event in other element?

2007-11-20 Thread mtanu

Forgive me if this is a dupe, but I did try searching through the
clueTip threads.

I have a page with an image and table of data. I've overlayed small
divs with a marker image that represent the objects that are detailed
in the table. When the user hovers over a link on a row in the table,
I want to be able to activate the clueTiped anchor in the related
overlay div. Is there a way to do this?

Thanks much,
- mars -


[jQuery] Rounded corners-canvas and ie6

2007-11-20 Thread caruso_g

Hi guys,
I implemented a rounded-corner-canvas into this project. I used it
since its support to borders and a good anti-alias effect.
But on IE6 I am having a strange issues I don't know how to solve:
right and bottom right to the parent node of the rounded divs,
canvases are not positioned to the 0/0 px coordinates but a pixel
before, showing the border/background of the div beneath.
Any idea?

You can find the page at this address: 
http://www.bonsai-studio.net/live_preview/miniblog3/
While you can find a screenshot of the bug (?) here:
http://www.bonsai-studio.net/images/corners-issue.png

Eventually, which plugin to round borders without images can I use
which supports borders?

Thanks in advace to anyone.


[jQuery] Cycle and Ajax give problems

2007-11-20 Thread EvilMotter

The Cycle plugin for jQuery http://www.malsup.com/jquery/cycle/ , wont
work if i load the images to be "cycled" with ajax.

This works as the pictures are staticly on the page, like on the cycle
webpage:
$(function()
{
// run the code in the markup!
$("#fade").cycle();
}
);
#fade:





But if i want to load the pictures from a file using some basic Ajax
it doesn't do anything than displaying the first picture, a closer
look in FireBug, shows that the pictures have been loaded correctly
into the page.
$(function()
{
$("#fade2").load("pictures.php");
// run the code in the markup!
$("#fade").cycle();
}
);

#fade:


pictures.php:



Am I doing something completely wrong or is this just a no go ?

.EvilMotter


[jQuery] Re: My jquery-Project

2007-11-20 Thread Saidur

Hi,
This is a very cool project. Well is tube search is a plugin? Is it
open source or can i get your code.  I want to do same application for
my project. So if you give help me then i will use the jquery plugin .

Thanks
Saidur Rahman
Web application developer
Right Brain Solution Limited

On Nov 19, 2:56 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
wrote:
> Hello everybody,
>
> first of all a big thank you to everybody who contributes to this
> mailinglist - it's a lot of help just to read through the comments!
>
> Now I want to present my project which makes massiv usage of the
> brillant jquery-library!
>
> It's called TUBESEARCH and you can find it 
> here:http://www.checker-forum.de/wbblite/tubesearch.php
>
> Plugins in use are jquery.corner and jquery.modal!
>
> What do you think about my project? Any improvements to make?


[jQuery] Storing last clicked to check against in future function calls.

2007-11-20 Thread [EMAIL PROTECTED]

Hello everyone,

Just started working with jQuery in the past few weeks, fairly
impressed thus far. :)

I've got a questions which actually might touch base more on a general
JS question but figured might as well ask it.

What I'm trying to do:


// What got clicked first? (capture)
// What was clicked Second? (capture)
// Was the second click the same as the first?
   // Hide child ul
   // else
   // Hide child ul + open new child from second parent

I guess my key stumbling block is storing the last clicked element
into memory to check agaist during the next function call.

I've this so far:
var $whatClicked = ($(this).get());

Any help is greatly appreciated.

Cheers,
David


[jQuery] Replace the horizontal scroll bars!!!??

2007-11-20 Thread tazzolo

Hi, I'm looking for a script in jquery to "Replace the vertical scroll
bars".
I found "jScrollPane.js" but is only for vertical scrollbar.

I'd like to replace horizontal scroll bar with my images.
Is it possible? Anybody have an idea?

Thanks a lot .

Fabio


[jQuery] Best way to detect collision or... how to select by element position

2007-11-20 Thread [EMAIL PROTECTED]

I have an application I'm trying to develop that has an interface much
like a windows desktop, in which a user can drag icons to any position
on the container, and the icons will stay there. Right now a user
could stack icons by dragging one onto another one, but I don't want
them to be able to do that: users should only be able to drag icons to
places that don't collide with other icons.

I thought that maybe I could try to select an element in the given
position in a draggable callback function, and see if any elems were
selected, but I know box collision is a solved problem, and I
basically just want my box being dragged to only move if no collision
has taken place.

What's the best way to do that?


[jQuery] Re: using jcarousel as image viewer - how to load large image onclick with loading animation

2007-11-20 Thread maddog

Did you find a solution? I would need a click-event on the jcarousel-
images - so it's nearly the same problem...
Thanks for any advice...

Michael

On 6 Okt., 06:39, aussiebob <[EMAIL PROTECTED]> wrote:
> I'm trying to use the excellentjcarouselplugin to create an image
> viewer/slideshow for a friends site
>
> I am a real newbie & my first post so go easy on me :)
>
> Can someone point me in the right direction how to load an image on
> demand with some sort of callback so a loading image can be displayed
> and the image fade in when ready.
>
> Currently I'm preloading all images which is so-so but definitely not
> ideal and the fade doesn't work correctly if an image is not loaded
>
> Is this heading in the right direction?
>
> $(".jcarousel-item").click( function() {
> s =$(this).children("a").attr("href");
> a =$(this).children("a").attr("title");
>
> // switch
> $("#large").fadeout();
> $("#loader").show();
>
> //load and get some sort of return when loaded
> // to turn off loading and fade in image
>
> // psuedocode
> loaded = function(){
>   return $("#large").bind('load', function() {
> if(s) this.src = s;
> }).trigger('load');
>
> }
>
> // psuedocode
> if(loaded) {
> $("#large").attr({ alt: a});
> $("#loader").hide();
> $("#large").fadeIn("slow");
>
> }
> });
>
> I'm trying to achieve:
> a. When the user clicks on the thumbnail it gets the link href & title
> and uses them to set the src & alt tag on the main image. (DONE)
> b. Next image should fadein without flashing the same image (DONE not
> very well)
> currently using $("#large").hide().attr({ src: s, alt:
> a}).fadeIn("slow"); // this only works if the image has totally loaded
> otherwise the old image fades in then it switches
> c. Preload the first x number of main images to match the initially
> displayed thumbs with the remainder loading on demand and showing a
> loading animation (NOT DONE)
>
> Thanks very much for any and all help
> Brad


[jQuery] Mixing two effects

2007-11-20 Thread Pathos

Hello everybody,

after hearing about JQuery i am now plungin in and i really like the
possibilities of jquery.

I'm trying to get the next result and i'm not sure if its possible. I
want a div to go down with an image and go up after x seconds and go
down with a new image. I tried animated.innerfade and getting a div go
up and down with:


jQuery.noConflict();
jQuery(document).ready(function(){
jQuery(".klikdiv").toggle(function(){
jQuery("#downdiv").slideDown("slow");
},function(){
jQuery("#downdiv").slideUp("slow");
});
});


But somehow these two didn't work together. I know that then the div
only would slide when a link was clicked, but i wanted to try to get
that effect out later.

My question is if this is possible and maybe someone knows a better
way of doing it or a plugin with this effect. Its an effect you see in
Flash, but of course using jquery would be so much better :-)

Greetings,
Joris


[jQuery] Accordion Bug?

2007-11-20 Thread Jason Cartwright
Hi all,

I think I've found a bug with the accordion [1] component.
$().activate(false) [2] doesn't seem to remove the "selectedClass" class
from the header of the selected element, as I'd expect it to. I've made a
simple test case over here...

http://jason.m.cartwright.googlepages.com/accordionbug.html

Could someone confirm this is a bug pls?

Cheers,
Jason

[1] http://docs.jquery.com/UI/Accordion
[2] http://docs.jquery.com/UI/Accordion/activate

-- 
Jason Cartwright
Web Specialist, EMEA Marketing
[EMAIL PROTECTED]
+44(0)2070313161


[jQuery] Cloning Question

2007-11-20 Thread [EMAIL PROTECTED]

When I clone, it causes my page to reset at the top of the page as if
the anchor is reset. I have a form that adds schools, highschool and
work places to a form and when the user "adds" a new school and the
clone works but for some reason take you to the top of the page. Any
ideas for a fix would be greatly appreciated.


[jQuery] Re: New Plugin: jQuery Fx Queues

2007-11-20 Thread Luciano G. Panaro

Regarding the 7-8 issue, I've just noticed that. I'll be fixing it
today I guess =)
But the 8 moving when 3 or 4 is a bit odd, since the "animate" for
that element is not launched yet (well, at least it shouldn't be
launched =P).

Thanks Ethan!

On Nov 19, 10:30 pm, bigethan <[EMAIL PROTECTED]> wrote:
> > Any comments, bugs, enhancements, ideas, whatever are more
> > than welcomed :).
>
> Sweet stuff.  Though in my rabid clicking, I found a glitch.
>
> Using: Mac Safari 3  and FF 2
>
> Page:http://www.decodeuri.com/fxqueues/fxqueues.html
>
> If I press 'Stop' after the '7' has moved, but in the 2 second wait
> for '8', the '8' still slides over.  And occasionally the '8' will
> slide out a bit after the animation has begun (eg: around the same
> time as the '3' or '4' fires).
>
> -Ethan


[jQuery] Re: thickbox IE7 position

2007-11-20 Thread yusuke

Here, the third bump.


[jQuery] Re: new plugin: jClocke

2007-11-20 Thread Guy Fraser
dbzz wrote:
> i have been working on a plugin and have gotten to the point where i
> think i need some feedback. i'm sure there are bugs and code that
> could be better or is just bad practice. i haven't done any docs or
> extensive demos - this is just sort of a proof of concept. so have a
> look and feel welcome to reply.
>
> http://briskey.com/jClocke
>   
That's pretty awesome! With regards to using it as a method to select a 
time, it would be useful if there were also HH:MM:SS (AM/PM) text boxes 
somehow integrated so I can just type in the time if desired.

Guy


[jQuery] Re: TableCloth

2007-11-20 Thread Web Specialist
This link works fine:

http://p.sohei.org/jquery-plugins/



2007/11/19, shapper <[EMAIL PROTECTED]>:
>
>
> Hello,
>
> I have found a really good script for row and column hightlight, maybe
> the best one I saw until now:
> http://cssglobe.com/lab/tablecloth/
>
> Is there something as good as this using JQuery?
>
> And is there any advantage of making this code using JQuery?
>
> Thanks,
> Miguel
>
>


[jQuery] Re: TableCloth

2007-11-20 Thread Web Specialist
403 Forbidden
You don't have permission to access /stuff/jquery/tablehover/ on this
server.

2007/11/20, Cloudream <[EMAIL PROTECTED]>:
>
>
> http://p.sohei.org/stuff/jquery/tablehover/
>
> On Nov 20, 7:18 am, shapper <[EMAIL PROTECTED]> wrote:
> > Hello,
> >
> > I have found a really good script for row and column hightlight, maybe
> > the best one I saw until now:http://cssglobe.com/lab/tablecloth/
> >
> > Is there something as good as this using JQuery?
> >
> > And is there any advantage of making this code using JQuery?
> >
> > Thanks,
> > Miguel
>


[jQuery] Re: new plugin: jClocke

2007-11-20 Thread Jean

REALLY COOL, but how i can change the minutes?


On Nov 20, 2007 12:40 AM, dbzz <[EMAIL PROTECTED]> wrote:
>
> i have been working on a plugin and have gotten to the point where i
> think i need some feedback. i'm sure there are bugs and code that
> could be better or is just bad practice. i haven't done any docs or
> extensive demos - this is just sort of a proof of concept. so have a
> look and feel welcome to reply.
>
> http://briskey.com/jClocke
>
> cheers,
> db
>



-- 

[]´s Jean
www.suissa.info

   Ethereal Agency
www.etherealagency.com


[jQuery] Re: A few jQuery Patterns

2007-11-20 Thread rolfsf


If you get a solution to your "Dynamo Check'em", I'd love to hear it. We'll
be looking at a similar challenge in the new year.


TunaSandwich wrote:
> 
> 
> 
> Dynamo-Check'em:
> I have a list of a lot of check boxes so what I'd like to do is have a
> text box at the top of the list. When the user types in the text box,
> then the list of check boxes is refined by what the user types (based
> on the name of the check boxes stored in a database). The user can
> check the boxes. Once checked they always remain in the list
> regardless of whether or not they meet the criteria. To make them
> disappear, the user has to uncheck them. The reason they stay visible
> once checked is so that the user can see which ones are checked
> regardless of what's in the text box. For this control, the timer
> pattern in the Dynamo-List above isn't as important because the number
> of check boxes will not be very large. Perhaps a thousand at the outer
> limit. The boxes the user has checked off should always be reflected
> in the database.
> 

-- 
View this message in context: 
http://www.nabble.com/A-few-jQuery-Patterns-tf4843538s27240.html#a13862213
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



[jQuery] Re: fValidate breaks jQuery

2007-11-20 Thread Jörn Zaefferer


Gordon schrieb:

I could really use some help with this so if you've run into this
problem then please let me know what workarounds exist
  
I can offer help migrating to my validation plugin if you give me some 
information on how you use fValidate. It works quite well together with 
(at least jQuery based) autocompleters.


Jörn


[jQuery] Re: A few jQuery Patterns

2007-11-20 Thread Glen Lipka
I truly want to help in a detailed way, but you asked too many questions. :)

*Where to start:* http://docs.jquery.com/Main_Page
*Plugins:* http://jquery.com/plugins/
*Tutorial Blog: *http://www.learningjQuery.com (also a book)
*Some basic samples:* http://www.commadot.com/jquery

Take a few moments to peruse those pages and you will find it answers most
of your questions.

Glen

PS.  The first one sounds like the autocomple plugin.
http://bassistance.de/jquery-plugins/jquery-plugin-autocomplete/

On Nov 20, 2007 3:50 AM, TunaSandwich <[EMAIL PROTECTED]> wrote:

>
>
> Hello Everyone,
>
> I just hopped on the jQuery bandwagon and I'm working on the following
> functionality so if there are any examples or tutorials that do
> anything like this I'd love to hear about them. I realize I will
> eventually figure all this out but if anyone knows of any working
> models, examples that are close to what I want or a list of what
> methods to study would be greatly appreciated because it would speed
> things up. (And that's what we're all here for right? �� )
>
> Type 'n List:
> I would like to type into a box. A list of links would appear just
> below the box that will have been retrieved from the database using
> AJAX. Ideally there would be a timer. The user starts typing and as
> soon as they stop typing for say 900ms, then the links would be
> retrieved from the database. If the user starts typing again, then
> again the box isn't refreshed till they stop typing for 900ms. I have
> done this often with Visual Basic or FoxPro and the trick there was to
> have a timer that you reset whenever the user types. The logic for the
> database refresh is in the timer event so it doesn't fire unless the
> timer fires. I did this once in plain JavaScript and I used the
> clearTimeout and setTimeout functions.
>
> Dynamo-List:
> A list of links is inserted in a DIV. The list is refreshed by the
> server every few seconds. When new items appear, they are inserted
> rather than having the whole list refresh. I have seen the hide(500)
> method and it would be nice is items appeared and disappeared in the
> list using a similar effect.
>
> Dynamo-Check'em:
> I have a list of a lot of check boxes so what I'd like to do is have a
> text box at the top of the list. When the user types in the text box,
> then the list of check boxes is refined by what the user types (based
> on the name of the check boxes stored in a database). The user can
> check the boxes. Once checked they always remain in the list
> regardless of whether or not they meet the criteria. To make them
> disappear, the user has to uncheck them. The reason they stay visible
> once checked is so that the user can see which ones are checked
> regardless of what's in the text box. For this control, the timer
> pattern in the Dynamo-List above isn't as important because the number
> of check boxes will not be very large. Perhaps a thousand at the outer
> limit. The boxes the user has checked off should always be reflected
> in the database.
>
> Expando-Show:
> In a given list of items (anchor tags), I'd like to be able to hide
> and show the description and other fields that go with each item. This
> needs to be done two ways. One where the data is just hidden and shown
> and the other where it is disposed of and loaded from the database as
> required in real time.
>
> Scroll'm-Rollem:
> Given say 100 items in a database, I'd like to show about 5 of them.
> Every few seconds, I'd like to hide the bottom one and thin insert a
> new one at the top. So it's like a scrolling list that runs on a
> timer. When a user is hovering an item, we don't want to make it
> disappear. I would like scroll-up and scroll-down links as well so
> that the user can manually scroll the list.
>
> I'm using PHP and MySQL (I realize it doesn't matter what's at the
> back end as long as the back end returns the same results). Obviously
> I can learn faster from any examples that use PHP but I'll take
> anything. ��
>
> Thanks again! Also, if there's anyone here floating around Ottawa that
> would like to join my support groups for programmers and business
> people, don't hesitate to contact me!
>
> I look forward to hearing from anybody!
>
>
>
> Darcy Whyte
> Social Software, Analyst, Database
>
> [EMAIL PROTECTED] | 613-563-3634
> Ottawa, Ontario, Canada | N 45° 25'03.1" W 75° 42'21.4"
> www.Siteware.com | www.siteware.com/pictures
> MSN: [EMAIL PROTECTED]
>
>
>
>
> Think Tank: Share ideas about face to face and online social networks.
> Explore and
> analyze existing systems. Look for answers on how systems can
> facilitate constructive social networks. Be in the know about what's
> transforming your world. www.JumpSocial.com/blog
>
> 2.0 Lab: Share Web 2.0 development techniques. AJAX, Network Metrics,
> Rich Interfaces, Frameworks, Yahoo UI etc. www.JumpSocial.com/blog
>
> Ottawa Facebook Developer Garage: Learn about Facebook development and
> meet others who are doing it. www.JumpSocial.com

[jQuery] Re: [OT] Wordpress plugin release using jQuery and it plugins

2007-11-20 Thread Rey Bango


Anytime my man.

Rey

Benjamin Sterling wrote:
Thanks for the feedback Rey, I think I know what that is.  It is a 
combination of the list element having styles (wordpress defaults) and 
the images not fully loaded.  I think I can hide that area and just put 
a loader image in there till everything is done processing.


Thanks agian.

On 11/20/07, *Rey Bango* <[EMAIL PROTECTED] > 
wrote:


That looks really good Ben. The only quirk I saw was in IE7 where right
before initial load of the gallery I saw a series of horizontal lines
going down the length of the page around the center. Then they
disappeared as soon as the gallery displayed.

I've attached an image so you can see it.

Rey

Benjamin Sterling wrote:
 > Hey guys,
 > Just wanted to drop a line and hopefully get some feedback on a
 > Wordpress plugin I put together using some of jQuery plugins as
well as
 > the gallery plugins I put together.
 >
 > Have a look at the demo:
 > http://galleries.benjaminsterling.com/wp-admin
 >  un/pw: demo/demo
 >
 > Once in, click on the BSG tab.
 >
 > And the blog post and download at:
 >

http://benjaminsterling.com/2007/11/20/benjamin-sterling-galleries-wordpress-photoimage-gallery-plugin-for-flickr-picasa/
 >
 > Any bugs, please post them on the blog so I can keep track of
them better.
 >
 > Thanks.
 >
 > --
 > Benjamin Sterling
 > http://www.KenzoMedia.com
 > http://www.KenzoHosting.com
 > http://www.benjaminsterling.com 




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


[jQuery] Re: Totally lost: scroll the page to put a div at the top

2007-11-20 Thread Flesler

>Is there no way to simply scroll the page to the next div once the
user tabs away from a specified form field?

It's not very difficult, you can certainly do that manually.

> the documentation isn't very clear.

I think the docs are quite clear, it says: "The plugin will scroll the
matched elements to the chosen position, the latter can be.".
so, the matched elements are the elements being scrolled, not "where"
to scroll.
In your case, $.scrollTo( '#section_1', { speed:300 } ); will be
enough.

You can do that manually, that's your decision. I'll only add that the
project page is not the documentation. It's just a brief description.
The source code includes examples, and a README with the options.

Ariel Flesler

On 20 nov, 00:29, pbarney <[EMAIL PROTECTED]> wrote:
> I did see that, but isn't it possible to simply scroll the page
> without adding all the extra features? Add to that, the documentation
> isn't very clear. If I do $("#section_1").scrollTo(300), what does
> that actually do? Does it immediately scroll to that section? Does it
> move 300px from the section? How do you trigger it? etc, etc, etc?
>
> Is there no way to simply scroll the page to the next div once the
> user tabs away from a specified form field?
>
> On Nov 19, 8:49 pm, Flesler <[EMAIL PROTECTED]> wrote:
>
>
>
> > How come you didn't see this ?http://jquery.com/plugins/project/ScrollTo
> > :)- Ocultar texto de la cita -
>
> - Mostrar texto de la cita -


[jQuery] Re: new plugin: jClocke

2007-11-20 Thread Benjamin Sterling
that is actually really cool.  Nice work.

On 11/19/07, dbzz <[EMAIL PROTECTED]> wrote:
>
>
> i have been working on a plugin and have gotten to the point where i
> think i need some feedback. i'm sure there are bugs and code that
> could be better or is just bad practice. i haven't done any docs or
> extensive demos - this is just sort of a proof of concept. so have a
> look and feel welcome to reply.
>
> http://briskey.com/jClocke
>
> cheers,
> db
>



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


[jQuery] Re: [OT] Wordpress plugin release using jQuery and it plugins

2007-11-20 Thread Benjamin Sterling
Thanks for the feedback Rey, I think I know what that is.  It is a
combination of the list element having styles (wordpress defaults) and the
images not fully loaded.  I think I can hide that area and just put a loader
image in there till everything is done processing.

Thanks agian.

On 11/20/07, Rey Bango <[EMAIL PROTECTED]> wrote:
>
> That looks really good Ben. The only quirk I saw was in IE7 where right
> before initial load of the gallery I saw a series of horizontal lines
> going down the length of the page around the center. Then they
> disappeared as soon as the gallery displayed.
>
> I've attached an image so you can see it.
>
> Rey
>
> Benjamin Sterling wrote:
> > Hey guys,
> > Just wanted to drop a line and hopefully get some feedback on a
> > Wordpress plugin I put together using some of jQuery plugins as well as
> > the gallery plugins I put together.
> >
> > Have a look at the demo:
> > http://galleries.benjaminsterling.com/wp-admin
> >  un/pw: demo/demo
> >
> > Once in, click on the BSG tab.
> >
> > And the blog post and download at:
> >
> http://benjaminsterling.com/2007/11/20/benjamin-sterling-galleries-wordpress-photoimage-gallery-plugin-for-flickr-picasa/
> >
> > Any bugs, please post them on the blog so I can keep track of them
> better.
> >
> > Thanks.
> >
> > --
> > Benjamin Sterling
> > http://www.KenzoMedia.com
> > http://www.KenzoHosting.com
> > http://www.benjaminsterling.com 
>
>


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


[jQuery] Re: My jquery-Project

2007-11-20 Thread Rey Bango


Added it to the list. Thanks.

Rey

[EMAIL PROTECTED] wrote:

Ok:

"Tubesearch lets you search through Youtube videos without reloading
the page"

That's a short description - you can also find recommodations for
related artists, be able to save videos to MyList, and the design is
very easy on the eye! *g*




[jQuery] Re: [OT] Wordpress plugin release using jQuery and it plugins

2007-11-20 Thread Rey Bango
That looks really good Ben. The only quirk I saw was in IE7 where right 
before initial load of the gallery I saw a series of horizontal lines 
going down the length of the page around the center. Then they 
disappeared as soon as the gallery displayed.


I've attached an image so you can see it.

Rey

Benjamin Sterling wrote:

Hey guys,
Just wanted to drop a line and hopefully get some feedback on a 
Wordpress plugin I put together using some of jQuery plugins as well as 
the gallery plugins I put together.


Have a look at the demo:
http://galleries.benjaminsterling.com/wp-admin
 un/pw: demo/demo

Once in, click on the BSG tab.

And the blog post and download at: 
http://benjaminsterling.com/2007/11/20/benjamin-sterling-galleries-wordpress-photoimage-gallery-plugin-for-flickr-picasa/


Any bugs, please post them on the blog so I can keep track of them better.

Thanks.

--
Benjamin Sterling
http://www.KenzoMedia.com
http://www.KenzoHosting.com
http://www.benjaminsterling.com 
<>

[jQuery] Re: [SITE SUBMISSION] songza.com

2007-11-20 Thread Andy Matthews

Whoah...

That's pretty freaking sweet! 

-Original Message-
From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of SeViR
Sent: Tuesday, November 20, 2007 2:27 AM
To: jquery-en@googlegroups.com
Subject: [jQuery] Re: [SITE SUBMISSION] songza.com


Cool site!!, I like it, playlist with draggables, the player with Flash and
JavaScript is easy :), embeded music using OpenLazslo Flash.

The original contextual menu is nice :)

Jake McGraw escribió:
> This is one of the first sites I saw and the following events took place:
>
> 1. "They've got to have some slick-ass library running underneath"...
> 2. Click "firebug"...
> 3. and what do you know jQuery.
>
> Enjoy it while it's still legal.
>
> - jake


--
Best Regards,
 José Francisco Rives Lirola 

 SeViR CW · Computer Design
 http://www.sevir.org
  
 Murcia - Spain




[jQuery] Re: thickbox IE7 position

2007-11-20 Thread JGiotta

I second that 'bump'.


[jQuery] IE6 .height() problem

2007-11-20 Thread wellmoon

Hi,

I am creating a new div and using the .height(1) method to set it's
height to 1 pxiel high.  In IE7 and FF this works fine, however in IE6
for some reason 18 pixels are mysteriously added to the height of the
new div.  It seems to be added at the point when it is inserted into
the DOM so getting the height value before it is appended shows the
correct height but getting it after it is appended shows the wrong
height.

I have tried to set the height after the element has been appended but
this doesn't work.  Its proving really difficult to debug as IE6 is
utter poo and doesn't have a DOM explorer or proper error console or
any useful tools at all, so it's difficult to see what is going on or
why this is happening.

No live site I'm afraid so can't give a demo page...any suggestions
hugely appreciated :)


[jQuery] Re: How to speed up jQuery

2007-11-20 Thread Snook

Sorry for the previous post ...

So, I would like to show/hide some . I fisrt verify if checkbox
are checked on form load.  And then, I use a function for each
checkbox. I have 5 of them to verify, so 5 calls to myToggleDisplay
which just this part took 9 sec more under IE6 (only for these
checkbox) !

Here is my function with some modification. I have also moved the
changeBg() function.

function myToggleDisplay(checkbox, targets){
var targets = $(targets);
var checkbox = $(checkbox);

//check the checkbox when the edit form is loaded
if (checkbox.checked) {
targets.show();
}

checkbox.click( function() {
  if (this.checked) {
targets.show();
   } else {
targets.hide();
   }
}).triggerHandler('click');
}


myToggleDisplay('input#myCheckboxID', 'td.areaToShow');
.
.
.

I'm begin to be crazy with this, any help will be very much
appreciated.

Damien


On Nov 14, 10:30 pm, Flesler <[EMAIL PROTECTED]> wrote:
> Can you make a model of your situation ? that could help.
> What do you want to do exactly? to show/hide many tds when a checkbox
> is clicked? and changeBg(), that's for creating a zebra-like striping
> of the cells ?
> First of all, if you want to show ALL the cells in a table, or a row,
> you can just toggle the table or the row. That's surely faster. Maybe
> this helps...
>
> function myToggleShow( checkbox, targets ){
>   targets = $(targets);
>   $(checkbox).click( function() {
>  if ( this.checked ){
> targets.show('slow');
> changeBg(); //is really neccesary to call this EVERY time you
> click the checkbox?
>  } else {
>  targets.hide('slow');
>  }
>   }).triggerHandler('click');
>
> }
>
> myToggleDisplay('#myCheckboxID', 'td.areaToShow');
>
> Ariel Flesler
>
> On 14 nov, 13:54, Snook <[EMAIL PROTECTED]> wrote:
>
> > Dear developers,
>
> > I have a function which is called several times, when my page is
> > loaded. This is VERY slow under IE, because I have a lot of checkbox.
>
> > Did someone can explain me this difference between FF and IE ? And
> > maybe how to improve this function :
>
> > function myToggleShow(checkboxElem, showHideElem){
> >   var showHide = $(showHideElem);
> >   var checkbox = $(checkboxElem);
> >   checkbox.click( function() {
> > if (checkbox.is(":checked")) {
> >   showHide.show('slow');
>
> >   // Change the background for "even" lignes
> >   changeBg()
> > } else {
> > showHide.hide('slow');
> > }
> >   });
>
> >   // check the checkbox status when the form is loaded
> >   if (checkbox.is(":checked")) {
> > showHide.show('slow');
> >   }
>
> > }
>
> > myToggleDisplay('#myCheckboxID', 'td.areaToShow');
>
> > FYI, I cannot use the toggle function, which didn't work with
> > checkbox !!!
>
> > Thanks,
>
> > Damien


[jQuery] Re: How to speed up jQuery

2007-11-20 Thread Snook

I also have found a thread in jQuery dev, which explain that a regex
could be improved. But it didn't improve my JS :-(

http://groups.google.com/group/jquery-dev/browse_thread/thread/0611db65f891b7e6

Cheers,
Damien

On Nov 14, 10:30 pm, Flesler <[EMAIL PROTECTED]> wrote:
> Can you make a model of your situation ? that could help.
> What do you want to do exactly? to show/hide many tds when a checkbox
> is clicked? and changeBg(), that's for creating a zebra-like striping
> of the cells ?
> First of all, if you want to show ALL the cells in a table, or a row,
> you can just toggle the table or the row. That's surely faster. Maybe
> this helps...
>
> function myToggleShow( checkbox, targets ){
>   targets = $(targets);
>   $(checkbox).click( function() {
>  if ( this.checked ){
> targets.show('slow');
> changeBg(); //is really neccesary to call this EVERY time you
> click the checkbox?
>  } else {
>  targets.hide('slow');
>  }
>   }).triggerHandler('click');
>
> }
>
> myToggleDisplay('#myCheckboxID', 'td.areaToShow');
>
> Ariel Flesler
>
> On 14 nov, 13:54, Snook <[EMAIL PROTECTED]> wrote:
>
> > Dear developers,
>
> > I have a function which is called several times, when my page is
> > loaded. This is VERY slow under IE, because I have a lot of checkbox.
>
> > Did someone can explain me this difference between FF and IE ? And
> > maybe how to improve this function :
>
> > function myToggleShow(checkboxElem, showHideElem){
> >   var showHide = $(showHideElem);
> >   var checkbox = $(checkboxElem);
> >   checkbox.click( function() {
> > if (checkbox.is(":checked")) {
> >   showHide.show('slow');
>
> >   // Change the background for "even" lignes
> >   changeBg()
> > } else {
> > showHide.hide('slow');
> > }
> >   });
>
> >   // check the checkbox status when the form is loaded
> >   if (checkbox.is(":checked")) {
> > showHide.show('slow');
> >   }
>
> > }
>
> > myToggleDisplay('#myCheckboxID', 'td.areaToShow');
>
> > FYI, I cannot use the toggle function, which didn't work with
> > checkbox !!!
>
> > Thanks,
>
> > Damien


[jQuery] Tab plugin always first tab after reload

2007-11-20 Thread gizze

Hi,

I installed the Tab Plugin in my page and I got a question:

Once I'm in the second tab and my page get reloaded, I always return
to the first tab.
Is it possible to stay in the second tab after a page reload?

Can someone give me an example ?

Thank you



[jQuery] Re: How to speed up jQuery

2007-11-20 Thread Snook

Hello Flesler,

Yes, you got want I would like to do. So when I load a form, I first
check the input checkbox if there are checked or not

On Nov 14, 10:30 pm, Flesler <[EMAIL PROTECTED]> wrote:
> Can you make a model of your situation ? that could help.
> What do you want to do exactly? to show/hide many tds when a checkbox
> is clicked? and changeBg(), that's for creating a zebra-like striping
> of the cells ?
> First of all, if you want to show ALL the cells in a table, or a row,
> you can just toggle the table or the row. That's surely faster. Maybe
> this helps...
>
> function myToggleShow( checkbox, targets ){
>   targets = $(targets);
>   $(checkbox).click( function() {
>  if ( this.checked ){
> targets.show('slow');
> changeBg(); //is really neccesary to call this EVERY time you
> click the checkbox?
>  } else {
>  targets.hide('slow');
>  }
>   }).triggerHandler('click');
>
> }
>
> myToggleDisplay('#myCheckboxID', 'td.areaToShow');
>
> Ariel Flesler
>
> On 14 nov, 13:54, Snook <[EMAIL PROTECTED]> wrote:
>
> > Dear developers,
>
> > I have a function which is called several times, when my page is
> > loaded. This is VERY slow under IE, because I have a lot of checkbox.
>
> > Did someone can explain me this difference between FF and IE ? And
> > maybe how to improve this function :
>
> > function myToggleShow(checkboxElem, showHideElem){
> >   var showHide = $(showHideElem);
> >   var checkbox = $(checkboxElem);
> >   checkbox.click( function() {
> > if (checkbox.is(":checked")) {
> >   showHide.show('slow');
>
> >   // Change the background for "even" lignes
> >   changeBg()
> > } else {
> > showHide.hide('slow');
> > }
> >   });
>
> >   // check the checkbox status when the form is loaded
> >   if (checkbox.is(":checked")) {
> > showHide.show('slow');
> >   }
>
> > }
>
> > myToggleDisplay('#myCheckboxID', 'td.areaToShow');
>
> > FYI, I cannot use the toggle function, which didn't work with
> > checkbox !!!
>
> > Thanks,
>
> > Damien


[jQuery] Re: HELP: Debugging Issue

2007-11-20 Thread STuFF

no you should NOT use inline code, never again, even if you're playing
your life !
'Script taking to long' is usually a bad code design: infinite loop or
something like that.

nicolas challeil


On Nov 19, 6:24 pm, "Josh Nathanson" <[EMAIL PROTECTED]> wrote:
> A "script taking too long" error generally means that you are trying to bind 
> event handlers to too many elements, or just overloading the capability of 
> jquery in some way.  You may want to look at going "old school" and putting 
> events inline in your html markup:
>
>  onmouseout="anotherfunction">
>
> -- Josh
>
>   - Original Message -
>   From: [EMAIL PROTECTED]
>   To: jquery-en@googlegroups.com
>   Sent: Sunday, November 18, 2007 9:07 PM
>   Subject: [jQuery] HELP: Debugging Issue
>
>   On one page, Firefox throws the "a script is taking too long" message.
>
>   On clicking 'Debug Script', it points to the following line of jQuery:
>
>   first.push(second[i]);
>
>   Which is in...
>
>   merge: function(first, second)
>   {
>}
>
>   Assuming that there aren't any problems with jQuery, how can i find out 
> which code is throwing this error?
>
>   Thanks
>
>   Fahed


[jQuery] Re: ui.datepicker.js - setDateFor()

2007-11-20 Thread Shawn

Sure, now that I figured all that out AND posted the message, I find the 
"defaultDate" option to be passed to the calendar...

from the docs:
defaultDate Date(, mm - 1, dd), Number  Default: null
Set the date to display on first opening if the field is blank. Specify 
either an actual date via a Date object, or relative to today with a 
number, or null for today.

Now, I DID check the docs before everything, but I missed this one... 
maybe I need to stop coding for the night... :)

Shawn

Shawn wrote:
> I just wasted an hour trying to figure out how to simply set the date 
> for a datepicker from within code.  So I'm posting what I've learned 
> here hoping that I might save someone that hour themselves...
> 
> What I was trying to do was to simply show a default date in my text 
> box.  I wanted to use the datepicker's methods so that a) I would have 
> the same format as the results, and b) I wouldn't need to worry about 
> creating a custom format method for the default that may or may not 
> create a format that would work properly with the datepicker.
> 
> The sample pages do not seem to have this demonstrated (it's late, so 
> maybe I just missed it).
> 
> Turns out the documentation is kinda correct.  Doing this DOES work:
> 
> $.datepicker.setDateFor("#mytextbox", new Date());
> 
> But what it doesn't do is actually SHOW the date in your text box.  To 
> do that you have to do this:
> 
> $("#mytextbox").val(
>   $.datepicker.formatDate(
> "dd M yy",
>  $.datepicker.getDateFor("#mytextbox")
>   )
> );
> 
> (NOTE, that should be one line, I broke it down so it would render half 
> decent in my mail client that auto wraps text at 80 chars...)
> 
> Doing the getDateFor() method does NOT honor the date format you've set 
> for the date picker.  This makes sense because you're likely to be doing 
> calculations on this date and getting a raw date object back is best for 
> that.  So you have to take the date you retrieved and then filter it 
> through the formatDate() method.
> 
> My thoughts are that the setDateFor() method should update the related 
> textbox.  I can't think of any instances where this would cause problems 
> (but it's late, and I'm tired.. :)
> 
> So, hopefully this rambling post will help someone else trying to do the 
> same.
> 
> As an aside, I'm VERY happy to see the new formatting and parsing 
> options.  Good work Marc!
> 
> Shawn
> 


[jQuery] Re: My jquery-Project

2007-11-20 Thread [EMAIL PROTECTED]

Ok:

"Tubesearch lets you search through Youtube videos without reloading
the page"

That's a short description - you can also find recommodations for
related artists, be able to save videos to MyList, and the design is
very easy on the eye! *g*



[jQuery] A few jQuery Patterns

2007-11-20 Thread TunaSandwich


Hello Everyone,

I just hopped on the jQuery bandwagon and I'm working on the following
functionality so if there are any examples or tutorials that do
anything like this I'd love to hear about them. I realize I will
eventually figure all this out but if anyone knows of any working
models, examples that are close to what I want or a list of what
methods to study would be greatly appreciated because it would speed
things up. (And that's what we're all here for right? �� )

Type 'n List:
I would like to type into a box. A list of links would appear just
below the box that will have been retrieved from the database using
AJAX. Ideally there would be a timer. The user starts typing and as
soon as they stop typing for say 900ms, then the links would be
retrieved from the database. If the user starts typing again, then
again the box isn't refreshed till they stop typing for 900ms. I have
done this often with Visual Basic or FoxPro and the trick there was to
have a timer that you reset whenever the user types. The logic for the
database refresh is in the timer event so it doesn't fire unless the
timer fires. I did this once in plain JavaScript and I used the
clearTimeout and setTimeout functions.

Dynamo-List:
A list of links is inserted in a DIV. The list is refreshed by the
server every few seconds. When new items appear, they are inserted
rather than having the whole list refresh. I have seen the hide(500)
method and it would be nice is items appeared and disappeared in the
list using a similar effect.

Dynamo-Check'em:
I have a list of a lot of check boxes so what I'd like to do is have a
text box at the top of the list. When the user types in the text box,
then the list of check boxes is refined by what the user types (based
on the name of the check boxes stored in a database). The user can
check the boxes. Once checked they always remain in the list
regardless of whether or not they meet the criteria. To make them
disappear, the user has to uncheck them. The reason they stay visible
once checked is so that the user can see which ones are checked
regardless of what's in the text box. For this control, the timer
pattern in the Dynamo-List above isn't as important because the number
of check boxes will not be very large. Perhaps a thousand at the outer
limit. The boxes the user has checked off should always be reflected
in the database.

Expando-Show:
In a given list of items (anchor tags), I'd like to be able to hide
and show the description and other fields that go with each item. This
needs to be done two ways. One where the data is just hidden and shown
and the other where it is disposed of and loaded from the database as
required in real time.

Scroll'm-Rollem:
Given say 100 items in a database, I'd like to show about 5 of them.
Every few seconds, I'd like to hide the bottom one and thin insert a
new one at the top. So it's like a scrolling list that runs on a
timer. When a user is hovering an item, we don't want to make it
disappear. I would like scroll-up and scroll-down links as well so
that the user can manually scroll the list.

I'm using PHP and MySQL (I realize it doesn't matter what's at the
back end as long as the back end returns the same results). Obviously
I can learn faster from any examples that use PHP but I'll take
anything. ��

Thanks again! Also, if there's anyone here floating around Ottawa that
would like to join my support groups for programmers and business
people, don't hesitate to contact me!

I look forward to hearing from anybody!



Darcy Whyte
Social Software, Analyst, Database

[EMAIL PROTECTED] | 613-563-3634
Ottawa, Ontario, Canada | N 45° 25'03.1" W 75° 42'21.4"
www.Siteware.com | www.siteware.com/pictures
MSN: [EMAIL PROTECTED]




Think Tank: Share ideas about face to face and online social networks.
Explore and
analyze existing systems. Look for answers on how systems can
facilitate constructive social networks. Be in the know about what's
transforming your world. www.JumpSocial.com/blog

2.0 Lab: Share Web 2.0 development techniques. AJAX, Network Metrics,
Rich Interfaces, Frameworks, Yahoo UI etc. www.JumpSocial.com/blog

Ottawa Facebook Developer Garage: Learn about Facebook development and
meet others who are doing it. www.JumpSocial.com/blog

Social and Dance Calendar: www.JumpSocial.com

Model Aviation: www.Rubber-Power.com




[jQuery] Re: Suggest a plugin for slider-like construction

2007-11-20 Thread Sagari

Indeed, that looks exactly like what I need. Thank you!

All the best,

Konstantin

On 19 нояб, 19:26, "Richard D. Worth" <[EMAIL PROTECTED]> wrote:
> It sounds like you're looking for a layout control called a splitter. Here's
> one:
>
> http://methvin.com/jquery/splitter/
>
> - Richard
>
> On Nov 19, 2007 3:49 AM, Sagari <[EMAIL PROTECTED]> wrote:
>
>
>
> > Greetings,
>
> > Could you please suggest a plug-in to create the following slider-like
> > construction:
>
> > - two vertical areas of content
> > - a vertical control (narrow rectangular area) separating the two
> > content areas
> > - when dragging control left or right, the result is the two content
> > area are resized smoothly
>
> > Thank you.
>
> > With all respect,
>
> > Konstantin


[jQuery] Re: ui.datepicker.js - setDateFor()

2007-11-20 Thread Shawn

Yep, I need to stop coding for the night.

My first approach is correct (for my needs).  The defaultDate option 
sets what date will be shown when the datepicker is displayed, if it's 
corresponding text box is empty.  It does NOT show the date in the text box.

k, I'm going to bed...

Shawn

Shawn wrote:
> Sure, now that I figured all that out AND posted the message, I find the 
> "defaultDate" option to be passed to the calendar...
> 
> from the docs:
> defaultDateDate(, mm - 1, dd), NumberDefault: null
> Set the date to display on first opening if the field is blank. Specify 
> either an actual date via a Date object, or relative to today with a 
> number, or null for today.
> 
> Now, I DID check the docs before everything, but I missed this one... 
> maybe I need to stop coding for the night... :)
> 
> Shawn
> 
> Shawn wrote:
>> I just wasted an hour trying to figure out how to simply set the date 
>> for a datepicker from within code.  So I'm posting what I've learned 
>> here hoping that I might save someone that hour themselves...
>>
>> What I was trying to do was to simply show a default date in my text 
>> box.  I wanted to use the datepicker's methods so that a) I would have 
>> the same format as the results, and b) I wouldn't need to worry about 
>> creating a custom format method for the default that may or may not 
>> create a format that would work properly with the datepicker.
>>
>> The sample pages do not seem to have this demonstrated (it's late, so 
>> maybe I just missed it).
>>
>> Turns out the documentation is kinda correct.  Doing this DOES work:
>>
>> $.datepicker.setDateFor("#mytextbox", new Date());
>>
>> But what it doesn't do is actually SHOW the date in your text box.  To 
>> do that you have to do this:
>>
>> $("#mytextbox").val(
>>   $.datepicker.formatDate(
>> "dd M yy",
>>  $.datepicker.getDateFor("#mytextbox")
>>   )
>> );
>>
>> (NOTE, that should be one line, I broke it down so it would render 
>> half decent in my mail client that auto wraps text at 80 chars...)
>>
>> Doing the getDateFor() method does NOT honor the date format you've 
>> set for the date picker.  This makes sense because you're likely to be 
>> doing calculations on this date and getting a raw date object back is 
>> best for that.  So you have to take the date you retrieved and then 
>> filter it through the formatDate() method.
>>
>> My thoughts are that the setDateFor() method should update the related 
>> textbox.  I can't think of any instances where this would cause 
>> problems (but it's late, and I'm tired.. :)
>>
>> So, hopefully this rambling post will help someone else trying to do 
>> the same.
>>
>> As an aside, I'm VERY happy to see the new formatting and parsing 
>> options.  Good work Marc!
>>
>> Shawn
>>
> 


[jQuery] Re: Totally lost: scroll the page to put a div at the top

2007-11-20 Thread pbarney

I did see that, but isn't it possible to simply scroll the page
without adding all the extra features? Add to that, the documentation
isn't very clear. If I do $("#section_1").scrollTo(300), what does
that actually do? Does it immediately scroll to that section? Does it
move 300px from the section? How do you trigger it? etc, etc, etc?

Is there no way to simply scroll the page to the next div once the
user tabs away from a specified form field?


On Nov 19, 8:49 pm, Flesler <[EMAIL PROTECTED]> wrote:
> How come you didn't see this ?http://jquery.com/plugins/project/ScrollTo
> :)


[jQuery] Re: TableCloth

2007-11-20 Thread Cloudream

http://p.sohei.org/stuff/jquery/tablehover/

On Nov 20, 7:18 am, shapper <[EMAIL PROTECTED]> wrote:
> Hello,
>
> I have found a really good script for row and column hightlight, maybe
> the best one I saw until now:http://cssglobe.com/lab/tablecloth/
>
> Is there something as good as this using JQuery?
>
> And is there any advantage of making this code using JQuery?
>
> Thanks,
> Miguel


[jQuery] Re: New Plugin: jQuery Fx Queues

2007-11-20 Thread bigethan

> Any comments, bugs, enhancements, ideas, whatever are more
> than welcomed :).

Sweet stuff.  Though in my rabid clicking, I found a glitch.

Using: Mac Safari 3  and FF 2

Page: http://www.decodeuri.com/fxqueues/fxqueues.html

If I press 'Stop' after the '7' has moved, but in the 2 second wait
for '8', the '8' still slides over.  And occasionally the '8' will
slide out a bit after the animation has begun (eg: around the same
time as the '3' or '4' fires).

-Ethan


[jQuery] ui.datepicker.js - setDateFor()

2007-11-20 Thread Shawn

I just wasted an hour trying to figure out how to simply set the date 
for a datepicker from within code.  So I'm posting what I've learned 
here hoping that I might save someone that hour themselves...

What I was trying to do was to simply show a default date in my text 
box.  I wanted to use the datepicker's methods so that a) I would have 
the same format as the results, and b) I wouldn't need to worry about 
creating a custom format method for the default that may or may not 
create a format that would work properly with the datepicker.

The sample pages do not seem to have this demonstrated (it's late, so 
maybe I just missed it).

Turns out the documentation is kinda correct.  Doing this DOES work:

$.datepicker.setDateFor("#mytextbox", new Date());

But what it doesn't do is actually SHOW the date in your text box.  To 
do that you have to do this:

$("#mytextbox").val(
   $.datepicker.formatDate(
 "dd M yy",
  $.datepicker.getDateFor("#mytextbox")
   )
);

(NOTE, that should be one line, I broke it down so it would render half 
decent in my mail client that auto wraps text at 80 chars...)

Doing the getDateFor() method does NOT honor the date format you've set 
for the date picker.  This makes sense because you're likely to be doing 
calculations on this date and getting a raw date object back is best for 
that.  So you have to take the date you retrieved and then filter it 
through the formatDate() method.

My thoughts are that the setDateFor() method should update the related 
textbox.  I can't think of any instances where this would cause problems 
(but it's late, and I'm tired.. :)

So, hopefully this rambling post will help someone else trying to do the 
same.

As an aside, I'm VERY happy to see the new formatting and parsing 
options.  Good work Marc!

Shawn


[jQuery] new plugin: jClocke

2007-11-20 Thread dbzz

i have been working on a plugin and have gotten to the point where i
think i need some feedback. i'm sure there are bugs and code that
could be better or is just bad practice. i haven't done any docs or
extensive demos - this is just sort of a proof of concept. so have a
look and feel welcome to reply.

http://briskey.com/jClocke

cheers,
db


  1   2   >