[jQuery] Newbie question about click()

2007-06-15 Thread Giovanni Battista Lenoci
Hi, I'm a newbie in jquery please be patient :-) I'm playin with jquery mixing some tutorials. I'm trying to open a p with some text within with the animation control, and a link. Then when I opened the p I want to change the behaviour of the link. When I click on the link I do the

[jQuery] Re: Autocomplete.js not runs on PHP Version 5.0.2

2007-07-23 Thread Giovanni Battista Lenoci
Stephan Beal ha scritto: Unfortunately, the author of autocomplete fails to document which PHP version it needs. I'm not a guru of jquery, and I don't know the autocomplete plugin, but I'm sure that a js file work on the client and not on the server. If the php part of the script use a

[jQuery] Manage overflow auto or something similar

2007-07-26 Thread Giovanni Battista Lenoci
Hi, I've a div with a list inside, each element contains a a tag and a p tag with a class that is hidden for default. I post some code for better explain: div id=news_eventi ul li a href=# onclick=$('.surprise').hide('slow');$('#news_3').show('slow');return false; + 19-06-2007

[jQuery] list height after an effect inconsistent

2007-07-26 Thread Giovanni Battista Lenoci
Hi, I've this example on my site to better explain my problem. http://www.gianiaz.net/jquery/dimension.html What I'm try to do is to retrieve the height of the list containg the news element after the effetct show applied to the paragraph. Try clicking two times on news1 link. The problem is

[jQuery] Adding 1px border to a TD

