[jQuery] Re: Autocomplete: Multi-dim JSON array and Custom format

2008-06-17 Thread Shawn


Check out the "result" method the autocomplete makes available:

http://docs.jquery.com/Plugins/Autocomplete/result#handler

The "data" parameter represents the raw data array.

OR, you may need to set up the "formatResult" parameter when 
initializing the autocomplete (or via the setOptions() method).


http://docs.jquery.com/Plugins/Autocomplete/autocomplete#url_or_dataoptions
http://docs.jquery.com/Plugins/Autocomplete

I believe the formatResult method would probably be what you are looking 
for, though it's been a while since I used autocomplete and don't fully 
understand your app.. :)


Hope that helps.

Shawn

Adam wrote:

Ok, that's a great article but not exactly what I need. I don't need
to modify the results of the select (yet) but I need to modify the
output of the results: a mulit-dimensional array that would need to be
looped and shown. It might require a whole script entirely, but
there's just too much good stuff in Jorn's plugin that I could never
do on my own.



On Jun 17, 2:59 pm, Shawn <[EMAIL PROTECTED]> wrote:

Which autocomplete are you using?  Which version?

Not meaning to do a shameless plug, but I wrote a blog article that
covered using database IDs with Jorn's autocomplete.

http://grover.open2space.com/node/190

This was back in December, so might be a little dated.  But I believe
what you are trying to do seems relatively similar.  Perhaps that might
help?

Shawn

Adam wrote:

Tried to post this question once before but didn't seem to work...
I'm needing to get a multi-dim JSON array to work for my autocomplete,
in an effort to mimic the Spotlight design.
My JSON currently looks like this:
[
{"key":"names", "values":[ bunch of values]},
{"key":"emails","values": [ bunch of email values ]}
]
I am wanting to put into an HTML structure like this:

Names
name
name
Emails
email
email

Basically, I want my JS to loop through the JSON array and spit out
the key into a  tag, then each item into a . Easier said than
done.
Can anyone give me some direction? I've got it as far as listing all
the names and emails in 's, but no 's are happening...
Here is my adapted autocomplete.js code:
   function parse(data) {
   var parsed = [];
   $(data).each( function() {
   var rows = this.values;
   for (var i=0; i < rows.length; i++) {
   var row = rows[i];
   if (row) {
   row = row.split("|");
   parsed[parsed.length] = {
   data: row,
   value: row[0],
   result: options.formatResult && 
options.formatResult(row,
row[0]) || row[0]
   };
   }
   }
   });
   return parsed;
   };
Thanks.


[jQuery] Re: Please review work with JQuery

2008-06-17 Thread Samyak Bhuta
k ...  will do that , thanks :)

On Wed, Jun 18, 2008 at 10:20 AM, R. Rajesh Jeba Anbiah <
[EMAIL PROTECTED]> wrote:

>
> On Jun 18, 1:34 am, "Samyak Bhuta" <[EMAIL PROTECTED]> wrote:
> > ThanksRajesh,
> >
> > I will check this out for sure ... Will it help in SEO front ?
>
>Yep. I actually meant, do not hide the link with "#"; just give the
> link to  page (say, )
>
> --
>  
> Email: rrjanbiah-at-Y!comBlog: http://rajeshanbiah.blogspot.com/
>


[jQuery] Advice on ajax links

2008-06-17 Thread hubbs

I just wanted to get some advice, and maybe some best practices from
those who have done this.

I am wanting to use ajax, to load content into a div.  I am wanting
the link to be more than just a line of text.  It will be a box with
an image, and multiple lines of text in it.  I had wished I could just
use a div, with p tags inside, but I know this won't work since I need
to use an anchor tag with a href attribute.

So, would the best way to do this be, just make the anchor the
container, and add my content in spans, and then set them to block?
Or is there a better way, to make an entire block of content the ajax
link?


[jQuery] Re: How to clone jQuery object?

2008-06-17 Thread R. Rajesh Jeba Anbiah

On Jun 17, 5:28 pm, Ariel Flesler <[EMAIL PROTECTED]> wrote:
> $D.fn = $D.prototype;

   That doesn't even work; it overwrites $.

--
  
Email: rrjanbiah-at-Y!comBlog: http://rajeshanbiah.blogspot.com/


[jQuery] Re: Which grid?

2008-06-17 Thread R. Rajesh Jeba Anbiah

On Jun 17, 10:27 pm, Ken Gregg <[EMAIL PROTECTED]> wrote:
> I was using Rico but dropped it for lack of development activity.
> Everything but the grid is available in jquery. I would love to see
> the dynamic data part of the grid incorporated into flexigrid. Think
> that would make a great combination.
>
> http://sourceforge.net/project/showfiles.php?group_id=140375

   Would be better if the UI team combine all stuffs together under a
single grid plugin.

--
  
Email: rrjanbiah-at-Y!comBlog: http://rajeshanbiah.blogspot.com/


[jQuery] Re: Please review work with JQuery

2008-06-17 Thread R. Rajesh Jeba Anbiah

On Jun 18, 1:34 am, "Samyak Bhuta" <[EMAIL PROTECTED]> wrote:
> ThanksRajesh,
>
> I will check this out for sure ... Will it help in SEO front ?

   Yep. I actually meant, do not hide the link with "#"; just give the
link to  page (say, )

--
  
Email: rrjanbiah-at-Y!comBlog: http://rajeshanbiah.blogspot.com/


[jQuery] Re: Is there a way to use the css function with $(document) directly?

2008-06-17 Thread Ariel Flesler

> Thanks for the pointer! Say, is there a way this functionality could
> be integrated into jQuery itself?

Nope.

> Can I chain like this?

$.rule returns a Rule object with its own methods. I don't recall if
the methods are chainable, maybe they are.
>
> Also consider that you may want to distinguish between one window's
> document and another's, as in:

The rules affects the page once it's added to a style or link. Whose
window is that style/link from, is up to you.


> These might be considered. Also in the demos it is unclear whether the
> style rule is added to the FIRST tag called "style" or ALL of them,
> since your page contains only one. This makes a difference, because
> the style listed last in the document is the one that gets applied.

That's why there is a documentation appart from the demo. The 2nd
argument of the constructor is the context (just like with jQuery).
The context can be a selector, a jQuery object, a stylesheet, etc.

Cheers
--
Ariel Flesler
http://flesler.blogspot.com/


[jQuery] Re: hover flickering, snow storm pixels on JPGs (beginner problem)

2008-06-17 Thread Mike Alsup

> Ok, will manage to squeeze the Microsoft Bug
>
> What about the hover issue?


I don't see any hover issue.  What do you see?


[jQuery] Re: Help fading images with jquery.

2008-06-17 Thread Mike Alsup

> all im trying to do is come up with a good way to fade images in and
> out.
>
> for example
> 
>    image 1.jpg
>    image 2.jpg
>    image 3.jpg
> 
>
> would fade the above images in and out between each other


Here's a 3KB solution:

http://www.malsup.com/jquery/cycle/lite/


[jQuery] Re: scope of jquery functions?

2008-06-17 Thread Hamish Campbell

The issue is that the click function is bound on document.ready - so
stuff added later won't have the binding.

See the FAQ:

http://docs.jquery.com/Frequently_Asked_Questions#Why_do_my_events_stop_working_after_an_Ajax_request.3F


On Jun 18, 10:21 am, Brian Cummiskey <[EMAIL PROTECTED]> wrote:
> Hello all,
>
> New to this list and working on my first site with jQuery.  So far so
> good, for the most part.
>
> I've run into one problem that i can't put my mouse on.
>
> I have a simple slide-out 'cart'.  After you add an item via an ajax
> post, the slide out shows the cart with the new items in it.  My problem
> lies in the scope of the 'close' window.
>
> I'm using the following functions:
>
> $(document).ready(function() {
>     /* Slide down mini cart when user clicks "Add to Cart" button */
>     $(".add-to-cart a").click(function () {
>             //show slide out cart
>             $("#mini-cart").slideDown("slow");  
>     });
>
>     /* Slide up mini cart when user clicks "Close Button" button */
>     $("#close-mini-cart a").click(function () {
>         $("#mini-cart").slideUp("slow");
>     });
>
> });
>
> My problem lies in that i'm using ajax and DOM to add elements to the
> #mini-cart div on the fly based on the request, which eventually prints out
> Close Cart
>
> The slideDown triggers correctly.   And the slideUp works when called
> directly (non-ajax/dom build).
>
> Is this a scope issue?
>
> does jQuery need to be re-initilaized to 'learn' of the new div with
> that particular ID after it's been generated from the back end process?
>
> Thanks for the advice.


[jQuery] cluetip question: is it possible to have tabs inside a cluetip?

2008-06-17 Thread se

here's what i'm trying to achieve, a tooltip that looks like this
 and stays open until closed (no
close button there atm). is this possible, and if so -- how? i tried
to rebuild this into the page from where the tooltip is called but i
couldn't get it to work at all. any help on how to proceed here is
highly appreciated!




[jQuery] Validation plugin help please

2008-06-17 Thread Lossed

Hi. I tried posting this to the plugin group days ago but it's not
showing
and I'm not sure if it's every going to show.


My form disappears when the focus changes between form fields. Here's
an example:
--


   $(document).ready(function() {
   var errorBox=$("div ul  li  div.duh");
   $("#theForm").validate({
   rules: {
   input1: {
   required: true,
   number: true
   }
   },
   messages: {
   input1: 'input1 error'
   },
   errorContainer: errorBox,
   errorLabelContainer: $("ul",errorBox),
   wrapper: 'li'
   });
   });



   
   
   
   
   
   1
   2
   
   
   
   
   
   

---

If I click submit, the error container correctly shows the errors, and
with the errors showing, I can tab through the fields fine. But if I
refresh the form, so it's not showing errors, and try tabbing through
them, the form disappears. Also, if I just run the form and error
container div by themselves, not nested in all the other elements, and
point the JS to just the error div, such as: var errorBox=$
("div.duh");
then the form works fine and I can tab through the fields no problem.

