[jQuery] Re: How to tell if is selected when it always defaults to first value?

2009-10-24 Thread Giovanni Battista Lenoci
nick ha scritto: one two three The right syntax is : one If there is no "selected" then it always defaults to first value. How can I tell if the page has loaded and no options have been selected? This is the way the select element works, there is always a selected element,

[jQuery] Re: new to this list

2009-10-24 Thread Nivanka
thank for the welcome Rick. I posted another post about some plugin I did http://groups.google.com/group/jquery-en/browse_thread/thread/32088c7733cb812e/4dc9cea53725aa07?hl=en&lnk=gst&q=nivanka#4dc9cea53725aa07 check it out On Oct 24, 8:36 pm, "Rick Faircloth" wrote: > Thanks for the plug-ins

[jQuery] Re: Variable within document ready... where is it in the DOM?

2009-10-24 Thread Nikola
Actually, thanks to everybody for the replies. I think you were all basically saying the same thing in different ways come to think of it... On Oct 24, 11:30 pm, Nikola wrote: > Thanks Mike, I generally understand closures and your explanation was > very good. > > I think what your saying is th

[jQuery] Re: Variable within document ready... where is it in the DOM?

2009-10-24 Thread Nikola
Thanks Mike, I generally understand closures and your explanation was very good. I think what your saying is that the example "pen" object is just a local variable to the ready callback. Thanks for clearing that up... On Oct 24, 10:51 pm, Michael Geary wrote: > The concept you're looking for

[jQuery] Re: how to set array value????

2009-10-24 Thread Don Dunbar
Hi Jacob, the format in your 'input' is a Ruby on Rails microformat; the "name='branch[blahblah]'" is a ruby hash. The problem could be how it is being parsed on the server with your ruby code. Here is short article about the use of microformats in rails. http://wonderfullyflawed.com/2009/02/17/rai

[jQuery] Re: Variable within document ready... where is it in the DOM?

2009-10-24 Thread Michael Geary
The concept you're looking for is called a "closure". Search for: javascript closure and you will find all sorts of information about closures. It really has nothing to do with jQuery or the DOM. Closures are part of the core JavaScript language and work in any environment where JavaScript is im

[jQuery] How to tell if is selected when it always defaults to first value?

2009-10-24 Thread nick
There appears to be no difference between these two when the page loads. one two three - or - one two three $('#id').val(); If there is no "selected" then it always defaults to first value. How can I tell if the page has loaded and no options have been selected?

[jQuery] Re: listmenu

2009-10-24 Thread Jack Killpatrick
Yes, maybe so: listnav is meant to be used when you want the list to be "on" the page and listmenu for when you want it to appear like a dropdown menu. - Jack rui lobo wrote: Thanks for answering , when we mouseout the .lm-menu class it disappear . I would like to always have the menu sh

[jQuery] Re: Variable within document ready... where is it in the DOM?

