[jQuery] Re: slideToggle Functions

2009-12-02 Thread Gavin
I could swear I've used the double callback before on a toggle, but I
must be imagining it. Thanks Richard, I'll go the if statement route!

Gavin

On Nov 30, 4:54 pm, Richard D. Worth rdwo...@gmail.com wrote:
 Each of the methods you mention accept (optionally) a single callback
 function as a final argument. Neither accept more than one. See:

 http://docs.jquery.com/Effects/toggle#speedcallback

 http://docs.jquery.com/Effects/slideToggle#speedcallback

 If you want to do something different in one case as opposed to another,
 check whether the element is visible and then call the appropriate animation
 method to show or hide, along with anything else you want to do at the same
 time. Or call the toggle or slideToggle, and put your if inside the single
 callback, like so:

 $('#my-element').click(function() {
   var wasHidden = $('#list-element').is(':hidden');
   $('#list-element').slideToggle(200, function(){
     if (wasHidden) {
       $('#status-element').html('show artist index');
       console.log('show');
     } else {
       $('#status-element').html('hide artist index');
       console.log('hide');
     }
   });

 });

 - Richard

 On Mon, Nov 30, 2009 at 1:39 PM, Gavin failed...@gmail.com wrote:
  I have a simple bit of jQuery that I just can't get working.

  $('#my-element').click(function(){
                 $('#list-element').slideToggle(function(){
                                 $('#status-element').html('show artist
  index');
                                 console.log('show');
                         },function(){
                                 $('#status-element').html('hide artist
  index');
                                 console.log('hide');
                         }
                 );
         });

  Right? Simple? I've had it working before, but whenever the element is
  clicked, the element toggles but the console prints 'hide' every time
  and the #status-element never gets changed. I have also tried just
  using toggle() instead of slideToggle and also

  slideToggle(200,function(){...

  (including the speed before the callback functions).

  Any ideas would be appreciated!

  Thanks,
  Gavin


[jQuery] [validate]

2009-12-02 Thread 123gotoandplay
Hi,

I am trying to validate some dynamic generated input fields, like so

$(#form1).validate({
rules: {
$([name^=eventlink]) : {
required: true,
url: true
}
}

The input fields have the word eventlink in common, unfort this
doesn't work


Re: [jQuery] [validate]

2009-12-02 Thread Dhruva Sagar
Are you using some validate plugin ?

If you are doing so, you need to ensure that you execute your code only
after the dynamically generated fields have been generated OR you do it
everytime your dynamically generated fields are being generated.

For ordinary events, there is this 'live' function that jQuery provides
which enables you to be able to bind events even to such dynamically
generated nodes, but I am not sure if you can make use of that for this
validate() call.

Thanks  Regards,
Dhruva Sagar.




On Wed, Dec 2, 2009 at 3:21 PM, 123gotoandplay wesweatyous...@gmail.comwrote:

 Hi,

 I am trying to validate some dynamic generated input fields, like so

 $(#form1).validate({
rules: {
$([name^=eventlink]) : {
required: true,
url: true
}
}

 The input fields have the word eventlink in common, unfort this
 doesn't work



[jQuery] Re: [validate]

2009-12-02 Thread 123gotoandplay
Tx for the quick answer

I am using this plugin
http://bassistance.de/jquery-plugins/jquery-plugin-validation/

I will try to put the js code on the bottom (after i have created the
dyn. fields)

Thnks for pointing me to the 'live' function but i don't think i can
use it in combo
with the validation plugin i am using at the moment

Regards

On 2 dec, 10:56, Dhruva Sagar dhruva.sa...@gmail.com wrote:
 Are you using some validate plugin ?

 If you are doing so, you need to ensure that you execute your code only
 after the dynamically generated fields have been generated OR you do it
 everytime your dynamically generated fields are being generated.

 For ordinary events, there is this 'live' function that jQuery provides
 which enables you to be able to bind events even to such dynamically
 generated nodes, but I am not sure if you can make use of that for this
 validate() call.

 Thanks  Regards,
 Dhruva Sagar.

 On Wed, Dec 2, 2009 at 3:21 PM, 123gotoandplay 
 wesweatyous...@gmail.comwrote:

  Hi,

  I am trying to validate some dynamic generated input fields, like so

  $(#form1).validate({
                 rules: {
                 $([name^=eventlink]) : {
                                 required: true,
                                 url: true
                         }
                 }

  The input fields have the word eventlink in common, unfort this
  doesn't work


[jQuery] Stop a button within an li taking the li event?

2009-12-02 Thread Rich
I have an unordered list which slidesdown to reveal a sub list on
click event. In the first li there is also a button that takes you to
another page. When this button is pressed I don't want the slide down
to start, which it currently does as the button is within the li.

[code]

$(#vml_top_ul li).click(function() {
$(this).css({'background-color':''});
if ($(this).children(ul.vml_second_ul).is
(:hidden)) {
$(this).children(ul.vml_second_ul).slideDown(1000,
function() {
$(this).parent(li).addClass(vml_top_li_open);
});
} else {
$(this).children(ul.vml_second_ul).slideUp(1000, function() {
$(this).parent(li).removeClass(vml_top_li_open);
});
}
});

HTML

ul id=vml_top_ul
li class=vml_top_li_closedh3Images/h3span class=right
form name=form_add method=post action=edit_vml.asp
enctype=multipart/form-data
input type=submit name=add value=ADD NEW
class=link_button /
/form/spanbr /
ul class=vml_second_ul
li class=topnbsp;/li
linbsp;/li
/ul
/li
li class=vml_top_li_closedh3Videos/h3span class=right
form name=form_add method=post action=edit_vml.asp
enctype=multipart/form-data
input type=submit name=add value=ADD NEW
class=link_button /
/form/spanbr /
ul class=vml_second_ul
linbsp;/li
linbsp;/li
/ul
/li/li
  /ul
[/code]

I have tried various uses of .not() and :not() to try and stop the
action taking place but I'm getting know where with it. Any help would
be very much appreciated?

Thanks

Richard


[jQuery] .dialog() only works once?

2009-12-02 Thread Rich
I am using the jQuery .dialog UI as a confirm pop up when someone
tries to delete an item from a website. The dialog has 2 buttons, one
to confirm the delete, which then carries out an ajax request, and
another to cancel the delete request which closes the dialog window.
Both buttons work as expected but if you choose to cancel the
operation which calls $('#dialog').dialog('close'); the dialog
disappears but I can then no longer use the delete button again,
either it loses the click function or the dialog function no longer
works. I have tried adding $('#dialog').dialog('enable'); after the
close but this didn't make any difference either?

Thanks

Richard


[jQuery] Re: [validate]

2009-12-02 Thread 123gotoandplay
ok this one helped me out:
http://stackoverflow.com/questions/1020943/jquery-validate-with-a-dynamic-number-of-fields


[jQuery] Re: Problem with plugins

2009-12-02 Thread Paulodemoc
Omg, I can't believe that was the problem You guys are the best :P
I didn't know this particularity about jQuery... it's logical
though
Thanks you all for the help and your  time.

Att.

Paulo Henrique

;)

On Dec 2, 4:09 am, Michael Geary m...@mg.to wrote:
 Don't feel bad. You made it easy for me. Since you'd already done some
 investigating and ruled out a number of possibilities, all I had to do was
 look at the one or two things you might have missed! :-)

 On a more serious note, this thread is a great example of why we keep asking
 people to post a link to a test page. Without the test page, we were just
 taking wild guesses. Once the test page was posted, all it took was a couple
 of us taking a quick look at it, and bingo!

 -Mike

 On Tue, Dec 1, 2009 at 2:45 PM, Scott Sauyet scott.sau...@gmail.com wrote:
  On Dec 1, 5:31 pm, Michael Geary m...@mg.to wrote:
   Paulo, you're loading jQuery twice. First you load jQuery, then you load
   your plugins, then you load jQuery again. That second load of jQuery
  wipes
   out the original jQuery and all its plugins.

   Do a View Source on your page with the sort photos link, and search for:

  And I missed that?  D'Oh!  :-)

   -- Scott


[jQuery] Re: .dialog() only works once?

2009-12-02 Thread Rich
Problem solved! I needed to use $('#dialog').dialog('destroy') rather
than .dialog('close')

On Dec 2, 10:39 am, Rich reholme...@googlemail.com wrote:
 I am using the jQuery .dialog UI as a confirm pop up when someone
 tries to delete an item from a website. The dialog has 2 buttons, one
 to confirm the delete, which then carries out an ajax request, and
 another to cancel the delete request which closes the dialog window.
 Both buttons work as expected but if you choose to cancel the
 operation which calls $('#dialog').dialog('close'); the dialog
 disappears but I can then no longer use the delete button again,
 either it loses the click function or the dialog function no longer
 works. I have tried adding $('#dialog').dialog('enable'); after the
 close but this didn't make any difference either?

 Thanks

 Richard


Re: [jQuery] Re: Superfish vertical/arrow question

2009-12-02 Thread Charlie




snippets of html won't do much to troubleshoot.  95% likelihood the
problem is css related and css needs to be viewed in the DOM to work
with effectively.

The majority of posts regarding superfish on this board are Joomla
related . You can try searching. The original css gets left in when the
menu gets installed, try commenting out all the old menu css from
template

MozreplGuy wrote:

  Thanks for your response and your time! I apologize, I still have
everything on localhost. This following is what I could see with
firebug

li class="parent active item1"
a class="sf-with-ul" href="" class="moz-txt-link-rfc2396E" href="http://localhost/testsite/">"http://localhost/testsite/"
spanHome/span
span class="sf-sub-indicator" /span
/a

Does this help a bit?

It doesn't seem to be a width problem, because there is plenty of
space in the accordion list (horizontally). If the  character were
in the same span as home, then it would be in the same line.

What do you think?


On Dec 1, 6:22pm, Charlie charlie...@gmail.com wrote:
  
  
likely a width setting on "LI" or "A" tags, likely from old css as superfish default css doesn't set widths. If text was just fitting before then you are now adding a new element that doesn't fit without wrapping to next line
Can see a lot if you provide link, easy to see what's happening with a DOM inspector
MozreplGuy wrote:Hi all, I successfully included superfish into a joomla site (still on localhost). I use it in vertical mode. It works fine. But there is one thing that doesn't look very nice. Every menu with a sub menu has a sub-indicator '' (character 187, enabled by autoarrow flag). The indicator itself is fine. However the indicator doesn't appear on the same line as the menu text. For example it looks like: Menu1But I would like it to like: Menu1  Does anybody have an idea how I could achieve that. I looked at the code (e.g. superfish), but my skill level doesn't allow me to find a solution :-) I would appreciate any help. Thanks, Mozrepl

  
  
  






[jQuery] Why mootools animations is more smooth than jquery?

2009-12-02 Thread Acaz Souza
Why mootools animations is more smooth than jquery animations?


[jQuery] Re: does JQuery have browser bookmarklet development support??

2009-12-02 Thread George Adamson

I'm not aware of any explicit bookmarklet support but if you need to
get jQuery onto the page then at least it has a nice light file size.
A few things to note:
IE limits the length of your bookmarklet to 250 characters or so.
To keep bookmarklets small it is common to have them simply load a
remote script (from your site) that will actually do the fancy stuff.
If your script needs jQuery then I'd suggest that you load it either
in your bookmarklet or in your script. The google-hosted jquery can be
handy for this.
Maybe worth checking whether there's a compatible version of jQuery
already loaded and use that, before fetching another.
If you load jQuery yourself then you should use it's handy noConflict
option to prevent issues with other libraries etc already on the page.

Hope this helps,
George


On Dec 2, 6:03 am, greghauptmann greg.hauptm...@gmail.com wrote:
 Hi

 I want to development some browser bookmarklets (e.g. for firefox, IE,
 safari) but I'm not sure where to start.  As an example of what I'm
 talking about see:

     *http://www.evernote.com/about/download/web_clipper.php
     *http://readitlaterlist.com/bookmarklets/

 I'm after a way to allow a user pass a browser link (e.g. the page
 they are on) through to my web application  see the bookmarklet
 approach a easier/more basic way to achieve this.  They would have to
 type in their username/password the first time they use it for the
 their authentication to the backend.

 QUESTION:  How does one develop these bookmarklets?  Does JQuery have
 support or supply a template for this?  Or just any other pointers on
 how people do this?

 Thanks


[jQuery] [autocomplete] FIX: Cache using term + extraParams

2009-12-02 Thread Gabbit
Hi all,

i have made a change to autocomplete code, because cache handling
should include extraParams in cache term. I thought this could be
interesting for some of you, so here is the code snippet that should
replace existing function request in autocomplete.js :


function request(term, success, failure) {
if (!options.matchCase)
term = term.toLowerCase();
//FIX: extraParams should be included in cacheTerm
var cacheTerm = term;
var extraParams = {
timestamp: +new Date()
};
$.each(options.extraParams, function(key, param) {
 var extP = typeof param == function ? 
param() : param;
 extraParams[key] = extP;
 cacheTerm = cacheTerm + _ + key + : +extP;
});


var data = cache.load(cacheTerm);
// recieve the cached data
if (data  data.length) {
success(term, data);
// if an AJAX url has been supplied, try loading the data now
} else if( (typeof options.url == string)  
(options.url.length 
0) ){



$.ajax({
// try to leverage ajaxQueue plugin to abort 
previous requests
mode: abort,
// limit abortion to this input
port: autocomplete + input.name,
dataType: options.dataType,
url: options.url,
data: $.extend({
q: lastWord(term),
limit: options.max
}, extraParams),
success: function(data) {
var parsed = options.parse  
options.parse(data) || parse(data);
cache.add(cacheTerm, parsed);
success(term, parsed);
}
});
} else {
// if we have a failure, we need to empty the list -- 
this prevents
the the [TAB] key from selecting the last successful match
select.emptyList();
failure(term);
}
};



[jQuery] [autocomplete] Parse JSON ajax request

2009-12-02 Thread Gabbit
Hi all,

here is the code i use to parse an ajax request call as JSON string as
it is done for local data.

I think this should be the default behavior, but autocomplete uses a
| separated String...

parse: function(data){
var objArray = eval(( + data + ));
var parsed = [];
for (var i=0; i  objArray.length; i++) 
{
rawValue = objArray[i];
var value = 
this.formatMatch(rawValue, i+1, objArray.length);

parsed[parsed.length] = {
data: rawValue,
value: value,
result: 
this.formatResult  this.formatResult(rawValue) ||
value
}

}
return parsed;

}
Hope this helps.


[jQuery] Ask A Query

2009-12-02 Thread Mukesh Kumar
I Read Ur Article , its really useful,,thanks for this , but my
requirement is to make vertical carousel, using divs rather than ul
and li...can u provide the solution..


Re: [jQuery] [validate]

2009-12-02 Thread Mukesh Kumar
pata nhi yaar mujhe nhi malum


[jQuery] blockUI history removal

2009-12-02 Thread Stephen Richard
In jquery.blockUI.js (most up to date version says it's 2.27 24-
SEP-2009) the line

$(data.el).removeData('blockUI.history');

(line 391, in the reset function)

looks a bit suspect to me: in the install function the data object is
added to the _blocked_ element, but data.el is the  _message_  (which
as far as I can tell never gets a data object added to it). I think
this means that the history is not removed, and if for some reason you
call unblockUI again on the same element then the message node will
get put back in the DOM again, which is inconvenient when you're
trying to pop up error messages...

Shouldn't the code be
$(el).removeData('blockUI.history');
?

Thanks
Stephen


[jQuery] Testing existing pages with QUnit

2009-12-02 Thread Matthias
Hi

I am new to JQuery and QUnit. I followed the examples and got my first
tests running. I can include other scripts and test those. But how do
I integrate this with existing pages? If e.g. I would like to test if
a certain DOM manipulation worked?

Thanks
Matthias


[jQuery] (tooltip) position near the page borders

2009-12-02 Thread Bill Pairaktaridis
Hi there! I was wondering if there's a way to change the behavior of
the tooltip when it reaches the borders of the page. I'd like it to
either get pushed in the other direction as it gets closer or just not
appear at all. Thanks a lot in advance.


[jQuery] Jcarrousel smooth autoscrolling

2009-12-02 Thread teemak
Hi there,

I use Jcaroussel with circular  autoscrolling setting.

It's works but at each picture it stops (just a second but it stop)
and restart.

I have to do a smooth (or soft) autscrolling.

Thanks.

Teemak

PS: Sorry for mistakes but i'm french ^^


[jQuery] is(:empty) works in IE but not firefox

2009-12-02 Thread Subtle
I'm calling a server side procedure  using $.ajax that returns a table
of data and for one of the columns it can include blank tds.  I have
code to check for the blank tds.
theData.each(
  function()
  {
var theFirstColumn = $(this).find('td:eq(0)');
if(!theFirstColumn.is(:empty))
{
  // do something
}
});
In IE 7/8 when the markup of the cell looks like this: td/td the
is empty check returns true.  In Firefox 3.5, it returns false.

Any ideas?

Thanks.


[jQuery] Re: Hide Table Row - Fundamentally I'm wrong.

2009-12-02 Thread mickey
Anyone?


Re: [jQuery] Re: Hide Table Row - Fundamentally I'm wrong.

2009-12-02 Thread Leonardo K
I tested here and worked:

http://jsbin.com/ivude

On Wed, Dec 2, 2009 at 13:32, mickey mwjbea...@googlemail.com wrote:

 Anyone?



[jQuery] Re: jEditable, onblur and submit issue

2009-12-02 Thread rymi...@gmail.com
An update to my original e-mail: I have ascertained that the behaviour
is exhibited only in WebKit browsers. IE and Firefox are fine, but
Chrome and Safari don't work.


[jQuery] jQuery Accordion problem - Links not working

2009-12-02 Thread hannahmac
Hi there

I am using a Jquery accordion menu on a website I'm working on - and
being a novice I've discovered that none of the links are not working.
The movement of the menu seems fine, but every link on this left hand
menu is going nowhere.

Are there any guys and gals out there who could help me out? It's
pretty much my first build of a website so my css is probably very
very laughable.

My site is here: http://www.hannahmagowan.co.uk/bfa1/ and it's the
green menu on the left that's giving me hassle.

Many thanks for reading this.

Hannah


[jQuery] Vertical style problem

2009-12-02 Thread alwardi
Hi
I install mod_superfishmenu and i used the vertical style
every thing work fine except that that second level dose not appear
completely and you can see that in the pic below:


so what is the problem


[jQuery] BlockUI strange behaviour in IE7

2009-12-02 Thread Filipa Andrade
Hi,

I am using BlockUI in a pop-up to block it while the new data inserted
by the user is updated.

It works pretty good in firefox but IE7 has a strange behaviour: after
pushing the submit button the overlay message is displayed and the pop-
up is closed (until here everything is fine) but after, the page the
user was viewing is continued to be refreshed (I dont know exactly
what it is doing but the progress bar is continuously moving forward,
I dont see any new requests in the server...)

I would appreciate some help on this issue.

Thanks


[jQuery] facebox(Using Jquery) with select box in IE6

2009-12-02 Thread JQuery
when i open a facebox, in the background, if there s a selectbox, that
selectbox shown above the face box. i need to hide all the select
boxes when i open the face box, after closing the facebox, that select
boxes need to show.


[jQuery] Issue with jQuery/javascript and WebKit

2009-12-02 Thread Robin Jakobsson
Hi,

I'm having a problem related to WebKit:
http://demo.frojd.se/webkit/index.html

When you click Menu item 1 it shows it's children.
This renders fine in Firefox 3.5, IE8 and in Opera 10.
In WebKit-browsers (Safari 4 and Chrome 3) it doesn't.

However, if I preset all the different classes and css-settings in the
html, it renders correctly.
http://demo.frojd.se/webkit/index_loaded_from_start.html

Any ideas on why this might be?

Cheers,
Robin.


Re: [jQuery] Re: Problem with plugins

2009-12-02 Thread Michael Geary
Glad to help.

It's nothing specific to jQuery, of course. Here's a simplified test case:

var Test = function() {};
Test.prototype.foo = function() { alert('bar'); };

var test = new Test;
test.foo();  // alerts 'bar'

var Test = function() {};

var test = new Test;
test.foo();  // TypeError: test.foo is not a function

That's basically the same scenario you ran into with the two jQuerys - it's
just easier to see the problem here.

-Mike

On Wed, Dec 2, 2009 at 3:27 AM, Paulodemoc paulode...@gmail.com wrote:

 Omg, I can't believe that was the problem You guys are the best :P
 I didn't know this particularity about jQuery... it's logical
 though
 Thanks you all for the help and your  time.

 Att.

 Paulo Henrique

 ;)

 On Dec 2, 4:09 am, Michael Geary m...@mg.to wrote:
  Don't feel bad. You made it easy for me. Since you'd already done some
  investigating and ruled out a number of possibilities, all I had to do
 was
  look at the one or two things you might have missed! :-)
 
  On a more serious note, this thread is a great example of why we keep
 asking
  people to post a link to a test page. Without the test page, we were just
  taking wild guesses. Once the test page was posted, all it took was a
 couple
  of us taking a quick look at it, and bingo!
 
  -Mike
 
  On Tue, Dec 1, 2009 at 2:45 PM, Scott Sauyet scott.sau...@gmail.com
 wrote:
   On Dec 1, 5:31 pm, Michael Geary m...@mg.to wrote:
Paulo, you're loading jQuery twice. First you load jQuery, then you
 load
your plugins, then you load jQuery again. That second load of jQuery
   wipes
out the original jQuery and all its plugins.
 
Do a View Source on your page with the sort photos link, and search
 for:
 
   And I missed that?  D'Oh!  :-)
 
-- Scott



[jQuery] Re: blockUI history removal

2009-12-02 Thread Mike Alsup
 Shouldn't the code be
 $(el).removeData('blockUI.history');
 ?

Yes, good catch.


[jQuery] Re: BlockUI strange behaviour in IE7

2009-12-02 Thread Mike Alsup
 I am using BlockUI in a pop-up to block it while the new data inserted
 by the user is updated.

 It works pretty good in firefox but IE7 has a strange behaviour: after
 pushing the submit button the overlay message is displayed and the pop-
 up is closed (until here everything is fine) but after, the page the
 user was viewing is continued to be refreshed (I dont know exactly
 what it is doing but the progress bar is continuously moving forward,
 I dont see any new requests in the server...)

Can you post a link?


[jQuery] Re: Why mootools animations is more smooth than jquery?

2009-12-02 Thread Acaz Souza
anyone can help me?

On Dec 2, 11:31 am, Acaz Souza acazso...@gmail.com wrote:
 Why mootools animations is more smooth than jquery animations?


[jQuery] binding ala ActionScript??

2009-12-02 Thread hsfrey
Do jQuery or JavaScript provide any facility like the data-binding
facility of ActionScript, whereby changing a variable immediately
applies the changed value throughout the program?

Apparently that works by implementing an onChange event whenever the
variable is changed.


[jQuery] Re: Why mootools animations is more smooth than jquery?

2009-12-02 Thread MorningZ
How is someone *possibly* supposed to answer that open ended and vague
question?


On Dec 2, 1:13 pm, Acaz Souza acazso...@gmail.com wrote:
 anyone can help me?

 On Dec 2, 11:31 am, Acaz Souza acazso...@gmail.com wrote:

  Why mootools animations is more smooth than jquery animations?


[jQuery] Re: jQuery Accordion problem - Links not working

2009-12-02 Thread Scott Sauyet
On Dec 2, 12:05 pm, hannahmac hannahmago...@gmail.com wrote:
 I am using a Jquery accordion menu on a website I'm working on - and
 being a novice I've discovered that none of the links are not working.
 The movement of the menu seems fine, but every link on this left hand
 menu is going nowhere.

See if this fixes it:  http://tinyurl.com/ykhco3f.

  -- Scott


[jQuery] contact form not sending mail

2009-12-02 Thread wig1176
hi folks.
I have a site using jquery utilizing a slider ( scroll.to) and form
validater (validate)
the form on my page isn't sending the emails to me though.
here's the link:
http://jugdish.net/mpuglia/home.html
the form is on the contact page.
if anyone can figure this out, i would greatly appreciate it. i went
over the code a million times and cant' find the mistake.
thanks

wiggy


[jQuery] error essage: css is not a function

2009-12-02 Thread hsfrey
I'm using the following code:

var boxes = $('.resizable').get(); // get divs as array
for (var i=0; iboxes.length; i++ )
{ console.log(boxes[i].id+': left='+boxes[i].css('left'));  
}

I get this error message from Firebug:
   boxes[i].css is not a function
  [Break on this error]
 { safelog($boxes[i].id+': left='+$boxes[i].css('left'));\r
\n

I have used similar code before, but for an individual item, not an
array.
For instance, This works fine:

  var sel1=$('#'+b1);
  var c1x = parseInt(sel1.css('left'));

Does this simply not work on arrays, or have I made some other error?


Re: [jQuery] error essage: css is not a function

2009-12-02 Thread Dhruva Sagar
Clearly boxes[i] is not a jQuery object.
you should try $(boxes[i]).css perhaps

Thanks  Regards,
Dhruva Sagar.




On Thu, Dec 3, 2009 at 1:04 AM, hsfrey hsf...@gmail.com wrote:

 I'm using the following code:

var boxes = $('.resizable').get(); // get divs as array
for (var i=0; iboxes.length; i++ )
{ console.log(boxes[i].id+': left='+boxes[i].css('left'));
}

 I get this error message from Firebug:
   boxes[i].css is not a function
  [Break on this error]
 { safelog($boxes[i].id+': left='+$boxes[i].css('left'));\r
 \n

 I have used similar code before, but for an individual item, not an
 array.
 For instance, This works fine:

  var sel1=$('#'+b1);
  var c1x = parseInt(sel1.css('left'));

 Does this simply not work on arrays, or have I made some other error?



Re: [jQuery] error essage: css is not a function

2009-12-02 Thread Michael Geary
The jQuery object - the return value from $(whatever) - is an array-like
object with .length and [0] etc. properties. You don't need to call .get()
on it unless you need an actual JavaScript Array object, which is rare.

The *elements* of the jQuery object - or the elements of the Array that
.get() returns, are plain HTML elements - DOM nodes. They are not jQuery
objects themselves. They have DOM methods and properties, not jQuery
methods.

You can always wrap a DOM node in a jQuery object with $(theDomNode).

You can use a for loop just like the one you have, directly on a jQuery
object without calling .get(). Or you can use jQuery's .each() method, which
is often cleaner. One way to write your loop would be like this:

$('.resizable').each( function( i, box ) {
console.log( box.id + ': left=' + $(box).css('left') );
});

In this code, 'box' is the same as 'boxes[i]' in your for loop. Note the
difference between box.id - referencing a property of the DOM node directly
- and $(box).css() - wrapping the DOM node inside another jQuery object and
then calling a jQuery method on that object.

-Mike

On Wed, Dec 2, 2009 at 11:34 AM, hsfrey hsf...@gmail.com wrote:

 I'm using the following code:

var boxes = $('.resizable').get(); // get divs as array
for (var i=0; iboxes.length; i++ )
{ console.log(boxes[i].id+': left='+boxes[i].css('left'));
}

 I get this error message from Firebug:
   boxes[i].css is not a function
  [Break on this error]
 { safelog($boxes[i].id+': left='+$boxes[i].css('left'));\r
 \n

 I have used similar code before, but for an individual item, not an
 array.
 For instance, This works fine:

  var sel1=$('#'+b1);
  var c1x = parseInt(sel1.css('left'));

 Does this simply not work on arrays, or have I made some other error?



[jQuery] Ignoring click events in cells

2009-12-02 Thread Andyk
I have a table, which contains some data aswell as a checkbox:

tr id=14373
 tdinput type=checkbox//td
 td.../td
 td.../td
/tr
Each row contains an id, and I want to call a function based on the
click event:

$(tr).click(function() {
alert($(this).attr(id));
});

However, checking/unchecking the checkbox in each row also triggers
the event. Is there anyway of preventing this?


[jQuery] Re: error essage: css is not a function

2009-12-02 Thread hsfrey
Dhruvar:

   Thanks. I did so, and it made no difference.
I have often used variables, but not arrays, without the $.
I think the use of $ before such variables is merely a convention.

Harvey

On Dec 2, 11:43 am, Dhruva Sagar dhruva.sa...@gmail.com wrote:
 Clearly boxes[i] is not a jQuery object.
 you should try $(boxes[i]).css perhaps

 Thanks  Regards,
 Dhruva Sagar.

 On Thu, Dec 3, 2009 at 1:04 AM, hsfrey hsf...@gmail.com wrote:
  I'm using the following code:

                 var boxes = $('.resizable').get();     // get divs as array
                 for (var i=0; iboxes.length; i++ )
                 { console.log(boxes[i].id+': left='+boxes[i].css('left'));
     }

  I get this error message from Firebug:
                boxes[i].css is not a function
               [Break on this error]
              { safelog($boxes[i].id+': left='+$boxes[i].css('left'));\r
  \n

  I have used similar code before, but for an individual item, not an
  array.
  For instance, This works fine:

               var sel1=$('#'+b1);
               var c1x = parseInt(sel1.css('left'));

  Does this simply not work on arrays, or have I made some other error?


[jQuery] Re: error essage: css is not a function

2009-12-02 Thread hsfrey
Thank you Mike.

That makes sense!

But what is the purpose of .get() then? What could I do with an
actual JavaScript Array object which I couldn't do the way you
demonstrate?

Harvey

On Dec 2, 11:48 am, Michael Geary m...@mg.to wrote:
 The jQuery object - the return value from $(whatever) - is an array-like
 object with .length and [0] etc. properties. You don't need to call .get()
 on it unless you need an actual JavaScript Array object, which is rare.

 The *elements* of the jQuery object - or the elements of the Array that
 .get() returns, are plain HTML elements - DOM nodes. They are not jQuery
 objects themselves. They have DOM methods and properties, not jQuery
 methods.

 You can always wrap a DOM node in a jQuery object with $(theDomNode).

 You can use a for loop just like the one you have, directly on a jQuery
 object without calling .get(). Or you can use jQuery's .each() method, which
 is often cleaner. One way to write your loop would be like this:

     $('.resizable').each( function( i, box ) {
         console.log( box.id + ': left=' + $(box).css('left') );
     });

 In this code, 'box' is the same as 'boxes[i]' in your for loop. Note the
 difference between box.id - referencing a property of the DOM node directly
 - and $(box).css() - wrapping the DOM node inside another jQuery object and
 then calling a jQuery method on that object.

 -Mike



[jQuery] JSON: Cascading Dropdowns?

2009-12-02 Thread paulinstl
Does anyone have an example of a two step Cascading Dropdown working
from a single JSON object?

Here's an example of my JSON.  Product Size  Product Width

productlist:[{
size:XL,
details:[
{
id:1,
width:40,
quantityleft:4
},
{
id:2,
width:24,
quantityleft:6
},
{
id:3,
width:22,
quantityleft:1
},
size:S,
details:[
{
id:11,
width:40,
quantityleft:4
},
{
id:12,
width:24,
quantityleft:6
},
{
id:13,
width:22,
quantityleft:1
}
]
}]


[jQuery] Re: Ignoring click events in cells

2009-12-02 Thread Scott Sauyet
On Dec 2, 3:44 pm, Andyk andym.kni...@googlemail.com wrote:
 However, checking/unchecking the checkbox in each row also triggers
 the event. Is there anyway of preventing this?

$(tr).click(function(event) {
if ($(event.target).is(:checkbox)) return;
alert($(this).attr(id));
});


Re: [jQuery] Ignoring click events in cells

2009-12-02 Thread Mauricio (Maujor) Samy Silva
Yes there is.

Query the event.target and do an if conditional like so:

$(tr).click(function(e) {

 // normalize e.target
 if (!e) var e = window.event;
 var tg = (window.event) ? e.srcElement : e.target;
 
   if ( tg.nodeName != INPUT  ) {
  alert($(this).attr(id));
   } else {
//do something
   }
 });

Regards
Maurício

  -Mensagem Original- 
  De: Andyk 
  Para: jQuery (English) 
  Enviada em: quarta-feira, 2 de dezembro de 2009 18:44
  Assunto: [jQuery] Ignoring click events in cells


  I have a table, which contains some data aswell as a checkbox:

  tr id=14373
   tdinput type=checkbox//td
   td.../td
   td.../td
  /tr
  Each row contains an id, and I want to call a function based on the
  click event:

  $(tr).click(function() {
  alert($(this).attr(id));
  });

  However, checking/unchecking the checkbox in each row also triggers
  the event. Is there anyway of preventing this?

[jQuery] Re: error essage: css is not a function

2009-12-02 Thread MorningZ
 I think the use of $ before such variables is merely a convention

It's absolutely nothing more than that, just a convention...

But it makes sense to use the $ on a variable name to signify to you
later on, or more importantly someone else looking/working on your
code at a later point, that hey, this is a reference to a jQuery
object, so do jQuery stuff to it

 But what is the purpose of .get() then?

Nothing explains it better than the docs (http://docs.jquery.com/Core/
get)

his serves as a backwards-compatible way of accessing all matched
elements (other than the jQuery object itself, which is, in fact, an
array of elements). It is useful if you need to operate on the DOM
elements themselves instead of using built-in jQuery functions

So in the example on that page, whoever coded that wants to do a
.reverse() on the array of DOM objects...

simply saying

$(div.SomeClass).reverse()

won't work because there is no (built in) jQuery method that does that

so by doing .get() first, that turns it into am array of DOM objects
instead of jQuery objects and *then* .reverse() would work

var array_of_reversed_dom_objects = $(div.SomeClass).get().reverse
();



On Dec 2, 4:38 pm, hsfrey hsf...@gmail.com wrote:
 Thank you Mike.

 That makes sense!

 But what is the purpose of .get() then? What could I do with an
 actual JavaScript Array object which I couldn't do the way you
 demonstrate?

 Harvey

 On Dec 2, 11:48 am, Michael Geary m...@mg.to wrote:

  The jQuery object - the return value from $(whatever) - is an array-like
  object with .length and [0] etc. properties. You don't need to call .get()
  on it unless you need an actual JavaScript Array object, which is rare.

  The *elements* of the jQuery object - or the elements of the Array that
  .get() returns, are plain HTML elements - DOM nodes. They are not jQuery
  objects themselves. They have DOM methods and properties, not jQuery
  methods.

  You can always wrap a DOM node in a jQuery object with $(theDomNode).

  You can use a for loop just like the one you have, directly on a jQuery
  object without calling .get(). Or you can use jQuery's .each() method, which
  is often cleaner. One way to write your loop would be like this:

      $('.resizable').each( function( i, box ) {
          console.log( box.id + ': left=' + $(box).css('left') );
      });

  In this code, 'box' is the same as 'boxes[i]' in your for loop. Note the
  difference between box.id - referencing a property of the DOM node directly
  - and $(box).css() - wrapping the DOM node inside another jQuery object and
  then calling a jQuery method on that object.

  -Mike


[jQuery] Re: Ignoring click events in cells

2009-12-02 Thread Scott Sauyet
On Dec 2, 5:20 pm, Mauricio \(Maujor\) Samy Silva
css.mau...@gmail.com wrote:
  // normalize e.target
  if (!e) var e = window.event;
  var tg = (window.event) ? e.srcElement : e.target;

jQuery does this normalization for you.  You can just use e.target

(More info at http://docs.jquery.com/Events/jQuery.Event)

  -- Scott


Re: [jQuery] Re: Ignoring click events in cells

2009-12-02 Thread Mauricio (Maujor) Samy Silva
Thank you Scott
Maurício
  -Mensagem Original- 
  De: Scott Sauyet 
  Para: jQuery (English) 
  Enviada em: quarta-feira, 2 de dezembro de 2009 20:28
  Assunto: [jQuery] Re: Ignoring click events in cells


  On Dec 2, 5:20 pm, Mauricio \(Maujor\) Samy Silva
  css.mau...@gmail.com wrote:
   // normalize e.target
   if (!e) var e = window.event;
   var tg = (window.event) ? e.srcElement : e.target;

  jQuery does this normalization for you.  You can just use e.target

  (More info at http://docs.jquery.com/Events/jQuery.Event)

-- Scott

[jQuery] Best AJAX transfer method?

2009-12-02 Thread ScottChiefBaker
For server side scripts I'm wondering if there is an inherent
advantage to returning XML vs JSON (or vice versa). I've always
returned XML because I find it's more human readable, and thus I can
verify the data better.

I'm talking strict data structures (arrays,lists, etc), no HTML. I
would imagine there is a performance penalty for parsing the XML into
a data structure vs JSON. There could potentially be security problems
parsing JSON?

What do (you) the experts think?


[jQuery] Re: How to handle large xml files?

2009-12-02 Thread Craig
Well our 1 language xml file is gonna be too huge, to force people to
wait for it to finish loading, so i have to break it up, just wondered
if there was a  better option available, that's all.

On Dec 1, 3:27 pm, Andre Polykanine an...@arthaelon.net wrote:
 Hello Craig and all,

 I have 1 lng file. I'm planning to cache it so it won't be loaded
 every time it's needed.
 --
 With best regards from Ukraine,
 Andre
 Skype: Francophile; WlmMSN: arthaelon @ yandex.ru; Jabber: arthaelon @ 
 jabber.org
 Yahoo! messenger: andre.polykanine; ICQ: 191749952
 Twitter: m_elensule

 - Original message -
 From: Craig crosenb...@gmail.com
 To: jQuery (English) jquery-en@googlegroups.com
 Date: Tuesday, December 1, 2009, 10:00:07 PM
 Subject: [jQuery] Re: How to handle large xml files?

 Do you have 1 lng file for your whole site, or smaller lng files for
 many different pages?

 On Dec 1, 1:35 pm, Andre Polykanine an...@arthaelon.net wrote:
  Hello Craig and all,

  I'm using a *.lng file included once when a user opens the main page.
  The choice which file to include is based on a cookie. If there's no
  cookie we include a Russian file (for a while) since the greatest part
  of our audience speaks this language.
  --
  With best regards from Ukraine,
  Andre
  Skype: Francophile; WlmMSN: arthaelon @ yandex.ru; Jabber: arthaelon @ 
  jabber.org
  Yahoo! messenger: andre.polykanine; ICQ: 191749952
  Twitter: m_elensule

  - Original message -
  From: Craig crosenb...@gmail.com
  To: jQuery (English) jquery-en@googlegroups.com
  Date: Tuesday, December 1, 2009, 8:57:43 PM
  Subject: [jQuery] How to handle large xml files?

  Basically i have an xml file that stores english, and other languages,
  for text replacement all over the site.

  It can do this rapidly, in smaller xml file sizes.

  But once we start to use bigger files, it crashes on me.

  So what can I do, to prevent crashing or long waiting?

  Is the only way to break it up into smaller xml files? Are there other
  choices?

  Thanks


[jQuery] Re: Stop a button within an li taking the li event?

2009-12-02 Thread RobG


On Dec 2, 8:33 pm, Rich reholme...@googlemail.com wrote:
 I have an unordered list which slidesdown to reveal a sub list on
 click event. In the first li there is also a button that takes you to
 another page.


 When this button is pressed I don't want the slide down
 to start, which it currently does as the button is within the li.

Click events bubble. If you don't want them to, cancel bubbling.

Your markup is invalid, it has several serious errors. In particular,
a form can't be a child of a span element, nor can an input be a child
of a form element. Use a validator:

  URL: http://validator.w3.org/#validate-by-input 

[...]

--
Rob


Re: [jQuery] Best AJAX transfer method?

2009-12-02 Thread Michael Geary
JSON is far better for use in JavaScript.

It's much easier to access JSON data, since by the time you see it, it's
just ordinary JavaScript objects. It's more convenient and faster too.

Regarding security, this is data that you're generating on your own server
for use in your own website? Then there is no security issue that doesn't
already exist just by having JavaScript in your site at all. jQuery does
eval your JSON data (or in future versions it uses a function constructor,
which amounts to the same thing). But the browser already is parsing and
executing all your other JavaScript code - you can think of the JSON data as
just one more JavaScript file for security purposes.

I'm curious that you find JSON harder to read than XML. Are you looking at
JSON text that's all on one line? That *would* be hard to read, but there
are tools to pretty-print it. You can paste a JSON string into
www.jsonlint.com, or use the excellent JSON viewer that integrates with
Fiddler or runs as a standalone app:

http://www.fiddler2.com/

http://www.codeplex.com/JsonViewer

These are for Windows only, and it looks like you're using Linux, but you
probably have a Windows VM or box on hand for IE testing anyway, so you can
run those there. Fiddler is very very very nice to inspecting your HTTP
sessions, and when you select a JSON download in the Fiddler list you can
see a nice tree-structured view of your JSON data. Or maybe there is a good
JSON formatter/viewer for Linux.

Hope that helps, give a shout back with any questions or concerns and I'll
be happy to kick them around with you.

-Mike

On Wed, Dec 2, 2009 at 3:04 PM, ScottChiefBaker scott.ba...@gmail.comwrote:

 For server side scripts I'm wondering if there is an inherent
 advantage to returning XML vs JSON (or vice versa). I've always
 returned XML because I find it's more human readable, and thus I can
 verify the data better.

 I'm talking strict data structures (arrays,lists, etc), no HTML. I
 would imagine there is a performance penalty for parsing the XML into
 a data structure vs JSON. There could potentially be security problems
 parsing JSON?

 What do (you) the experts think?



Re: [jQuery] contact form not sending mail

2009-12-02 Thread brian
Javascript doesn't send email. You'll have to investigate this server-side.

On Wed, Dec 2, 2009 at 1:52 PM, wig1176 wig1...@verizon.net wrote:
 hi folks.
 I have a site using jquery utilizing a slider ( scroll.to) and form
 validater (validate)
 the form on my page isn't sending the emails to me though.
 here's the link:
 http://jugdish.net/mpuglia/home.html
 the form is on the contact page.
 if anyone can figure this out, i would greatly appreciate it. i went
 over the code a million times and cant' find the mistake.
 thanks

 wiggy



[jQuery] Validation help

2009-12-02 Thread Hidd3n
Hello,

I wanted to ask something if anyone can help me. I searched everywere
but couldnt find an answer. It's a simple function but for me its
dificult because i started learning jquery 2 days ago.. I would like
to ask if there is a way to put a validation on one simple input. I
have a page and 2 input fields.. if you click those field the
datepicker popus up and you chose a date. Its the jquery date picker.
All i need is when i click the 3rd button i would like that jquery
checks if the first 2 fields are empty and if they are empty it gives
out an alert or popup window saying Please select a date ! but if
the 2 fields arent empty it redirects to a difrent page like
sencond.php . As stated before the 2 fields get the date from
datepicker and cant get the wrong entry.

Sorry for my bad english, i dont have a lot of practice in writing :).
If someone could help i would be very happy :)

With good intentions Hidden :)


[jQuery] IF and NULL. Please, could someone help me out?

2009-12-02 Thread shapper
Hello,

I have the following:

  $(#JPlayer).jPlayer({
ready: function() {
  $(this).setFile($('#MusicPath').attr(value)).play();
},
swfPath: $('#JPlayerPath').attr(value)
  });

I would like the play the file:
$(this).setFile($('#MusicPath').attr(value)).play();

Only if ( $.cookies.get(AlliedSkills.Player) = Play )

If ($.cookies.get(AlliedSkills.Player) is null then do not play and
set only the file:
$(this).setFile($('#MusicPath').attr(value));

Could someone please help me in doing this?

Thanks,
Miguel


[jQuery] Click Even

2009-12-02 Thread shapper
Hello,

I am using the following to create a cookie and it is working fine:
  $('#Play').click(function() {
$.cookies.set('WCA.Player', 'Play', { path: '/' });
  });

Is there another way to do the same code but something like:
  $('#Play:click').cookies.set('WCA.Player', 'Play', { path: '/' });

Thanks,
Miguel



Re: [jQuery] Click Even

2009-12-02 Thread JMcGinnis

y0, Not really, why do you need to/ or want to? you could do this 

$('#Play').click(function() { $.cookies.set('WCA.Player', 'Play', { path:
'/' }) })

ha, j/k same thing, just one line.  Could you just explain why you would
like to do it a different way? or where you just wondering?




shapper wrote:
 
 Hello,
 
 I am using the following to create a cookie and it is working fine:
   $('#Play').click(function() {
 $.cookies.set('WCA.Player', 'Play', { path: '/' });
   });
 
 Is there another way to do the same code but something like:
   $('#Play:click').cookies.set('WCA.Player', 'Play', { path: '/' });
 
 Thanks,
 Miguel
 
 
 

-- 
View this message in context: 
http://old.nabble.com/Click-Even-tp26619100s27240p26620234.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



[jQuery] Lamborghini Collection [2/3]

2009-12-02 Thread suiying878

[url=http://www.gwallpaper.com/2010_Lamborghini_Murcielago_LP650_4_Roadster_2-79.html]2010
Lamborghini Murcielago LP650 4 Roadster[/url]
Lamborghini adds to the special edition of supercars with the official
unveiling of the Murcielago LP650-4 variant, a beefier, brawnier - and yes,
even more aggressive - version of the standard Murci. The car gets a 650hp
(485kW) 6.5L V12 mill like that found in the Reventon. That amount of Raging
Bull will get the AWD supercar to 62mph (100km/h) in just 3.4 seconds and a
top speed of 205mph (330km/h). This upgraded power bump will be unique to
the LP650-4 Roadster, according to Lamborghini.
 
[url=http://www.gwallpaper.com/2010_Lamborghini_Murcielago_LP650_4_Roadster_2-79.html][img]http://www.gwallpaper.com/uploads/wallpapers/2009/09/18/79/thumb_big_normal_809f654fe320ebeffb7d0c315787ed11.jpg[/img][/url]
 

[url=http://www.gwallpaper.com/Lamborghini_in_latest_batman_movie_The_Dark_Night_2-380.html]Lamborghini
in latest batman movie - The Dark Night[/url]
Lamborghini Murcielago LP640 Coupe makes an iconic appearance in the latest
Batman movie The Dark Night. The featured Murcielago LP640 Coupe is
powered by a 640 HP 12 Cylinder engine and has a top speed of more than 211
mph. Lamborghini's marketing firm had brokered the deal in 2005 to feature
Lamborghini's in the Batman movies. As a result, in the previous movie,
Batman Begins, the Lamborghini Murcielago Roadster made its debut
on-screen and now we are seeing the Murcielago LP640 Coupe in The Dark
Knight.
 
[url=http://www.gwallpaper.com/Lamborghini_in_latest_batman_movie_The_Dark_Night_2-380.html][img]http://www.gwallpaper.com/uploads/wallpapers/2009/09/23/380/thumb_big_normal_522e3b1c6f20952c00c85f0404e10492.jpg[/img][/url]
 

[url=http://www.gwallpaper.com/Lamborbhini_Ad_Personam_Personalization_program_14-112.html]Lamborbhini
Ad Personam Personalization program [/url]
Lamborghini will present two exclusive, highly individualized super sports
cars at the 2009 Detroit Auto Show. With a unique, matt-luster paint finish
in matt blue and all available special equipment options, this Murcielago LP
640 and Gallardo LP 560-4 demonstrate the virtually limitless possibilities
and expert craftsmanship presented through the Ad Personam individualization
program by the specialists in Sant’Agata Bolognese.  Ad Personam offers
every Lamborghini customer the opportunity to acquire a completely exclusive
vehicle from a unique brand – one that is perfectly in tune with their own
lifestyle.
 
[url=http://www.gwallpaper.com/Lamborbhini_Ad_Personam_Personalization_program_14-112.html][img]http://www.gwallpaper.com/uploads/wallpapers/2009/09/18/112/thumb_big_normal_f69075b6b3c04ae3307162bba365d390.jpg[/img][/url]
 

[url=http://www.gwallpaper.com/Lamborghini_LP560_4_Super_Trofeo-382.html]Lamborghini
LP560 4 Super Trofeo[/url]
The Super Trofeo is the only one-make series in the motorsport world to
feature cars with all-wheel drive. And it is Lamborghini’s clear objective
to ensure that it will be the fastest single-brand series in the world –
partly due to the technical superiority of the all-wheel drive principle.
From May the Super Trofeo will make guest appearances at six race events –
at Silverstone (UK), on the Adria Raceway (Italy), on the Norisring
(Germany), in Spa (Belgium), in Barcelona (Spain) and in Monza (Italy).
 
[url=http://www.gwallpaper.com/Lamborghini_LP560_4_Super_Trofeo-382.html][img]http://www.gwallpaper.com/uploads/wallpapers/2009/09/23/382/thumb_big_normal_2750122a40ae802b23e0898cbeffc342.jpg[/img][/url]
 
 
 
[url=http://www.gwallpaper.com/Lamborghini_Concept_S-116.html]Lamborghini
Concept S[/url]
 
[url=http://www.gwallpaper.com/Lamborghini_Concept_S-116.html][img]http://www.gwallpaper.com/uploads/wallpapers/2009/09/20/116/thumb_big_normal_2a7f4e8adc540a800e85d256ad86f9f5.jpg[/img][/url]
 
 
 
[url=http://www.gwallpaper.com/Lamborghini_Miura_Concept-394.html]Lamborghini
Miura Concept[/url]
 
[url=http://www.gwallpaper.com/Lamborghini_Miura_Concept-394.html][img]http://www.gwallpaper.com/uploads/wallpapers/2009/09/23/394/thumb_big_normal_78169bbf51ec8a21c25af57ecade.jpg[/img][/url]
 
 
 
[url=http://www.gwallpaper.com/Lamborghini_Diablo_28-157.html]Lamborghini
Diablo[/url]
 
[url=http://www.gwallpaper.com/Lamborghini_Diablo_28-157.html][img]http://www.gwallpaper.com/uploads/wallpapers/2009/09/20/157/thumb_big_normal_97c87189295e1e09fdbc7018724f6d7a.jpg[/img][/url]
 
 
 
[url=http://www.gwallpaper.com/Lamborghini_Murcielago-402.html]Lamborghini
Murcielago[/url]
 
[url=http://www.gwallpaper.com/Lamborghini_Murcielago-402.html][img]http://www.gwallpaper.com/uploads/wallpapers/2009/09/23/402/thumb_big_normal_1bdd6a59e9a5f6402a2823b8af5db002.jpg[/img][/url]
-- 
View this message in context: 
http://old.nabble.com/Lamborghini-Collection--2-3--tp26621699s27240p26621699.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



Re: [jQuery] Lamborghini Collection [2/3]

2009-12-02 Thread ripple
Thanks for the link. It's looking like a good site for me to write a simple php 
script that will copy all of your wallpapers, so I can add a lame sub-directory 
of car images to my site for the pure fun of doing it. Oh, And then laugh about 
it.
 
http://2whoa.com
 
Don't spam this group.
 


--- On Thu, 12/3/09, suiying878 suiying...@hotmail.com wrote:


From: suiying878 suiying...@hotmail.com
Subject: [jQuery] Lamborghini Collection [2/3]
To: jquery-en@googlegroups.com
Date: Thursday, December 3, 2009, 1:44 AM



[url=http://www.gwallpaper.com/2010_Lamborghini_Murcielago_LP650_4_Roadster_2-79.html]2010
Lamborghini Murcielago LP650 4 Roadster[/url]
Lamborghini adds to the special edition of supercars with the official
unveiling of the Murcielago LP650-4 variant, a beefier, brawnier - and yes,
even more aggressive - version of the standard Murci. The car gets a 650hp
(485kW) 6.5L V12 mill like that found in the Reventon. That amount of Raging
Bull will get the AWD supercar to 62mph (100km/h) in just 3.4 seconds and a
top speed of 205mph (330km/h). This upgraded power bump will be unique to
the LP650-4 Roadster, according to Lamborghini.

[url=http://www.gwallpaper.com/2010_Lamborghini_Murcielago_LP650_4_Roadster_2-79.html][img]http://www.gwallpaper.com/uploads/wallpapers/2009/09/18/79/thumb_big_normal_809f654fe320ebeffb7d0c315787ed11.jpg[/img][/url]


[url=http://www.gwallpaper.com/Lamborghini_in_latest_batman_movie_The_Dark_Night_2-380.html]Lamborghini
in latest batman movie - The Dark Night[/url]
Lamborghini Murcielago LP640 Coupe makes an iconic appearance in the latest
Batman movie The Dark Night. The featured Murcielago LP640 Coupe is
powered by a 640 HP 12 Cylinder engine and has a top speed of more than 211
mph. Lamborghini's marketing firm had brokered the deal in 2005 to feature
Lamborghini's in the Batman movies. As a result, in the previous movie,
Batman Begins, the Lamborghini Murcielago Roadster made its debut
on-screen and now we are seeing the Murcielago LP640 Coupe in The Dark
Knight.

[url=http://www.gwallpaper.com/Lamborghini_in_latest_batman_movie_The_Dark_Night_2-380.html][img]http://www.gwallpaper.com/uploads/wallpapers/2009/09/23/380/thumb_big_normal_522e3b1c6f20952c00c85f0404e10492.jpg[/img][/url]


[url=http://www.gwallpaper.com/Lamborbhini_Ad_Personam_Personalization_program_14-112.html]Lamborbhini
Ad Personam Personalization program [/url]
Lamborghini will present two exclusive, highly individualized super sports
cars at the 2009 Detroit Auto Show. With a unique, matt-luster paint finish
in matt blue and all available special equipment options, this Murcielago LP
640 and Gallardo LP 560-4 demonstrate the virtually limitless possibilities
and expert craftsmanship presented through the Ad Personam individualization
program by the specialists in Sant’Agata Bolognese.  Ad Personam offers
every Lamborghini customer the opportunity to acquire a completely exclusive
vehicle from a unique brand – one that is perfectly in tune with their own
lifestyle.

[url=http://www.gwallpaper.com/Lamborbhini_Ad_Personam_Personalization_program_14-112.html][img]http://www.gwallpaper.com/uploads/wallpapers/2009/09/18/112/thumb_big_normal_f69075b6b3c04ae3307162bba365d390.jpg[/img][/url]


[url=http://www.gwallpaper.com/Lamborghini_LP560_4_Super_Trofeo-382.html]Lamborghini
LP560 4 Super Trofeo[/url]
The Super Trofeo is the only one-make series in the motorsport world to
feature cars with all-wheel drive. And it is Lamborghini’s clear objective
to ensure that it will be the fastest single-brand series in the world –
partly due to the technical superiority of the all-wheel drive principle.
From May the Super Trofeo will make guest appearances at six race events –
at Silverstone (UK), on the Adria Raceway (Italy), on the Norisring
(Germany), in Spa (Belgium), in Barcelona (Spain) and in Monza (Italy).

[url=http://www.gwallpaper.com/Lamborghini_LP560_4_Super_Trofeo-382.html][img]http://www.gwallpaper.com/uploads/wallpapers/2009/09/23/382/thumb_big_normal_2750122a40ae802b23e0898cbeffc342.jpg[/img][/url]



[url=http://www.gwallpaper.com/Lamborghini_Concept_S-116.html]Lamborghini
Concept S[/url]

[url=http://www.gwallpaper.com/Lamborghini_Concept_S-116.html][img]http://www.gwallpaper.com/uploads/wallpapers/2009/09/20/116/thumb_big_normal_2a7f4e8adc540a800e85d256ad86f9f5.jpg[/img][/url]



[url=http://www.gwallpaper.com/Lamborghini_Miura_Concept-394.html]Lamborghini
Miura Concept[/url]

[url=http://www.gwallpaper.com/Lamborghini_Miura_Concept-394.html][img]http://www.gwallpaper.com/uploads/wallpapers/2009/09/23/394/thumb_big_normal_78169bbf51ec8a21c25af57ecade.jpg[/img][/url]



[url=http://www.gwallpaper.com/Lamborghini_Diablo_28-157.html]Lamborghini
Diablo[/url]

[url=http://www.gwallpaper.com/Lamborghini_Diablo_28-157.html][img]http://www.gwallpaper.com/uploads/wallpapers/2009/09/20/157/thumb_big_normal_97c87189295e1e09fdbc7018724f6d7a.jpg[/img][/url]




Re: [jQuery] Re: does JQuery have browser bookmarklet development support??

2009-12-02 Thread Rafał Pocztarski
2009/12/2 greghauptmann greg.hauptm...@gmail.com:

 What about caching the user credentials - how would you cache this
 typically?  (noting the username/password could not be tied to a
 particular page/tab, so it would have to be cached at the overall
 browser context if this makes sense)

 Also re caching the username/password is there a way to cache it after
 the browser closes  then starts up, or would it not be possible for
 this scenario?

You can simplify your bookmarklet to just redirect the browser to your
website with the address of the website on which the user clicked your
bookmarklet encoded in the uri. Something like this:

javascript:(function(){location.href='http://your.website/script?x='+encodeURIComponent(location.href);})();

And do everything, including authentication, authorization, sessions,
cookies, etc. on your website where you will have the address of the
original website in the x parameter, uri-encoded, as if someone has
just entered the address in a form on your website.

For example this will search for the current location in Google:

javascript:(function(){location.href='http://www.google.com/search?q='+encodeURIComponent(location.href);})();

Then you can redirect the browser back to the original page after your
script does what it needs to, or you can use window.open(URI) instead
of location.href=URI to open your website in a new window and close it
when it's done.

If you want to make the process invisible without any windows opening
and pages reloading then it gets more hairy, because you'd have to use
JSONP or manually inject script tags to load a script from the server,
and you'd have to make sure you access the cookies on the server and
not in the browser or otherwise you probably won't be accessing the
cookies you want.

Rafał Pocztarski