Can anyone see what I'm doing wrong please?
This is my first attempt with this plugin and I am lost. I've looked
at the docs and example but am not sure what I'm missing or have
wrong :(


[jQuery] Re: li:gt(...) keeps counting to the next list

2008-06-17 Thread Karl Rudd

The selector "ul li" selects _all_ LI elements in all UL elements, and
puts them in the same "collection". So the collection/array will look
like this:

  alpha, beta, gamma, delta

If you want to deal with each UL element separately then use "each()", like so:

  $("ul").each( function() {
// this == a UL element
$("li:gt(0)", this).hide();
// etc
  });

Karl Rudd

On Tue, Jun 17, 2008 at 10:51 PM, Panos <[EMAIL PROTECTED]> wrote:
>
> Using two ul lists:
>
> 
>alpha
>beta
> 
>
> 
>gamma
>delta
> 
>
> In jQuery, I am trying to select all li's *except* the first one:
>
> $("ul li:gt(0)").hide();
>
> and then on hover, reveal them:
>
> $("ul:first-child").hover(
>function() {
>$("#preferences ul li:gt(0)").show();
>},
>function() {
>$("#preferences ul li:gt(0)").hide();
>}
> );
>
>
> The problem is, that the selector "ul li:gt(0)", goes on and hides the
> second list ('gamma', 'delta').
>
> As those are two individual lists, I thought that 'gamma' was
> index[0], and not part of the first list, ie index[2].
>
> Am I wrong? Is there another way to do this?
>


[jQuery] scope of jquery functions?

2008-06-17 Thread Brian Cummiskey

Hello all,

New to this list and working on my first site with jQuery.  So far so 
good, for the most part.

I've run into one problem that i can't put my mouse on.

I have a simple slide-out 'cart'.  After you add an item via an ajax 
post, the slide out shows the cart with the new items in it.  My problem 
lies in the scope of the 'close' window.

I'm using the following functions:

$(document).ready(function() { 
/* Slide down mini cart when user clicks "Add to Cart" button */
$(".add-to-cart a").click(function () {
//show slide out cart
$("#mini-cart").slideDown("slow");   
});

/* Slide up mini cart when user clicks "Close Button" button */
$("#close-mini-cart a").click(function () {
$("#mini-cart").slideUp("slow");
});
});




My problem lies in that i'm using ajax and DOM to add elements to the 
#mini-cart div on the fly based on the request, which eventually prints out
Close Cart

The slideDown triggers correctly.   And the slideUp works when called 
directly (non-ajax/dom build).


Is this a scope issue?

does jQuery need to be re-initilaized to 'learn' of the new div with 
that particular ID after it's been generated from the back end process?


Thanks for the advice.




[jQuery] Re: Help with tabsLoad

2008-06-17 Thread keny

Hi,

Thanks now ist 99% right and better.

Everyting work for the fisrt level of link but not for other one.

If you check my examle under tab # 2 click to load page #3
Page load in the tab  right.  (a big big thanks you !)

Next click to load page #1 or #2
Page load not in tab .

Is it possible to make that one load in tab 2 ? Why that page will not
load in tab ?

Thanks you very much for your time, patience and effort on this
problem.

On 17 juin, 02:07, Klaus Hartl <[EMAIL PROTECTED]> wrote:
> No that's wrong. As I already stated:
>
> The problem with your loadTab function was that it was
> reinitializing tabs turning them into in-page tabs as all anchor
> elements are already pointing to a hash at that point of time.
>
> In other words, you must not call tabs() a second time.
>
> The problem with using a function in javascript: is that the keyword
> "this" doesn't refer to what I expected it to. By using this technique
> you're making things unnecessarily difficult.
>
> You're saying that you need some links to have that behaviour and some
> not. That is easy and that's what selectors are for.
>
> So, I suggest to add a certain class, for example "remote", to these
> links and select only these:
>
> I will load content via Ajax
>
> $(function() {
>     $('#container-8 > ul').tabs({
>         load: function(ui) {
>             $('a.remote', ui.panel).click(function() {
>                 $(ui.panel).load(this.href);
>                 return false;
>             });
>         }
>     });
>
> });
>
> --Klaus
>
> On 16 Jun., 23:30, keny <[EMAIL PROTECTED]> wrote:
>
>
>
> > Hi,
>
> > Without the return statement nothing happen :-(
>
> > And i understand why you told me to choose a normal link but dont
> > worry ist in a member section of my site and google dont even crawl
> > those web page. And i can't use the second function as in the page i
> > show i whant some link to point to my function (and load in tab) and
> > some to do not load in tab that why i try to use the first function.
>
> > that no way to use that one and reload the tab to work after ?
>
> > function loadTab(tab) {
> > var tab ;
>
> >         $('#container-8').tabs({
> >     load: function(ui) {
>
> >             $(ui.panel).load(tab);
>
> > // here someting to make it work ???
>
> >     }
>
> > });
> > }
>
> > thanks you
>
> > On 16 juin, 02:12, Klaus Hartl <[EMAIL PROTECTED]> wrote:
>
> > > Sigh, I'm not used to using javascript: urls in links, which is
> > > considered bad practice. Please change it to:
>
> > > javascript:void(loadTab( 'ahah_3.html' ));
>
> > > Removing the return statement should also work:
>
> > > function loadTab(url) {
> > >     $(this).parents('#container-8').load(url);
>
> > > }
>
> > > Please 
> > > read:http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Op...
>
> > > But I encourage you to use a standard link
>
> > > ...
>
> > > and bind an event to ajaxify this link by using the load callback in
> > > tabs itself. All you need is this then:
>
> > > $(function() {
> > >     $('#container-8 > ul').tabs({
> > >         load: function(ui) {
> > >             $('a', ui.panel).click(function() {
> > >                 $(ui.panel).load(this.href);
> > >                 return false;
> > >             });
> > >         }
> > >     });
>
> > > });
>
> > > --Klaus
>
> > > On 16 Jun., 01:01, keny <[EMAIL PROTECTED]> wrote:
>
> > > > Hi, thanks again for answer me,
>
> > > > Your function dont work, it only show in another page the word false
>
> > > > I have try all of these combinaison whit the same result :
>
> > > > function loadTab(url) {
> > > > var url;
> > > >     $(this).parents('div.ui-tabs-panel').load(url);
> > > >     return false;
>
> > > > }
>
> > > > function loadTab(url) {
> > > >     $(this).parents('#container-8').load(url);
> > > >     return false;
>
> > > > }
>
> > > > See by yourself here :http://www.snipvideo.com/tabs/
>
> > > > Thanks
>
> > > > On 15 juin, 18:27, Klaus Hartl <[EMAIL PROTECTED]> wrote:
>
> > > > > Ah, I see. Please change the loadTab function to this:
>
> > > > > function loadTab(url) {
> > > > >     $(this).parents('div.ui-tabs-panel').load(url);
> > > > >     return false;
>
> > > > > }
>
> > > > > and try again. The problem with your loadTab function was that it was
> > > > > reinitializing tabs turning them into in-page tabs as all anchor
> > > > > elements are already pointing to a hash at that point of time.
>
> > > > > --Klaus
>
> > > > > On 15 Jun., 16:55, keny <[EMAIL PROTECTED]> wrote:
>
> > > > > > Hi,
>
> > > > > > Ya like i said everyting work the link is loaded but afther that,
> > > > > >  even if you click on tab 1 or 2 or 3 the page d'ont load anymore 
> > > > > > ist
> > > > > > stay to page 3
>
> > > > > > If i click tab 1 ist should reload the page 1 same thing for tab 2 
> > > > > > ...
>
> > > > > > Thank you !
>
> > > > > > On 15 juin, 02:50, Klaus Hartl <[EMAIL PROTECTED]> wrote:
>
> > > > > > > So what is going wrong now? To me it looks like 

[jQuery] Re: $.("anc desc").text() returns all text, not descendant

2008-06-17 Thread Adam

Sorry...

To bring it all together, you could do:

$(this).children('.personal').text();

That will give you the text for the current divs child div.personal.

Adam




On Jun 17, 5:20 pm, Adam <[EMAIL PROTECTED]> wrote:
> Hey,
>
> 1. Let's say your div is #mydiv.
>
> Use
> $('#mydiv .personal').text()
> or
> $('#mydiv').children('.personal').text()
>
> 2. To get descendants use children(expr) or contents() 
> -http://docs.jquery.com/Traversing
>
> 3. To get current element use $(this) or to add to selection use
> andSelf() -http://docs.jquery.com/Traversing/andSelf
>
> Adam
>
> On Jun 17, 5:01 pm, mkn <[EMAIL PROTECTED]> wrote:
>
> > Hi all,
>
> > Feel free to refer me to a FAQ if I've missed one.
>
> > Where 'a' is a jquery object representing a div element, I have
> >         a.("#" + a.attr('id') + " .personal").text()
> > in my code. I would expect that this would return only the text of the
> > descendant node with the class "personal," but I receive back the text
> > of the '#id' node. Am I doing something incorrectly?
>
> > Also, I've got that self-referential selector because I have been
> > unable
> > to find either 1) a jquery method that allows me to grab all the
> > descendants of a and then filter them, or 2) a selector that allows me
> > to refer to the current element. (Will a quoted "this" do that?)
>
> > Thanks


[jQuery] Re: Help with tabsLoad

2008-06-17 Thread keny

Opss the example is here :
http://www.snipvideo.com/tabs/

Thanks

On 17 juin, 02:07, Klaus Hartl <[EMAIL PROTECTED]> wrote:
> No that's wrong. As I already stated:
>
> The problem with your loadTab function was that it was
> reinitializing tabs turning them into in-page tabs as all anchor
> elements are already pointing to a hash at that point of time.
>
> In other words, you must not call tabs() a second time.
>
> The problem with using a function in javascript: is that the keyword
> "this" doesn't refer to what I expected it to. By using this technique
> you're making things unnecessarily difficult.
>
> You're saying that you need some links to have that behaviour and some
> not. That is easy and that's what selectors are for.
>
> So, I suggest to add a certain class, for example "remote", to these
> links and select only these:
>
> I will load content via Ajax
>
> $(function() {
>     $('#container-8 > ul').tabs({
>         load: function(ui) {
>             $('a.remote', ui.panel).click(function() {
>                 $(ui.panel).load(this.href);
>                 return false;
>             });
>         }
>     });
>
> });
>
> --Klaus
>
> On 16 Jun., 23:30, keny <[EMAIL PROTECTED]> wrote:
>
>
>
> > Hi,
>
> > Without the return statement nothing happen :-(
>
> > And i understand why you told me to choose a normal link but dont
> > worry ist in a member section of my site and google dont even crawl
> > those web page. And i can't use the second function as in the page i
> > show i whant some link to point to my function (and load in tab) and
> > some to do not load in tab that why i try to use the first function.
>
> > that no way to use that one and reload the tab to work after ?
>
> > function loadTab(tab) {
> > var tab ;
>
> >         $('#container-8').tabs({
> >     load: function(ui) {
>
> >             $(ui.panel).load(tab);
>
> > // here someting to make it work ???
>
> >     }
>
> > });
> > }
>
> > thanks you
>
> > On 16 juin, 02:12, Klaus Hartl <[EMAIL PROTECTED]> wrote:
>
> > > Sigh, I'm not used to using javascript: urls in links, which is
> > > considered bad practice. Please change it to:
>
> > > javascript:void(loadTab( 'ahah_3.html' ));
>
> > > Removing the return statement should also work:
>
> > > function loadTab(url) {
> > >     $(this).parents('#container-8').load(url);
>
> > > }
>
> > > Please 
> > > read:http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Op...
>
> > > But I encourage you to use a standard link
>
> > > ...
>
> > > and bind an event to ajaxify this link by using the load callback in
> > > tabs itself. All you need is this then:
>
> > > $(function() {
> > >     $('#container-8 > ul').tabs({
> > >         load: function(ui) {
> > >             $('a', ui.panel).click(function() {
> > >                 $(ui.panel).load(this.href);
> > >                 return false;
> > >             });
> > >         }
> > >     });
>
> > > });
>
> > > --Klaus
>
> > > On 16 Jun., 01:01, keny <[EMAIL PROTECTED]> wrote:
>
> > > > Hi, thanks again for answer me,
>
> > > > Your function dont work, it only show in another page the word false
>
> > > > I have try all of these combinaison whit the same result :
>
> > > > function loadTab(url) {
> > > > var url;
> > > >     $(this).parents('div.ui-tabs-panel').load(url);
> > > >     return false;
>
> > > > }
>
> > > > function loadTab(url) {
> > > >     $(this).parents('#container-8').load(url);
> > > >     return false;
>
> > > > }
>
> > > > See by yourself here :http://www.snipvideo.com/tabs/
>
> > > > Thanks
>
> > > > On 15 juin, 18:27, Klaus Hartl <[EMAIL PROTECTED]> wrote:
>
> > > > > Ah, I see. Please change the loadTab function to this:
>
> > > > > function loadTab(url) {
> > > > >     $(this).parents('div.ui-tabs-panel').load(url);
> > > > >     return false;
>
> > > > > }
>
> > > > > and try again. The problem with your loadTab function was that it was
> > > > > reinitializing tabs turning them into in-page tabs as all anchor
> > > > > elements are already pointing to a hash at that point of time.
>
> > > > > --Klaus
>
> > > > > On 15 Jun., 16:55, keny <[EMAIL PROTECTED]> wrote:
>
> > > > > > Hi,
>
> > > > > > Ya like i said everyting work the link is loaded but afther that,
> > > > > >  even if you click on tab 1 or 2 or 3 the page d'ont load anymore 
> > > > > > ist
> > > > > > stay to page 3
>
> > > > > > If i click tab 1 ist should reload the page 1 same thing for tab 2 
> > > > > > ...
>
> > > > > > Thank you !
>
> > > > > > On 15 juin, 02:50, Klaus Hartl <[EMAIL PROTECTED]> wrote:
>
> > > > > > > So what is going wrong now? To me it looks like everything works 
> > > > > > > as
> > > > > > > expected (Tabs are loading correctly and the link saying "This 
> > > > > > > link
> > > > > > > load page 3 in current tab via ajax" does exactly what it says)...
>
> > > > > > > --Klaus
>
> > > > > > > On 15 Jun., 00:36, keny <[EMAIL PROTECTED]> wrote:
>
> > > > > > > > hi thanks for helping
>
> > > > > > > > i have upload

[jQuery] Re: Is there a way to use the css function with $(document) directly?

2008-06-17 Thread Brian J. Fink

@Hamish: Yes, that is what I had in mind, but more like:

$(document).css('p','color: red; border: 1px gray
inset').css('h1','font-size: 200%; text-align: center; text-transform:
small-caps');

On Jun 16, 4:41 pm, Hamish Campbell <[EMAIL PROTECTED]> wrote:
> As an example do you mean:
>
> $(document).css('p', 'color: red').css('h1', 'font-size: 200%');
>
> On Jun 14, 6:13 am, "Brian J. Fink" <[EMAIL PROTECTED]> wrote:
>
> > I was tinkering with jQuery when I got an idea: why not have a way to
> > do something like:
>
> > $(document).css(selector,rule);
>
> > Then it could be chained for as many rules as you would wish:
>
> > $
> > (document).css(selector1,rule1).css(selector2,rule2)...css(selectorN,ruleN)­;
>
> > If this is already part of the jQuery functionality, tell me the
> > syntax to use. Otherwise, consider this a submission of a new idea.


[jQuery] Re: Is there a way to use the css function with $(document) directly?

2008-06-17 Thread Brian J. Fink

Thanks for the pointer! Say, is there a way this functionality could
be integrated into jQuery itself? I also think that the structure is
still a little awkward, but I'm glad someone thought of it already.
Can I chain like this?

$.rule('a{text-decoration:none}','style').rule('h2{text-
align:center}','style').rule...

Also consider that you may want to distinguish between one window's
document and another's, as in:

$(document).rule(...)
$("iframe#f1").rule(...)

These might be considered. Also in the demos it is unclear whether the
style rule is added to the FIRST tag called "style" or ALL of them,
since your page contains only one. This makes a difference, because
the style listed last in the document is the one that gets applied.

On Jun 17, 8:42 am, Ariel Flesler <[EMAIL PROTECTED]> wrote:
> There is a plugin for that, it's called Rule:
>
> http://flesler.blogspot.com/2007/11/jqueryrule.html
>
> Cheers
> --
> Ariel Fleslerhttp://flesler.blogspot.com
>
> On 16 jun, 05:32, Olaf Bosch <[EMAIL PROTECTED]> wrote:
>
> > Brian J. Fink schrieb:
>
> > > $(document).css(selector1,rule1).css(selector2,rule2)...css(selectorN,ruleN­);
>
> > > If this is already part of the jQuery functionality, tell me the
> > > syntax to use.
>
> > Yes, it's ON:
>
> >   $("p").css({ color: "red", background: "blue" });
>
> > --
> > Viele Grüße, Olaf
>
> > ---
> > [EMAIL 
> > PROTECTED]://olaf-bosch.de/http://ohorn.info/http://www.akitafreund.de/
> > ---


[jQuery] Re: bug in jquery.form.js / function cb()

2008-06-17 Thread Fil

> Fixed. 1.3 won't break the present version of jQuery.Form.
> Thanks for catching.

Great! thanks a lot.

-- Fil


[jQuery] Re: xml parsing error

2008-06-17 Thread Sam Sherlock
first off I am no jquery or javascripot guru  - I got this working in both
ie6 & ff3

in parse.js uncomment the ajax attempt and try the following

$.ajax({
type: "GET",
url: path,
dataType: "xml",
success: function(data)
{
/* perform a function on each *'ele' *inside *'root'* and simply
alert
   the index (i) and contained text value (v) */
$.each($('root ele', data), function(i, v){
alert(i +' - ' + $(v).text());
});
}
});

perhaps a more esteemed jquerian will expand / improve upon this (it works
but perhaps
there is a draw back I am unaware of)

- S

2008/6/17 koko <[EMAIL PROTECTED]>:

>
> Hello,
>
> I have a problem and I googled it for the solution but it seems that
> there is no solution for it !!
>
> I used $.get and $.ajax but the same problem
>
> could you take a look at the source  just open index.html in IE
> and FF and see the difference
>
> also take a look at the comments in parse.js ...
>
> http://www.4shared.com/file/51709870/9e323fe8/xml.html
>
>
> appreciate it
>


[jQuery] Re: hover flickering, snow storm pixels on JPGs (beginner problem)

2008-06-17 Thread tlob

Ok, will manage to squeeze the Microsoft Bug

What about the hover issue?

Thanks for your help
tom

On Jun 17, 11:25 pm, "Dan G. Switzer, II" <[EMAIL PROTECTED]>
wrote:
> Since the problem is w/absolute black being interpreted as transparent, what
> happens if you put a black background behind the images?
>
> -Dan
>
> >-Original Message-
> >From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
> >Behalf Of Andy Matthews
> >Sent: Tuesday, June 17, 2008 5:16 PM
> >To: jquery-en@googlegroups.com
> >Subject: [jQuery] Re: hover flickering, snow storm pixels on JPGs (beginner
> >problem)
>
> >Ack...both you and I can confirm that it's still a bug in IE7 as well.
>
> >-Original Message-
> >From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
> >Behalf Of tlob
> >Sent: Tuesday, June 17, 2008 3:53 PM
> >To: jQuery (English)
> >Subject: [jQuery] Re: hover flickering, snow storm pixels on JPGs (beginner
> >problem)
>
> >I just found out this one:
> >http://www.alexjudd.com/?p=5
>
> >THANK YOU MICROSOFT argh
>
> >On Jun 17, 10:48 pm, "Andy Matthews" <[EMAIL PROTECTED]> wrote:
> >> Ooops...
>
> >> I spoke too soon. When I click on an image from the list above, THEN I
> >> get the white dots. Interesting that each image's dots are always in
> >> the same place. For example, in gallery 1, if I click on the
> >> black/white image of the man, then click back to the first image, the
> >> dots I see are in the same exact location as the dots in your screenshot.
>
> >> I'm betting that this has something to do with your use of your no
> >> shoplifting
> >> image:http://siggibucher.com/img/siggibucher.com_NO-SHOPLIFTING.gif
>
> >> Try removing that from use and see if it continues to exhibit this
> >behavior.
>
> >> andy
>
> >> -Original Message-
> >> From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED]
> >> On
>
> >> Behalf Of tlob
> >> Sent: Tuesday, June 17, 2008 3:39 PM
> >> To: jQuery (English)
> >> Subject: [jQuery] Re: hover flickering, snow storm pixels on JPGs
> >> (beginner
> >> problem)
>
> >>http://vum.ch/thomas/ie7siggi.jpg
>
> >> On Jun 17, 10:31 pm, "Andy Matthews" <[EMAIL PROTECTED]> wrote:
> >> > I'm looking at it in IE7 and I'm not seeing any of these white
> >> > pixels you're mentioning. Can you confirm the version of IE you're
> >using?
>
> >> > -Original Message-
> >> > From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED]
> >> > On
>
> >> > Behalf Of tlob
> >> > Sent: Tuesday, June 17, 2008 3:21 PM
> >> > To: jQuery (English)
> >> > Subject: [jQuery] hover flickering, snow storm pixels on JPGs
> >> > (beginner
> >> > problem)
>
> >> > Hello
> >> > I try to implement the cycle Plugin. Pretty successful so far.
> >> > Two things are strange:
>
> >> > -The hover function over the main Image, behaves strangely in IE.
> >> > It's more flickering than hovering.
>
> >> > -And some of the Images have strange white pixels on it. Also only in
> >IE.
> >> > Take a look:http://siggibucher.com/index2.php
>
> >> > Can you help me out here?
>
> >> > Thanx
> >> > Tom


[jQuery] Re: Adding the dialog function dynamically to each li element

2008-06-17 Thread Jason Huck

I think, at a bare minimum, you'll want to change this:

var title = $(this h3).val();

...to this:

var title = $('h3', this).text();

...and this:

$(this h3).append...

...to this:

$('h3', this).append...

I think that'll solve your immediate problem.

- jason




On Jun 17, 2:37 pm, Dan <[EMAIL PROTECTED]> wrote:
> I have a list like: TITLE and I
> want to add the content "Open" after TITLE in the h3 tags that will
> open a dialog corresponding to this li, but do this to every other
> element just like it.
>
> $(".editable").each(function(){  //get each editable li element
>         var title = $(this h3).val(); //get the content in the h3 tag
>         $(this h3).append( "OPEN span>" ); //add the open content with a marker so the right dialog is
> opened
>         $(this).append( " class='edit_dialog'>" ).append( $(".same_content") ).append( " div>" ); //create the content in the dialog and mark the dialog div
> with the same marker as the "Open" content/button});
>
> $(".edit_dialog").dialog(); //make the dialog content a dialog
> $(".edit").click(function () { //When the "Open" content is
> clicked, ...
>         var title = $(this).attr("title"); //... get the title marker ...
>         $("div #" + title).dialog("open"); //... and open the corresponding
> dialog
>
> });
>
> I added the comments to this post, they aren't really there on my
> file.
> I think I have the right idea, but my jQuery isn't correct. Firebug
> said the 2nd line was missing a ), but that must be caused by
> something else. How should this look to work like the comments say?


