[jQuery] Re: Previous TD

2008-11-18 Thread andrea varnier
On 18 Nov, 04:12, Randy Johnson <[EMAIL PROTECTED]> wrote: > When I click on the date above I want to be able to change the rowSpan > on the td that surrounds it.  I cannot seem to get it right. try this: $('#r2').parent().parent().attr('rowspan', '1');

[jQuery] editing the content of a new window...

2008-11-18 Thread andrea varnier
hi :) is it possible to edit the content of a freshly open window? if I open it this way, for example: var p = window.open('popup.html'); then if I do var d = p.document; and use d.write('foo'); the document gets cleaned up and there's just 'foo' in the source. that coul be ok, but if there'

[jQuery] Re: My first attempt at showing/hiding div with jQuery

2008-10-24 Thread andrea varnier
On 24 Ott, 03:52, dsizemore <[EMAIL PROTECTED]> wrote: > Hi, > > In my first attempt at showing and hiding a div with jQuery, I've > hacked together this code and I'm looking for any thoughts on what I > did wrong (if anything?) The code seems to work in FireFox, IE7, and > Safari/Chrome. Opera an

[jQuery] Re: form plugin and a progress bar

2008-09-05 Thread andrea varnier
On 5 Set, 01:24, Mike Alsup <[EMAIL PROTECTED]> wrote: > Unfortunately there is no way to know the progress of the upload with > just HTML/JavaScript.  But you can do this with Flash.  Here's an > example: > > http://www.pixeline.be/experiments/jqUploader/ > > Mike thanks mike :)

[jQuery] Re: form plugin and a progress bar

2008-09-04 Thread andrea varnier
On 4 Set, 14:21, Giovanni Battista Lenoci <[EMAIL PROTECTED]> wrote: > Hi andrea, it depends on what server side language you are using. > > Since you're italian I think this link can help you understand how to > work with the apc extension for doing it in php: > > http://forum.html.it/forum/showt

[jQuery] form plugin and a progress bar

2008-09-04 Thread andrea varnier
Hi :) what I am trying to do is a file-upload form that uses ajax (and so I'm using the form plugin) and that shows a progress bar while uploading. I've tried many solutions that I found over the internet but none seemed to work. possibly I am making mistakes somewhere in the process. question is:

[jQuery] Re: Understanding JSON

2008-08-20 Thread andrea varnier
On 20 Ago, 09:35, Giovanni Battista Lenoci <[EMAIL PROTECTED]> wrote: > For example, if you do an ajax request to a page.php that do a query to > the db, and return the data, you'll user the function json_encode (php5, > or PEAR on php4) to write the response for javascript. if you cannot use tha

[jQuery] Re: Question about variable declaration

2008-08-20 Thread andrea varnier
thank you very much, all of you! :) Now I got it, I really appreciate your help. andrea

[jQuery] Question about variable declaration

2008-08-19 Thread andrea varnier
Hi :) in your plugins (I'm studying from the best here :))) I often find variable assignments like this: options = $.extend({ url: this.attr('action') || window.location.toString(), type: this.attr('method') || 'GET' }, options || {}); it's like url = this OR that. right

[jQuery] Re: how do I stop a further event will be ahppened again if current event has not yet finished

2008-08-19 Thread andrea varnier
On 19 Ago, 04:29, jack <[EMAIL PROTECTED]> wrote: > If an event hasn't finished how do I prevent the same event being > triggered again? Thank you in advance! you could just unbind() the action from the element that triggers it, and then re-bind it once the event has completed :)

[jQuery] form plugin and select()

2008-07-21 Thread andrea varnier
Hi first of all I wish to thank mike for his great form plugin :) letely I've been developing a sort of remote file manager using PHP, MySQL and jQuery. for seamless file uploads I've integrated Mike's form plugin in it, and it works sweet. but I noticed that there was a little problem. at some p

[jQuery] Re: contradictory between jquery and pure javascript

2008-07-03 Thread andrea varnier
On 3 Lug, 11:11, yazid <[EMAIL PROTECTED]> wrote: > such a contradictory problems appear frequently, solution please. maybe http://docs.jquery.com/Core/jQuery.noConflict :)

[jQuery] Re: Code not working in IE