2007-08-02 Thread Giovanni Battista Lenoci
Hi, don't know if is a jquery related problem, but can you help me? I've a table, like this: table tbody tr class=record td class=new Test /td td class=old Test /td /tr /tbody /table Then in my js: $(.new).hover( function() { $(this).addClass(hover) },

[jQuery] Re: Do my emails make it to the list?

2007-08-17 Thread Giovanni Battista Lenoci
Jonathan Sharp ha scritto: The reason there's a delay is that new members posts are moderated to fight spam. After x number of valid posts the moderation restriction is removed. I've removed this restriction for your account. Cheers, -js How much is X? I wrote a few post (like 5 o 6)

[jQuery] Select 2 types of elements

2007-08-17 Thread Giovanni Battista Lenoci
Hi, I did not find in doc, can I select 2 types of elements in only one instruction? My purpose is to capture values from input and select elements in a form to serialize it. Thank you

[jQuery] Getting the nearest label

2007-08-22 Thread Giovanni Battista Lenoci
Hi, i'm looking in API/1.1.2/DOM/Traversing section of the doc for what I'm tryng to do... I think siblings() could be my function, but don't know how to use it.. I've a form like this: label for=test/label input id=test label for=test/label input id=test2 After the submit I do some

[jQuery] Re: Getting the nearest label

2007-08-22 Thread Giovanni Battista Lenoci
Many thanks Andy and Michael, I think both methods could work, cause I've in an array all the ids. @Andy, I looked at prev() before asking, but I falled in error thinking that prev expects a classname or an Id. Thank you all.

[jQuery] AjaxStart and AjaxStop only on certain requests

2007-08-23 Thread Giovanni Battista Lenoci
Hi, I'm using this piece of code: $().ajaxStart(showblock).ajaxStop(hideblock); To show and hide an overlay with the loading... message in it when an ajax funcion is running. I'm using also jtip, with an ajax request, and here come the problem. When I point the mouse over the element that

[jQuery] Re: AjaxStart and AjaxStop only on certain requests

2007-08-23 Thread Giovanni Battista Lenoci
Andy Martone ha scritto: Set global to false in the properties object you pass to $.ajax(): http://docs.jquery.com/Ajax#.24.ajax.28_properties_.29 Thank you, in later afternoon I could reach the doc site and find my self. Hope this could be useful for others :-)

[jQuery] It is possible to do in js with jquery?

2007-08-24 Thread Giovanni Battista Lenoci
Hi, don't know if it is possible to do something like this one without flash, but if it is possible can you give me some suggestion on how to do it? http://flash.html.it/movie/demo/824/effento-lente/ Thank you

[jQuery] Re: It is possible to do in js with jquery?

2007-08-26 Thread Giovanni Battista Lenoci
Rick Faircloth ha scritto: Very nice! Where do I find everything I need to implement this? Or is everything in the source of the page? Rick I made a rar archive you can download here: http://www.gianiaz.net/jquery/magnify/magnify.rar The code is a test, there are some things to implement,

[jQuery] Re: test

2007-09-05 Thread Giovanni Battista Lenoci
On Sep 5, 11:40 am, Daniel Rossi [EMAIL PROTECTED] wrote: Interesting, im not getting the initial email, just the replies ! I'm using gmail pop though. Same for me, I've renounced to make it work with thunderbird, I use web interface of gmail to send email to the list.

[jQuery] Re: jquery autocomplete plugin with php

2007-09-07 Thread Giovanni Battista Lenoci
Saidur ha scritto: Hello , I am a new bie in jquey. I need tutorial to work on jquery auto complete plugin with php . I need code. That i will test . Thanks I used this one, it has documentation and examples. http://www.dyve.net/jquery/?autocomplete Bye

[jQuery] Re: A definitive way to wait all images are loaded

2007-09-08 Thread giovanni battista lenoci
Just use oldschool window load: $(window).load(function() { // everything loaded }); Thank you, it was very simple

[jQuery] Find a specific children in a jquery object

2007-09-13 Thread Giovanni Battista Lenoci
Hi, if I want to get the ul childrens of a li element I do something like this: $('#li_id ul') But If I have already the jquery li object how can I do this without getting the id of the element? More in specific, I click on a checkbox, then I get the container (which doesn't have an id) with

[jQuery] Re: Find a specific children in a jquery object

2007-09-13 Thread Giovanni Battista Lenoci
Found! I use the children method passing a selector. There's a better way?

[jQuery] Re: Autocomplete on the contents of a table: how to?

2007-09-13 Thread Giovanni Battista Lenoci
Don't know if is what are you looking for, but have you take a look at this plugin? http://ideamill.synaptrixgroup.com/?page_id=16 Bye

[jQuery] Re: help with interface ondrop function

2007-09-16 Thread Giovanni Battista Lenoci
no success with last 4 hours of test. What I understan is that if I write nested list with same class and apply the sortable to the class make it confusing cause the pointer intersect with 2 classes with the same name. For be much clearly this is what I'm tryng to do with jquery and interface:

[jQuery] Re: Announce: jQuery UI 1.0 Released

2007-09-17 Thread Giovanni Battista Lenoci
John Resig ha scritto: We just pushed the brand-new jQuery UI 1.0 out the door. Very, very, very cool! I love you all :-)

[jQuery] Re: Falling at the first hurdle

2007-09-17 Thread Giovanni Battista Lenoci
Jay ha scritto: Thanks, you are right. The runat server attribute meant the server side compiler was trying to deal with the script. So it's fixed now but presents me with a new problem. The reason I put the runat=server in the script tag is because I am using a MasterPage in my .net web site.

[jQuery] Table filter in safari

2007-09-18 Thread Giovanni Battista Lenoci
Hi, I'm using this wonderfull plugin to filter and order values in a table: http://ideamill.synaptrixgroup.com/?p=7 Now I'm tryng it on a mac with safari(v 2.0.4), but it doesn't work. In javascript console I got this fantastic error: TypeError - Null Value line 1 (no file specified and

[jQuery] Klaus Tabs plugin fcckeditor

2007-09-21 Thread Giovanni Battista Lenoci
Hi, I'm using klaus tabs plugin, but I have a problem with fckeditor. I use the tab plugin for a multilingual site, then every language is in a tab, and in every tab there is an fckeditor instance. If I comment the line that initialize tabs I can write in every textarea, if I initialize the

[jQuery] Re: Klaus Tabs plugin fcckeditor

2007-09-22 Thread Giovanni Battista Lenoci
I've found this answer in fckeditor forum: The problem is that when FCKeditor is created from a textarea which is not yet visible, it is given a height and width of 0. This appears to be true whether you define a width and height or not. I have two solutions. The first (easiest) is to not

[jQuery] Re: Klaus Tabs plugin fcckeditor

2007-09-22 Thread Giovanni Battista Lenoci
solved, if can be useful, in js on the main page: function FCKeditor_OnComplete( editorInstance ){ $('#tabcontainer').tabs(); } Bye

[jQuery] Re: jQuery bug, or ?

2007-10-01 Thread Giovanni Battista Lenoci
spinnach ha scritto: this returns an error in IE7, works fine in firefox, is this a bug or something i overlooked ? var $div = $('div class=/div'); Try var $div = $('div/div'); $div.addClass('fileinputs'); Giovanni

[jQuery] Getting a specific option in a select

2007-10-08 Thread Giovanni Battista Lenoci
Hi, I'm trying to get the option with a specific value in it. This is the syntax I use and doesn't works: alert($('option:[value*=\'2\']', $('#category_1')).size()); It alerts 0, if I try without the value I get the correct size of the options in the select. Where's the error? Thank you

[jQuery] Re: Getting a specific option in a select

2007-10-09 Thread Giovanni Battista Lenoci
Battista Lenoci [EMAIL PROTECTED] wrote: Hi, I'm trying to get the option with a specific value in it. This is the syntax I use and doesn't works: alert($('option:[value*=\'2\']', $('#category_1')).size()); It alerts 0, if I try without the value I get the correct size of the options

[jQuery] cyclic __proto__ value error, what is it?

2007-10-11 Thread Giovanni Battista Lenoci
Hi, I'm heavily using jquery in a page that loads a lot of things, and sometimes (apparentily without a sense) firebug shows this error: cyclic __proto__ value [Break on this error] eval(function(p,a,c,k,e,r){e=function(c) {return(ca?'':e(parseInt(c/a)))+((c=c%a... On this project I'm using

[jQuery] Send an image to the server with $.ajax

2007-10-11 Thread Giovanni Battista Lenoci
Hi, I have a page with a input file, and I'm wondering if it is possible to send the file to server using ajax, without submit. Thank you

[jQuery] Re: Send an image to the server with $.ajax

2007-10-12 Thread Giovanni Battista Lenoci
On Oct 11, 5:56 pm, Maggi Trymbill [EMAIL PROTECTED] wrote: Hello Giovanni, To be able to send a file via AJAX with jQuery you need a plugin because jQuery doesn't know how to post a file via AJAX. There is one that works quite well, you can see the demo for it

[jQuery] Re: Send an image to the server with $.ajax

2007-10-12 Thread Giovanni Battista Lenoci
I've solved, the plugin creates a form in a iframe, where it clones the input file getting it by the id passed in the constructor. After line 159 I've addedd: $('input').clone().appendTo($(form)); this is the piece of code to modify: 154 { 155 // var io = $('#' + frameId); 156

[jQuery] ajax success arguments

2007-10-15 Thread Giovanni Battista Lenoci
Hi, I'm looking on the doc, but I've a doubt about the ajaxSuccess event. In docs says: The XMLHttpRequest and settings used for that request are passed as arguments to the callback. But in wich form? I think is an object, but can you help me understand how is structured? In my particular

[jQuery] Re: ajax success arguments

2007-10-15 Thread Giovanni Battista Lenoci
On Oct 15, 2:58 pm, Mike Alsup [EMAIL PROTECTED] wrote: The docs are incorrect. Your ajaxSuccess handler is passed three arguments: 1. The event object 2. The XHR 3. The settings object Thank you very much Mike, I was going crazy :-)

[jQuery] Re: ajax success arguments

2007-10-15 Thread Giovanni Battista Lenoci
Sorry for the rough answer, might be able to help more if I know what the server response looks like. Rob Thank for your answer Robert, but in my case I want to retrieve the data sent to the request, and not the data receveid. In my case I use the ajaxSuccess event and then the right answer

[jQuery] Re: Drupal Form + jQuery Forms Plugin + File Uploads (Drupallers jQuery gurus please)

2007-10-16 Thread Giovanni Battista Lenoci
Emil Ivanov ha scritto: Hi dgt, I think the problem is the following: ajaxForm uses Ajax to send the data (XMLHttpRequest), but XMLHttp does NOT support file uploading, so the way to send a file (image or whatever) is to use an iframe. You can manipulate the iframe with javascript by copying

[jQuery] Event binding doubt

2007-10-16 Thread Giovanni Battista Lenoci
Hi, I have a doubt about the right way to perform an event binding. In a page a I have a select with id #cat1 and class=myselect. During the use of the page depending on the element selected on cat1 a do an ajax call, that get a list of elements and generate a select that has

[jQuery] Re: Drupal Form + jQuery Forms Plugin + File Uploads (Drupallers jQuery gurus please)

2007-10-18 Thread Giovanni Battista Lenoci
On Oct 18, 2:06 pm, micha149 [EMAIL PROTECTED] wrote: I have the same Problem to The Plugin loads the file succesfully to the server. I can trac it with the php modul upload progress to. But it doesent appear in $_FILES. All other form fields are listet in $_POST corectly. Hi Michael,

[jQuery] Re: Drupal Form + jQuery Forms Plugin + File Uploads (Drupallers jQuery gurus please)

2007-10-18 Thread Giovanni Battista Lenoci
upload plugin that uses flash to provides this capability: http://www.pixeline.be/experiments/jqUploader/ Mike On 10/18/07, Giovanni Battista Lenoci [EMAIL PROTECTED] wrote: On Oct 18, 2:06 pm, micha149 [EMAIL PROTECTED] wrote: I have the same Problem to The Plugin loads the file

[jQuery] Re: Drupal Form + jQuery Forms Plugin + File Uploads (Drupallers jQuery gurus please)

2007-10-19 Thread Giovanni Battista Lenoci
micha149 ha scritto: I think it must work. Bu i'n not an yui man. I make it with jQuery: $(document).ready( function() { // define the check progress function var getProgress = function() { $.ajax({ type: GET, url: document.URL +

[jQuery] Help on mouse over and div appearing on an img

2007-10-31 Thread Giovanni Battista Lenoci
Hi, I'm working on a little piece of code you can find here: http://www.gianiaz.net/jquery/mouseover/ In a few words, I make appear a div with an info of the image when the mouse go over an image. The problem is that when I go over the image the div with the info appears, but if with the

[jQuery] Re: limit to only jpeg when file upload

2007-10-31 Thread Giovanni Battista Lenoci
[EMAIL PROTECTED] ha scritto: Hi, I'm using this to upload file: input id=file name=file type=file It works very well, now I'd like to find a way to check only jpeg files are uploaded, any way to do this in jQuery? Thanks. A.C. I think the only thing you can do client-side is to

[jQuery] Re: AJAX calls with dynamic variables.

2007-11-03 Thread Giovanni Battista Lenoci
BuckRogers ha scritto: Here is an example found in the documentation : $.get(test.php, { name: John, time: 2pm } ); How do I go about changing the parameters dynamically. Let's say I have a function that returns a name. I don't want John, I want the string retuned from my getName() function

[jQuery] Jquery rounded corners.

2007-11-13 Thread Giovanni Battista Lenoci
Hi, I'm trying this plugin: http://www.methvin.com/jquery/jq-corner-demo.html But I've a little problem. If have a background color for my body (for example red), then a container with background color of white, if I use this plugin in the backgound of my corners i will see the red background

[jQuery] Looking for theoretical help for news scroller.

2007-11-24 Thread Giovanni Battista Lenoci
Hi, I'm playing with jquery, and I'm tryng to do a news scroller. In my markup I have an unordered list with position relative that I move with setInterval and top position. I draw a little scheme to show you what's my problem: http://www.gianiaz.net/jquery/newsscroller/newsscroller.png

[jQuery] Re: how to access this?

2007-11-27 Thread Giovanni Battista Lenoci
Don't know if there is a better way, but this code works: script type=text/javascript $(document).ready(function() { $div_cloned = $('#test').clone(); $('select', $div_cloned).remove(); alert($div_cloned.text()); }); /script /head body td

[jQuery] Re: Jquery Ajax dropping special characters

2007-11-27 Thread Giovanni Battista Lenoci
Are you triyng to send a query like this? var data = vote=C+; $.ajax({ type: POST, url: ajax.php, data: data, dataType: json, success: function(data_result) { ShowMessage(data_result) } }); Try using the code for the plus sign: %2b Bye On Nov 27, 4:59 am, damitha

[jQuery] Re: Noob question: How to access a PHP variable and append it to the html?

2007-11-30 Thread Giovanni Battista Lenoci
There are a lot of way to take data via ajax. I always use this one: Client side: data = param1=fooparam2=bar $.ajax({ type: POST, url: ajax.php, data: data, dataType: json, success: function(data_result) { FillResult(data_result) } // on success the

[jQuery] A secure way to save on unload

2007-12-04 Thread Giovanni Battista Lenoci
Hi, I'm using php and ajax calls to save content of a form and I'm wondering if there is a secure way to save a form also on the unload of the page. From a book that I have: the event fires before the document goes away, don't burden the event handler with time-consuming tasks, such as

[jQuery] Element not appended in IE7

2007-12-10 Thread Giovanni Battista Lenoci
Hi, can anyone help me understand why in this case the element is not appended in IE7: for(var i=0; i lista_files.length; i++) { $a = $('a').appendTo($container); $a.addClass('expander_link'); $a.attr({ 'id':'exp_link_1',

[jQuery] Re: Element not appended in IE7

2007-12-10 Thread Giovanni Battista Lenoci
It seems that on certain elements, this syntax is preferred by IE $a = $('a/a').appendTo($element); It's right? There'is an explanation? Thank you

[jQuery] Re: Is it possible get the data from ajaxSuccess?

2007-12-14 Thread Giovanni Battista Lenoci
Don't know if I understood, $.ajax({type: POST, url: foo2.php, data: data, dataType: json, success: function(server_response) { switch(server_response.wich_function) { case '1': on_success_one(server_response); break;

[jQuery] Re: dynamically remove scripts form page

2007-12-21 Thread Giovanni Battista Lenoci
GianCarlo Mingati ha scritto: leaving the old framework was creating problems with the easing equations used in my slideviewer plugin wich uses jquery 1.2 and the easing functions. The plugin is used along the blog in some posts. In some way, the last framework loaded (the old one, from Digg)

[jQuery] Re: Radio Buttons and .val()

2008-01-23 Thread Giovanni Battista Lenoci
Matt Quackenbush ha scritto: str = $(input[name='addType']).val(); Don't know if is the better way, but I use this method: label for=add-type-1input type=radio class=radio_add_type name=addType id=add-type-1 value=prem /nbsp;Premium/label label for=add-type-2input type=radio

[jQuery] Re: Accessing jQuery functions from outside

2008-01-31 Thread Giovanni Battista Lenoci
wyo ha scritto: I've some functions which I'd like to use outside of jQeury in normal HTML, e.g. script type=text/javascript $(document).ready(function() { function collapse (i) { $('#expanded_'+i).hide(); } }); /script ... img src=images/plus01.png

[jQuery] Re: OT optimization phpSpeedy

2008-02-01 Thread Giovanni Battista Lenoci
Alexandre Plennevaux ha scritto: hi friends, we've been discussing now and then about optimization, reducing the number of http requests, compression; A php script just came out that takes that in charge for you, it's impressive: http://aciddrop.com/php-speedy/ If you guys find it work for

[jQuery] Detecting ctrl+click on an element

2008-02-04 Thread Giovanni Battista Lenoci
The subject says it all... How I can detect a crtl+click on an element? Thank you. -- gianiaz.net - Giovanni Battista Lenoci P.le Bertacchi 66 23100 Sondrio (SO) - Italy

[jQuery] Re: Detecting ctrl+click on an element

2008-02-04 Thread Giovanni Battista Lenoci
).click(clickFn); } }) .keyup(function(event){ if (event.keyCode == 17){ $(#target).unbind('click', clickFn); } }); Thank you very much! -- gianiaz.net - Giovanni Battista Lenoci P.le Bertacchi 66

[jQuery] Re: Detecting ctrl+click on an element

2008-02-04 Thread Giovanni Battista Lenoci
, but in javascript I'm very newbie... Thank you.. -- gianiaz.net - Giovanni Battista Lenoci P.le Bertacchi 66 23100 Sondrio (SO) - Italy

[jQuery] Re: Detecting ctrl+click on an element

2008-02-04 Thread Giovanni Battista Lenoci
this into the metaKey attribute which detects the CMD key on a Mac: $('#element').click(function(e) { if (e.metaKey) { do_something(); } }); Very cool, thank you all. -- gianiaz.net - Giovanni Battista Lenoci P.le

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

2008-02-12 Thread Giovanni Battista Lenoci
Hi, I'm using a php script that compress in gzip and in one file all my javascript files. The script and an explanation can be found here: http://rakaz.nl/item/make_your_pages_load_faster_by_combining_and_compressing_javascript_and_css_files The script works very well, and times of download

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

2008-02-12 Thread Giovanni Battista Lenoci
On Feb 12, 12:26 pm, andrea varnier [EMAIL PROTECTED] wrote: have you tried using the minified version of dimensions.js instead of the packed one? Hey, you've found the error, thank you very much! But why?? Thank you again

[jQuery] Re: Which jquery plugin is best to use to create this effect

2008-02-25 Thread Giovanni Battista Lenoci
will take a look a this plugin: http://www.reindel.com/accessible_news_slider/ Maybe can be the one for you. Bye :-) -- gianiaz.net - Giovanni Battista Lenoci P.le Bertacchi 66 23100 Sondrio (SO) - Italy

[jQuery] Re: cross subdomain post

2008-03-28 Thread Giovanni Battista Lenoci
if the subdomain is on another server). The idea is to use something like a proxy to avoid the XMLHttpRequest.open error. Bye -- gianiaz.net - Giovanni Battista Lenoci P.le Bertacchi 66 23100 Sondrio (SO) - Italy

[jQuery] Shadowbox.js related question

2008-04-18 Thread Giovanni Battista Lenoci
Hi, I know that shadowbox.js isn't a jquery plugin, but I think that most of you had take a look at this fantastic plugin. I'm using in it in a site for displaying images, and I'm wondering if it's possible to display a caption in the bottom like other plugins do. Thank you for your answers :-)

[jQuery] Jquery UI Doc?

2008-04-30 Thread Giovanni Battista Lenoci
Hi, till now for my draggable and droppable effects I used Interface plugin. Now I want to take a look at jquery ui, but I'm wondering if exists a documentation better than the one on docs.jquery.com. For example: draggable( options )Returns: jQuery Creates new draggables on the nodeset

[jQuery] Re: Jquery UI Doc?

2008-04-30 Thread Giovanni Battista Lenoci
On 30 Apr, 15:22, motob [EMAIL PROTECTED] wrote: Clicking on draggable( options ) will give you this page:http://docs.jquery.com/UI/Draggables/draggable#options. From there, click on the options tab. The same holds true to access the droppable options. Thank you, I didn't see it

[jQuery] Problems getting position of an element inside blockui

2008-05-14 Thread Giovanni Battista Lenoci
Hi, I'm having a problem understanding how to get the right position of an element inside a blockui div. I'm using blockui of Mike Alsup, and dimensions plugin. Here you can view an example page: http://lab.gianiaz.com/jquery/helptip-blockui/ In this page I use the jquery hover effect to show

[jQuery] Re: Problems getting position of an element inside blockui

2008-05-14 Thread Giovanni Battista Lenoci
just finished to write my message and I found the solution. With $('.helptip').offset() I can get the right position of the element regardless the container. Thank you.

[jQuery] Filtering charachter input with jquery/javascript

2008-05-15 Thread Giovanni Battista Lenoci
Hi, I'm having a problem filtering keyboard input in a text field. Here is the page with the test: http://lab.gianiaz.com/jquery/filter_input/ I use this function to catch the key pressed by the user: function onlyNumbers(e) { key = e.keyCode; if(debug) log(onlyNumbers\nkey_code:+key);

[jQuery] Re: Filtering charachter input with jquery/javascript

2008-05-16 Thread Giovanni Battista Lenoci
Dan G. Switzer, II ha scritto: Giovanni, You need to use the keypress event if you truly want to know which character was pressed. However, IE6 doesn't register the keypress event for certain non-printable characters (like the backspace, the arrow keys, etc.) So, for IE6 you need to capture

[jQuery] Re: date picker doesn't work

2008-05-16 Thread Giovanni Battista Lenoci
macsig ha scritto: Actually i use the same code in an other page and all works well (the only difference is that in the other page I don't have any scriptaculous or other jquery staff). As you can see in my code I link the required files and the loading script looks fine (at least to me). So

[jQuery] File upload of a form inside another form

2008-05-25 Thread Giovanni Battista Lenoci
Hi, in a control panel I have a form that collect a lot of data. Inside this form I want to collect N images using the ajaxform plugin to permit an ajaxLike file upload. The problem is that if I use this markup : form name=collectData id=collectData ... input type=text value= name=name form

[jQuery] Re: File upload of a form inside another form

2008-05-25 Thread Giovanni Battista Lenoci
Put your nested form after the parent form, and hide it. Keep the upload-elements in the parent form and move them to the upload-form on submit (using a different submit button). Clone/move back to the parent form after the submit for more files. Thank you for your answer Jörn, It works :-)

[jQuery] Two little question css/jquery related

2008-05-29 Thread Giovanni Battista Lenoci
Hi, I have 2 little questions: 1. In a piece of code I wrote: $div = $('div class=elementContainer/ div').appendTo($container); $a = $('a/a').appendTo($div); $a.css({'background-image':'url('+img.url+');'}) $a.addClass('element'); $a.attr({'rel':img.basename});

[jQuery] Re: Two little question css/jquery related

2008-05-29 Thread Giovanni Battista Lenoci
Tony ha scritto: Hi, There is an extra semicolon at end of css's value: $a.css({'background-image':'url('+img.url+');'}) First question fired! :-) Thank you. -- gianiaz.net - web solutions p.le bertacchi 66, 23100 sondrio (so) - italy +39 347 7196482

[jQuery] Re: [autocomplete] JSON response

2008-06-05 Thread Giovanni Battista Lenoci
Arun Kumar ha scritto: Where can I convert to a JSON object using eval and use it as a local JSON data? I've solved this way: In the server side I create a string separated by \n chars that contains N json objects : foreach($list as $c) { $record = array(); $record['id']

[jQuery] Get the first li clicked

2008-06-09 Thread Giovanni Battista Lenoci
Hi, maybe this is a stupid question, but I can't find a solution. I have different nested lists ul li id=id_1 ul li id=id_10/li /ul /li /ul And this piece of code: $('ul li').bind('click', function() { alert(this.id); }); When I run this code and I click inside the nested li I got

[jQuery] Re: [ANNOUNCE] jFlip plugin

2008-06-11 Thread Giovanni Battista Lenoci
Renato Formato ha scritto: Hi all, I've just released the jFlip plugin, a plugin to make unobtrusive flipping page image galleries using canvas (warning: no Flash needed!). It works with all jquery compatible browsers, IE included, using an enhanced version of excanvas I wrote. Enjoy!

[jQuery] Re: [ANNOUNCE] jFlip plugin

2008-06-11 Thread Giovanni Battista Lenoci
Renato Formato ha scritto: Hi all, I've just released the jFlip plugin, a plugin to make unobtrusive flipping page image galleries using canvas (warning: no Flash needed!). It works with all jquery compatible browsers, IE included, using an enhanced version of excanvas I wrote. Enjoy!

[jQuery] Re: File upload of a form inside another form

2008-06-16 Thread Giovanni Battista Lenoci
Giovanni Battista Lenoci ha scritto: Put your nested form after the parent form, and hide it. Keep the upload-elements in the parent form and move them to the upload-form on submit (using a different submit button). Clone/move back to the parent form after the submit for more files

[jQuery] Re: File upload of a form inside another form

2008-06-17 Thread Giovanni Battista Lenoci
Mike Alsup ha scritto: There's a ton of them. after, before, insertAfter, insertBefore, append, prepend, etc http://docs.jquery.com/Manipulation Ex: $('#myElementToMove').insertAfter('#myDestinationDiv'); Ups... I was using these metodhs to inject new DOM elements, but I never tought

[jQuery] Re: Finding all inputs with name X?

2008-06-20 Thread Giovanni Battista Lenoci
fambi ha scritto: How can we find all inputs with name X? Thanks Hi, take a look here : http://docs.jquery.com/Selectors $(':input[name=X]'); Bye -- gianiaz.net - web solutions p.le bertacchi 66, 23100 sondrio (so) - italy +39 347 7196482

[jQuery] Re: Float on top using jQuery

2008-07-10 Thread Giovanni Battista Lenoci
agileteks ha scritto: Hi forum, Does anyone has jQuery code example of how to keep a message floating on top of a screen and it is staying on that position even though when we scroll the screen? I am pretty new to jQuery. If anyone could explain to me how to do that, i very appreciate it.

[jQuery] Re: [tooltip]

2008-07-14 Thread Giovanni Battista Lenoci
saf ha scritto: Hello 1) How do I display tooltip at a fix position. 2) I want to display a tooltip when mouseover occures on text also when it has focus. Thanx in advance try this (untested, but it would work): html head style type=text/css #tooltipbox { border:1px solid black;

[jQuery] Re: Calling PHP Functions from jQuery?

2008-07-14 Thread Giovanni Battista Lenoci
Yavuz Bogazci ha scritto: Hi, is it possible to call php functions from jquery? I knew how to call a .php page from jquery with $.post and to echo output or return a JSON Object. But my application growth and there is an increase in single php pages. This is very confusing and the

[jQuery] Re: show hidden div on click

2008-07-14 Thread Giovanni Battista Lenoci
David J Bauer ha scritto: Note that in the CSS I have visibility as hidden: is that a problem? Use display:none :-) bye -- gianiaz.net - web solutions p.le bertacchi 66, 23100 sondrio (so) - italy +39 347 7196482

[jQuery] Re: Need help with div selection

2008-07-16 Thread Giovanni Battista Lenoci
zerowing ha scritto: How can I select the #blc2? HTML div id=blc1 pSome text/p /div div class=openBloc div id=blc2 h1strongSome title/strong/h1 /div /div Script $(document).ready(function(){ $('div#blc1').ifixpng();

[jQuery] Re: An easy question: Selecting DOM nodes that doesn't have class active

2008-08-19 Thread Giovanni Battista Lenoci
Karl Swedberg ha scritto: The selector looks fine. The .css() method is where you're having a problem. What a stupid error... I was focusing on the not selector and I didn't saw the css error. Thank you :-) -- gianiaz.net - web solutions p.le bertacchi 66, 23100 sondrio (so) - italy +39

[jQuery] Re: Understanding JSON

2008-08-20 Thread Giovanni Battista Lenoci
hubbs ha scritto: I am trying to understand JSON, and could use a little help. How would I use jQuery to write the values onto a page? user = { firstName: John, lastName: Smith, address: { streetAddress: 21 2nd Street, city: New York, state: NY,

[jQuery] Modifyng a plugin, how to pass and execute a callback function?

2008-08-21 Thread Giovanni Battista Lenoci
Hi, I'm trying to modify the pngfix plugin to be able to launch a function after the pngfix has applied, anyone can help me? I've writed a few lines of code: function test() { alert('prot'); } $(document).pngFix({'blankgif':'images/pngfix/blank.gif', 'funzione': test}); and inside the

[jQuery] Re: Modifyng a plugin, how to pass and execute a callback function?

2008-08-21 Thread Giovanni Battista Lenoci
Solved, inside the plugin: settings.funzione(); Bye

[jQuery] Suggestion for the rss about new plugins

2008-08-30 Thread Giovanni Battista Lenoci
Hi, I'm here for a little suggestion, I write here cause I think my suggestion would be lost in the flame about the rockstar banner. I am subscribed to the rss about new plugins, and when I read in thunderbird the topic about a new plugin the page displayed is the one about the release notes and

[jQuery] Re: ui autocomplete widget with $_post data

2008-08-30 Thread Giovanni Battista Lenoci
Kristaps ha scritto: Hello, Let me start with that I understand javascript well, but am not experienced jquery user. So i found jquery UI autocomplete widget, but reading docs I didnt found any options to pass remote data with $_POST method, so I wonder if there is a way to accomplish such

[jQuery] Re: [autocomplete] append results to an input field

2008-08-31 Thread Giovanni Battista Lenoci
Mattl ha scritto: $(this).parent().next().find(input).val(data[1]); The error is in this line: $(this) - refers to the input with the autocomplete parent - refers to the p containing the input fields next- refers to the next p after the p that fired the

[jQuery] jqueryPngFix and links on IE6

2008-09-02 Thread Giovanni Battista Lenoci
Hi, I'm using the pngFix plugin to show some png images with trasparency. These images are part of a list of menu, and each one is inside on link tag. When the png fix is applied I can see trasparency but the linkable area is restricted to the visible part of the image. I've putted an example

[jQuery] Re: New Google Browser announced

2008-09-02 Thread Giovanni Battista Lenoci
Is out! :-) -- gianiaz.net - web solutions p.le bertacchi 66, 23100 sondrio (so) - italy +39 347 7196482

[jQuery] Re: jQuery test suite on new Google Chrome browser

2008-09-03 Thread Giovanni Battista Lenoci
Rey Bango ha scritto: Yep. You probably got that from TechCrunch and I tend to agree with their comments that it's a spike due to the newness of the browser and can expect to see that figure drop as people go back to using their standard browsers. Rey I've tried chrome, very nice toy and

[jQuery] Re: jquery file upload with form plugin

2008-09-04 Thread Giovanni Battista Lenoci
Pankaj ha scritto: Hi.. Trying to upload file with jquery form plugin , file was uploading but i was not getting json response still i have set frame parameter as true in ajax submit request options. please suggest Thanks in advance. Try posting some code :-)

  1   2   >