[jQuery] Re: hover flickering, snow storm pixels on JPGs (beginner problem)

2008-06-17 Thread Dan G. Switzer, II

Since the problem is w/absolute black being interpreted as transparent, what
happens if you put a black background behind the images?

-Dan

>-Original Message-
>From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
>Behalf Of Andy Matthews
>Sent: Tuesday, June 17, 2008 5:16 PM
>To: jquery-en@googlegroups.com
>Subject: [jQuery] Re: hover flickering, snow storm pixels on JPGs (beginner
>problem)
>
>
>Ack...both you and I can confirm that it's still a bug in IE7 as well.
>
>-Original Message-
>From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
>Behalf Of tlob
>Sent: Tuesday, June 17, 2008 3:53 PM
>To: jQuery (English)
>Subject: [jQuery] Re: hover flickering, snow storm pixels on JPGs (beginner
>problem)
>
>
>I just found out this one:
>http://www.alexjudd.com/?p=5
>
>THANK YOU MICROSOFT argh
>
>On Jun 17, 10:48 pm, "Andy Matthews" <[EMAIL PROTECTED]> wrote:
>> Ooops...
>>
>> I spoke too soon. When I click on an image from the list above, THEN I
>> get the white dots. Interesting that each image's dots are always in
>> the same place. For example, in gallery 1, if I click on the
>> black/white image of the man, then click back to the first image, the
>> dots I see are in the same exact location as the dots in your screenshot.
>>
>> I'm betting that this has something to do with your use of your no
>> shoplifting
>> image:http://siggibucher.com/img/siggibucher.com_NO-SHOPLIFTING.gif
>>
>> Try removing that from use and see if it continues to exhibit this
>behavior.
>>
>> andy
>>
>> -Original Message-
>> From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED]
>> On
>>
>> Behalf Of tlob
>> Sent: Tuesday, June 17, 2008 3:39 PM
>> To: jQuery (English)
>> Subject: [jQuery] Re: hover flickering, snow storm pixels on JPGs
>> (beginner
>> problem)
>>
>> http://vum.ch/thomas/ie7siggi.jpg
>>
>> On Jun 17, 10:31 pm, "Andy Matthews" <[EMAIL PROTECTED]> wrote:
>> > I'm looking at it in IE7 and I'm not seeing any of these white
>> > pixels you're mentioning. Can you confirm the version of IE you're
>using?
>>
>> > -Original Message-
>> > From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED]
>> > On
>>
>> > Behalf Of tlob
>> > Sent: Tuesday, June 17, 2008 3:21 PM
>> > To: jQuery (English)
>> > Subject: [jQuery] hover flickering, snow storm pixels on JPGs
>> > (beginner
>> > problem)
>>
>> > Hello
>> > I try to implement the cycle Plugin. Pretty successful so far.
>> > Two things are strange:
>>
>> > -The hover function over the main Image, behaves strangely in IE.
>> > It's more flickering than hovering.
>>
>> > -And some of the Images have strange white pixels on it. Also only in
>IE.
>> > Take a look:http://siggibucher.com/index2.php
>>
>> > Can you help me out here?
>>
>> > Thanx
>> > Tom
>




[jQuery] Re: $.("anc desc").text() returns all text, not descendant

2008-06-17 Thread Adam

Hey,

1. Let's say your div is #mydiv.

Use
$('#mydiv .personal').text()
or
$('#mydiv').children('.personal').text()

2. To get descendants use children(expr) or contents() -
http://docs.jquery.com/Traversing

3. To get current element use $(this) or to add to selection use
andSelf() - http://docs.jquery.com/Traversing/andSelf

Adam



On Jun 17, 5:01 pm, mkn <[EMAIL PROTECTED]> wrote:
> Hi all,
>
> Feel free to refer me to a FAQ if I've missed one.
>
> Where 'a' is a jquery object representing a div element, I have
>         a.("#" + a.attr('id') + " .personal").text()
> in my code. I would expect that this would return only the text of the
> descendant node with the class "personal," but I receive back the text
> of the '#id' node. Am I doing something incorrectly?
>
> Also, I've got that self-referential selector because I have been
> unable
> to find either 1) a jquery method that allows me to grab all the
> descendants of a and then filter them, or 2) a selector that allows me
> to refer to the current element. (Will a quoted "this" do that?)
>
> Thanks


[jQuery] xml parsing error

2008-06-17 Thread koko

Hello,

I have a problem and I googled it for the solution but it seems that
there is no solution for it !!

I used $.get and $.ajax but the same problem

could you take a look at the source  just open index.html in IE
and FF and see the difference

also take a look at the comments in parse.js ...

http://www.4shared.com/file/51709870/9e323fe8/xml.html


appreciate it


[jQuery] Re: hover flickering, snow storm pixels on JPGs (beginner problem)

2008-06-17 Thread Mike Alsup

Yes, it's an IE problem.  But it's solvable.  Please read this thread:

http://groups.google.com/group/jquery-en/browse_thread/thread/746b31e7edef9c8c/354fd4b7e5de6cc0


On Jun 17, 5:15 pm, "Andy Matthews" <[EMAIL PROTECTED]> wrote:
> Ack...both you and I can confirm that it's still a bug in IE7 as well.
>


[jQuery] Re: Cycle Plugin - Change Slides and Pause on Hover (existing Pager)

2008-06-17 Thread Mike Alsup

There is pause-on-hover capabilities for the slides themselves, but
not the pager elements.  If you want to turn the auto-slideshow off
just set timeout to zero.

Mike


On Jun 17, 5:04 pm, j_sico <[EMAIL PROTECTED]> wrote:
> Is it possible to both use existing elements for the pager, and to
> change as well as pause on hover? Currently the slides change on hover
> as expected, but the slideshow continues to run.
>
> Here's my code:
>
> $('#front-image').cycle({
>                 speed:  1,
>                 timeout: 2000,
>                 pager:  '#homenav',
>                 pagerEvent: 'mouseover',
>                 pagerAnchorBuilder: function(idx, slide) {
>             // return sel string for existing anchor
>             return '#homenav li:eq(' + (idx) + ') a';
>                 }
>                 });
>                 });
>
> Thanks in advance!


[jQuery] Re: hover flickering, snow storm pixels on JPGs (beginner problem)

2008-06-17 Thread Andy Matthews

Ack...both you and I can confirm that it's still a bug in IE7 as well. 

-Original Message-
From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of tlob
Sent: Tuesday, June 17, 2008 3:53 PM
To: jQuery (English)
Subject: [jQuery] Re: hover flickering, snow storm pixels on JPGs (beginner
problem)


I just found out this one:
http://www.alexjudd.com/?p=5

THANK YOU MICROSOFT argh

On Jun 17, 10:48 pm, "Andy Matthews" <[EMAIL PROTECTED]> wrote:
> Ooops...
>
> I spoke too soon. When I click on an image from the list above, THEN I 
> get the white dots. Interesting that each image's dots are always in 
> the same place. For example, in gallery 1, if I click on the 
> black/white image of the man, then click back to the first image, the 
> dots I see are in the same exact location as the dots in your screenshot.
>
> I'm betting that this has something to do with your use of your no 
> shoplifting 
> image:http://siggibucher.com/img/siggibucher.com_NO-SHOPLIFTING.gif
>
> Try removing that from use and see if it continues to exhibit this
behavior.
>
> andy
>
> -Original Message-
> From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] 
> On
>
> Behalf Of tlob
> Sent: Tuesday, June 17, 2008 3:39 PM
> To: jQuery (English)
> Subject: [jQuery] Re: hover flickering, snow storm pixels on JPGs 
> (beginner
> problem)
>
> http://vum.ch/thomas/ie7siggi.jpg
>
> On Jun 17, 10:31 pm, "Andy Matthews" <[EMAIL PROTECTED]> wrote:
> > I'm looking at it in IE7 and I'm not seeing any of these white 
> > pixels you're mentioning. Can you confirm the version of IE you're
using?
>
> > -Original Message-
> > From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED]
> > On
>
> > Behalf Of tlob
> > Sent: Tuesday, June 17, 2008 3:21 PM
> > To: jQuery (English)
> > Subject: [jQuery] hover flickering, snow storm pixels on JPGs 
> > (beginner
> > problem)
>
> > Hello
> > I try to implement the cycle Plugin. Pretty successful so far.
> > Two things are strange:
>
> > -The hover function over the main Image, behaves strangely in IE. 
> > It's more flickering than hovering.
>
> > -And some of the Images have strange white pixels on it. Also only in
IE.
> > Take a look:http://siggibucher.com/index2.php
>
> > Can you help me out here?
>
> > Thanx
> > Tom




[jQuery] Cycle Plugin - Change Slides and Pause on Hover (existing Pager)

2008-06-17 Thread j_sico

Is it possible to both use existing elements for the pager, and to
change as well as pause on hover? Currently the slides change on hover
as expected, but the slideshow continues to run.

Here's my code:

$('#front-image').cycle({
speed:  1,
timeout: 2000,
pager:  '#homenav',
pagerEvent: 'mouseover',
pagerAnchorBuilder: function(idx, slide) {
// return sel string for existing anchor
return '#homenav li:eq(' + (idx) + ') a';
}
});
});

Thanks in advance!


[jQuery] $.("anc desc").text() returns all text, not descendant's text

2008-06-17 Thread mkn

Hi all,

Feel free to refer me to a FAQ if I've missed one.

Where 'a' is a jquery object representing a div element, I have
a.("#" + a.attr('id') + " .personal").text()
in my code. I would expect that this would return only the text of the
descendant node with the class "personal," but I receive back the text
of the '#id' node. Am I doing something incorrectly?