2008-06-27 Thread andrea varnier
On 27 Giu, 02:41, Pegpro <[EMAIL PROTECTED]> wrote: > IE sucks. What is wrong here? one question: why are these quotes backslashed? > jQuery(\"a:contains('Home')\")

[jQuery] Re: submitting a form by pressing enter

2008-06-26 Thread andrea varnier
On 26 Giu, 06:20, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Hi, > > I have a form, with id="myForm", with a number of text fields (input > with type="text").  How do I cause a form submission by pressing enter > in any of those form fields? hi. shouldn't this be a default?

[jQuery] Re: Select option name attribute

2008-06-26 Thread andrea varnier
On 26 Giu, 05:08, Brad <[EMAIL PROTECTED]> wrote: > Your options should have "value" attributes and not "name". > > > Text > Text 2 > > > Try something like > > $("textselector option:selected").val(); This works, but since the selected option is the actual value of the , I would do something l

[jQuery] Re: Add class on click, then remove when click another, and add to that.

2008-06-26 Thread andrea varnier
On 26 Giu, 07:47, hubbs <[EMAIL PROTECTED]> wrote: > I have a list of links, and when one is clicked, I would like a class > to be added.  I understand how to do this, but when you click another > link, I would like the class removed from the first click and added to > the second click, and so on,

[jQuery] Re: how to eliminate easing on animation?

2008-06-26 Thread andrea varnier
On 26 Giu, 00:02, Ariel Flesler <[EMAIL PROTECTED]> wrote: > Yay! it works! thanks Ariel, you ROCK!! ^^ another pointer. I'm using an , as said. the cycle option doesn't seem to have any effect. after finishing with the last element it returns to the first, by doing a slow animation. is there a

[jQuery] Re: how to eliminate easing on animation?

2008-06-25 Thread andrea varnier
I put a tag on the subject, but it disappeared... :| anyway, the question is about the SerialScroll plugin, how can I change the subject now? thank you anyway :)

[jQuery] Re: How to make jquery do a link?

2008-06-25 Thread andrea varnier
On 25 Giu, 11:07, Pegpro <[EMAIL PROTECTED]> wrote: > How can I make jquery do an effect when clicking a link and when it is > finished animating follow the link? you can use a callback function, that is to say a function that is called when the effect has finished :) fadeOut, for example: $('a.

[jQuery] [serialScroll] how to eliminate easing on animation?

2008-06-25 Thread andrea varnier
Hi, how can I eliminate that sort of easing in the animations of the SerialScroll plugin? when an action starts, for example on an with images in its 's, the images start moving slow, then they reach full speed, and finally they stop by slowing down again. then the next animation is fired. I got

[jQuery] Re: select all divs with the same name

2008-06-20 Thread andrea varnier
On 20 Giu, 22:16, jggube <[EMAIL PROTECTED]> wrote: > He meant id. In his example he used #mydelete. To select everything > with class="test" in mootools, you would do $$(".test"). so let's say that jQuery is cheaper, cause it uses less dollars :)

[jQuery] Re: select all divs with the same name

2008-06-20 Thread andrea varnier
On 19 Giu, 21:50, ontguy <[EMAIL PROTECTED]> wrote: > Hello, > > How would I select all divs with a certain name? what do you mean 'name'? id? that would be $('#mydelete') but it's like css, if you want a certain class $('.mydelete') and so on... http://docs.jquery.com/Selectors :)

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

2008-06-17 Thread andrea varnier
On 17 Giu, 02:02, 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

[jQuery] Re: reusing events on freshly ajax updated content

2008-06-16 Thread andrea varnier
On 16 Giu, 11:29, "C. Feldmann" <[EMAIL PROTECTED]> wrote: > I assume that the newly ajax updated content has not been initialized. you're right. > What do I have to call after an ajax updating function to ensure > working events? you could simply re-initialize the elements, or, better, read th

[jQuery] Re: Use different CSS class

2008-06-16 Thread andrea varnier
On 16 Giu, 11:58, shapper <[EMAIL PROTECTED]> wrote: > Hello, > > As far as I know to style the error messages a "error" CssClass is > used. > Can I use another CSS Class? For example, "ShowError"? hi you can use any class you want, as long as it is defined in your style sheet :)

[jQuery] Re: Clicking an image and changing a div's html content.

2008-06-16 Thread andrea varnier
On 16 Giu, 06:07, Jordban <[EMAIL PROTECTED]> wrote: > I'd like to create an image that when clicked changes the html of a > div. I'd like to have many different images that change the content of > many different divs with different html. hi :) you don't need to create functions and pass paramete

[jQuery] Re: .load and asp.net postback

