[jQuery] Re: jQuery and javascript objects

2009-07-07 Thread Nic Hubbard
Is it possible to use the .each() function on an object that came from JSON? On Jul 7, 11:54 pm, Nic Hubbard wrote: > I have some JSON that I returned from my server.  I then converted it > to an object using eval.  It is only then that I can start > manipulating it with jQuery (trust me).  Curr

[jQuery] jQuery and javascript objects

2009-07-07 Thread Nic Hubbard
I have some JSON that I returned from my server. I then converted it to an object using eval. It is only then that I can start manipulating it with jQuery (trust me). Currently the multilevel object is set in a var. Is there a way that I can then have jQuery use this, to get values from it? O

[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: [autocomplete] Adding custom data retrieval function

2009-07-07 Thread Andrew McHarg
Looks great! The changes to the data model are nice also. The current one is slightly confusing. Let me know if you need help or patches. I have a version of 1.0.2 hacked to allow for something similar to the 'source' but it appears that this proposal is more ambitious. On Tue, Jul 7, 2009 at 5:30

[jQuery] Re: Tutorial evaluation

2009-07-07 Thread jeff
looks like this could of good help but ur next link doesnt seems to work Also a request, am using cakephp framework so could u help in showing how to use jquery with cakephp and retreive values from jquery to a controller in cakephp.. this will be a challenge i bet..

[jQuery] Re: Tutorial evaluation

2009-07-07 Thread bharathbhooshan ambati
All the best.. Keep on posting dude... On Wed, Jul 8, 2009 at 12:16 AM, BaBna wrote: > > Hi, > > I have just finished a beginner's interactive tutorial about jQuery > for my colleagues, and I wonder if anyone could give any feedback on > it - it's my very first training material. > > http://bab

[jQuery] Re: Search Functionality in DataGrid

2009-07-07 Thread bharathbhooshan ambati
Thanks buddy...m looking for this type of application only... You saved my time.. I've got an incomplete but working project you can use: http://bluemoon.reverse.net/~aquaone/tablefilter/ On Tue, Jul 7, 2009 at 8:13 PM, Cesar Sanz wrote: >

[jQuery] Re: Superfish - Menu put in Master page (asp.net MVC) doesn't behave ok in content pages

2009-07-07 Thread Charlie
As for master vs content pages, have no idea what your MVC looks like or what your templates look like, or directory structure. Best resource for that would be a forum related to MVC. As previously suggested, "If problem persists, try posting a link". >From my vantage point you have too many

[jQuery] Re: $.data question

2009-07-07 Thread Steven Yang
hi sorry just wondering if there is anything input on this?by the way i am currently creating my own object to store the data but wish to use jQuery's data directly Thanks a lot

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

2009-07-07 Thread RobG
On Jul 7, 9:14 pm, Massimo Lombardo wrote: [...] > As I see you're dealing with cents, money and stuff, I have to > remember you that JavaScript use IEEE 754 Floating Points as its own > internal number type, so 0.1 + 0.2 !== 0.3: people tend to be very > picky when dealing with money, especial

[jQuery] Re: Rare .die() behaviour

2009-07-07 Thread James
Using jQuery 1.3.2, I've tested this on my own very basic set up and it's working as expected (only the click event is unbinded). There's something else going on in your code. Could you provide more information? Such as your HTML. On Jul 7, 1:59 pm, Pau Taw wrote: > Hi all. I've the next code: >

[jQuery] Re: Superfish - Menu put in Master page (asp.net MVC) doesn't behave ok in content pages

2009-07-07 Thread HariOm
Charlie, yes you are right. It doesn't recognize the function because it seems there is no respective superfish plugin loaded, but when I look at the HTML in firebug or developer tool in IE then I can see that it has already loaded. Even I manually put the calling of that script ( $('ul.sf-menu').

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

2009-07-07 Thread RobG
On Jul 8, 1:59 am, mkmanning wrote: > There are also some currency formatting plugins: > > http://plugins.jquery.com/project/currencyFormat That appears to make extensive use of toFixed(), which is known to be buggy in some browsers for certain values. Try: alert( (0.0625).toFixed(1) ); F

[jQuery] Re: Ajax call modifying returned html

2009-07-07 Thread mkmanning
The effects functions apply a style of display:block, which causes problems for tables. Try wrapping the table in a div and apply the effect to the div . On Jul 7, 5:45 pm, Will D wrote: > I have a similar issue with hiding / showing table data. > > I have a single table with two tbody elements

[jQuery] Rare .die() behaviour

2009-07-07 Thread Pau Taw
Hi all. I've the next code: $("#box").live("mouseover", function(){ $(this).addClass ("highlight"); }); $("#box").live("mouseout", function(){ $(this).removeClass ("highlight"); }); $("#box").live("click", function(){ alert("Hi"); }); $("#erase").bind('click', function() { $("#box").die(

[jQuery] Re: Ajax call modifying returned html

2009-07-07 Thread Will D
I have a similar issue with hiding / showing table data. I have a single table with two tbody elements and I have 2 buttons that toggle the display of each tbody using show() + hide(). Whenever I hide the first and display the second tbody for some reason the second tbody upon display looks like e

[jQuery] Re: [autocomplete] Adding custom data retrieval function

2009-07-07 Thread Jörn Zaefferer
Thats planned for the jQuery UI autocomplete widget: http://wiki.jqueryui.com/Autocomplete Take a look at the proposals for the source (and related parse) options. See any shortcomings there? Jörn On Tue, Jul 7, 2009 at 10:19 PM, Andrew McHarg wrote: > > It would be nice if the autocomplete plu

[jQuery] Re: Superfish - Align sub menus to top

2009-07-07 Thread Charlie
you can use onBeforeShow to insert function to calculate offset for css. Number of li's x height of li etc Use "(this)" to refer to ul about to open and apply css to it galilee99 wrote: Hi, I'm trying to setup a vertical menu where the submenus align to the top of the parent ul rather th

[jQuery] Re: documentation system for jquery

2009-07-07 Thread Karl Swedberg
docs.jquery.com is powered by MediaWiki. plugins.jquery.com is powered by Drupal. --Karl Karl Swedberg www.englishrules.com www.learningjquery.com On Jul 7, 2009, at 9:53 AM, david wrote: Hi all, I wanted to ask which system you use to produce the jquery documentation (core

[jQuery] Re: How long does it take to download jquery?

2009-07-07 Thread Geoffrey
I would like to have a response when someone says jquery is too big. Some data that speaks to time, not file size. On Jul 7, 3:30 pm, kippertoffee wrote: > It's not really subjective. IT would be possible, in theory, to get > objective data. However, there are a massive number of variables that

[jQuery] Re: Ajax call modifying returned html

2009-07-07 Thread James
Is anything being done to the returned html? How are you testing for the additional style? (e.g. via Firebug) It would be helpful if you could post some code or a demo page of the issue. On Jul 7, 12:20 pm, kippertoffee wrote: > Hello all, > > I have a problem with returning html data from an aj

[jQuery] getting a single radio button value...

2009-07-07 Thread Met00 - Met00Cigar
Every time a radio button is pressed the system will grab certain data and send it via ajax to the server (providing a click path). In test I am loading the data to another div. I have been able to get everything BUT the value (I am able to capture the hidden fields and serialize all the data - an

[jQuery] Superfish - Align sub menus to top

2009-07-07 Thread galilee99
Hi, I'm trying to setup a vertical menu where the submenus align to the top of the parent ul rather than the parent li. as in this image: http://nickjacobs.net.nz/tmp/superfish.png but not sure where to start?? any help appreciated.

[jQuery] Tooltip Distance Offset

2009-07-07 Thread Andrew
Live preview (hover over the navigation): http://www.monikercreative.com/monikerguest/test.php I'm having a problem getting the tooltip to move next to each nav list item...I can move the static tooltip placement around and I've tried using offset and jobj width, but it doesn't work well since t

[jQuery] Re: How long does it take to download jquery?

2009-07-07 Thread kippertoffee
It's not really subjective. IT would be possible, in theory, to get objective data. However, there are a massive number of variables that will affect the speed, as stated before. I'm really curious as to why anyone would want to know this. On Jul 7, 11:14 pm, MorningZ wrote: > "Yep, I know this

[jQuery] Ajax call modifying returned html

2009-07-07 Thread kippertoffee
Hello all, I have a problem with returning html data from an ajax request. I have php method which is called via ajax and returns a long html string which consists of multiple tables, each table represents one question in a questionnaire. They display fine. I then have a button which calls a se

[jQuery] [autocomplete] Adding custom data retrieval function

2009-07-07 Thread Andrew McHarg
It would be nice if the autocomplete plugin accepted a function that retrieved the data on behalf of the plugin instead of being stuck with either static data or a relatively inflexible canned ajax request. $("#example").autocomplete(function (term, success, failure) { /* do custom method for ret

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

2009-07-07 Thread dnagir
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. I made a litle function to check the string if it HTML or JSON. It works so far, but is totally inelegant: this.isJsonStr = function(str) {

[jQuery] slideUp(), slideDown() choppy on IE 6, 7, 8

2009-07-07 Thread Bill
I'm seeing some weird behavior with the slideUp() and slideDown() functions in IE 6, 7, and 8. First, open the following URL in Firefox, Chrome, or Safari: http://69.59.182.148:4080/test/07072009/html-scaffolding/advanced-search.html Click on one of the checkboxes under the first grouping with t

[jQuery] Re: jQuery - Ajax and Load question

2009-07-07 Thread Cesar Sanz
$.get and $.post are convenient methods They both utilize $.ajax internally - Original Message - From: "Glazz" To: "jQuery (English)" Sent: Tuesday, July 07, 2009 4:12 PM Subject: [jQuery] Re: jQuery - Ajax and Load question Thanks for the quick replies, using $.get i can do what

[jQuery] Re: How long does it take to download jquery?

2009-07-07 Thread Geoffrey
The subjective part is defining a sample group. If someone has a sample group that they have measured connections speeds for, the rest of the equation falls into place. I am not asking for 'imaginary' numbers. I am asking if anyone has investigated this question and if they have any results they

[jQuery] Re: jQuery - Ajax and Load question

2009-07-07 Thread Glazz
Ok i got it, just need to use $.ajax({dataType : 'json'}); On 7 Jul, 23:12, Glazz wrote: > Thanks for the quick replies, using $.get i can do what i want, with > $.ajax i can too, except the data coming from the .php page is json > encoded so in the $.get i used 'json' at the end -> $.get(.., ..

[jQuery] Re: How long does it take to download jquery?

2009-07-07 Thread MorningZ
"Yep, I know this is very subjective" So what's the point then? If Person A said "it would be smoking fast" and Person B said "it would be dog slow" neither one of them have any concrete data to back up their claim (no one does) If you are keeping an eye on page load speed and your user exper

[jQuery] Re: jQuery - Ajax and Load question

2009-07-07 Thread Glazz
Thanks for the quick replies, using $.get i can do what i want, with $.ajax i can too, except the data coming from the .php page is json encoded so in the $.get i used 'json' at the end -> $.get(.., .., function(), 'json'); Is there any big difference using $.get or $.post, or just $.ajax and def

[jQuery] Re: jQuery - Ajax and Load question

2009-07-07 Thread James
with $.ajax, you use the success callback. $.ajax({ type: 'GET', url: 'index.php', data: 'id=' + productId + '&qtd=' + quantidade, success: function(data) {

[jQuery] Re: jQuery - Ajax and Load question

2009-07-07 Thread BaBna
You need to define your callback function. Maybe something like this? $.get("index.php", { id: productId , qtd: quantidade }, function(data) { doWhateverWith(data); }); On Jul 7, 10:42 pm, Glazz wrote: > Hello, > > I have a function that have this: > >                         $.ajax({ >    

[jQuery] jQuery - Ajax and Load question

2009-07-07 Thread Glazz
Hello, I have a function that have this: $.ajax({ type: 'GET', url: 'index.php', data: 'id=' + productId + '&qtd=' + quantidade }); This piece of code is working gr

[jQuery] Re: How long does it take to download jquery?

2009-07-07 Thread Geoffrey
Yep, I know this is very subjective. What I am wondering is if anyone has actually tried to quantify this in anyway. something along the lines of XX% of some set of internet users has a download speed of YYbps so 19k gziped jquery will download in ZZ milliseconds On Jul 7, 1:32 pm, "Cesar Sanz

[jQuery] Re: Tutorial evaluation

2009-07-07 Thread BaBna
Tthanks a lot Blake, no problem I'll leave it there On Jul 7, 10:13 pm, Blake Senftner wrote: > Thomas, > > Nice tutorial! Being that I'm just learning jQuery myself, I'm   > finding your page to be quite helpful. > Leave it up for a while, okay? > > Sincerely, > -Blake > bsenft...@earthlink.net

[jQuery] Re: Tutorial evaluation

2009-07-07 Thread Blake Senftner
Thomas, Nice tutorial! Being that I'm just learning jQuery myself, I'm finding your page to be quite helpful. Leave it up for a while, okay? Sincerely, -Blake bsenft...@earthlink.net On Jul 7, 2009, at 11:46 AM, BaBna wrote: Hi, I have just finished a beginner's interactive tutorial abo

[jQuery] Re: How long does it take to download jquery?

2009-07-07 Thread Cesar Sanz
hmm.. Very subjetive question.. Having a 1 Mb internet connection... it will be a breeze... - Original Message - From: "MorningZ" To: "jQuery (English)" Sent: Tuesday, July 07, 2009 1:56 PM Subject: [jQuery] Re: How long does it take to download jquery? I'm not sure how you feel

[jQuery] Re: [validate] Using 'phoneUS: true' Multiple Times Breaks Form Validation

2009-07-07 Thread Jörn Zaefferer
There is no phoneUS method? additionalMethods.js adds a "phone" method. "Stopped working" most likely means that an error was thrown, check the Firebug console for that! Jörn On Tue, Jul 7, 2009 at 8:11 PM, Zig wrote: > > New to jQuery and Validation so please go easy :) > > The issue: > > If I

[jQuery] Re: How long does it take to download jquery?

2009-07-07 Thread MorningZ
I'm not sure how you feel someone could give you an answer that would be even close like for instance, factoring in: - Your user's CPU resources - Their connection speed - Network traffic - ISP traffic - DNS routing - Is GZIP enabled on their browser or not - Are they caching? How could someone

[jQuery] Re: How long does it take to download jquery?

2009-07-07 Thread James
I'm not sure I understand your question and how to format a response... do you have sample statistics on other types of files/ libraries. Do you mean, theoretically, like how long it would take to download a 19KB file on a 1.5Mbps internet connection...? Otherwise, pretty fast, IMO. :p On Jul 7,

[jQuery] Tutorial evaluation

2009-07-07 Thread BaBna
Hi, I have just finished a beginner's interactive tutorial about jQuery for my colleagues, and I wonder if anyone could give any feedback on it - it's my very first training material. http://babna.eu/jQuery/ Thanks! Thomas

[jQuery] Error messages below instead of beside elements

2009-07-07 Thread marklorenz
Hi. I love jQuery and the validation plugin, but I am having a problem. When there is an error, instead of showing beside the element (e.g. a dropdown or an entry field) the error message shows below the element, throwing elements below it out of whack (pushes them to the right). When I look at

[jQuery] Jquery Galleria doesn't work with slider javascript

2009-07-07 Thread Alan
I am trying to implement the galleria plugin into my webpage. I am a javascript newbie so my knowledge is limited. I have included the no conflict plugin and have also changed some of the css for the galleria to not conflict with other css elements(intentionally misspelled names). There is code so

[jQuery] [validate] Using 'phoneUS: true' Multiple Times Breaks Form Validation

2009-07-07 Thread Zig
New to jQuery and Validation so please go easy :) The issue: If I validate more than one field with 'phoneUS: true' it breaks jQ Validation and no longer validates anything at all. Here is the code: http://pastie.org/537374 If i remove all instances of "phoneUS: true" after the one on line 31

[jQuery] Re: form action not being set

2009-07-07 Thread James
Change: $().ready(function() { to $(document).ready(function() { On Jul 6, 9:50 pm, Misteka wrote: > Hi all > > Pulling out hair that doesn't exist. > > When I run the following code, none of the set's are being done. Most > important one for me is the action attribute. > > Can anyone help? > >

[jQuery] Re: $("delButton")..click(function(){... for later added button's

2009-07-07 Thread pascal.nauj...@googlemail.com
Thanks a lot guys! Works like a charm now! On Jul 7, 4:42 pm, "Cesar Sanz" wrote: > Hello > > Liam is right, try "live" > > The reason your attempt does not work is beacause you bind your event to an > existing element at first, but then, when you create a new one, the event is > not aware of th

[jQuery] Re: Problem with submit(function())

2009-07-07 Thread James
When you use .get(), you're retrieving the actual element and it's not a jQuery object. Because of that, when you do oCurrentForm.submit(), it submits the form. It's using the submit() function of Javascript (which takes no arguments), not jQuery's bindsubmit event function. You can rework your c

[jQuery] Re: Remove an

2009-07-07 Thread Karl Swedberg
On Jul 6, 2009, at 8:36 PM, expresso wrote: weird, I went to the selectors page but don't see nextAll That's because .nextAll() isn't a selector. It's a traversal method. http://docs.jquery.com/Traversing/nextAll#expr --Karl Karl Swedberg www.englishrules.com www.learningjque

[jQuery] How long does it take to download jquery?

2009-07-07 Thread Geoffrey
Simple question, and I know the answer is not simple. How long does it take to download jquery? Does anyone have any numbers that would shed some light on this? I know that there are many variables, but does anyone have any numbers reflecting how long it would take, for example, the 85th percenti

jquery-en@googlegroups.com

2009-07-07 Thread Karl Swedberg
On Jul 6, 2009, at 2:09 PM, Israel Thompson wrote: How can I remove the trailing "&" from a string I'm concatenating to go in a URL? if, for example, your string is in a variable called yourString. you could do this: yourString.replace(/&$/,'') --Karl Karl Swedberg www

[jQuery] Re: Fade in first slide in Cycle

2009-07-07 Thread Charlie
"can't get it to work" ?? nothing happens? images change but not way you want? Sometimes interpreting the problem is half the battle. Can you post a link? If not , look at "Source" in browser of working example. Make sure you are including necessary script files ( jquery and plugin). Order

[jQuery] Re: DISABLE BUTTON AFTER 1 CLICK ->JQUERY: NOT WORKING WITH IE8

2009-07-07 Thread Amit Rampurkar
Hello Cesar, The code didn't work with IE 7 too. Well, for the double submit, even I don't know exactly. It was a part of a code I got from somewhere. However as of now, I have modified the code so that it hides the submit button and gives a loading.gif image file. This works with IE too. Finally

[jQuery] Fade in first slide in Cycle

2009-07-07 Thread Terry
Hi all. I am using Cycle and I am trying to get the first slide to fade in. I am new to all of this and I just can't get it to work. I looked at the 2 examples that Mike has on his page, but I just don't know what exactly to put where with regards to the code. I am setting up a portfolio with sim

[jQuery] Re: Caching nodes

2009-07-07 Thread Michael Geary
What you wrote would work, and it would be faster than the original code, but you're making an unnecessary $() call each time you use $(list). Instead, do it like this: var $list = $("ul.list"); $list.find("li.selected").addClass("blah"); The $ in $list doesn't have any special meaning; it's ju

[jQuery] [jcarousel] jCarousel Appears Vertical then Horizontal

2009-07-07 Thread Sparky12
Hi, I am using jCarousel and I am getting a weird bug that I am hoping someone can assist me with. Basically, jCarousel renders perfect - however for a brief instant the carousel appears vertically and then appears horizontal as it should in IE / FF Does anyone know how to fix this bug ? Thank

[jQuery] Re: TreeView Problems

2009-07-07 Thread Jon Banner
i had a similar problem this morning. I updated the call to the write cookie to include a path (i was getting a cookie written for each page in the app) line 172 in the uncompressed plugin. $.cookie(settings.cookieId, data.join(""), { path: '/' } ); Jon 2009/7/6 Keith > > Here is the menu tha

[jQuery] Caching nodes

2009-07-07 Thread Darko Romanov
Hi there, I'm developing a site that has some js visual effects and many graphic elements to move. So I have to take care of each single query on the DOM as it could take too much time to be executed, resulting in a flicking animation. I thought I could cache in memory a node and then querying i

[jQuery] Re: jQuery.remove() = bug or feauture?

2009-07-07 Thread Bogdan
Thanks, true helper; Just issue a: delete myElement; and the memory is freed On Jun 28, 9:36 pm, Ricardo wrote: > On Jun 28, 5:19 am, Laszlo Bagi wrote: > > > > > > > Hi! > > > I've started to deal with jQuery for few months ago and I bumped into > > some freaks but this was the first time (yes

[jQuery] Re: Remote control of web pages for use as a test harness - clicking A links from script

2009-07-07 Thread Nikki Locke
Conclusion: It can't be done. Only workround is to look for "javascript" at the beginning of the url, and either eval it, or use window.location, depending on the result. On Jun 25, 8:07 pm, Nikki Locke wrote: > I am devising a test harness for a complex web application. The > application inser

[jQuery] Re: Finding/selecting items identified by an attribute whose value contains quote characters

2009-07-07 Thread Nikki Locke
Conclusion - it can't be done. Workround: $("A").filter(function() { return $(this).attr("href") == href); }); On Jul 2, 12:14 pm, Nikki Locke wrote: > I am writing a test harness for a web app using jquery. When recording > a test, I add handlers for user interaction events (e

[jQuery] Re: getScript does not always work for me

2009-07-07 Thread Nikki Locke
Just to bring you up to date, turns out the problem wasn't the ajax call not returning, it was in the code that processed the call, which hung the browser! The offending call was somthing like: $("a[href='javascript:Submit('text')']") On Jun 26, 11:45 am, Nikki Locke wrote: > Further to this, m

[jQuery] Re: long paragraph - hide some of it and show all on click

2009-07-07 Thread Cesar Sanz
Check this out pal http://jsbin.com/ifaha Put in a the text to hide e.g Quisque eget tellus ut justo volutpat placerat. Vivamus congue lacus sed ante luctus ac dictum felis fermentum. Etiam vel adipiscing leo. Integer tortor justo, volutpat non ullamcorper and then hide it with

[jQuery] New Plugin: loopedCarousel

2009-07-07 Thread Nathan
I'd love to hear any feedback on my latest project loopedCarousel. loopedCarousel is a plugin made for jQuery that is not only a looping carousel, its main goal is to be extremely easy to implement. No more messing around with CSS to get your carousel to look and function properly. You want to s

[jQuery] Re: long paragraph - hide some of it and show all on click

2009-07-07 Thread brian
There are a bunch of existing plugins for truncation. I couldn't recommend any one over the others. Search google for "jquery truncate". 2009/7/7 sso : > > Not sure the best way to approach this. > > I would like all my text to be on the page (for seo reasons).  for > example > > ---

[jQuery] Re: long paragraph - hide some of it and show all on click

2009-07-07 Thread sso
awesome, that would have been a better question. What should I search for? :) Thanks that should be good :) On Jul 7, 12:28 pm, brian wrote: > There are a bunch of existing plugins for truncation. I couldn't > recommend any one over the others. Search google for "jquery > truncate". > > 2009/

[jQuery] Re: Search Functionality in DataGrid

2009-07-07 Thread aquaone
I've got an incomplete but working project you can use: http://bluemoon.reverse.net/~aquaone/tablefilter/ On Tue, Jul 7, 2009 at 02:54, jazz wrote: > > Hi Folks, > > > I want search functionality in the grid..i found one link but it is in > php...but i donno php :-( i want it in jsp.. > >

[jQuery] long paragraph - hide some of it and show all on click

2009-07-07 Thread sso
Not sure the best way to approach this. I would like all my text to be on the page (for seo reasons). for example --- Some text hidden below --- Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse dapibus mi non enim convallis pharetra. Integer nisi dol

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

2009-07-07 Thread mkmanning
There are also some currency formatting plugins: http://plugins.jquery.com/project/currencyFormat (or search currency under plugins) On Jul 7, 3:11 am, weidc wrote: > hi, > > thats my code: > > endpreis =Math.round(endpreis*100)/100; > > to round the price of something but i'd like to have 2,0

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

2009-07-07 Thread Massimo Lombardo
Thank you :) On Tue, Jul 7, 2009 at 16:46, Cesar Sanz wrote: > > Massimos' > > Number.prototype.padRight = function (fill) { >   var v = this.toString().split('.'), d = v[1] || ''; >   return (v[0] || '0') + '.' + d + fill.substr(d.length); > } > > Very elegant solution!! -- Massimo Lombardo Lin

[jQuery] Re: (Validate) - How to apply validations on dynamically generated forms.

2009-07-07 Thread Jörn Zaefferer
$(".commForm").each(function() { $(this).validate(); }); The call to validate works only with the first selected element, so you have to do an explicit loop. Jörn On Tue, Jul 7, 2009 at 3:34 PM, mnaveed wrote: > > Hi, > I am using the JQuery validation plug in for form validations. My page >

[jQuery] Re: tablesorter plugin leaks memory in IE6 and IE7

2009-07-07 Thread pob
right, I narrowed down the problem and found it occurs in IE6 sp2, but not sp3. Probably why nobody metioned a memory leak!!! I'm using $.browser to only allow it for sp3 users of IE6. thanks, pob On Jun 17, 12:43 pm, pob wrote: > Thanks for the prompt reply MorningZ, > > Apologies for the

[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: Determine content type in $.post callback

2009-07-07 Thread Cesar Sanz
Well, All I have to say is that you must to be aware of what kind of result type are you specting from your back end system. - Original Message - From: "dnagir" To: "jQuery (English)" Sent: Tuesday, July 07, 2009 7:44 AM Subject: [jQuery] Re: Determine content type in $.post callb

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

2009-07-07 Thread Cesar Sanz
Massimos' Number.prototype.padRight = function (fill) { var v = this.toString().split('.'), d = v[1] || ''; return (v[0] || '0') + '.' + d + fill.substr(d.length); } Very elegant solution!! - Original Message - From: "Giovanni Battista Lenoci" To: Sent: Tuesday, July 07, 2009

[jQuery] Re: Search Functionality in DataGrid

2009-07-07 Thread Cesar Sanz
Which back end technology do you know? Asp, Asp.net, java.. ? - Original Message - From: "jazz" To: "jQuery (English)" Sent: Tuesday, July 07, 2009 3:54 AM Subject: [jQuery] Search Functionality in DataGrid Hi Folks, I want search functionality in the grid..i found one link bu

[jQuery] Problem with submit(function())

2009-07-07 Thread Maskime
Hi everyone, I'm running into troubles with a simple task. I want to bind a function to the submit event on a form : $j(document).ready( function(){ var oCurrentForm = $j("#syncCountry").parent().get(0); if(oCurrentForm.tagName == 'F

[jQuery] Re: How to read the contents of .php filw on the webserver

2009-07-07 Thread Maxime FAYE
You can't ;) Since php is a server side language the webserver will give you the result but not the php code. This would be a serious security fail... 2009/7/7 Neha > > Hey guys, > > Myself totally new in this javascript worldi have to read the > contents of a .php file which is placed on t

[jQuery] (Validate) - How to apply validations on dynamically generated forms.

2009-07-07 Thread mnaveed
Hi, I am using the JQuery validation plug in for form validations. My page contains a loop in which dynamic forms are generated and within each form some text fields are also dynamically generated. I have assigned the id and name attributes both to form and fields with dynamically appending a valu

[jQuery] Re: DISABLE BUTTON AFTER 1 CLICK ->JQUERY: NOT WORKING WITH IE8

2009-07-07 Thread Cesar Sanz
Sorry for my suggestion, I misread your point, thought you were not able to disable your button. You say it works in FF, Have your tried this same code in IE 7.0 ? Does it works? I can see in your code that you bind a submit event to the #node-form twice, why is that? $(document).ready(f

[jQuery] Form Plugin Large File Upload Problem

2009-07-07 Thread zendog74
I am using the JQuery Form Plugin on a form that is shown in a modal window (nyroModal) to upload files. It is working like a charm as long as the file is a reasonable size. However, if a user tries to upload a large file (say 100MB or more), when response comes back (HTML response), it re-loads t

[jQuery] Re: menu slide

2009-07-07 Thread fabrice.regnier
Hi, I'm currently playing with hslides.js which is an horizontal accordion. thanx for your help ;) regards, f.

[jQuery] Re: Mootools tooltip used inside of jquery??

2009-07-07 Thread Araceli Domínguez
Working! thanks a ton! Charlie escribió: it's not the click function that's important in the FAQ, it's the concept that events don't work on elements added to the DOM after page load. That is due to browser functionality Important to understand this part of link: *Why doesn't an event wo

[jQuery] documentation system for jquery

2009-07-07 Thread david
Hi all, I wanted to ask which system you use to produce the jquery documentation (core and plugins). Thanks, David

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

2009-07-07 Thread dnagir
Anybody please?

[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 read the contents of .php filw on the webserver

2009-07-07 Thread Mark
var scrUrl; var Host = "http://www.example.com/read.php";; function inializeUrl() { scrUrl = Host //+ string //in de string komt de api key te staan maar omdat die niet standaard is maak ik er later een string van } function do_it()

[jQuery] Re: jQuery in an eBay auction template? Is it possible?

2009-07-07 Thread eepeterson
I threw together the most basic sample here: http://erikpeterson.brinkster.net/ebay/template/test.html Basically the file is just jQuery and a very basic script but eBay isn't allowing it (I'm not loading it through src). Any thoughts? Thanks! On Jun 23, 5:57 pm, Raj wrote: > Hi, > > eBaydoes

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

2009-07-07 Thread RobG
On Jul 7, 8:11 pm, weidc wrote: > hi, > > thats my code: > > endpreis =Math.round(endpreis*100)/100; > > to round the price of something but i'd like to have 2,00 or 2,50 > instead of 2 and 2,5. > > i'd be happy about any help. To format a number in javascript with exactly two decimal places i

[jQuery] ajax checkbox (status update)

2009-07-07 Thread hamed7
i want create checkbox for show status system when user cheched status update to show=1 and when user uncheched status update to show=0 please help me with jquery and php,i am new in ajax and jquery if you want help me,please send full source code or show me where can i solve my problem in the in

[jQuery] Re: error jquery-1.3.2.js(line 3633)

2009-07-07 Thread Mark
http://webserver.c4v.nl/mark/agenda%20nieuw/agenda.php for the main file http://webserver.c4v.nl/mark/agenda%20nieuw/handler.php for the handler http://webserver.c4v.nl/mark/agenda%20nieuw/agenda.css for the css http://webserver.c4v.nl/mark/agenda%20nieuw/jquery-1.3.2.js for th

[jQuery] Re: Mootools tooltip used inside of jquery??

2009-07-07 Thread Charlie
it's not the click function that's important in the FAQ, it's the concept that events don't work on elements added to the DOM after page load. That is due to browser functionality Important to understand this part of link:   Why doesn't an event work on a new element I've created? You can m

[jQuery] Re: Superfish - Menu put in Master page (asp.net MVC) doesn't behave ok in content pages

2009-07-07 Thread Charlie
"is not defined function"  error means calling a function that doesn't exist at time it is called. Make sure path to your js file is valid, that is where the function is defined. Also be sure jquery.js being loaded before  plugin js . If problem persists post a link  You can put your function

[jQuery] Re: Mootools tooltip used inside of jquery??

2009-07-07 Thread Araceli Domínguez
Charlie sorry, I don't get it .. am I supposed to use $('a').click(fn) ? Did u read my code? Thanks again ! Charlie escribió: http://docs.jquery.com/Frequently_Asked_Questions#Why_doesn.27t_an_event_work_on_a_new_element_I.27ve_created.3F Now that jQuery documentation comes in handy! Arac

[jQuery] Re: Kicking off an Israeli users group

2009-07-07 Thread jeff
include the cakephp + jquery usage and how to get the value from jquery to a controller in cakephph with refrence site or examples On Tue, Jul 7, 2009 at 12:42 PM, Refael wrote: > > Hello all, > > I'm kicking off an Israeli Users group, with a users meet-up. Do you > have recommendations for th

[jQuery] Re: Ajax Tabs with accordion content...

2009-07-07 Thread Charlie
http://docs.jquery.com/Frequently_Asked_Questions#Why_doesn.27t_an_event_work_on_a_new_element_I.27ve_created.3F Thomas wrote: Hello, I use a jquery tabs with ajax (for loading a tab content) it works very well, but when ajax have to load an accordion, it doesn't work well (i loose the acc

  1   2   >