Also, I've got that self-referential selector because I have been
unable
to find either 1) a jquery method that allows me to grab all the
descendants of a and then filter them, or 2) a selector that allows me
to refer to the current element. (Will a quoted "this" do that?)

Thanks


[jQuery] $.("anc desc").text() returns all text, not descendant

2008-06-17 Thread mkn

Hi all,

Feel free to refer me to a FAQ if I've missed one.

Where 'a' is a jquery object representing a div element, I have
a.("#" + a.attr('id') + " .personal").text()
in my code. I would expect that this would return only the text of the
descendant node with the class "personal," but I receive back the text
of the '#id' node. Am I doing something incorrectly?

Also, I've got that self-referential selector because I have been
unable
to find either 1) a jquery method that allows me to grab all the
descendants of a and then filter them, or 2) a selector that allows me
to refer to the current element. (Will a quoted "this" do that?)

Thanks


[jQuery] Help fading images with jquery.

2008-06-17 Thread Jordbrill

Hey guys,
im brand new to jquery, but have used other javascript frameworks like
mootools before.

all im trying to do is come up with a good way to fade images in and
out.

for example

   image 1.jpg
   image 2.jpg
   image 3.jpg


would fade the above images in and out between each other


[jQuery] Cycle Plugin - Change Slides and Pause on Hover (existing Pager)

2008-06-17 Thread j_sico

Is it possible to both change slides and pause the running slideshow
onmouseover with existing markup used as a pager? I tried to add a
"pause" action before running the slideshow, but that seems to break
the whole thing.

Here's my code:

$('#front-image').cycle({
speed:  1,
timeout: 2000,
pager:  '#homenav',
pagerEvent: 'mouseover',
pagerAnchorBuilder: function(idx, slide) {
// return sel string for existing anchor
return '#homenav li:eq(' + (idx) + ') a';
}
});
});

Thanks in advance!


[jQuery] Re: bug in jquery.form.js / function cb()

2008-06-17 Thread Mike Alsup

> Fixed. 1.3 won't break the present version of jQuery.Form.

To clarify, nothing is broken in released code.  v1.2.6 works fine.
The changeset was destined for 1.3 and has already been fixed by Ariel
(thanks, Ariel!)

Mike


[jQuery] Re: bug in jquery.form.js / function cb()

2008-06-17 Thread Ariel Flesler

Fixed. 1.3 won't break the present version of jQuery.Form.

Thanks for catching.

--
Ariel Flesler
http://flesler.blogspot.com/

On 17 jun, 13:12, Fil <[EMAIL PROTECTED]> wrote:
> Hello,
>
> (sorry for posting to jquery-dev first)
>
> I was trying file uploads with the current jquery.js and
> jquery.form.js, and file upload in form.js fails (FF3/Mac); I located
> the problem in function cb() where $.httpData is called with two
> arguments only. A quick patch is to add a third argument {} in the
> call on line 270, but I have no idea if it's the correct way to do it.
>
> jquery.js:
>  * $Rev: 5726 $
>
> jquery.form.js
>  * Revision: $Id: jquery.form.js 5718 2008-06-07 15:02:19Z malsup $
>
> quick patch:
> -                  data = $.httpData(xhr, opts.dataType);
> +                 data = $.httpData(xhr, opts.dataType, {});
>
> Ticket created @http://dev.jquery.com/ticket/3052
>
> -- Fil


[jQuery] [validate] dynamic form question

2008-06-17 Thread Matt

Hi Jorn and all,

I had a question about the validation plugin. I'm hoping to integrate
the plugin into a page where I am also using the treeview plugin to
display a dynamic JSON form. Essentially the form's shape is
completely dynamic, so I use livequery to add/remove elements. If I
want to validate dynamically created elements, is livequery the way to
go? I'll try and give an example:

Person + - id='person' name='person'
name: matt + - id='person.name' name='person.name'

the +- buttons for Person would create a new Person with an empty name
underneath it. The +- buttons for name would simply create a new name
under the same Person with the id/name being person.name[0] for the
original and person.name[1] for the new name. Currently I use
livequery to bind events/functions to these newly created elements. If
I have a validation rule or method I want to assign to all names, what
would be the best way to do this with your plugin?

I hope this example is clear, if now please let me know and I'll try
to be more specific or give a better example. Thank you very much.,

Matt


[jQuery] Re: hover flickering, snow storm pixels on JPGs (beginner problem)

2008-06-17 Thread tlob

I just found out this one:
http://www.alexjudd.com/?p=5

THANK YOU MICROSOFT argh

On Jun 17, 10:48 pm, "Andy Matthews" <[EMAIL PROTECTED]> wrote:
> Ooops...
>
> I spoke too soon. When I click on an image from the list above, THEN I get
> the white dots. Interesting that each image's dots are always in the same
> place. For example, in gallery 1, if I click on the black/white image of the
> man, then click back to the first image, the dots I see are in the same
> exact location as the dots in your screenshot.
>
> I'm betting that this has something to do with your use of your no
> shoplifting 
> image:http://siggibucher.com/img/siggibucher.com_NO-SHOPLIFTING.gif
>
> Try removing that from use and see if it continues to exhibit this behavior.
>
> andy
>
> -Original Message-
> From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
>
> Behalf Of tlob
> Sent: Tuesday, June 17, 2008 3:39 PM
> To: jQuery (English)
> Subject: [jQuery] Re: hover flickering, snow storm pixels on JPGs (beginner
> problem)
>
> http://vum.ch/thomas/ie7siggi.jpg
>
> On Jun 17, 10:31 pm, "Andy Matthews" <[EMAIL PROTECTED]> wrote:
> > I'm looking at it in IE7 and I'm not seeing any of these white pixels
> > you're mentioning. Can you confirm the version of IE you're using?
>
> > -Original Message-
> > From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED]
> > On
>
> > Behalf Of tlob
> > Sent: Tuesday, June 17, 2008 3:21 PM
> > To: jQuery (English)
> > Subject: [jQuery] hover flickering, snow storm pixels on JPGs
> > (beginner
> > problem)
>
> > Hello
> > I try to implement the cycle Plugin. Pretty successful so far.
> > Two things are strange:
>
> > -The hover function over the main Image, behaves strangely in IE. It's
> > more flickering than hovering.
>
> > -And some of the Images have strange white pixels on it. Also only in IE.
> > Take a look:http://siggibucher.com/index2.php
>
> > Can you help me out here?
>
> > Thanx
> > Tom


[jQuery] Re: bug in jquery.form.js / function cb()

2008-06-17 Thread Ariel Flesler
I know. Mike needs to handle that on the plugin.

Cheers


On 6/17/08, Fil <[EMAIL PROTECTED]> wrote:
>
>
> > I assigned the ticket to Mike Alsup, now we need to wait till he
> > checks it.
> >> Ticket created @http://dev.jquery.com/ticket/3052
>
> In fact as Renato found out it is this changeset that breaks the file
> upload in jquery.form.js:
> http://dev.jquery.com/changeset/5714
>
>
> -- Fil
>
> >
>


-- 
Ariel Flesler
http://flesler.blogspot.com


[jQuery] Re: hover flickering, snow storm pixels on JPGs (beginner problem)

2008-06-17 Thread Andy Matthews

Ooops...

I spoke too soon. When I click on an image from the list above, THEN I get
the white dots. Interesting that each image's dots are always in the same
place. For example, in gallery 1, if I click on the black/white image of the
man, then click back to the first image, the dots I see are in the same
exact location as the dots in your screenshot.

I'm betting that this has something to do with your use of your no
shoplifting image:
http://siggibucher.com/img/siggibucher.com_NO-SHOPLIFTING.gif

Try removing that from use and see if it continues to exhibit this behavior.


andy

-Original Message-
From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of tlob
Sent: Tuesday, June 17, 2008 3:39 PM
To: jQuery (English)
Subject: [jQuery] Re: hover flickering, snow storm pixels on JPGs (beginner
problem)


http://vum.ch/thomas/ie7siggi.jpg

On Jun 17, 10:31 pm, "Andy Matthews" <[EMAIL PROTECTED]> wrote:
> I'm looking at it in IE7 and I'm not seeing any of these white pixels 
> you're mentioning. Can you confirm the version of IE you're using?
>
> -Original Message-
> From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] 
> On
>
> Behalf Of tlob
> Sent: Tuesday, June 17, 2008 3:21 PM
> To: jQuery (English)
> Subject: [jQuery] hover flickering, snow storm pixels on JPGs 
> (beginner
> problem)
>
> Hello
> I try to implement the cycle Plugin. Pretty successful so far.
> Two things are strange:
>
> -The hover function over the main Image, behaves strangely in IE. It's 
> more flickering than hovering.
>
> -And some of the Images have strange white pixels on it. Also only in IE.
> Take a look:http://siggibucher.com/index2.php
>
> Can you help me out here?
>
> Thanx
> Tom




[jQuery] Re: jQuery version

2008-06-17 Thread Pablo Lillia

I respond myself: jQuery.jquery or maybe $.jquery (I only test the first form).
Byes,
Gorlok

2008/6/17 gorlok <[EMAIL PROTECTED]>:
>
> Hi,
> I'm looking for jQuery().version() or something similar. I want to
> verify what version of jQuery is installed.
>
> Thanks in advance!
>
> PD: I'm using jQuery as included in JBoss Richfaces / SEAM.
>


[jQuery] Adding the dialog function dynamically to each li element

2008-06-17 Thread Dan

I have a list like: TITLE and I
want to add the content "Open" after TITLE in the h3 tags that will
open a dialog corresponding to this li, but do this to every other
element just like it.

$(".editable").each(function(){  //get each editable li element
var title = $(this h3).val(); //get the content in the h3 tag
$(this h3).append( "OPEN" ); //add the open content with a marker so the right dialog is
opened
$(this).append( "" ).append( $(".same_content") ).append( "" ); //create the content in the dialog and mark the dialog div
with the same marker as the "Open" content/button
});
$(".edit_dialog").dialog(); //make the dialog content a dialog
$(".edit").click(function () { //When the "Open" content is
clicked, ...
var title = $(this).attr("title"); //... get the title marker ...
$("div #" + title).dialog("open"); //... and open the corresponding
dialog
});

I added the comments to this post, they aren't really there on my
file.
I think I have the right idea, but my jQuery isn't correct. Firebug
said the 2nd line was missing a ), but that must be caused by
something else. How should this look to work like the comments say?


[jQuery] Re: bug in jquery.form.js / function cb()

2008-06-17 Thread Fil

> I assigned the ticket to Mike Alsup, now we need to wait till he
> checks it.
>> Ticket created @http://dev.jquery.com/ticket/3052

In fact as Renato found out it is this changeset that breaks the file
upload in jquery.form.js:
http://dev.jquery.com/changeset/5714


-- Fil


[jQuery] Re: Autocomplete: Multi-dim JSON array and Custom format

2008-06-17 Thread Adam

Ok, that's a great article but not exactly what I need. I don't need
to modify the results of the select (yet) but I need to modify the
output of the results: a mulit-dimensional array that would need to be
looped and shown. It might require a whole script entirely, but
there's just too much good stuff in Jorn's plugin that I could never
do on my own.



On Jun 17, 2:59 pm, Shawn <[EMAIL PROTECTED]> wrote:
> Which autocomplete are you using?  Which version?
>
> Not meaning to do a shameless plug, but I wrote a blog article that
> covered using database IDs with Jorn's autocomplete.
>
> http://grover.open2space.com/node/190
>
> This was back in December, so might be a little dated.  But I believe
> what you are trying to do seems relatively similar.  Perhaps that might
> help?
>
> Shawn
>
> Adam wrote:
> > Tried to post this question once before but didn't seem to work...
>
> > I'm needing to get a multi-dim JSON array to work for my autocomplete,
> > in an effort to mimic the Spotlight design.
>
> > My JSON currently looks like this:
>
> > [
> > {"key":"names", "values":[ bunch of values]},
> > {"key":"emails","values": [ bunch of email values ]}
> > ]
>
> > I am wanting to put into an HTML structure like this:
>
> > 
> > Names
> > name
> > name
>
> > Emails
> > email
> > email
> > 
>
> > Basically, I want my JS to loop through the JSON array and spit out
> > the key into a  tag, then each item into a . Easier said than
> > done.
>
> > Can anyone give me some direction? I've got it as far as listing all
> > the names and emails in 's, but no 's are happening...
>
> > Here is my adapted autocomplete.js code:
>
> >    function parse(data) {
> >            var parsed = [];
> >            $(data).each( function() {
> >                    var rows = this.values;
> >                    for (var i=0; i < rows.length; i++) {
> >                            var row = rows[i];
> >                            if (row) {
> >                                    row = row.split("|");
> >                                    parsed[parsed.length] = {
> >                                            data: row,
> >                                            value: row[0],
> >                                            result: options.formatResult && 
> > options.formatResult(row,
> > row[0]) || row[0]
> >                                    };
> >                            }
> >                    }
> >            });
> >            return parsed;
> >    };
>
> > Thanks.


[jQuery] Re: Autocomplete: Multi-dim JSON array and Custom format

2008-06-17 Thread Adam

I'm using Jorn's autocomplete ver 1.0.1. I'll check out your article
and let you know if it points me in the right direction, thanks.

On Jun 17, 2:59 pm, Shawn <[EMAIL PROTECTED]> wrote:
> Which autocomplete are you using?  Which version?
>
> Not meaning to do a shameless plug, but I wrote a blog article that
> covered using database IDs with Jorn's autocomplete.
>
> http://grover.open2space.com/node/190
>
> This was back in December, so might be a little dated.  But I believe
> what you are trying to do seems relatively similar.  Perhaps that might
> help?
>
> Shawn
>
> Adam wrote:
> > Tried to post this question once before but didn't seem to work...
>
> > I'm needing to get a multi-dim JSON array to work for my autocomplete,
> > in an effort to mimic the Spotlight design.
>
> > My JSON currently looks like this:
>
> > [
> > {"key":"names", "values":[ bunch of values]},
> > {"key":"emails","values": [ bunch of email values ]}
> > ]
>
> > I am wanting to put into an HTML structure like this:
>
> > 
> > Names
> > name
> > name
>
> > Emails
> > email
> > email
> > 
>
> > Basically, I want my JS to loop through the JSON array and spit out
> > the key into a  tag, then each item into a . Easier said than
> > done.
>
> > Can anyone give me some direction? I've got it as far as listing all
> > the names and emails in 's, but no 's are happening...
>
> > Here is my adapted autocomplete.js code:
>
> >    function parse(data) {
> >            var parsed = [];
> >            $(data).each( function() {
> >                    var rows = this.values;
> >                    for (var i=0; i < rows.length; i++) {
> >                            var row = rows[i];
> >                            if (row) {
> >                                    row = row.split("|");
> >                                    parsed[parsed.length] = {
> >                                            data: row,
> >                                            value: row[0],
> >                                            result: options.formatResult && 
> > options.formatResult(row,
> > row[0]) || row[0]
> >                                    };
> >                            }
> >                    }
> >            });
> >            return parsed;
> >    };
>
> > Thanks.