2008-06-16 Thread andrea varnier
On 16 Giu, 08:06, Mike <[EMAIL PROTECTED]> wrote: > Any? it would help if you posted some code, I think :)

[jQuery] Re: ui.datepicker trouble

2008-06-16 Thread andrea varnier
On 16 Giu, 11:48, Shawn <[EMAIL PROTECTED]> wrote: > However, the docs found > athttp://docs.jquery.com/UI/Datepicker/datepicker#.22setDate.22dateendDate > (scroll to the bottom of the page), do not seem to indicate an object is > being used to pass the parameters. you're right, and maybe my sug

[jQuery] Re: Working with text

2008-06-16 Thread andrea varnier
On 15 Giu, 14:55, "Ariel Flesler" <[EMAIL PROTECTED]> wrote: > var n = +"forum-list-1".slice(-1); ;-) I think this won't work if the number has 2 or more digits. The split('-').pop() way works better imho :)

[jQuery] Re: ui.datepicker trouble

2008-06-16 Thread andrea varnier
On 15 Giu, 08:48, Shawn <[EMAIL PROTECTED]> wrote: >$("#criteriaStart").datepicker("setDate", sd); >$("#criteriaEnd").datepicker("setDate", ed); I think you're missing curly brackets here: $("#criteriaStart").datepicker({setDate: sd});

[jQuery] Re: Reversing slideDown/slideUp behavior

2008-06-16 Thread andrea varnier
On 15 Giu, 20:45, fallingandlaughing <[EMAIL PROTECTED]> wrote: > Hello, try and take a look at this great tutorial by karl swedberg http://www.learningjquery.com/2008/02/simple-effects-plugins :)

[jQuery] Re: datepicker setDate

2008-06-09 Thread andrea varnier
On 8 Giu, 05:36, mark <[EMAIL PROTECTED]> wrote: > but if i do this > > $('#date').datepicker("setDate", new Date ( "January 6, 1972" )); try adding curly braces, to define an object, like this: $('#date').datepicker({defaultDate: new Date ( "January 6, 1972" )});

[jQuery] Re: Color animation on textarea

2008-05-23 Thread andrea varnier
On 23 Mag, 13:48, yabado <[EMAIL PROTECTED]> wrote: > Nice, but I thought this was built into JQ and did not require a > plugin to work? no, it is not :)

[jQuery] form plugin doesn't want to submit a file

2008-05-23 Thread andrea varnier
hi :) I have this form: File: Nome: Tags per l'immagine: jquery code is simple: $('#sub_immagini').ajaxForm(); if I submit it while it's em

[jQuery] Re: Create slide box like yahoo

2008-05-16 Thread andrea varnier
On 16 Mag, 09:05, thiendv <[EMAIL PROTECTED]> wrote: > Hi all! I want create slide box like click on "More Yahoo! Services" > inhttp://www.yahoo.com. Please help me thanks I'd suggest you read this great tutorial by Karl Swedberg http://www.learningjquery.com/2008/02/simple-effects-plugins :)

[jQuery] Re: Disable Submit button if no text entered

2008-05-14 Thread andrea varnier
On 14 Mag, 11:01, sashabe <[EMAIL PROTECTED]> wrote: > Hello! hi :) you'd better use the submit() method and 'return false'. Then a quick solution to your problem could look like this: $(document).ready(function(){ $('form').submit(function(){ if ($('input:first', 'form').val() == ''

[jQuery] Re: how i can access classes in my div?

2008-05-14 Thread andrea varnier
On 13 Mag, 16:29, canadaduane <[EMAIL PROTECTED]> wrote: > I wonder if you're looking for 'filter' instead of 'next'? > > $('.bloc-top').click(function(){ > $(this).filter('.bloc-center').slideToggle('slow'); > }); well... first of all I'm not quite sure about the html Luciano posted. I suppose

[jQuery] Re: how i can access classes in my div?

2008-05-13 Thread andrea varnier
On 13 Mag, 01:35, Luciano <[EMAIL PROTECTED]> wrote: > how i can access classes in my div? > > content top > content slideToggle > > > > content top > content slideToggle > looking at your code, the action is something like this: "when the user clicks on a bloc-top element

[jQuery] Re: IE7, simple AJAX, and nothing!

2008-05-12 Thread andrea varnier
On 12 Mag, 12:57, Bruce MacKay <[EMAIL PROTECTED]> wrote: > Hello folks, uhm... it's kinda strange O_o maybe this line: > $("#justlist,#tech").hide(); is hiding something it should not? just guessing ^^

