Re: [jQuery] file size

2009-11-17 Thread Giovanni Battista Lenoci
hesham shanana ha scritto: i need to get file size from upload control You can't get it with javascript. You can use some flash plugin like swfupload. Bye -- gianiaz.net - web solutions via piedo, 58 - 23020 tresivio (so) - italy +39 347 7196482

Re: [jQuery] AJAX is not invoked for dynamically added input fields

2009-11-11 Thread Giovanni Battista Lenoci
palgo ha scritto: My problem is that while the calculation works on the first to default rows, calculation doesn't seem to work on rows that I added by clicking on add row-button. Anyone know why is happening? Do you use the live functionality also for the keyup event that will fire the ajax

[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: Calling a user-defined function

2009-10-19 Thread Giovanni Battista Lenoci
cachobong ha scritto: How do i use a function like this? $.clientCoords = function() { var dimensions = {width: 0, height: 0}; if (document.documentElement) { dimensions.width = document.documentElement.offsetWidth; dimensions.height =

[jQuery] Re: Create a custom rule

2009-10-19 Thread Giovanni Battista Lenoci
Jörn Zaefferer ha scritto: The first argument, "value", refers to the actual value-attribute. You'll probably want to use the third argument, eg. "param": $.validator.addMethod('hasClass', function(value, element, param) { reurn $(element).hasClass(param); }, jQuery.format('Please check the b

[jQuery] Create a custom rule

2009-10-19 Thread Giovanni Battista Lenoci
Hi, I'm trying to create a new validation rule to check if a button has a class. I try to explain the scenario. I have a button that makes an ajax call to check the availability of a product. When the app loads the button as class "to_check", when the button is clicked an ajax call is fire

[jQuery] Re: Using Jquery Form Plugin with Hidden fields

2009-10-13 Thread Giovanni Battista Lenoci
JamesF ha scritto: Hi, I am using the jquery form plugin and I am very surprised that it doesn't post hidden field values to my php file. Hi JamesF, I use the form plugin from a long time, and I'm sure that hidden fields are correctly submitted like a normal form do. Maybe the error is on

[jQuery] Re: effect over images loaded via ajax (load method)

2009-10-10 Thread Giovanni Battista Lenoci
kknaru ha scritto: hmm...nobody? :( I think that the problems occurs when you over the image in the space where the div with the controls appears (firing the mouseout event for the image). I think you have to bind a mouseover function for the div that appears setting a variable overCont

[jQuery] Re: Debug says I'm missing a paren, but all parens are matched!

2009-10-08 Thread Giovanni Battista Lenoci
hsfrey ha scritto: function togl(b1) { var t1 = document.getElementById(b1).getElementsByTagName("input"); var labl = t1[0].value; t1[0].value = labl=="Hide"?"Show":"Hide"; ... } In addition, rather than just Match the ID, I want to match the ID which ENDS in the stri

[jQuery] Re: Debug says I'm missing a paren, but all parens are matched!

2009-10-07 Thread Giovanni Battista Lenoci
hsfrey ha scritto: In this line of code, I'm looking for a div whose Id is in variable b1, and which has an input button field whose value is "Show" or "Hide", and this line is to toggle those values. $(("[id$="+b1+"]") input).attr(value, attr(value) =="Hide"?"Show":"Hide"); This doesn't work

[jQuery] Re: Firefox only selecting first element with given class

2009-10-06 Thread Giovanni Battista Lenoci
MorningZ ha scritto: Right in the link I provided above to jsbin: http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/ jquery.min.js"> Same for me. Cache problems? -- gianiaz.net - web solutions via piedo, 58 - 23020 tresivio (so) - italy +39 347 7196482

[jQuery] Re: Access a certain Button

2009-10-06 Thread Giovanni Battista Lenoci
CoffeeAddict ha scritto: I'm trying to get reference to a certain button on the DOM. I tried this: $('button#btnRegister').click(function() { where button has the ID of btnRegister. is this right? I think so, but I never use this syntax. For definition the id is unique, then I use always

[jQuery] Re: Please Teach me jQuery Code!!

2009-10-06 Thread Giovanni Battista Lenoci
ibnusarnan ha scritto: hello alll, Im a newbie in jquery, I just one know and angered with jquery, why and how the jquery code is: $.ready using dollar sign, anyone can explain me about this (using dollar sign in javascript) and please give me an sample example of this for clearest explanatio

[jQuery] Re: Firefox only selecting first element with given class

2009-10-06 Thread Giovanni Battista Lenoci
Phil ha scritto: I am having an issue in firefox 3.5.3 I am using the following selector I've tried your markup and your code on firefox 3.5.3 on linux and it works. -- gianiaz.net - web solutions via piedo, 58 - 23020 tresivio (so) - italy +39 347 7196482

[jQuery] Re: Pick different effects with jquery

2009-10-02 Thread Giovanni Battista Lenoci
Thavipa ha scritto: Hello everyone, Currently i'm working on a website which needs an auto play photo gallery. The admins of the website are allowed to upload 10 or more images, which will be displayed in the gallery. I am able to show those images one by one, with 1 effect (for example fade-i

[jQuery] Re: how to get at jquery elements when i'm looping through a jquery select list with 'each'

2009-10-02 Thread Giovanni Battista Lenoci
buildlackey ha scritto: $("div.disabled label").each ( function() { alert("got a label" + this); alert("got a label" + this.html()); // THIS FAILS. }); Inside each "this" rappresents the html object and not a jquery or javascript

[jQuery] Re: Problem with submit button of an inserted form

2009-10-02 Thread Giovanni Battista Lenoci
Cecil Westerhof ha scritto: 2009/10/2 Giovanni Battista Lenoci : first the easy thing: Is there a way to let the fadeOut be finished before continuing? Yes, fadeOut accept a callback function that is called after the effect end, take a look here: http://docs.jquery.com

[jQuery] Re: Problem with submit button of an inserted form

2009-10-02 Thread Giovanni Battista Lenoci
first the easy thing: Is there a way to let the fadeOut be finished before continuing? Yes, fadeOut accept a callback function that is called after the effect end, take a look here: http://docs.jquery.com/Effects/fadeOut#speedcallback A question, what placeInDOM contains? is an id? the

[jQuery] Re: Problem with submit button of an inserted form

2009-10-02 Thread Giovanni Battista Lenoci
Cecil Westerhof ha scritto: I have the following code: $(placeInDOM).replaceWith(header + fields + footer); $(placeInDOM).find(':submit').click(function() { alert("clicked the submit button"); return false; }); The first statement places a form with a

[jQuery] Re: How to disable a form

2009-10-02 Thread Giovanni Battista Lenoci
Cecil Westerhof ha scritto: I want to disable a form when I submit it. The first reason is because I do not want the form submitted more as once. For this I could disable the submit button(s). But I also want the values not be changed during the submit. Is this possible? On the beforesubmit

[jQuery] Re: keepp getting NaN vlue

2009-09-28 Thread Giovanni Battista Lenoci
runrunforest ha scritto: Hi, I'm making a calculator for freight customer It seems I'm on the right path. But there is two bugs i need help. The TOTAL TO PAY value always seem to appear as NaN at first instead of default 3. And the function of TOTAL TO PAY only work after checkbox is chec

[jQuery] Re: Disabling parent link if children present

2009-09-24 Thread Giovanni Battista Lenoci
osu ha scritto: - Link 1 - Link 2 - Link 3 - Link 4 - Link 4a - Link 4b - Link 4c - Link 5 I suppose you have a similar markup: http://www.jquery.com";>Jquery Search Engines http://www.google.com";>Google http://www.bing.com";>Bing This is untested, but should work: $('#mymenu

[jQuery] Re: Creating a new tag

2009-09-24 Thread Giovanni Battista Lenoci
Coxy ha scritto: How do I create a new tag with jquery? I tried something like this: link = $('a').attr({ class : 'logoLink', target : '_blank', href: 'http://www.someurl.com/' }); And then appended it to another image, but this a

[jQuery] Re: animate on page load

2009-09-24 Thread Giovanni Battista Lenoci
craigeves ha scritto: Where am I going wrong? $(document).ready(function(){ $("#progress_bar").animate({ width: "250px", }, 1500 ); }); You have an error in your syntax that firefox ignores, after the "250px" you have a comma. Bye -- gianiaz.net - web solutions

[jQuery] Re: Some homebrewn jQuery functionalities

2009-09-21 Thread Giovanni Battista Lenoci
Cecil Westerhof ha scritto: 2009/9/21 Cecil Westerhof : - a way to automatically notify people that they should enable JavaScript The way that I did this was that start the body with: For best results JavaScript must be enabled!!! There's the noscript tag for this, with you

[jQuery] Re: [validate] - how to validate tinymce editor?

2009-08-21 Thread Giovanni Battista Lenoci
Tokasa ha scritto: Hi, anybody knows how to validate tinymce HTML wysiwyg editor? http://tinymce.moxiecode.com/ The main issue is that editor hides textarea and renders an iframe where you edit stuff...your text is copied to the textarea on submitbut validation plugin is faster and it dis

[jQuery] Re: Detecting Selected Text

2009-08-20 Thread Giovanni Battista Lenoci
Chris Jordan ha scritto: Thanks for the response Richard. I'll check out these links. :o) Hi, I saw this plugin http://plugins.jquery.com/project/a-tools and I remembered this message... I think it's what you were looking for. Bye -- gianiaz.net - web solutions via piedo, 58 - 23020 tre

[jQuery] Re: Beginner needs help with jquery and ajax

2009-08-19 Thread Giovanni Battista Lenoci
Julien Martin ha scritto: Hello, I basically want to catch any ajax request sent by my app and display an alert. I have tried this to no avail: *jQuery("*").ajaxSend(function(event,request, settings){ alert('called'); });* Try : $.ajaxSetup({'success': function() { alert('ajaxcall succ

[jQuery] Re: Setting option with a variable as its value to selected

2009-08-19 Thread Giovanni Battista Lenoci
north ha scritto: I found the issue. It's described here for example: http://csharperimage.jeremylikness.com/2009/05/jquery-ie6-and-could-not-set-selected.html Your code is between this code? $().ready(function() { }); -- gianiaz.net - web solutions via piedo, 58 - 23020 tresivio (s

[jQuery] Re: Setting option with a variable as its value to selected

2009-08-18 Thread Giovanni Battista Lenoci
north ha scritto: $('#mySelect option[value="' + myValue + '"]').attr('selected', 'selected'); Maybe this is not what you want to do, but why don't you use this? $('#mySelect').val(myValue); Bye -- gianiaz.net - web solutions via piedo, 58 - 23020 tresivio (so) - italy +39 347 7196482

[jQuery] Re: Input position in HTML

2009-08-13 Thread Giovanni Battista Lenoci
Baalzamon ha scritto: Hi, I'm making a dynamic div in a page but I'm having some doubts: -I have an input text field and i need to get it's position (left and top) to make the div appear near this input. $.(':INPUTNAME').css ('left') returns me zero like 'top' does. Is there a way to get left/to

[jQuery] Re: Determine content type in $.post callback

2009-07-07 Thread Giovanni Battista Lenoci
dnagir ha scritto: Unfortunately I do not see jQuery providing similar function, while Prototype does: http://www.prototypejs.org/api/string/isJSON I've found in the source the function you've linked above, I've rewrited to make it works with jquery: jQuery.isJson = function(str) { if (

[jQuery] Re: Determine content type in $.post callback

2009-07-07 Thread Giovanni Battista Lenoci
dnagir ha scritto: The type of the data is always string. I also cannot specify the dataType. If it will be different (HTML instead of JSON) jQuery fails silently. [...] Unfortunately I do not see jQuery providing similar function, while Prototype does: http://www.prototypejs.org/api/string/isJ

[jQuery] Re: Determine content type in $.post callback

2009-07-07 Thread Giovanni Battista Lenoci
dnagir ha scritto: Anybody please? if(typeof(ret_data) == 'object') { } or if it's not evalueated by jquery try to eval with a try/catch block. :-) -- gianiaz.net - web solutions via piedo, 58 - 23020 tresivio (so) - italy +39 347 7196482

[jQuery] Re: how to change 2,5 to 2,50 ?

2009-07-07 Thread Giovanni Battista Lenoci
weidc ha scritto: the price have to change on the page without reloading the site. the javascript is just to look well for the customers. but thank you anyway! Yes, the functions I've posted are javascript trasposition of php functions. In php exists the number format function: |$number = 1

[jQuery] Re: how to change 2,5 to 2,50 ?

2009-07-07 Thread Giovanni Battista Lenoci
weidc ha scritto: no it's not for money + - money. it's just to show the price of something - % action in different sizes after selecting something in dropdown options. everything else is with php of course. but i'll try your way too. :) As a (mainly) php programmer I think this site is fan

[jQuery] Re: jQuery ajaxSubmit(), how to send the form in a json format?

2009-07-02 Thread Giovanni Battista Lenoci
DaNieL ha scritto: i'll love that the plugin will send a request like: mypage.php?mytest=[{'firstone':'here some text!','secondone':'text in here too'}] Is it possible? Don't know, but I'm curious, what's the motive behind this choice? If you pass a json object you have to convert in an a

[jQuery] Re: Replace div with another div

2009-07-02 Thread Giovanni Battista Lenoci
expresso ha scritto: I'm trying to figure out how I'd explicitely change out a div. Lets say this div is in the page. I guess first I'd have to verify if it's in the page: And if it is, I want to remove it and add this in the same place: I have not a clue how to do this. If give a uni

[jQuery] new plugin, gzoom v.0.1 magnifier

2009-06-30 Thread Giovanni Battista Lenoci
Hi, I wrote my first plugin, you can find it here: http://lab.gianiaz.com/jquery/gzoom/ Please report any bugs or consideration about it here... but be kind... I'm a newbie :-) Bye -- gianiaz.net - web solutions via piedo, 58 - 23020 tresivio (so) - italy +39 347 7196482

[jQuery] Re: new plugin: miniZoomPan

2009-06-19 Thread Giovanni Battista Lenoci
GianCarlo Mingati ha scritto: Hope you find it useful ;-) http://www.gcmingati.net/wordpress/wp-content/lab/jquery/minizoompan/ Bravo GianCarlo! :-) I like this plugin and I will use it in the first occasion -- gianiaz.net - web solutions via piedo, 58 - 23020 tresivio (so) - italy +39 34

[jQuery] Re: how to Passing Data jQuery UI Dialog?

2009-05-28 Thread Giovanni Battista Lenoci
I'm put an image, which when it clicks it will delete some data on the database On above example, when user click it will delete data with id = 13 on database. This is the function function removeEdu(id) { $('#dialog').dialog('open'); return false; } And

[jQuery] Re: Ajax using JSON, parse return string before success

2009-05-08 Thread Giovanni Battista Lenoci
Eli Perelman ha scritto: Here is an example response: /// { "detail" : [{"id" : "1","useraccount" : "Alisa","datestamp" : "2008-11-28 00:00:00","companyname" : "Allianz Life Insurance Company","officephone" : "8779744653","officephoneext" :

[jQuery] Re: Problems with special chars in jQuery Form plugin

2009-05-07 Thread Giovanni Battista Lenoci
Remko ha scritto: Hi, I use the Form Plugin to store some user info in my database. When inserting the data i have some troubles with special chars. Words like Rëmkó will be converted to Rëmkó. I submit the data to a file like this $DB->query("INSERT INTO exp_members (screen_name) VALUES ('

[jQuery] Re: UI Tabs and Events

2009-04-08 Thread Giovanni Battista Lenoci
Haret ha scritto: function toggleCommentForm(postid){ // Function content } if I understood: $('#elem').live(function() { // don't know what postid is, but maybe you can retreive it here: this.id; // id of the clicked element: $(this).parent().attr('id'); // id of the parent element

[jQuery] Re: UI Tabs and Events

2009-04-07 Thread Giovanni Battista Lenoci
Haret ha scritto: Woo, first post! ^___^ Hello everyone, I've been using jQuery UI Tabs for a mini staff discussion forum/blog at work, and things have been going really well so far, up until I came across this stumbling block yesterday. The tabs are used to dynamically load different categori

[jQuery] Re: HOWTO - hover card effect

2009-04-07 Thread Giovanni Battista Lenoci
Jury ha scritto: Hi all, this effect seems to have no common name, let's call it "hover card". You may see how it works on this website - www.cn.ru/films - if you hold a mouse over any cover art for 1-2 seconds (sorry it's Russian, just can't find English examples). Does jQuery have any plugin

[jQuery] Re: With IE8 out, how do you test for IE6?

2009-03-23 Thread Giovanni Battista Lenoci
Eridius ha scritto: I say that friday that IE8 was released so I downloaded it to check it out. I am happy that they did seemed to do at least a few right right and it seem very easy to test for IE8 and IE7 in the IE8 browser (which is very nice). However, after i installed IE8, Multiple IE sto

[jQuery] Re: jquery, ajax, and search engines

2009-02-07 Thread Giovanni Battista Lenoci
jhm ha scritto: So I'm wondering if search engines don't see it as well. It's obviously a serious consideration. No, they don't :-) You have to consider this writing an ajax application. IMHO using ajax for loading content it's not the right way to use this technology. Bye -- gianiaz.ne

[jQuery] Re: the french accents and jQuery

2009-02-06 Thread Giovanni Battista Lenoci
phicarre ha scritto: Use always UTF8 for solving problems related on special chars. -- gianiaz.net - web solutions via angelo custode, 10 - 23100 sondrio (so) - italy +39 347 7196482

[jQuery] Re: change image scr of all images in a page

2009-01-20 Thread Giovanni Battista Lenoci
Shawn Grover ha scritto: You have a slight issue with the samples. The first instance of $('img') inside the function() should be $(this). Sorry, you're right... I've answered without the right attention :-P Giovanni -- gianiaz.net - web solutions via angelo custode, 10 - 23100 sondrio (so)

[jQuery] Re: change image scr of all images in a page

2009-01-20 Thread Giovanni Battista Lenoci
b u d d h a ha scritto: i tried but not wrking am placing a sample code which i used $(document).ready( $('img').each( function() { $('img').attr({'src', "http://localho

[jQuery] Re: change image scr of all images in a page

2009-01-20 Thread Giovanni Battista Lenoci
Sorry i forgot the braces. This is the right code: $('img').each(function() { $('img').attr({'src': "http://s.images/"+$(this).attr('src')}); }); -- gianiaz.net - web solutions via angelo custode, 10 - 23100 sondrio (so) - italy +39 347 7196482

[jQuery] Re: change image scr of all images in a page

2009-01-20 Thread Giovanni Battista Lenoci
b u d d h a ha scritto: hi, i have more than 20 images in a form which might be refering like this i want a jquery script for replacing all image src with http://s.images/images/search.gif"/> This is the code, but personally I prefer make changes like this on the server side. $('img').

[jQuery] Re: Problems with the New API Browser - Bug in AIR APP

2009-01-18 Thread Giovanni Battista Lenoci
Remy Sharp ha scritto: Ouch! Sorry about that. I didn't have time to add functionality that saved the window position - but when this is in (v. soon), I'll initialise the window at 640x480, then changing the window's position and size will be saved for the next time it's opened. Cheers, Remy

[jQuery] Re: Problems with the New API Browser - Bug in AIR APP

2009-01-17 Thread Giovanni Battista Lenoci
@rem I've tried contacting you on twitter, but I'm new to it, and don't know If you received my message. I've installed the AIR api browser, and I love it, but when I open it the dimensions of the windows are greater than my desktop resolution (1280x800 on windows xp). Here you can see a s

[jQuery] Re: Use a function on code loaded with AJAX

2009-01-17 Thread Giovanni Battista Lenoci
paddelboot ha scritto: Hi, I am trying to use a click.function on a piece of code that has been loaded with AJAX. I can't imagine how to do this at the moment. Any tipps? Thanks, Michae You can achieve this in 3 ways. 1. With jquery 1.3 : $(document).ready(function() { $("p").live("cli

[jQuery] Re: Examples of great plugin documentation?

2009-01-12 Thread Giovanni Battista Lenoci
Mika Tuupola ha scritto: I am about to rewrite documentation of Jeditable plugin (has been on my TODO list for a while). While putting together some notes it would be great if people from list could send me links to other plugin documentation you have found to be well structured or written

[jQuery] Re: Debugging in IE7

2009-01-07 Thread Giovanni Battista Lenoci
Nikola ha scritto: I haven't really found a good solution for debugging in IE7. Any suggestions or recommendations? Thanks, Nikola Forgot Fiddler for debugging xhr requests. I'm looking at the new version of firebug lite, and it seems it can debug also xhr request, but for I didn't unde

[jQuery] Re: Debugging in IE7

2009-01-07 Thread Giovanni Battista Lenoci
Nikola ha scritto: I haven't really found a good solution for debugging in IE7. Any suggestions or recommendations? Thanks, Nikola These are 2 bookmarks, don't know if exists something better. 1. http://getfirebug.com/lite.html 2. http://www.my-debugbar.com/wiki/ Bye -- gianiaz.net - w

[jQuery] [validate plugin] How to call a function before the validation start?

2008-12-23 Thread Giovanni Battista Lenoci
Hi, I'm using the validate plugin, I have a comment form where I want to leave the possibility to insert an anonymous comment, but I want to alert the user before the submit. Then, if I have this code, what I have to do, to add a confirm('Are you sure')? I'm looking for a method like "onBef

[jQuery] Re: Error on validation plugin documentation?

2008-12-22 Thread Giovanni Battista Lenoci
Jörn Zaefferer ha scritto: Fixed! Thanks for reporting. Thanks to you for sharing your great work! -- gianiaz.net - web solutions via angelo custode, 10 - 23100 sondrio (so) - italy +39 347 7196482

[jQuery] Error on validation plugin documentation?

2008-12-20 Thread Giovanni Battista Lenoci
Hi, I'm tryng for the first time the validation plugin, I was looking at the doc here: http://docs.jquery.com/Plugins/Validation/validate In the "invalidHandler" sample code there is: $(".selector").validate({ invalidHandler: function(form) { var errors = validator.numberOfInvalid

[jQuery] Re: Galleria Thumbnails not generating in Firefox

2008-10-29 Thread Giovanni Battista Lenoci
Cosmo Kramer ha scritto: Can anyone please explain why in FF the thumbnails are displaying as full images and the main image is not displaying at all. Works fine in opera and safari. Link: http://cmphotographer.com.au/category/wedding/ Working well for me on firefox 3.0.3 -- gianiaz.net

[jQuery] Re: jqueryPngFix and links on IE6

2008-10-04 Thread Giovanni Battista Lenoci
Illimar ha scritto: I have the extact same question. Have You found a way to make the whole link clickable yet? Via CSS you have to put a border to the image. http://lab.gianiaz.com/jquery/menupngfix/solved.html Via jquery you can get the span the was clicked and do a location.replace. H

[jQuery] Re: NEW PLUGIN (beta): ContextMenu

2008-10-03 Thread Giovanni Battista Lenoci
Matt Kruse ha scritto: I welcome any feedback! Thanks! Matt Kruse Eccezionale! (Awesom) Great work! -- gianiaz.net - web solutions p.le bertacchi 66, 23100 sondrio (so) - italy +39 347 7196482

[jQuery] Re: R: [jQuery] Re: R: [jQuery] Show image gradually

2008-09-30 Thread Giovanni Battista Lenoci
diego valobra ha scritto: Ciao Giovanni, some times it's good to understand the basic function of jQuery without using plugins..that's what i was trying to do :) if u never study u never lern!! Ciao Diego, first of all I agree with you. :-) but... if it is only an exercise. in the minified

[jQuery] Re: R: [jQuery] Show image gradually

2008-09-30 Thread Giovanni Battista Lenoci
Maybe you can take a look at this plugin, it seems that is what are you looking for: http://snook.ca/technical/jquery-bg/ bye -- gianiaz.net - web solutions p.le bertacchi 66, 23100 sondrio (so) - italy +39 347 7196482

[jQuery] Re: i was patient, now i'm frustrated

2008-09-27 Thread Giovanni Battista Lenoci
ricardobeat ha scritto: As of now www.jquery.com and docs.jquery.com are loading faster than ever, and I'm in Brazil! I'm from italy, docs.jquery.com loads in about a minute: http://lab.gianiaz.com/docs.jquery.com.jpg -- gianiaz.net - web solutions p.le bertacchi 66, 23100 sondrio (so) -

[jQuery] Re: TinyMCE and JQuery

2008-09-12 Thread Giovanni Battista Lenoci
shapper ha scritto: Hello, I want to add TinyMCE to the TextAreas with classes "A" and "B" that show in my pages. TinyMCE allows only to apply it by ID's or to all Text Areas. How can I apply TinyMCE using JQuery to TextAreas by CSS Class? Thanks, Miguel I've used this way: (every texta

[jQuery] Re: Help with ajaxForm in tabs, file uploads fail with strange error

2008-09-08 Thread Giovanni Battista Lenoci
If anyone is interested I've found a solution. Before the submit I move out the tabs all the file fields, then I call the ajaxSubmit. Here the js code: $('#test').submit(function() { // submit the form $(this).ajaxSubmit({success: function(returned_data) {

[jQuery] Help with ajaxForm in tabs, file uploads fail with strange error

2008-09-08 Thread Giovanni Battista Lenoci
Hi, I'm going crazy with file upload ans ajaxform when the file field is in a tab. When I click on submit button I got this error in firefox console: form.submit is not a function (?)()()jquery.form.js (riga 223) [Break on this error] form.submit(); I've put a sample page here: http://lab.gian

[jQuery] Re: Submit a Form (Search Results)

2008-09-05 Thread Giovanni Battista Lenoci
LJohnny ha scritto: What I want to do is have a text field and a search button and then get the results in a pop-up window just like the ones at http://malsup.com/jquery/block/#demos Like, users type in their query and then push submit, then the sub- window opens and results are shown there.

[jQuery] Re: form plugin and a progress bar

2008-09-05 Thread Giovanni Battista Lenoci
andrea varnier ha scritto: thank you, the post is really good, but the server here is running PHP 5.1 :( Without apc extension you can't do it in php/javascript. As mentioned from Mike Alsup the are a different solutions in flash. I've never used jqUploader, but I've used SwfUpload, and wit

[jQuery] Re: form plugin and a progress bar

2008-09-04 Thread Giovanni Battista Lenoci
andrea varnier ha scritto: 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/showthread.php?s=45a4891980adf6a46be2e9801af5f034&thr

[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 :-)

[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: 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] 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 pa

[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 containing the input fields next-> refers to the next after the that fired the autocompl

[jQuery] Re: jQuery Forum

2008-08-30 Thread Giovanni Battista Lenoci
Rick Faircloth ha scritto: No Email is better! Email is better! Email is better! :o) Rick PS - Rey, I just saw that idea you were throwing around about forums fly out the window... Don't agree :-) Flame! :-)) Rey have you seen my suggestion about the rss a few mail ago? Bye --

[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 thing

[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: 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] 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 plugin

[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", "st

[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] An easy question: Selecting DOM nodes that doesn't have class "active"

2008-08-19 Thread Giovanni Battista Lenoci
Hi, I have this code: ... ... ... I want to set css property display:none to all the elements that are not active. I'm looking at the doc on ":not" selector, I've tried: $(':not(.active)').css({'display:none'}); But doesn't works... Where I'm doing wrong? Thank you

[jQuery] Re: get textarea content and display

2008-07-20 Thread Giovanni Battista Lenoci
chris ha scritto: Hi, I'm new to jQuery, so please take me slow :) I've got a textarea: And a div: For example if i want to write the code for embeding a youtube vid in the textarea i want the div to display the embeded vid. Help! :D This should work: $('#code').bind('blur', function(

[jQuery] Re: Need help with div selection

2008-07-16 Thread Giovanni Battista Lenoci
zerowing ha scritto: How can I select the #blc2? HTML Some text Some title Script $(document).ready(function(){ $('div#blc1').ifixpng(); $('.openBloc > #blc2').ifixpng(); }); An HTML id should be unique, then it cou

[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: 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 filemanagemen

[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): #tooltipbox { border:1px solid black; background-color:grey; color:

[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. Than

[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: 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 at

[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: [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! ht

[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! ht

[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 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 2 alerts "id_10" and "id_1". What I ca

[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']

  1   2   >