[jQuery] Re: hover flickering, snow storm pixels on JPGs (beginner problem)

2008-06-17 Thread Andy Matthews

Oh wow...

I didn't see anything like that, and I've got the same IE version as you.

When that (or another picture with the same issue) picture appears, click on
the open window and hit CTRL + A and see what happens.

-Original Message-
From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of tlob
Sent: Tuesday, June 17, 2008 3:39 PM
To: jQuery (English)
Subject: [jQuery] Re: hover flickering, snow storm pixels on JPGs (beginner
problem)


http://vum.ch/thomas/ie7siggi.jpg

On Jun 17, 10:31 pm, "Andy Matthews" <[EMAIL PROTECTED]> wrote:
> I'm looking at it in IE7 and I'm not seeing any of these white pixels 
> you're mentioning. Can you confirm the version of IE you're using?
>
> -Original Message-
> From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] 
> On
>
> Behalf Of tlob
> Sent: Tuesday, June 17, 2008 3:21 PM
> To: jQuery (English)
> Subject: [jQuery] hover flickering, snow storm pixels on JPGs 
> (beginner
> problem)
>
> Hello
> I try to implement the cycle Plugin. Pretty successful so far.
> Two things are strange:
>
> -The hover function over the main Image, behaves strangely in IE. It's 
> more flickering than hovering.
>
> -And some of the Images have strange white pixels on it. Also only in IE.
> Take a look:http://siggibucher.com/index2.php
>
> Can you help me out here?
>
> Thanx
> Tom




[jQuery] Re: hover flickering, snow storm pixels on JPGs (beginner problem)

2008-06-17 Thread tlob

http://vum.ch/thomas/ie7siggi.jpg

On Jun 17, 10:31 pm, "Andy Matthews" <[EMAIL PROTECTED]> wrote:
> I'm looking at it in IE7 and I'm not seeing any of these white pixels you're
> mentioning. Can you confirm the version of IE you're using?
>
> -Original Message-
> From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
>
> Behalf Of tlob
> Sent: Tuesday, June 17, 2008 3:21 PM
> To: jQuery (English)
> Subject: [jQuery] hover flickering, snow storm pixels on JPGs (beginner
> problem)
>
> Hello
> I try to implement the cycle Plugin. Pretty successful so far.
> Two things are strange:
>
> -The hover function over the main Image, behaves strangely in IE. It's more
> flickering than hovering.
>
> -And some of the Images have strange white pixels on it. Also only in IE.
> Take a look:http://siggibucher.com/index2.php
>
> Can you help me out here?
>
> Thanx
> Tom


[jQuery] Re: Please review work with JQuery

2008-06-17 Thread Samyak Bhuta

Thanks Rajesh,

I will check this out for sure ... Will it help in SEO front ? 

Samyak

On Tue, Jun 17, 2008 at 4:53 PM, R. Rajesh Jeba Anbiah <[EMAIL PROTECTED]> 
wrote:
>
>
> On Jun 17, 4:11 pm, "Samyak Bhuta" <[EMAIL PROTECTED]> wrote:
> > Thanks Rajesh,
> >
> > Unobtrusiveness was in mind, actually I am not even hiding it but loading it
> > with ajax call. Wanted to load as much less as I could at first place.
>
>You may use hijax as in tabs plugin.
>
> --
>  
> Email: rrjanbiah-at-Y!comBlog: http://rajeshanbiah.blogspot.com/




[jQuery] Re: hover flickering, snow storm pixels on JPGs (beginner problem)

2008-06-17 Thread Andy Matthews

I'm looking at it in IE7 and I'm not seeing any of these white pixels you're
mentioning. Can you confirm the version of IE you're using? 

-Original Message-
From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of tlob
Sent: Tuesday, June 17, 2008 3:21 PM
To: jQuery (English)
Subject: [jQuery] hover flickering, snow storm pixels on JPGs (beginner
problem)


Hello
I try to implement the cycle Plugin. Pretty successful so far.
Two things are strange:

-The hover function over the main Image, behaves strangely in IE. It's more
flickering than hovering.

-And some of the Images have strange white pixels on it. Also only in IE.
Take a look:
http://siggibucher.com/index2.php

Can you help me out here?

Thanx
Tom





[jQuery] hover flickering, snow storm pixels on JPGs (beginner problem)

2008-06-17 Thread tlob

Hello
I try to implement the cycle Plugin. Pretty successful so far.
Two things are strange:

-The hover function over the main Image, behaves strangely in IE. It's
more flickering than hovering.

-And some of the Images have strange white pixels on it. Also only in
IE.
Take a look:
http://siggibucher.com/index2.php

Can you help me out here?

Thanx
Tom




[jQuery] Re: passing 0 to html() doesn't work like it does for other numbers

2008-06-17 Thread Ariel Flesler

Fixed http://dev.jquery.com/ticket/3053

Thanks
--
Ariel Flesler
http://flesler.blogspot.com/

On 17 jun, 00:57, "Morgan Allen" <[EMAIL PROTECTED]> wrote:
> This has to do with the way JS evaluates true and false with 0. !0 == true.
> The simple fix is passing String(0), line 964 (in current svn) is the
> problem, if(!elem) return, change that to if(!elem && elem !== 0) return. I
> will check for a bug report and submit a patch.
>
> On Mon, Jun 16, 2008 at 5:02 PM, Lowell <[EMAIL PROTECTED]> wrote:
>
> > When I call html(5) it will set the innerHtml of my element(s) to "5".
> > However, zero seems to work differently. When I call html(0), it
> > removes the contents of my element(s) and does not append anything. I
> > had hoped after a call to html(0), that html() would return "0".
>
> > Is this the expected behavior, or is this a bug?
>
> > Thanks,
> > Lowell
>
> --http://morglog.alleycatracing.com
> Lets make up more accronyms!
>
> http://www.alleycatracing.com
> LTABOTIIOFR! ROFL! ROFL! ROFL!
> Upcoming alley cats, reviews, touring logs, and a general congregation of
> bike nerdity.


[jQuery] Re: bug in jquery.form.js / function cb()

2008-06-17 Thread Ariel Flesler

I assigned the ticket to Mike Alsup, now we need to wait till he
checks it.

Cheers

--
Ariel Flesler
http://flesler.blogspot.com/

On 17 jun, 13:12, Fil <[EMAIL PROTECTED]> wrote:
> Hello,
>
> (sorry for posting to jquery-dev first)
>
> I was trying file uploads with the current jquery.js and
> jquery.form.js, and file upload in form.js fails (FF3/Mac); I located
> the problem in function cb() where $.httpData is called with two
> arguments only. A quick patch is to add a third argument {} in the
> call on line 270, but I have no idea if it's the correct way to do it.
>
> jquery.js:
>  * $Rev: 5726 $
>
> jquery.form.js
>  * Revision: $Id: jquery.form.js 5718 2008-06-07 15:02:19Z malsup $
>
> quick patch:
> -                  data = $.httpData(xhr, opts.dataType);
> +                 data = $.httpData(xhr, opts.dataType, {});
>
> Ticket created @http://dev.jquery.com/ticket/3052
>
> -- Fil


[jQuery] Re: Looking for help with a small jquery project by a noob

2008-06-17 Thread Ariel Flesler

$(document).ready(function(){
  var $checks = $("input[name=myradiobutton]"),
$field = $("#txtfld");

  $checks.click(function(){
var value = $checks.filter(':checked').attr('value');
$field[ value == "r2" ? "show" : "hide" ]();
  });
});

The change event works oddly on IE, so this should be a safe approach.
I haven't tested the code, it should work.

Cheers

--
Ariel Flesler
http://flesler.blogspot.com/

On 17 jun, 15:29, The Gorf <[EMAIL PROTECTED]> wrote:
> Does anyone have any input on this please?  It would be very helpful.
> I'm still very stuck.
>
> -Geoff
>
> On Jun 13, 5:48 pm, The Gorf <[EMAIL PROTECTED]> wrote:
>
>
>
> > Greetings all.  I am trying to add some jquery code to a few modules I
> > am developing in Drupal 5.x.  I'm struggling to get up to speed with
> > jquery but so far i've been successful in what I have tried to do.
> > Until now.  If you would like to see the discussion I have already
> > started at Drupal it is athttp://drupal.org/node/269197.
>
> > I have a very basic html page to outline what I am trying to do.  A
> > version of it is here:
>
> >http://www.whootis.com/dev/jquery.html
>
> > I have three radio buttons as part of a group.  I want to accomplish 2
> > things:
> > 1> When the page loads, the state of the textfield (hidden or shown)
> > is determined based on what radio button has been set to be checked
> > and the textfield gets set.
> > 2> When ever a user selects radio buttons R1 or R3 the textfield
> > remains hidden, and when the user clicks on R2 the textfield becomes
> > visible.
>
> > I have stumbled through various examples and gotten it to work
> > sometimes, and other times I can't get it to work at all.  Can someone
> > help me out here with some advice?
>
> > -Geoff
>
> > For reference here is the example page:
>
> > 
> >     
> >         
> >         
> >             $(document).ready(function()
> >             {
> >               var checkedValue = $
> > ("[EMAIL PROTECTED]'myradiobutton']").val("r2");
> >               $(checkedValue).is(':checked') ? $("#txtfld").hide() : $
> > ("#txtfld").show();
>
> >               $('input').click(function()
> >               {
> >                 $
> > ("[EMAIL PROTECTED]'myradiobutton']").val("r2").is(':checked') ? $
> > ("#txtfld").show() : $("#txtfld").hide();
> >               });
> >             });
> >         
> >     
>
> >     
> >         
> >          > checked="true" />1st
>
> >         2nd
> >         
> >           Milk
> >           Coffee
> >           Tea
> >         
> >         3rd
> >         
> >     
> > - Ocultar texto de la cita -
>
> - Mostrar texto de la cita -


[jQuery] Re: Autocomplete: Multi-dim JSON array and Custom format

2008-06-17 Thread Shawn


Which autocomplete are you using?  Which version?

Not meaning to do a shameless plug, but I wrote a blog article that 
covered using database IDs with Jorn's autocomplete.


http://grover.open2space.com/node/190

This was back in December, so might be a little dated.  But I believe 
what you are trying to do seems relatively similar.  Perhaps that might 
help?


Shawn

Adam wrote:

Tried to post this question once before but didn't seem to work...

I'm needing to get a multi-dim JSON array to work for my autocomplete,
in an effort to mimic the Spotlight design.

My JSON currently looks like this:

[
{"key":"names", "values":[ bunch of values]},
{"key":"emails","values": [ bunch of email values ]}
]

I am wanting to put into an HTML structure like this:


Names
name
name

Emails
email
email


Basically, I want my JS to loop through the JSON array and spit out
the key into a  tag, then each item into a . Easier said than
done.

Can anyone give me some direction? I've got it as far as listing all
the names and emails in 's, but no 's are happening...

Here is my adapted autocomplete.js code:

function parse(data) {
var parsed = [];
$(data).each( function() {
var rows = this.values;
for (var i=0; i < rows.length; i++) {
var row = rows[i];
if (row) {
row = row.split("|");
parsed[parsed.length] = {
data: row,
value: row[0],
result: options.formatResult && 
options.formatResult(row,
row[0]) || row[0]
};
}
}
});
return parsed;
};

Thanks.


[jQuery] detecting old browsers that can't use jQuery

2008-06-17 Thread cfdvlpr

I found an old thread here that has some code that looks pretty good:
http://groups.google.com/group/jquery-en/browse_thread/thread/8b53e26326c14e87/37f11594475d5640?lnk=gst&q=browsers+compatible#37f11594475d5640
Is anyone else using code like this?  Can anyone confirm how well this
code works?


[jQuery] Re: Looking for help with a small jquery project by a noob

2008-06-17 Thread The Gorf

Does anyone have any input on this please?  It would be very helpful.
I'm still very stuck.

-Geoff

On Jun 13, 5:48 pm, The Gorf <[EMAIL PROTECTED]> wrote:
> Greetings all.  I am trying to add some jquery code to a few modules I
> am developing in Drupal 5.x.  I'm struggling to get up to speed with
> jquery but so far i've been successful in what I have tried to do.
> Until now.  If you would like to see the discussion I have already
> started at Drupal it is athttp://drupal.org/node/269197.
>
> I have a very basic html page to outline what I am trying to do.  A
> version of it is here:
>
> http://www.whootis.com/dev/jquery.html
>
> I have three radio buttons as part of a group.  I want to accomplish 2
> things:
> 1> When the page loads, the state of the textfield (hidden or shown)
> is determined based on what radio button has been set to be checked
> and the textfield gets set.
> 2> When ever a user selects radio buttons R1 or R3 the textfield
> remains hidden, and when the user clicks on R2 the textfield becomes
> visible.
>
> I have stumbled through various examples and gotten it to work
> sometimes, and other times I can't get it to work at all.  Can someone
> help me out here with some advice?
>
> -Geoff
>
> For reference here is the example page:
>
> 
> 
> 
> 
> $(document).ready(function()
> {
>   var checkedValue = $
> ("[EMAIL PROTECTED]'myradiobutton']").val("r2");
>   $(checkedValue).is(':checked') ? $("#txtfld").hide() : $
> ("#txtfld").show();
>
>   $('input').click(function()
>   {
> $
> ("[EMAIL PROTECTED]'myradiobutton']").val("r2").is(':checked') ? $
> ("#txtfld").show() : $("#txtfld").hide();
>   });
> });
> 
> 
>
> 
> 
>  checked="true" />1st
>
> 2nd
> 
>   Milk
>   Coffee
>   Tea
> 
> 3rd
>
>
> 
> 
> 