[jQuery] Re: Syntax question regarding value of currrent element being clicked.

2008-05-12 Thread andrea varnier
On 12 Mag, 13:05, Pickledegg <[EMAIL PROTECTED]> wrote: > How do I refer > to the current dropdown being changed, and get its value? hi :) you should use $(this).val()

[jQuery] Re: Is there a way of counting the number of id's with the same name, and then renaming them _1, _2, _3 etc.

2008-05-12 Thread andrea varnier
On 12 Mag, 12:31, quirksmode <[EMAIL PROTECTED]> wrote: > Hi, > > I am dynamically generating html which looks like this: since you're generating the html dynamically, I'd suggest you do it server side (i.e. a for loop). if that is not possible, change with , if you need the "wrapper" string, or

[jQuery] Re: fastest way to edit a

2008-05-12 Thread andrea varnier
On 9 Mag, 23:05, Wizzud <[EMAIL PROTECTED]> wrote: > An alternative... thanks Wizzud, your code is much faster than mine!! thank you very much ^^

[jQuery] Re: fastest way to edit a

2008-05-10 Thread andrea varnier
thank you very much to the both of you! I'll try and let you know :) just a question for Wizzud: what is this? O_o > me[sel_val=='' || me.is('.'+sel_val) ? 'show' : 'hide'](); if I get it, writing me.show(); or me['show'](); is the same? I didn't know. thanks andrea

[jQuery] Re: List slideDown/Up Menu