2009-10-24 Thread Nikola
Right, thanks, I understand how to make it a global but what I'd really like to understand is how to access it within the ready object. On Oct 24, 8:17 pm, MorningZ wrote: > it's local to that event > > if you need it globally > > var pen = {}; > $(function(){ >         pen = { >                

[jQuery] Re: Variable within document ready... where is it in the DOM?

2009-10-24 Thread Nikola
It has to be stored somewhere though... Say, for example, we bind a handler to the click event on the BODY of the document and we log the "pen" object to the console. $(function(){ var pen = { type: "Ballpoint", color: "blue",

[jQuery] Re: Variable within document ready... where is it in the DOM?

2009-10-24 Thread MorningZ
it's local to that event if you need it globally var pen = {}; $(function(){ pen = { type: "Ballpoint", color: "blue", hasInk: true } }); would allow you to reference "pen" from anywhere in your code On Oct 24, 8:01 pm, donb wro

[jQuery] Re: show/hide problem

2009-10-24 Thread stilfx
We need more info, the structure of the page, etc. You can target selectors in many ways. On Oct 24, 10:13 am, Daniel Donaldson wrote: > I am trying to have a image (link button) appear within a div on > mousenter for the div, and disappear on mouseleave. > I have this working in the following

[jQuery] Re: How to build this effect

2009-10-24 Thread Diego Desani
That is cool =D.. great response DanDan.. I like it. On Oct 24, 7:32 am, Andrea - Aosta wrote: > Thank you > > On 23 Ott, 19:20, DanDan wrote: > > > > > That is cool... I have seen this before as JQuery but not yet tried > > it: > > >http://webdev.stephband.info/parallax.html > > > On Oct 23,

[jQuery] Re: Variable within document ready... where is it in the DOM?

2009-10-24 Thread donb
You can't. It exists for the duration of the ready function, then it's gone. On Oct 24, 7:51 pm, Nikola wrote: > Hi, I've been trying to understand a little tidbit of jQuery here... > > Lets say we define an object in the Document "ready" method: > > $(function(){ > >         var pen = >      

[jQuery] Variable within document ready... where is it in the DOM?

2009-10-24 Thread Nikola
Hi, I've been trying to understand a little tidbit of jQuery here... Lets say we define an object in the Document "ready" method: $(function(){ var pen = { type: "Ballpoint", color: "blue", hasInk: true } }); Where in the

[jQuery] Re: JQuery AJAX

2009-10-24 Thread Ryan White
Hi Shawn, Thanks for your help. So, you're right I do want to do asynchronous. This was a mistake on my part. I actually do need to see the parameters in the webserver log file, so I need to do a GET. By using GET, and the 'data' key with my data, it appears it throws in a random number in thei

[jQuery] show/hide problem

2009-10-24 Thread Daniel Donaldson
I am trying to have a image (link button) appear within a div on mousenter for the div, and disappear on mouseleave. I have this working in the following code as expected, but I only want it to apply to the specific div that is being entered/left. The way I have it right now it applies to the clas

[jQuery] Jquery issue with IE 6 (works in chrome and firefox)

2009-10-24 Thread ram
This works fine in chrome and firefox but does not in IE6. i am yet to try it out in IE 7. As you can see, i have an input field and when user enters a value and clicks on Save, Jquery $("span.saveLink").click (function() gets invoked which populates the SaveUserForm(pls note my input field is out

[jQuery] Trying to add targetTouches to jQuery event objects

2009-10-24 Thread dinoboff
Hi, On touchstart and touchmove event, the event object has touches and targetTouches properties (see http://bit.ly/Q6uOD), however the jQuery.Event doesn't seem to copy these properties. I tried adding them to $.event.props like this: $.each(['touches', 'targetTouches'], function(){

[jQuery] jQuery 80x15 button

2009-10-24 Thread JHLY13
Hey all: I am in the process of developing a completely free site. I want to throw a 80x15 jQuery button with linkback on the site to give the team the respect they deserve for this awesome library. I have yet to find one. Can any one point me in the right direction? Thanks!

[jQuery] Re: Nesting question

2009-10-24 Thread lukas
Thank you Brian!!! On Oct 24, 5:08 pm, brian wrote: > var currentId = $(this).attr(’id’); > $('#another-id-'+currentId).show(); > > (don't forget the # before the ID) > > On Sat, Oct 24, 2009 at 4:50 PM, lukas wrote: > > > Based on the ID of a clicked element I would like to show another ID: >

[jQuery] Re: Nesting question

2009-10-24 Thread brian
var currentId = $(this).attr(’id’); $('#another-id-'+currentId).show(); (don't forget the # before the ID) On Sat, Oct 24, 2009 at 4:50 PM, lukas wrote: > > Based on the ID of a clicked element I would like to show another ID: > var currentId = $(this).attr(’id’); > or var currentId = this.id;(

[jQuery] Nesting question

2009-10-24 Thread lukas
Based on the ID of a clicked element I would like to show another ID: var currentId = $(this).attr(’id’); or var currentId = this.id;(?) $("another-id-(how can I include here currentId?).show(); Thanks for your help!

[jQuery] jQuery Google Maps Mashup zIndex Issue

2009-10-24 Thread stilfx
I've created this: http://strucke.com/provinggrounds/jqueryGmaps/defect.html I've found a very odd defect: If you have two markers, with identical coordinates (which happens quite often in the application I'm using this for), the underlying marker (and infowindow) stays hidden, and the infowindow

[jQuery] .load() get by Index

2009-10-24 Thread Phil
Hi, I'm trying to load images off a html page through the load() method but i want to load them through there index eg. img[0] how would i achieve this..? Thanks in advance.

[jQuery] Re: superfish & wordpress. Where am I going wrong?

2009-10-24 Thread Charlie
your hoverIntent.js file is an html file with a js extension looks like you copied and saved a demo html page and turnedit into a js file change it out with the hoverIntent.js download file Matt wrote: Hi, I'm trying to implement superfish onto a wordpress site I'm working on, but just

[jQuery] Re: Superfish Menu - Joomla

2009-10-24 Thread Charlie
hard to make solid suggestions without seeing implementation...link would help have you tried setting width to UL's? Chintu wrote: I use Superfish Menu with Nav-Bar option on a Joomla site. I would like to increase the width of the second level (sub-menu) width so that it fills up the en

[jQuery] Re: new to this list

2009-10-24 Thread Rick Faircloth
Thanks for the plug-ins, Nivanka and welcome to the list! :o) Rick -Original Message- From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On Behalf Of Nivanka Sent: Saturday, October 24, 2009 12:46 AM To: jQuery (English) Subject: [jQuery] new to this list Though I am

[jQuery] Re: Fast Table Cell Selection

2009-10-24 Thread Eric
My second example isnt right. the selector should include the TD [e.g. $("table tr:lt(endy):gt(starty) td") ] and after further testing, it performs reasonably well except: the lt/gt is non inclusive and I cant access the first row using gt(-1) as it is zero indexed.

[jQuery] Re: jquery disturbing the others javascript ...

2009-10-24 Thread bgolfy
Michael, Thanks a lot for that clue ... I went to jQuery docs and finally, I used jQuery.noConflict() ... It worked now ... There was no secret ... I use this slideshow ... http://cssglobe.com/post/5780/easy-slider-17-numeric-navigation-jquery-slider Thanks again ... B. On Oct 24, 4:51 am, Mic

[jQuery] Re: jquery each function iterate through form inputs problem

2009-10-24 Thread Mike Alsup
> $('#formid>input').each(function(){ >         if($(this).attr('id')!='') alert($(this).attr('value'); //fetch id if > not blank ang show value > > }); > > the code inside this function does not run if the form is rendered > this way: > > >   >           >         >   > > > but if it is rend

[jQuery] Fast Table Cell Selection

2009-10-24 Thread Eric
Im trying to manipulate a subset of a table and selecting the elements with my poorly written jquery is orders of magnitude slower than a simple direct DOM access of the elements using for(y;...) for(x;...) table.rows[y].cells[x]._do stuff_ I know both the starting and end

[jQuery] How Stop Animation Works?

2009-10-24 Thread Stan
Dear All, I have an object with mouse over and mouse out events. It fires display certain other box (almost like tooltip): box.fadeIn("slow") box.fadeOut("slow") It works absolutely fine unless mouse passed over the object without intention to stop. Then it triggers full scenario, complete fadi

[jQuery] new to this list

2009-10-24 Thread Nivanka
Though I am new to this mailing list, I have been a jquery user for some time now. and have published some plugins for the community on the jquery website as well as on my company website http://open.whynotonline.com. I would like to join the jquery community to build more connections with the d

[jQuery] Problem with CSS in clone()

2009-10-24 Thread Ashwin
Here is the scenario I have a div element which which acts like container to other elements in my page Now in a javascrpt method i do this // Cloning the above container var htmlClone = $("#container").clone(); // Trying to see if it is cloned alert(""+htmlClone.html()+""); // Tryin

[jQuery] select decorator plugin

2009-10-24 Thread Nivanka
I published this plugin sometimes back. Its main purpose is to provide a solution to style select boxes as needed. This is impossible with pure HTML and CSS. Also though FireFox working with the transparencies IE doesnt do it well. And on IE 6 the selectbox appears on top of each z-indexs. By th

[jQuery] Re: How to build this effect

2009-10-24 Thread Andrea - Aosta
Thank you On 23 Ott, 19:20, DanDan wrote: > That is cool... I have seen this before as JQuery but not yet tried > it: > > http://webdev.stephband.info/parallax.html > > On Oct 23, 9:46 am, Andrea - Aosta wrote: > > > > > At this URLhttp://www.smsbig.it/ityousee an effect build with > > mootools

[jQuery] jquery each function iterate through form inputs problem

2009-10-24 Thread jan
Hi! I cant get this each function to work inside a form: for example i have this code: $('#formid>input').each(function(){ if($(this).attr('id')!='') alert($(this).attr('value'); //fetch id if not blank ang show value }); the code inside this function does not run if the form is render

[jQuery] Re: listmenu

2009-10-24 Thread rui lobo
Thanks for answering , when we mouseout the .lm-menu class it disappear . I would like to always have the menu showing until we click another letter. similar to list nav. Maybe it's just better to use listnav. Rui Lobo R.Solve 2009/10/24 Jack Killpatrick > > HI, > > Glad you like the

[jQuery] Re: JQuery AJAX

2009-10-24 Thread Shawn
btw, if you are trying to track stats, have you looked at Google Analytics or Piwik? http://www.google.com/analytics/ http://piwik.org/ Shawn Ryan White wrote: Hey All, So I am having a weird situation when using the $.ajax method. And have a couple questions regarding this. What I am do

[jQuery] Re: JQuery AJAX

2009-10-24 Thread Shawn
Your URL is the culprit. And the way you are passing data. Doing http://myserver.com/index.gif?id=1&event=e is a GET request - the params are on URl directly. If you want this data to appear in the POST then you need to pass them right: $.ajax({ async: false, type: 'POST', url: 'myse

[jQuery] JQuery AJAX

2009-10-24 Thread Ryan White
Hey All, So I am having a weird situation when using the $.ajax method. And have a couple questions regarding this. What I am doing is basically just using this AJAX call to send a 'pixel' back to my server so I can collect stats on events. This event fires once every 30 seconds. $.ajax({