[jQuery] bug in jquery.form.js / function cb()

2008-06-17 Thread Fil

Hello,

(sorry for posting to jquery-dev first)

I was trying file uploads with the current jquery.js and
jquery.form.js, and file upload in form.js fails (FF3/Mac); I located
the problem in function cb() where $.httpData is called with two
arguments only. A quick patch is to add a third argument {} in the
call on line 270, but I have no idea if it's the correct way to do it.

jquery.js:
 * $Rev: 5726 $

jquery.form.js
 * Revision: $Id: jquery.form.js 5718 2008-06-07 15:02:19Z malsup $

quick patch:
-  data = $.httpData(xhr, opts.dataType);
+ data = $.httpData(xhr, opts.dataType, {});


Ticket created @ http://dev.jquery.com/ticket/3052


-- Fil


[jQuery] Re: Which grid?

2008-06-17 Thread Ken Gregg

I was using Rico but dropped it for lack of development activity.
Everything but the grid is available in jquery. I would love to see
the dynamic data part of the grid incorporated into flexigrid. Think
that would make a great combination.

http://sourceforge.net/project/showfiles.php?group_id=140375

On Jun 17, 4:08 am, "R. Rajesh Jeba Anbiah"
<[EMAIL PROTECTED]> wrote:
> On Jun 17, 2:23 pm, shapper <[EMAIL PROTECTED]> wrote:
>
> > This one:http://webplicity.net/flexigrid/
>
>Thanks, but there is no live data loading like I mentioned above.
>
> --
>   
> Email: rrjanbiah-at-Y!comBlog:http://rajeshanbiah.blogspot.com/


[jQuery] Re: SproutCore vs jQuery? Are there any comparisons out there?

2008-06-17 Thread Javier Martínez Fernández

But the demos are slw, even in Safari.


El 17/06/2008, a las 18:57, Josh Nathanson escribió:

>
> On the SproutCore site, it talks about it being a complete MVC type  
> framework.  This is a different approach than jQuery.  It reminded  
> me a bit of Spry.
>
> The SproutCore guy did a presentation at the SF Javascript Meetup a  
> couple of months ago, and it sounded pretty interesting.
>
> -- Josh
>
> - Original Message - From: "Andy Matthews" <[EMAIL PROTECTED] 
> >
> To: 
> Sent: Tuesday, June 17, 2008 8:54 AM
> Subject: [jQuery] Re: SproutCore vs jQuery? Are there any  
> comparisons out there?
>
>
>>
>> Yeah...that's what I thought. I've never even heard of it before  
>> WWDC.
>>
>> -Original Message-
>> From: jquery-en@googlegroups.com [mailto:jquery- 
>> [EMAIL PROTECTED] On
>> Behalf Of Rey Bango
>> Sent: Tuesday, June 17, 2008 10:29 AM
>> To: jquery-en@googlegroups.com
>> Subject: [jQuery] Re: SproutCore vs jQuery? Are there any  
>> comparisons out
>> there?
>>
>>
>> There are no comparisons out at the moment. While SproutCore has  
>> recently
>> received a lot of press, it's been completely out of the limelight
>> otherwise.
>>
>> Rey...
>>
>> Andy Matthews wrote:
>>> I'm looking for comparisons between the newly popular JS library
>>> SproutCore and our own favorite, jQuery.
>>>
>>> Mostly I'm looking for feature comparisons in the area of data  
>>> binding
>>> and UI.
>>>
>>> SproutCore's got to be good if Apple decided to use it for their
>>> recerntly announced MobileMe online app. But why? Why not jQuery, or
>>> Dojo, etc?
>>>
>>>
>>> *
>>> 
>>>
>>> Andy Matthews
>>> *Senior ColdFusion Developer
>>>
>>> Office:  615.627.9747
>>> Fax:  615.467.6249
>>> www.dealerskins.com 
>>>
>>> Total customer satisfaction is my number 1 priority! If you are not
>>> completely satisfied with the service I have provided, please let me
>>> know right away so I can correct the problem, or notify my manager
>>> Aaron West at [EMAIL PROTECTED]
>>>
>>
>



[jQuery] problem with selector

2008-06-17 Thread jokin

In going through the 'Learning jQuery' book, I did some experimenting
with the content of 'Chapter 1/alice.html'. Specifically, I have this
selector and statement...

$(document).ready(function() {
$('.poem-stanza > div:eq(1)').addClass('blue_txt');
});

The problem is that when this is applied only the FIRST INSTANCE of
"second child div of class .poem-stanza" gets the new class. Please
note that the alice.html file has TWO INSTANCES of '.poem-stanza >
div:eq(1)'.

YKCOWREBBAJ

sevot yhtils eht dna ,gillirb sawT'
;ebaw eht ni elbmig dna eryg diD   
,sevogorob eht erew ysmim llA
.ebargtuo shtar emom eht dnA

She puzzled over this for some time, but at last a bright thought
struck her. "Why, it's a Looking-glass book, of course! And if I hold
it up to a glass, the words will all go the right way again."
This was the poem that Alice read.

JABBERWOCKY

'Twas brillig, and the slithy toves
Did gyre and gimble in the wabe;
All mimsy were the borogoves,
And the mome raths outgrabe.

QUESTION: Why does the 2nd instance get ignored (unprocessed)? How do
I modify my statement so that the 2nd instance DOES get processed?

THANKS!

JoKin


[jQuery] Autocomplete: Custom output, multi-dim JSON array

2008-06-17 Thread Adam

Hi Jörn (and whomever else)

I'm trying to do something a little more complex with the Autocomplete
plugin. I want to return a Spotlight-like result, so I have a multi-
dimensional JSON array being returned, something like this:

{"names":[ list of names here ], "emails":[ list of emails here ]}

Based on this, I want to create a structure using a definition list,
like:


Names
Name
Name
etc.

Emails
email
email
etc.



I've looked through the documentation and the comments but can't seem
to get it to happen. Could you provide some insight as to going about
parsing the JSON and customizing the output HTML for this?

Thanks in advance!




[jQuery] Re: SproutCore vs jQuery? Are there any comparisons out there?

2008-06-17 Thread Priest, James (NIH/NIEHS) [C]

If you look at their site - it seems it's much more focused on building
actual applications. Looking interesting for sure but not sure if a
direct comparison with jQuery or the other JS libraries can be made.

http://www.sproutcore.com/documentation/getting-started/

Jim 

> -Original Message-
> From: Andy Matthews [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, June 17, 2008 11:55 AM
> To: jquery-en@googlegroups.com
> Subject: [jQuery] Re: SproutCore vs jQuery? Are there any 
> comparisons out there?
> 
> 
> Yeah...that's what I thought. I've never even heard of it 
> before WWDC. 
> 


[jQuery] Autocomplete: Multi-dim JSON array and Custom format

2008-06-17 Thread Adam

Tried to post this question once before but didn't seem to work...

I'm needing to get a multi-dim JSON array to work for my autocomplete,
in an effort to mimic the Spotlight design.

My JSON currently looks like this:

[
{"key":"names", "values":[ bunch of values]},
{"key":"emails","values": [ bunch of email values ]}
]

I am wanting to put into an HTML structure like this:


Names
name
name

Emails
email
email


Basically, I want my JS to loop through the JSON array and spit out
the key into a  tag, then each item into a . Easier said than
done.

Can anyone give me some direction? I've got it as far as listing all
the names and emails in 's, but no 's are happening...

Here is my adapted autocomplete.js code:

function parse(data) {
var parsed = [];
$(data).each( function() {
var rows = this.values;
for (var i=0; i < rows.length; i++) {
var row = rows[i];
if (row) {
row = row.split("|");
parsed[parsed.length] = {
data: row,
value: row[0],
result: options.formatResult && 
options.formatResult(row,
row[0]) || row[0]
};
}
}
});
return parsed;
};

Thanks.


[jQuery] Re: Layout manager

2008-06-17 Thread Jquery user - z

in jqueryUI, you com find something called splitpane in the dir
jquery.ui-1.5\demos\real-world\splitpane\index.html


[jQuery] XML facebox issues, any support would be greatly appreciated

2008-06-17 Thread churock

Here is my issue.  I am dynamically generating XML data that is to
appear in the facebox as a means of displaying additional information
about a product if so desired by the customer.  My problem is this:

I have set up the various   etc., etc., which
break down the xml data into divs and text tags that i want to be seen
by the viewer.  All of these are working properly, generating new
content for each product (name price, image, etc.)  within my for each
i have also included a hidden div to display using facebox.  within
this div there are various pieces of xml data including features,
plan, etc.

the problem:
the data in the the div which facebox is supposed to display only ever
display information for the first list product.  Why is this?  my code
is below.  I am new, so bare with me if you see certain snippets that
aren't as polished as they could be:













]>
http://www.w3.org/1999/XSL/
Transform">
  http://www.w3.org/TR/
xhtml1/DTD/xhtml1-transitional.dtd"/>
  
http://www.w3.org/1999/xhtml";>

Untitled Document




jQuery(document).ready(function($) {
  $('a[rel*=facebox]').facebox({
loading_image : 'loading.gif',
close_image   : 'closelabel.gif'
  })
})



  // When the document loads do everything inside here ...
  $(document).ready(function(){

$("#content_2").addClass("hidden");
$("#content_3").addClass("hidden");

// When a link is clicked
$("#menu a.tab").click(function () {

// switch all tabs off
$(".active").removeClass("active");

// switch this tab on
$(this).addClass("active");

// slide all elements with the class 'content'
up
$(".content").hide();

// Now figure out what the 'title' attribute
value is and find the
element with that id.  Then slide that down.
var content_show = $(this).attr("title");
$("#"+content_show).show();

});

  });
  


...
the problem area is below (just my java in case that could be the
issue)





  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  

  

-->facebox
content<-

   Text Link
   


   

--->rest of xml parsing continues
below<
   



  
 
  
   

  $

  

  

.more content below is omitted.

Any help you can give me with this issue would be HUGELY (caps
necessary) appreciated.

Chad.


[jQuery] Re: SproutCore vs jQuery? Are there any comparisons out there?

2008-06-17 Thread mmw

for me sproutCore Framwork is the middle-age, prototyping everything
that's what I did before jQuery
+ a lot of bugs regarding controls, maybe sproutcore is nicer
regarding the look and feel framework and offers some facilities
for including images but that's the case with jQuery + the MVC is not
documented as well as jQuery and the the object model  is poorin
comparison to jQuery, maybe Apple choose it because it's something
that their developers can understand...


On Jun 17, 8:54 am, "Andy Matthews" <[EMAIL PROTECTED]> wrote:
> Yeah...that's what I thought. I've never even heard of it before WWDC.
>
> -Original Message-
> From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
>
> Behalf Of Rey Bango
> Sent: Tuesday, June 17, 2008 10:29 AM
> To: jquery-en@googlegroups.com
> Subject: [jQuery] Re: SproutCore vs jQuery? Are there any comparisons out
> there?
>
> There are no comparisons out at the moment. While SproutCore has recently
> received a lot of press, it's been completely out of the limelight
> otherwise.
>
> Rey...
>
> Andy Matthews wrote:
> > I'm looking for comparisons between the newly popular JS library
> > SproutCore and our own favorite, jQuery.
>
> > Mostly I'm looking for feature comparisons in the area of data binding
> > and UI.
>
> > SproutCore's got to be good if Apple decided to use it for their
> > recerntly announced MobileMe online app. But why? Why not jQuery, or
> > Dojo, etc?
>
> > *
> > 
>
> > Andy Matthews
> > *Senior ColdFusion Developer
>
> > Office:  615.627.9747
> > Fax:  615.467.6249
> >www.dealerskins.com
>
> > Total customer satisfaction is my number 1 priority! If you are not
> > completely satisfied with the service I have provided, please let me
> > know right away so I can correct the problem, or notify my manager
> > Aaron West at [EMAIL PROTECTED]


[jQuery] jQuery version

2008-06-17 Thread gorlok

Hi,
I'm looking for jQuery().version() or something similar. I want to
verify what version of jQuery is installed.

Thanks in advance!

PD: I'm using jQuery as included in JBoss Richfaces / SEAM.


[jQuery] Re: SproutCore vs jQuery? Are there any comparisons out there?

2008-06-17 Thread Josh Nathanson


On the SproutCore site, it talks about it being a complete MVC type 
framework.  This is a different approach than jQuery.  It reminded me a bit 
of Spry.


The SproutCore guy did a presentation at the SF Javascript Meetup a couple 
of months ago, and it sounded pretty interesting.


-- Josh

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

To: 
Sent: Tuesday, June 17, 2008 8:54 AM
Subject: [jQuery] Re: SproutCore vs jQuery? Are there any comparisons out 
there?





Yeah...that's what I thought. I've never even heard of it before WWDC.

-Original Message-
From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Rey Bango
Sent: Tuesday, June 17, 2008 10:29 AM
To: jquery-en@googlegroups.com
Subject: [jQuery] Re: SproutCore vs jQuery? Are there any comparisons out
there?


There are no comparisons out at the moment. While SproutCore has recently
received a lot of press, it's been completely out of the limelight
otherwise.

Rey...

Andy Matthews wrote:

I'm looking for comparisons between the newly popular JS library
SproutCore and our own favorite, jQuery.

Mostly I'm looking for feature comparisons in the area of data binding
and UI.

SproutCore's got to be good if Apple decided to use it for their
recerntly announced MobileMe online app. But why? Why not jQuery, or
Dojo, etc?


*


Andy Matthews
*Senior ColdFusion Developer

Office:  615.627.9747
Fax:  615.467.6249
www.dealerskins.com 

Total customer satisfaction is my number 1 priority! If you are not
completely satisfied with the service I have provided, please let me
know right away so I can correct the problem, or notify my manager
Aaron West at [EMAIL PROTECTED]








[jQuery] Re: SproutCore vs jQuery? Are there any comparisons out there?

2008-06-17 Thread Erik Beeson

I guess maybe it'll be cool eventually since Apple is apparently
backing it? But from the demos so far, it looks extremely
half-baked...

--Erik


On 6/17/08, Andy Matthews <[EMAIL PROTECTED]> wrote:
>
>  Yeah...that's what I thought. I've never even heard of it before WWDC.
>
>
>  -Original Message-
>  From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
>  Behalf Of Rey Bango
>  Sent: Tuesday, June 17, 2008 10:29 AM
>  To: jquery-en@googlegroups.com
>  Subject: [jQuery] Re: SproutCore vs jQuery? Are there any comparisons out
>  there?
>
>
>  There are no comparisons out at the moment. While SproutCore has recently
>  received a lot of press, it's been completely out of the limelight
>  otherwise.
>
>  Rey...
>
>  Andy Matthews wrote:
>  > I'm looking for comparisons between the newly popular JS library
>  > SproutCore and our own favorite, jQuery.
>  >
>  > Mostly I'm looking for feature comparisons in the area of data binding
>  > and UI.
>  >
>  > SproutCore's got to be good if Apple decided to use it for their
>  > recerntly announced MobileMe online app. But why? Why not jQuery, or
>  > Dojo, etc?
>  >
>  >
>  > *
>  > 
>  >
>  > Andy Matthews
>  > *Senior ColdFusion Developer
>  >
>  > Office:  615.627.9747
>  > Fax:  615.467.6249
>  > www.dealerskins.com 
>  >
>  > Total customer satisfaction is my number 1 priority! If you are not
>  > completely satisfied with the service I have provided, please let me
>  > know right away so I can correct the problem, or notify my manager
>  > Aaron West at [EMAIL PROTECTED]
>  >
>
>
>


[jQuery] Re: SproutCore vs jQuery? Are there any comparisons out there?

2008-06-17 Thread Andy Matthews

Yeah...that's what I thought. I've never even heard of it before WWDC. 

-Original Message-
From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Rey Bango
Sent: Tuesday, June 17, 2008 10:29 AM
To: jquery-en@googlegroups.com
Subject: [jQuery] Re: SproutCore vs jQuery? Are there any comparisons out
there?


There are no comparisons out at the moment. While SproutCore has recently
received a lot of press, it's been completely out of the limelight
otherwise.

Rey...

Andy Matthews wrote:
> I'm looking for comparisons between the newly popular JS library 
> SproutCore and our own favorite, jQuery.
>  
> Mostly I'm looking for feature comparisons in the area of data binding 
> and UI.
>  
> SproutCore's got to be good if Apple decided to use it for their 
> recerntly announced MobileMe online app. But why? Why not jQuery, or 
> Dojo, etc?
>  
>  
> *
> 
>  
> Andy Matthews
> *Senior ColdFusion Developer
> 
> Office:  615.627.9747
> Fax:  615.467.6249
> www.dealerskins.com 
>  
> Total customer satisfaction is my number 1 priority! If you are not 
> completely satisfied with the service I have provided, please let me 
> know right away so I can correct the problem, or notify my manager 
> Aaron West at [EMAIL PROTECTED]
>  




[jQuery] Re: SproutCore vs jQuery? Are there any comparisons out there?

2008-06-17 Thread Rey Bango


There are no comparisons out at the moment. While SproutCore has 
recently received a lot of press, it's been completely out of the 
limelight otherwise.


Rey...

Andy Matthews wrote:
I'm looking for comparisons between the newly popular JS library 
SproutCore and our own favorite, jQuery.
 
Mostly I'm looking for feature comparisons in the area of data binding 
and UI.
 
SproutCore's got to be good if Apple decided to use it for their 
recerntly announced MobileMe online app. But why? Why not jQuery, or 
Dojo, etc?
 
 
*


 
Andy Matthews

*Senior ColdFusion Developer

Office:  615.627.9747
Fax:  615.467.6249
www.dealerskins.com 
 
Total customer satisfaction is my number 1 priority! If you are not 
completely satisfied with the service I have provided, please let me 
know right away so I can correct the problem, or notify my manager Aaron 
West at [EMAIL PROTECTED]
 


[jQuery] Re: ANNOUNCE: black'n'white 1.0

2008-06-17 Thread Andy Matthews

Fair enough, a joke's a joke. There are better ways to get people to switch
browsers than making the page function, or look differently, just because
the user has IE.

Do you have a demo of this plugin in action? The only thing you've got on
your site (which looks very nice by the way) is a link to download the
plugin.


andy 

-Original Message-
From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Massimiliano Balestrieri
Sent: Tuesday, June 17, 2008 10:18 AM
To: jQuery (English)
Subject: [jQuery] Re: ANNOUNCE: black'n'white 1.0


I understand your point but my plugin shouldn't be taken too seriously.
It's something between a joke, a quick hack and a funny "tribute" to this
Firefox day... and, by the way, customers pay me everyday to write
workaround for IE so I think they won't find me less professional for this
little plugin. :)