2008-05-10 Thread andrea varnier
On 9 Mag, 23:11, Panman <[EMAIL PROTECTED]> wrote: > Andrea, when I changed to hover() the stopPropagation() effected > negatively. Once I removed that it started working ok. Also, what is > variable e when passing it to the function? Thanks e stands for event (you can use the entire word as well

[jQuery] Re: Ajax: Posting Xml Data

2008-05-09 Thread andrea varnier
On 9 Mag, 17:17, NeilM <[EMAIL PROTECTED]> wrote: > success : function(data) { > // Process data here > } what is this function supposed to do? it seems that it doesn't get the correct data (like the data var is empty or something). are you sure that your serversid

[jQuery] Re: List slideDown/Up Menu

2008-05-09 Thread andrea varnier
not sure but you could try something like this, to get more specific... $('#Main_Nav li:has(ul)').mouseover(function(e) { e.stopPropagation(); $(this).children('ul').slideDown('normal'); }).mouseout(function(e) { e.stopPropagation(); $(this).children('ul').slideUp(

[jQuery] fastest way to edit a

2008-05-09 Thread andrea varnier
Hi :) what is the fastest way to edit a item? I need to show some 's and hide some others, depending on the value of another select. let's say if the user selects a country for his holiday, in the '#hotel_paese' select, the '#hotel_destinazione' select will show only the hotels of that country. p

[jQuery] Re: IE XML Parsing problem - newb

2008-04-19 Thread andrea varnier
On 17 Apr, 21:43, nmadg <[EMAIL PROTECTED]> wrote: > What am I doing wrong!!! Thank you so much for your help. are you working with a local file? IE doesn't like it at all! if this is the case, don't worry, it'll work once the system will be online. otherwise, if you need to use local files anyw

[jQuery] Re: "missing ; before statement" in ui.tabs

2008-03-10 Thread andrea varnier
On 9 Mar, 17:16, eyal <[EMAIL PROTECTED]> wrote: > Hello, > > For some reason i'm having "missing ; before statement" error when i'm > running ui.tabs altough on the demo page it's run just fine. > > What do think might be the problem? > > Thanks! > Eyal could you please post some of your code so

[jQuery] Re: display returned data from posting page

2008-03-10 Thread andrea varnier
On 9 Mar, 04:33, bwdev <[EMAIL PROTECTED]> wrote: > I need to do a post and then have the posting page return some data > into a var. I've tried a few things but can't seem to get it to > work. Please see my pseudo code below. How can I have the posting > page return data via json? hi, here it

[jQuery] Re: passing form data to $.ajax

2008-03-05 Thread andrea varnier
On 4 Mar, 12:58, "Mike Alsup" <[EMAIL PROTECTED]> wrote: > You cannot upload files with ajax. Use the form plugin for that > functionality. thank you :)

[jQuery] passing form data to $.ajax

2008-03-04 Thread andrea varnier
hi :) I'm wondering is there a way to pass form data to $.ajax()? let's say I want to upload a file, what is the correct way? passing the content of the input type="file" this way $('#myInput').val() doesn't work. How is that done? thank you andrea

[jQuery] Re: Div Changer Using Hide And Show

2008-02-22 Thread andrea varnier
On 21 Feb, 23:03, Sientz <[EMAIL PROTECTED]> wrote: > $('a#blackbook').click(function() { > //HIDE DIVS > hide_divs(); > //SHOW LISTED DIV > $('.blackbook').show('fast'); > return false; > }); you see you got all these functions that basically do the same thing. if an anch

[jQuery] Re: How can I make searching not case-sensitive?

2008-02-21 Thread andrea varnier
var xx=$("form#form1 *").fieldValue()[0].toLowerCase(); sorry :p

[jQuery] Re: How can I make searching not case-sensitive?

2008-02-20 Thread andrea varnier
On Feb 20, 8:55 pm, dinu <[EMAIL PROTECTED]> wrote: >  xx=$("form#form1 *").fieldValue()[0]; hi :) have you tried this? xx=$("form#form1 *").fieldValue()[0].toLowerCase;

[jQuery] Re: finding if element is focused

2008-02-18 Thread andrea varnier
On 18 Feb, 16:22, Eridius <[EMAIL PROTECTED]> wrote: > anyone? I think that if you don't post some more infos it will be very difficult to think of an answer. what do you need this for? maybe someone can suggest another approach... :)

[jQuery] Re: How to add a CSS Class to this

2008-02-18 Thread andrea varnier
On 18 Feb, 13:59, andrea varnier <[EMAIL PROTECTED]> wrote: > $(element.parent('td').next('td').addClass('myClass'); errata corrige: element.parent('td').next('td').addClass('myClass'); assuming var element already contains a jQuery object. I'm sorry, I really should have stayed home today :|

[jQuery] Re: How to add a CSS Class to this

2008-02-18 Thread andrea varnier
On 18 Feb, 05:17, expresso <[EMAIL PROTECTED]> wrote: > Actually I already included my .css page. How do I just add a class > to the here is what I'm really asking. $(element.parent('td').next('td').addClass('myClass'); this doesn't work?

[jQuery] Re: How to add a CSS Class to this

2008-02-18 Thread andrea varnier
On 18 Feb, 10:15, andrea varnier <[EMAIL PROTECTED]> wrote: > that's correct if you want to add tha class to the table cell which is > next to the element you pass (to the function). I'm sorry this is completely wrong!!! :))) don't know what I wrote. like you wo

[jQuery] Re: How to add a CSS Class to this

2008-02-18 Thread andrea varnier
On 18 Feb, 05:06, expresso <[EMAIL PROTECTED]> wrote: > I figured maybe I could just append an addClass after the > element.parent("td").next("td") but not sure if that's correct that's correct if you want to add tha class to the table cell which is next to the element you pass (to the function).

[jQuery] Re: on form submission, how to decide "on submit: return true / false"

2008-02-15 Thread andrea varnier
On 15 Feb, 06:20, freech <[EMAIL PROTECTED]> wrote: > 1. I handle the check.php file like: > if (!isset($_POST['username'])) echo "please input a username"; > ... if $username already exists, echo "the name you try to register is > already taken"; I think you could insert in your document a wit

[jQuery] Re: Code works in Safari ONLY

2008-02-14 Thread andrea varnier
On Feb 15, 12:19 am, "Brian Cherne" <[EMAIL PROTECTED]> wrote: > Actually, the += and -= are perfectly legit for the animate method. They > allow you to animate a property relative to its current > value.http://docs.jquery.com/Effects/animate ooops, I'm sorry I didn't know that :)

[jQuery] Re: Code works in Safari ONLY

2008-02-14 Thread andrea varnier
> $(".items").animate({"margin-left":"+="+amount+"px"},"slow"); > I really hope you can help me, I had never encountered this problem before. try and take away those '+=', you wouldn't write a css rule like this margin-left: +=300px; :)

[jQuery] Re: sending an array[] with $.ajax post

2008-02-14 Thread andrea varnier
On 14 Feb, 16:59, hcvitto <[EMAIL PROTECTED]> wrote: > data: what should i write here??? how should i send my > arrayCheckBox values?? you have to use a map, an object containing name: value pairs. the names will be the names of the variables that the php script is expecting to receive. so if t

[jQuery] Re: on form submission, how to decide "on submit: return true / false"

2008-02-14 Thread andrea varnier
On 14 Feb, 15:57, freech <[EMAIL PROTECTED]> wrote: > //I have problem on here: > if ( !$(".sdComt").response ) { return false; } else { return > true; } ok, if I got it right, you're using a $.post call to check if the user's input is correct or somehow acceptable, and then you app

[jQuery] Re: animation question

2008-02-14 Thread andrea varnier
On 14 Feb, 15:04, spaceage <[EMAIL PROTECTED]> wrote: > andrea--thanks so much for this helpful tip. you're welcome :) > I would have expected some form of .each perhaps with an incrementing > variable to use as the "multiplier" for determining the top value for > each . If I read this correctl

[jQuery] Re: hover effect for input type="image" (beginner question)

2008-02-14 Thread andrea varnier
On 14 Feb, 15:26, Michael Schwarz <[EMAIL PROTECTED]> wrote: > Hi everybody, hi :) > A) change > src="/img/btn_search.gif" > into > src="/img/btn_search_hover.gif" > onMouseOver and back onMouseOut $('.hoverThis').hover(function(){ $(this).attr('src', '/img/btn_search_hover.gif'); }, fun

[jQuery] Re: Animate function. Once I animate how do I er.... de... animate

2008-02-14 Thread andrea varnier
there's a toggle() method, too, that toggles between two functions. like this: $("#container").toggle(function() { $("#container").animate({"marginTop": "-300px"}, "slow"); }, function() { $("#container").animate({"marginTop": "300px"}, "slow"); }); :)

[jQuery] Re: what editor do you use?

2008-02-13 Thread andrea varnier
Notepad++; :)