[jQuery] Re: ANNOUNCE: black'n'white 1.0

2008-06-17 Thread Massimiliano Balestrieri

I understand your point but my plugin shouldn't be taken too
seriously.
It's something between a joke, a quick hack and a funny "tribute" to
this Firefox day... and, by the way, customers pay me everyday to
write workaround for IE so I think they won't find me less
professional for this little plugin. :)


[jQuery] SproutCore vs jQuery? Are there any comparisons out there?

2008-06-17 Thread Andy Matthews
I'm looking for comparisons between the newly popular JS library SproutCore
and our own favorite, jQuery.
 
Mostly I'm looking for feature comparisons in the area of data binding and
UI.
 
SproutCore's got to be good if Apple decided to use it for their recerntly
announced MobileMe online app. But why? Why not jQuery, or Dojo, etc?
 
 

 
Andy Matthews
Senior ColdFusion Developer

Office:  615.627.9747
Fax:  615.467.6249
www.dealerskins.com  
 
Total customer satisfaction is my number 1 priority! If you are not
completely satisfied with the service I have provided, please let me know
right away so I can correct the problem, or notify my manager Aaron West at
[EMAIL PROTECTED]
 
<<2008 Email NADA.jpg>>

[jQuery] Re: ANNOUNCE: black'n'white 1.0

2008-06-17 Thread Andy Matthews
That's a fairly amusing, but ultimately worthless plugin to write.
 
IE isn't going away, it's still the dominant browser, and will be for years
to come.
 
While IE6 is showing it's age (it IS over 6 years old after all), IE7 is
quite good, and is very similar in rendering to FF or Safari.
 
I understand that hating Internet Explorer is sort of de riguer for many web
developers, but I feel that the hate simply makes you look unprofessional.
Professionals work with what they've got and make the best of it.
 
 
andy

  _  

From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Massimiliano Balestrieri
Sent: Tuesday, June 17, 2008 9:05 AM
To: jquery-en@googlegroups.com
Subject: [jQuery] ANNOUNCE: black'n'white 1.0


This plugin is a tribute to the "Firefox Download Day 2008".

This plugin helps people moving away from Internet Explorer turning
the colors of your website to a grayscaled version (using a property
of Explorer itself!).

It was written from an idea of Andy Clarke and with suggest of Simone Parato

http://maxb.net/blog/2008/06/17/blacknwhite/
http://plugins.jquery.com/project/blacknwhite

-- 
Massimiliano Balestrieri

http://www.maxb.net
[EMAIL PROTECTED]

Confidentiality Note: This message is intended only for the named recipient
and may contain confidential, proprietary or legally privileged information.
Unauthorized individuals or entities are not permitted access to this
information. Any dissemination, distribution, or copying of this information
is strictly prohibited. If you have received this message in error, please
advise the sender by reply e-mail, and delete this message and any
attachments. Thank you 


[jQuery] Re: CYCLE PLUGIN -- Creating a Realtime Status/Progress Bar

2008-06-17 Thread Joe

No takers on this?

On Jun 16, 8:29 am, Joe <[EMAIL PROTECTED]> wrote:
> I am using Mike Alsup's Cycle Plugin, but am running into a snag.
> Here is what I'm trying to accomplish:
>
> I have 4  tags each with an image inside that is a link to that
> image:
>
> 
> 
>  width="200" height="200" />
> 
> 
>  width="200" height="200" />
> 
> 
>  width="200" height="200" />
> 
> 
>  width="200" height="200" />
> 
> 
>
> Here is the initial call:
>
> // Timeout and Speed Values
> var tVal = 3000;
> var sVal = 1000;
>
> $('#slides').cycle( {fx: 'fade', speed: sVal, timeout: tVal });
>
> Now, I am using the Report Progress plugin as well, which builds a
> simple progress/status bar. 
> (http://digitalbush.com/projects/progress-bar-plugin
> )
>
> I have the progress bar using the same time value as the cycle plugin,
> namely, the variable "tVal".  So when the page loads, the progress for
> how much longer the current image (the ) is going to be shown is
> displayed.  However, when the user mouse's over the image, the cycle
> plugin "pauses" as does the progress bar, and then on mouseout the
> progress bar continues as does the current image cycle.
>
> The issue is if I mouseover with say only 30% of the time elapsed,
> pause, and then mouseout, the progress bar restarts at 31% and
> continues fine, but the image suddenly fades to the next one.  As if
> the transition itself paused, but the time interval did not.  Or
> sometimes, I does the opposite, where the progress bar is "ahead" of
> the transition, or simply the transition is lagging.  Have a look via
> the link below.
>
> Ultimately, I will need the progress bar itself to reset upon each new
> image load, but for the time being I need to get them in sync with
> each other.
>
> Any ideas on this?
>
> www.subprint.com/dev/cycle/
>
> Thanks.


[jQuery] Re: XML parsererror?? Where's the problem?

2008-06-17 Thread Mike Alsup


> The problem is that the javascript never reaches the success function
> and stays stuck @ the function error, printing out the XML response
> correctly and alerting me with the "parsererror" message ( the type
> variable of error: function(request, type) )
> Where's the problem? What do i have to do?
> Thanks in advance!


Make sure there is no leading whitespace in the returned XML
document.  That will cause the parser to barf.


[jQuery] ANNOUNCE: black'n'white 1.0

2008-06-17 Thread Massimiliano Balestrieri
This plugin is a tribute to the "Firefox Download Day 2008".

This plugin helps people moving away from Internet Explorer turning
the colors of your website to a grayscaled version (using a property
of Explorer itself!).

It was written from an idea of Andy Clarke and with suggest of Simone Parato

http://maxb.net/blog/2008/06/17/blacknwhite/
http://plugins.jquery.com/project/blacknwhite

-- 
Massimiliano Balestrieri

http://www.maxb.net
[EMAIL PROTECTED]

Confidentiality Note: This message is intended only for the named recipient
and may contain confidential, proprietary or legally privileged information.
Unauthorized individuals or entities are not permitted access to this
information. Any dissemination, distribution, or copying of this information
is strictly prohibited. If you have received this message in error, please
advise the sender by reply e-mail, and delete this message and any
attachments. Thank you


[jQuery] li:gt(...) keeps counting to the next list

2008-06-17 Thread Panos

Using two ul lists:


alpha
beta



gamma
delta


In jQuery, I am trying to select all li's *except* the first one:

$("ul li:gt(0)").hide();

and then on hover, reveal them:

$("ul:first-child").hover(
function() {
$("#preferences ul li:gt(0)").show();
},
function() {
$("#preferences ul li:gt(0)").hide();
}
);


The problem is, that the selector "ul li:gt(0)", goes on and hides the
second list ('gamma', 'delta').

As those are two individual lists, I thought that 'gamma' was
index[0], and not part of the first list, ie index[2].

Am I wrong? Is there another way to do this?


[jQuery] Re: Layout manager

2008-06-17 Thread Stefan Sturm

Hello,

>
> During my search for a layout manager as the extjs, I came across with
> this http://www.seprol.com.br/test/layout/page2.htm, (dependent on
> mootools) i would like to know if is possible to convert to jquery,
> with all the options, since the layout currently in jqueryUI, still
> lacks some options. ( ou better, inprove the splitpane to do the same
> things that this do.)

where can I find the Layout currently in jQueryUI?

Thanks,
Stefan Sturm


[jQuery] li:gt(...) keeps counting to the next list

2008-06-17 Thread Panos

Using two ul lists:


alpha
beta



gamma
delta


In jQuery, I am trying to select all li's *except* the first one:

$("ul li:gt(0)").hide();

and then on hover, reveal them:

$("ul:first-child").hover(
function() {
$("#preferences ul li:gt(0)").show();
},
function() {
$("#preferences ul li:gt(0)").hide();
}
);


The problem is, that the selector "ul li:gt(0)", goes on and hides the
second list ('gamma', 'delta').

As those are two individual lists, I thought that 'gamma' was
index[0], and not part of the first list, ie index[2].

Am I wrong? Is there another way to do this?


[jQuery] Re: imageAreaSelect bug

2008-06-17 Thread webmotionuk

Try this instead:

$(document).ready(function(){
   $('#asdf').slideDown('slow');
   $('#asdf img').imgAreaSelect({ maxWidth: 20, maxHeight:
20 });
});

The imageareaselect will be called after the image is loaded, You
could even put this into a click function as follows:

$(document).ready(function(){
$('#button').click(function() {
$('#asdf').slideDown('slow');
$('#asdf img').imgAreaSelect({ maxWidth: 20,
maxHeight: 20 });
});
});

Let us know how you get on.
http://www.webmotionuk.co.uk/php-jquery-image-upload-and-crop/


[jQuery] Looking for JQuery advanced selectbox

2008-06-17 Thread Drongo

Hi, I'm looking for JQuery plugin that can allow me add images to html
select element.

Actually, I want to implement select box for choosing languages with
flag for each language.

Thanks in advance.


[jQuery] XML parsererror?? Where's the problem?

2008-06-17 Thread mfonz85

Hi all, greets for the useful group about jQuery.
I'm in needing of a little help, because I'm stuck at an endless
point.
I've created a little search script using jquery, that asks a page for
an xml (based on the query) and prints out some params on the html
parent page.
Here's the code:

::: searchPage.htm
--



Prova ricerca