[jQuery] Re: animation question

2008-02-13 Thread andrea varnier
On 13 Feb, 06:41, spaceage <[EMAIL PROTECTED]> wrote: > Is this a reasonable undertaking using jQuery, or is there another > better way (or plug in) to do this? jQuery is perfect for this kind of things :) just give the div a overflow:hidden style, and the li's a position:relative, and a very hig

[jQuery] Re: Need help with the basics: functions & variables

2008-02-13 Thread andrea varnier
On 13 Feb, 15:56, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > I've been trying to [1] get a named boolean out of this, which I can > later use for checks; [2] turn it into a reusable function - ideally, > both things together! I think it is not easy as it seems, and I'll try to explain why :

[jQuery] Re: OT: FCK editor now double spaces with enter key?

2008-02-13 Thread andrea varnier
On 13 Feb, 16:03, "Chris Jordan" <[EMAIL PROTECTED]> wrote: > that's lame. definitely. but I think it has something to do with editors like Dreamweaver. I remember using it once... is there a CTRL+Return combo or something?

[jQuery] Re: Sliding vertically a floated element depending on scrollbar

2008-02-13 Thread andrea varnier
On 13 Feb, 15:31, Feed <[EMAIL PROTECTED]> wrote: > Hi all, > > I think I've looked all plugins available on jquery.com and haven't > found what I need. hi :) you don't need all of the plugins, but just one: Brandon Aaron's 'dimensions' http://brandonaaron.net/docs/dimensions/ I wouldn't use flo

[jQuery] Re: About jQuery.attr(type,value)

2008-02-13 Thread andrea varnier
On 13 Feb, 12:23, wwwiori <[EMAIL PROTECTED]> wrote: > Dear Team, > I have a question that how can I modify the attribute using jQuery. > For example: > There have a element: > > and now I would like to change the type to "button", following code is > my tried on IE7 and Firefox 2.02 on jQu

[jQuery] Re: onclick to page

2008-02-13 Thread andrea varnier
On 13 Feb, 10:59, Michael <[EMAIL PROTECTED]> wrote: > *Bump* hi :) the problem is you just want to select the first anchor? $('a:first') or just the one that has the title ChangheCSS? $('a[title="ChangeCSS"]') and so on... don't know if this helps...

[jQuery] Re: each() without the last element?