$(function() {
$('#submitButton').click(function() {
var query = $("#query").val();
$.ajax({
type: 'POST',
url: 'test.php',
data: 'q=' + query + '&p=1&rpp=10',
dataType: 'xml',
error: function(request, type) {

$('#filling').html(request.responseText);
alert(type);
},
success: function(xml) {

$(xml).find('label').each(function() {
var prova = 
$(this).find('name').text();

$('#filling').append(prova + "
"); }); } }); }); }); -- Here's an example of the XML output of test.php ::: test.php XML output -- EzraPound 45UsuraPlace Hailey ID -- The problem is that the javascript never reaches the success function and stays stuck @ the function error, printing out the XML response correctly and alerting me with the "parsererror" message ( the type variable of error: function(request, type) ) Where's the problem? What do i have to do? Thanks in advance!

[jQuery] Re: Is there a way to use the css function with $(document) directly?

2008-06-17 Thread Ariel Flesler

There is a plugin for that, it's called Rule:

http://flesler.blogspot.com/2007/11/jqueryrule.html

Cheers
--
Ariel Flesler
http://flesler.blogspot.com

On 16 jun, 05:32, Olaf Bosch <[EMAIL PROTECTED]> wrote:
> Brian J. Fink schrieb:
>
> > $(document).css(selector1,rule1).css(selector2,rule2)...css(selectorN,ruleN­);
>
> > If this is already part of the jQuery functionality, tell me the
> > syntax to use.
>
> Yes, it's ON:
>
>   $("p").css({ color: "red", background: "blue" });
>
> --
> Viele Grüße, Olaf
>
> ---
> [EMAIL PROTECTED]://olaf-bosch.de/http://ohorn.info/http://www.akitafreund.de/
> ---


[jQuery] Re: How to clone jQuery object?

2008-06-17 Thread Ariel Flesler

$D.fn = $D.prototype;

Cheers
--
Ariel Flesler
http://flesler.blogspot.com

On 17 jun, 03:54, "R. Rajesh Jeba Anbiah"
<[EMAIL PROTECTED]> wrote:
> On May 25, 2:48 am, "R. Rajesh Jeba Anbiah"
>
>
>
>
>
> <[EMAIL PROTECTED]> wrote:
> > I want to clone the jQuery object $ to $D; but it actually seems to be
> > overwriting. Can anyone please suggest any solution?
>
> > Here is the code:
>
> > $D = $.extend($); // same result for $D = $;
> > $D.fn.extend({
> >         click: function() {
> >                                 alert('overridden click');
> >                 return this;
> >         }
> >         });
>
> > $(document).ready(function(){
> >         $('body').click(); // this also triggers the 'overridden click' --
> > which is what I want to avoid.
> >         $D('body').click();
>
> > });
>
> > As you see, $('body').click() triggers the 'overridden click', but I
> > wanted it to trigger the original jQuery object's click.
>
>     Anyone? Or is it impossible (can someone please confirm)?
>
> --
>   
> Email: rrjanbiah-at-Y!com    Blog:http://rajeshanbiah.blogspot.com/- Ocultar 
> texto de la cita -
>
> - Mostrar texto de la cita -


[jQuery] Re: Combining other plugins with Intercept

2008-06-17 Thread Ariel Flesler

Ah.. one more thing...

Instead of $(document).intercept (or listen) you can simply use
$.intercept.

Cheers
--
Ariel Flesler
http://flesler.blogspot.com

On 17 jun, 04:03, Lion29 <[EMAIL PROTECTED]> wrote:
> Hello!
>
> I have recently discovered the beauty of event delegation and the best
> option for me was Intercept plugin.
> It is cool to bind only once certain events and then you are care-
> free.
>
> But now I have more needs. I would like to "permanently" set some
> other behaviours to some kind of elements:
>
> clueTip, tooltip, thickbox, tabs
>
> for thickbox I managed, it was rather easy since TB uses an easy
> function:
>
> $(document).intercept("click", "a.thickbox, area.thickbox,
> input.thickbox", function(){
>         var t = this.title || this.name || null;
>         var a = this.href || this.alt;
>         var g = this.rel || false;
>         tb_show(t,a,g);
>         this.blur();
>         return false;
>
> });
>
> but how can I use intercept for others? How can I "convert" this code
> to intercept?
>
> $('img.tips').cluetip({
>         'attribute':'title',
>         'dropShadowSteps':3,
>         'width':'350px',
>         'sticky':'true',
>         'ajaxCache': true,
>         'hoverIntent' : {
>           sensitivity:  3,
>           interval:     250,
>           timeout:      0
>         },
>         showTitle:false,
>         ajaxSettings: {
>           dataType: 'html'
>         }
>
> });
>
> Please advice... your help would be much appresciated!


[jQuery] Re: Combining other plugins with Intercept

2008-06-17 Thread Ariel Flesler

Not related to the topic, but Intercept will work faster if you
replace:
 "a.thickbox, area.thickbox, input.thickbox" -->  ".thickbox"

It won't be doing a search, but a filter, so the more you specify,
worse perfomance you'll get.

As for the plugins... I doubt plugin owners will actually make one
custom release to be compatible with Intercept.
What you can do it replace every binding they do in the plugin, for an
intercept call. That is LIKELY to make it work like you expect.

If you do make a custom version of their plugins, you can email it to
them and maybe some will actually appreciate that.

As a final note, I always encourage the use of Listen instead of
Intercept, but I understand Listen has some relevant limitations.
For the thickbox binding, you are able to safely use Listen instead of
Intercept.

Cheers
--
Ariel Flesler
http://flesler.blogspot.com

On 17 jun, 04:03, Lion29 <[EMAIL PROTECTED]> wrote:
> Hello!
>
> I have recently discovered the beauty of event delegation and the best
> option for me was Intercept plugin.
> It is cool to bind only once certain events and then you are care-
> free.
>
> But now I have more needs. I would like to "permanently" set some
> other behaviours to some kind of elements:
>
> clueTip, tooltip, thickbox, tabs
>
> for thickbox I managed, it was rather easy since TB uses an easy
> function:
>
> $(document).intercept("click", "a.thickbox, area.thickbox,
> input.thickbox", function(){
>         var t = this.title || this.name || null;
>         var a = this.href || this.alt;
>         var g = this.rel || false;
>         tb_show(t,a,g);
>         this.blur();
>         return false;
>
> });
>
> but how can I use intercept for others? How can I "convert" this code
> to intercept?
>
> $('img.tips').cluetip({
>         'attribute':'title',
>         'dropShadowSteps':3,
>         'width':'350px',
>         'sticky':'true',
>         'ajaxCache': true,
>         'hoverIntent' : {
>           sensitivity:  3,
>           interval:     250,
>           timeout:      0
>         },
>         showTitle:false,
>         ajaxSettings: {
>           dataType: 'html'
>         }
>
> });
>
> Please advice... your help would be much appresciated!


[jQuery] Re: can I reload page through jQuery?

2008-06-17 Thread Ariel Flesler

location.reload();

Cheers
--
Ariel Flesler
http://flesler.blogspot.com

On 17 jun, 07:43, mtest <[EMAIL PROTECTED]> wrote:
> can I do like as something that:
> $('#ReloadButton').click(function() {
>     $(document).reload();
>
> });
>
> But this move don't work:)
> How can i do this action - "reload page"?


[jQuery] Re: passing 0 to html() doesn't work like it does for other numbers

2008-06-17 Thread Ariel Flesler

> I have noticed another really strange bug(?) here, numbers with a leading
> zero come out wrong. like 0123 ends up as 83. Stranger yet, 18 is 18, 19 is
> 19 but 20 is 16? But it does not appear to be jQuery.

Leading zeros indicate the JS Interpreter that the number is octal,
that is, base 8.
Same as 0x for hexadecimal, base 16.
Use strings instead, '0123' won't cause any problems. If you have the
number in a var, just cast it like this:

my_num += '';

Cheers
--
Ariel Flesler
http://flesler.blogspot.com


[jQuery] Re: passing 0 to html() doesn't work like it does for other numbers

2008-06-17 Thread vincent voyer

If you just want to insert numbers try .text() instead of .html() ?

On Jun 17, 5:57 am, "Morgan Allen" <[EMAIL PROTECTED]> wrote:
> This has to do with the way JS evaluates true and false with 0. !0 == true.
> The simple fix is passing String(0), line 964 (in current svn) is the
> problem, if(!elem) return, change that to if(!elem && elem !== 0) return. I
> will check for a bug report and submit a patch.
>
> On Mon, Jun 16, 2008 at 5:02 PM, Lowell <[EMAIL PROTECTED]> wrote:
>
> > When I call html(5) it will set the innerHtml of my element(s) to "5".
> > However, zero seems to work differently. When I call html(0), it
> > removes the contents of my element(s) and does not append anything. I
> > had hoped after a call to html(0), that html() would return "0".
>
> > Is this the expected behavior, or is this a bug?
>
> > Thanks,
> > Lowell
>
> --http://morglog.alleycatracing.com
> Lets make up more accronyms!
>
> http://www.alleycatracing.com
> LTABOTIIOFR! ROFL! ROFL! ROFL!
> Upcoming alley cats, reviews, touring logs, and a general congregation of
> bike nerdity.


[jQuery] [site using jQuery] www.iwidgets.com

2008-06-17 Thread PragueExpat

Javascript widget builder for deployment to social sites

uses jQuery - check out the public beta

Thanks jQuery team for such a great library!



[jQuery] Re: Please review work with JQuery

2008-06-17 Thread R. Rajesh Jeba Anbiah

On Jun 17, 4:11 pm, "Samyak Bhuta" <[EMAIL PROTECTED]> wrote:
> Thanks Rajesh,
>
> Unobtrusiveness was in mind, actually I am not even hiding it but loading it
> with ajax call. Wanted to load as much less as I could at first place.

You may use hijax as in tabs plugin.

--
  
Email: rrjanbiah-at-Y!comBlog: http://rajeshanbiah.blogspot.com/


[jQuery] Re: Please review work with JQuery

2008-06-17 Thread Samyak Bhuta
Thanks Rajesh,

Unobtrusiveness was in mind, actually I am not even hiding it but loading it
with ajax call. Wanted to load as much less as I could at first place.

For the HTML code let me see.

Regards,

Samyak

On Tue, Jun 17, 2008 at 4:08 PM, R. Rajesh Jeba Anbiah <
[EMAIL PROTECTED]> wrote:

>
> On Jun 17, 3:32 pm, "Samyak Bhuta" <[EMAIL PROTECTED]> wrote:
> > Hello All,
> >
> > I am using latest jQuery with UI lib as well for my new
> websitewww.anvay.net/beta. Please let me know how it is looking ? I have
> tried it
> > on FF and Opera as well as IE 6. Some time it flickers.
> >
> > Do let me know your feedback. Do I adhering to the best practices ?
> >
> > NOTE: I have used custom JS code for PageLoader and EuDock for fisheye.
>
> 1. HTML errors
> 2. Do not hide info via JavaScript. Check tabs plugin for the
> unobtrusiveness; otherwise the info will not be crawled by search
> engines.
>
> --
>  
> Email: rrjanbiah-at-Y!comBlog: http://rajeshanbiah.blogspot.com/
>


[jQuery] Re: Which grid?

2008-06-17 Thread R. Rajesh Jeba Anbiah

On Jun 17, 2:23 pm, shapper <[EMAIL PROTECTED]> wrote:
> This one:http://webplicity.net/flexigrid/

   Thanks, but there is no live data loading like I mentioned above.

--
  
Email: rrjanbiah-at-Y!comBlog: http://rajeshanbiah.blogspot.com/


[jQuery] Re: jQuery + Prototype on newest release (1.2.6)

2008-06-17 Thread Rey Bango


Great to hear Mike! :)

Rey

mike wrote:

Thanks a lot.

Removing the call method overwrite in effects.js (and clearing the
cache) helped.

Also, I found out that I was including the Prototype library AFTER the
jQuery one (as part of a framework on some of my pages). This was
causing unexpected behavior with jQuery.noConflict().

Problem solved. Thanks for your help.



[jQuery] Re: editable table + json

2008-06-17 Thread Aceman3000

Hi michal.
Take a look at this one:
http://trirand.com/jqgrid/jqgrid.html > Row Editing > Basic Example or
Custom Example


On Jun 16, 3:14 pm, maryspt <[EMAIL PROTECTED]> wrote:
> Hi,
> is there any jQuery plugin that would allow me to create dynamic table
> based on JSON data set, with possibility to edit cells?
>
> thanks in advance :)
> michal


[jQuery] can I reload page through jQuery?

2008-06-17 Thread mtest

can I do like as something that:
$('#ReloadButton').click(function() {
$(document).reload();
});

But this move don't work:)
How can i do this action - "reload page"?


[jQuery] Re: passing 0 to html() doesn't work like it does for other numbers

2008-06-17 Thread Morgan Allen
I have noticed another really strange bug(?) here, numbers with a leading
zero come out wrong. like 0123 ends up as 83. Stranger yet, 18 is 18, 19 is
19 but 20 is 16? But it does not appear to be jQuery.

On Mon, Jun 16, 2008 at 8:57 PM, Morgan Allen <[EMAIL PROTECTED]>
wrote:

> This has to do with the way JS evaluates true and false with 0. !0 == true.
> The simple fix is passing String(0), line 964 (in current svn) is the
> problem, if(!elem) return, change that to if(!elem && elem !== 0) return. I
> will check for a bug report and submit a patch.
>
>
> On Mon, Jun 16, 2008 at 5:02 PM, Lowell <[EMAIL PROTECTED]> wrote:
>
>>
>> When I call html(5) it will set the innerHtml of my element(s) to "5".
>> However, zero seems to work differently. When I call html(0), it
>> removes the contents of my element(s) and does not append anything. I
>> had hoped after a call to html(0), that html() would return "0".
>>
>> Is this the expected behavior, or is this a bug?
>>
>> Thanks,
>> Lowell
>>
>
>
>
> --
> http://morglog.alleycatracing.com
> Lets make up more accronyms!
>
> http://www.alleycatracing.com
> LTABOTIIOFR! ROFL! ROFL! ROFL!
> Upcoming alley cats, reviews, touring logs, and a general congregation of
> bike nerdity.




-- 
http://morglog.alleycatracing.com
Lets make up more accronyms!

http://www.alleycatracing.com
LTABOTIIOFR! ROFL! ROFL! ROFL!
Upcoming alley cats, reviews, touring logs, and a general congregation of
bike nerdity.


[jQuery] Layout manager

2008-06-17 Thread Jquery user - z

During my search for a layout manager as the extjs, I came across with
this http://www.seprol.com.br/test/layout/page2.htm, (dependent on
mootools) i would like to know if is possible to convert to jquery,
with all the options, since the layout currently in jqueryUI, still
lacks some options. ( ou better, inprove the splitpane to do the same
things that this do.)

Thanks in advance, for the time.


  1   2   >