2008-02-13 Thread andrea varnier
On 13 Feb, 10:37, howa <[EMAIL PROTECTED]> wrote: > Hello, I want to loop thru each elements with the each() function, > except I want to skip the last element, are there simple method? hi, I would exclude the last item directly within the selector $('#elements').not(':last').each(function(){

[jQuery] Re: Trouble applying .show() to descendants

2008-02-13 Thread andrea varnier
On 13 Feb, 01:11, Nick P <[EMAIL PROTECTED]> wrote: > The trouble comes when I try to append this cloned block to the end of > the table. If I just do: > > blockCopy.appendTo("[EMAIL PROTECTED]:resources] tbody:first"); > > It appends the clone correctly, but the hidden fields are still > hidden.

[jQuery] Re: Replacing a string - why doesn't this work?

2008-02-13 Thread andrea varnier
On 13 Feb, 09:05, Bruce MacKay <[EMAIL PROTECTED]> wrote: > s=clonedRow; > var myString = 'showImageList'+iRowID; > var myString2 = 'showImageList'+iNewID; > var myString3 = s.replace(myString,myString2); > > The error message I get is s.replace is not a functio

[jQuery] Re: OT: FCK editor now double spaces with enter key?

2008-02-12 Thread andrea varnier
On Feb 12, 8:32 pm, "Andy Matthews" <[EMAIL PROTECTED]> wrote: > We've been using FCK editor for a while now. It used to create a single > return when hitting the enter button. We recently upgraded to a newer > version (2.5 I think) and now it creates a double space instead. shift + enter = singl

[jQuery] Re: how to set the value of an input after selecting an option in a list

2008-02-12 Thread andrea varnier
On Feb 12, 10:13 pm, bractar <[EMAIL PROTECTED]> wrote: > I want to put the result of 'index.php/get/s_document_loadFields/' in the > input field  $('#newDoc_name') after selecting a value in the list > $('#newDoc_select') > > The following code doesn't work for me >  $('#newDoc_name').load('index

[jQuery] Re: Compressing javascript files in one file, problems with some plugins (dropshadow.js)

2008-02-12 Thread andrea varnier
On 12 Feb, 12:33, Giovanni Battista Lenoci <[EMAIL PROTECTED]> wrote: > Hey, you've found the error, thank you very much! > > But why?? actually I was only guessing :P the fact is that afaik the eval() function is used in the packed scripts, and not in the minified ones. but I confess I don't kn

[jQuery] Re: how to set the value of an input after selecting an option in a list

2008-02-12 Thread andrea varnier
On 12 Feb, 09:32, andrea varnier <[EMAIL PROTECTED]> wrote: > load() uses POST so sorry I forgot to delete this line :P

[jQuery] Re: Compressing javascript files in one file, problems with some plugins (dropshadow.js)

2008-02-12 Thread andrea varnier
have you tried using the minified version of dimensions.js instead of the packed one?

[jQuery] Re: Getting the highlighted text

2008-02-12 Thread andrea varnier
On 12 Feb, 07:46, duggoff <[EMAIL PROTECTED]> wrote: > I have a textarea and a button that allows me to select some text and > apply a span and class to it. What I need to do is select that text > later and remove the span and class by clicking on a button. I think I > can handle to part that remo

[jQuery] Re: how to set the value of an input after selecting an option in a list

2008-02-12 Thread andrea varnier
On 11 Feb, 20:41, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Hello, > after selecting a value in my select field and clicking on a button, I > call a function (please see the code below) not sure what you have to do, but if you want to use the response data of an ajax request, you must spec

[jQuery] Re: Assigning an animation toggle to a checkbox to fade a table row in/out

2008-02-12 Thread andrea varnier
On 11 Feb, 17:41, quirksmode <[EMAIL PROTECTED]> wrote: > That's perfect!! Works really nicely. Just out of interest what does > the blur() mean and why is it parent().parent(). Would that need to > change if I introduced more td's? when you call an event handler without arguments, generally you

[jQuery] Re: advanced callbacks?

2008-02-11 Thread andrea varnier
On 11 Feb, 13:40, lgr888999 <[EMAIL PROTECTED]> wrote: > how would i go for doing a slideUp and an ajax request simultanously > but only handle the ajax response once the slideUp is finished? uhm... I'd try something like this: $.ajax({ url: 'myfile', ... succ

[jQuery] Re: Assigning an animation toggle to a checkbox to fade a table row in/out

2008-02-11 Thread andrea varnier
On 11 Feb, 15:22, quirksmode <[EMAIL PROTECTED]> wrote: > I have created a table, at the end of each table row is a checkbox. > When the user selects the checkbox, that row will fade out to give the > illusion its now disabled. When the checkbox is unchecked I want the > row to fade back. hi for

[jQuery] Re: help with json, please :)

2008-02-11 Thread andrea varnier
I found the error :) I must use $.ajax, and specify dataType: 'json'. bye ^^

[jQuery] help with json, please :)

2008-02-11 Thread andrea varnier
$('everybody').hello(); could someone please tell me what is wrong with this json? :( [ { 'id': '17', 'nome': 'foto', 'autore': 'username', 'tipo': 'foto', 'data_ins': '1202210415', 'numero_fi

[jQuery] Re: stuck on a simple traversal problem - help!

2008-02-10 Thread andrea varnier
On Feb 10, 4:36 pm, ldexterldesign <[EMAIL PROTECTED]> wrote: > yo guys, > > screenshot here:http://www.ldexterldesign.co.uk/screenshot.jpg > > at present this jquery function adds the .collapsed class to > ALL .articleBody's. i only want the button to function for > the .articleItem in question o

[jQuery] Re: I'm stumped! How to accomplish this navigation rollover effect?

2008-02-08 Thread andrea varnier
On 8 Feb, 20:19, "Andy Matthews" <[EMAIL PROTECTED]> wrote: > It could just be that I had my browser window too narrow. That's probably > what it is actually. I'll take a look again. oh you meant the text in the main content div, now I got it. I was at work on 1280*1024 and I messed up the css a

[jQuery] Re: toggleClass weird behaviour

2008-02-08 Thread andrea varnier
On 8 Feb, 17:49, walterg2 <[EMAIL PROTECTED]> wrote: > > Hope this helps! > - George thank you very much george!! it helped me, too!

[jQuery] Re: toggleClass weird behaviour

2008-02-08 Thread andrea varnier
On 8 Feb, 14:40, meeboo <[EMAIL PROTECTED]> wrote: > Hey all! > > I'm wondering why the following code will toggle the div 'divRed' to a > different color, but it won't toggle the color for 'divGreen'. it occurred to me, too, many times, and I don't know why it happens. what I think is that if th

[jQuery] Re: I'm stumped! How to accomplish this navigation rollover effect?

2008-02-08 Thread andrea varnier
On 8 Feb, 16:28, "Andy Matthews" <[EMAIL PROTECTED]> wrote: > Andrea... > > I think you're right...absolute positioning should solve my problem. The > animation in your example works perfectly, but the text is located below the > navigation, rather than to it's right (in IE7 at least). hmm... I'm

[jQuery] Re: getElementById('myTable').rows[1].cells[2] in jQuery?

2008-02-08 Thread andrea varnier
On 8 Feb, 04:25, paulj <[EMAIL PROTECTED]> wrote: > In JavaScript, getElementById('myTable').rows[1].cells[2] would select > the cell that is in 2nd row of the 3rd column. > What is the jQ equivalent of this? (or maybe jQ has a different and > better way of doing this?) hi :) one way of doing tha

[jQuery] Re: Is there a feature as addID like addClass in jQuery?

2008-02-08 Thread andrea varnier
On 8 Feb, 13:35, mtest <[EMAIL PROTECTED]> wrote: > One more time I'm very sorry for my English :) > But I like jQuery very much :) Hi :) you can set the id of an element with the attr() method $('div').each(function(index){$(this).attr("id", "div" + index);});

[jQuery] Re: I'm stumped! How to accomplish this navigation rollover effect?

2008-02-08 Thread andrea varnier
On 8 Feb, 02:41, Andy Matthews <[EMAIL PROTECTED]> wrote: > I'm thinking now that I could possible position each column absolutely > in a parent container and theoretically that would prevent the > animation from messing with anything else. I think position absolute is a good solution. see this p

[jQuery] Re: How do I filter an XML file?

2008-02-07 Thread andrea varnier
On 6 Feb, 21:52, victorcorey <[EMAIL PROTECTED]> wrote: > XML sample: > [...] > > How can I filter the row nows based on the region? I want to only show > row nodes that have a region value of Latin America and the Caribbean. is this some xml you get from an ajax call? in this case, if you use $

[jQuery] Re: Finding index of the first empty text field

2008-02-07 Thread andrea varnier
On 7 Feb, 11:23, andrea varnier <[EMAIL PROTECTED]> wrote: > $("input").index($(".item[value='']:first")[0]); this one is better: $("input").index($(".item[value='']")[0]); since we're using that [0] there's no longer need for the ":first" selector :)

  1   2   >