[jQuery] Re: Ajax post on save dialog box

2009-09-28 Thread ranga pathmasiri
Hi Please try this var content = jQuery.trim(tinyMCE.get('editor').getContent()); $.post("comments.php", { do : editcomment , c : cid , pagetext : content }, function(data){ }); Best Regards Ranga On Tue, Sep 29, 2009 at 9:48 AM, lionel28 wrote: > > > Hi, > > I am loading

[jQuery] Re: keepp getting NaN vlue

2009-09-28 Thread runrunforest
Thank you everyone. @Liam: thats very neat fix. @Robg: I can learn alot form your solution.

[jQuery] Ajax post on save dialog box

2009-09-28 Thread lionel28
Hi, I am loading tiny Mce editor in a dialog box which updates the div on save I am trying to save in database 'Save Comment': function() { var content = tinyMCE.get('editor').getContent(); $.ajax({ type: "POST", url: "comments.php", data: "do=editcomment&c=+ cid +&pagetext=+ content +" });

[jQuery] Re: keepp getting NaN vlue

2009-09-28 Thread RobG
On Sep 28, 9:21 pm, runrunforest wrote: > 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 onl

[jQuery] ajax complete function not being called

2009-09-28 Thread Alex
I'm making a call to a Twitter JSON feed, and when I pass an incorrect username, jQuery's ajax complete method never gets called. An example of a JSON response that causes complete not to be called (nor error, nor success) is: http://twitter.com/users/show.json?screen_name=bhdjbhubeuhfbfbjfbjf

[jQuery] File upload - json result ERRORZ!

2009-09-28 Thread Flynsarmy
There appears to be some sort of bug happening if you do a file upload and try to return a json result. If you submit this page without any file selected in the file input an alertbox will pop up saying: {"data":""} however if you select a file in the file input then press submit the alert will sh

[jQuery] Re: autocomplete, extraParams and $(this)

2009-09-28 Thread James
By the way, 'extra_var': function() { return $("#extra_var").attr('id'); } Would return "extra_var" since $("#extra_var").attr('id'); is "extra_var". I'm not sure what you're trying to achieve if that's not what you want. On Sep 28, 2:34 pm, James wrote: > "extra_var" does not map to the I

[jQuery] Re: autocomplete, extraParams and $(this)

2009-09-28 Thread James
"extra_var" does not map to the ID of the input field. It is the name that is going to be sent along with the AJAX request to your script. (e.g. /autocomplete_lookup/? q=my_search_text_blahablhablah&extra_var=12345) You have to change it so it's: 'extra_var': function() { return $("#extra_var

[jQuery] Re: (Bassistance validate) Require inputs based on dropdown select

2009-09-28 Thread James
Suppose your fields look like this: Option 1 Option 2 Your validation rules would look something like this: options = { rules: { mySelect: { required:true }, myfield1: { required: function() { return ($("input[name=mySelect]").val()

[jQuery] Re: validate plugin step by step form

2009-09-28 Thread James
You can create different options in a variable an assign it to $.validate(). var option1 = { rules: { ... } messages: { ... } } var option2 = { rules: { ... } messages: { ... } } Call the appropriate one depending on which step you're in: $("#saverForm").validate(option1); $("#s

[jQuery] Re: (Bassistance validate) Require inputs based on dropdown select

2009-09-28 Thread James
Sorry, here's a fix of the rules ('input' is suppose to be 'select') (these are untested): options = { rules: { mySelect: { required:true }, myfield1: { required: function() { return ($("select[name=mySelect]").val() == '1'); } }

[jQuery] (Bassistance validate) Require inputs based on dropdown select

2009-09-28 Thread Andrew
Info: - jquery-1.3.2 - jquery.validate-1.5.5 - form with 1 dropdown select and 4 text inputs Setup: - all 4 text fields are not initially required. Issue: The first input element is a required dropdown select. If the user selects option 1, then text field 1 & 2 need to be required. If the user s

[jQuery] Re: huge newb question

2009-09-28 Thread Liam Byrne
Try a "return false" instead of "event.preventDefault()" Liam Pitchwife wrote: Hello all, I'm trying to run through the simplest tutorials on jquery and for some reason I can't get any of the jquery code to work. I've downloaded jquery and I've made sure that this file is in the same directo

[jQuery] Re: huge newb question

2009-09-28 Thread James
Try using: return false; Instead of: event.preventDefault(); On Sep 28, 11:21 am, Pitchwife wrote: > Hello all, > > I'm trying to run through the simplest tutorials on jquery and for > some reason I can't get any of the jquery code to work. > > I've downloaded jquery and I've made sure that this

[jQuery] Modal Dialog with a datepicker inside, works one time, then never...

2009-09-28 Thread alexbariv
Hi everybody. Let me introduce myself. I'm a developer located in Venezuela (latin america), and i have like 2 years using Jquery in every project that came to my hands. Its a pleasure to meet you all. For begin, i have a little problem that i hope you can giveme some light here: I have creat

[jQuery] huge newb question

2009-09-28 Thread Pitchwife
Hello all, I'm trying to run through the simplest tutorials on jquery and for some reason I can't get any of the jquery code to work. I've downloaded jquery and I've made sure that this file is in the same directory as jquery-1.3.2.js. This is the code taken from the tutorial:

[jQuery] Re: how to submit a form after validation please ?

2009-09-28 Thread slimshady
I don't understand what you are replying to. I have an alert inside the submitHandler, How do I get POST to my form to happen after it is validated. That IS NOT happening. Thanks . On Sep 28, 3:58 pm, Leonardo K wrote: > Just a tip: > > You don't need to create a new validator function for

[jQuery] Re: Ajax check username - ASP and Access DB

2009-09-28 Thread factoringcompare
OK, now got the backend working with the following code: <%...@language="VBSCRIPT"%> <% Dim rsUser__MMColParam rsUser__MMColParam = "1" If (Request.Form("username") <> "") Then rsUser__MMColParam = Request.Form("username") End If %> <% Dim rsUser Dim rsUser_numRows Set rsUser = Server.Creat

[jQuery] Re: (jQuery validate) Remote Custom Message Problem on version 1.5.5

2009-09-28 Thread James
I've done a quick test on it on 1.5.5 and I'm experiencing the duplicate message issue also using the following message options: remote: function() { // $("#email") is the input field for the email address return $("#email").val()+' already exists'; } remote: function(email) { return

[jQuery] Any one knows equivalent non php plugin for this?

2009-09-28 Thread zweb
http://www.frontpageslideshow.net/ Anyone knows equivalent plugin which I can use in python/django site. This plugin is php specific

[jQuery] Re: IE and DOM issues

2009-09-28 Thread Yazan
FYI, I did a quick test using 1.3.2, and while it didn't seem to break anything, it didn't fix the issue either. We'll have to do some regression tests if we upgrade our jquery version, so for the time being we'll stick with 1.2.6. Any suggestions for fixing this issue besides using window.onload

[jQuery] Re: Ajax check username - ASP and Access DB

2009-09-28 Thread factoringcompare
Thank you James that worked. I can now move on and try and code the DB connection. On Sep 28, 10:22 pm, James wrote: > When you return "response" in your AJAX, it's not "1". It's > "...". jQuery doesn't automatically go through your > HTML and look in the body to find the "1". > In your server-s

[jQuery] Re: (jQuery validate) Remote Custom Message Problem on version 1.5.5

2009-09-28 Thread James
Could you provide some code on how you're setting the error message "... already exists"? On Sep 28, 7:49 am, Thiago Miranda de Oliveira wrote: > Hi.. I´ve upgraded my validate plugin to the 1.5.5 and I was having a > problem: > I have an email that needs to be checked if it already exists by aj

[jQuery] Re: IE and DOM issues

2009-09-28 Thread James
I'm not suggesting that would fix the issue, but most of the time using the latest version of the code will get you better results. However if you have dependencies on the old library that you can't change (as there are no updates to those other plug-ins), then I guess we'll have to delve into the

[jQuery] Re: Ajax check username - ASP and Access DB

2009-09-28 Thread James
When you return "response" in your AJAX, it's not "1". It's "...". jQuery doesn't automatically go through your HTML and look in the body to find the "1". In your server-side code, you don't return the whole HTML page. You just return the String "1" (without the quotes). Such that if you load up c

[jQuery] Re: Apply CSS to dynamic content after it loads

2009-09-28 Thread Charlie Griefer
you can chain on an .addClass('myClassName') ? On Mon, Sep 28, 2009 at 3:09 PM, Sloan Thrasher wrote: > Hi! > > I've got a page that loads dynamic content, sometimes including links. The > CSS seems to apply to the loaded CSS, except for a rule that adds an > "offsite" icon to the end of the lin

[jQuery] Apply CSS to dynamic content after it loads

2009-09-28 Thread Sloan Thrasher
Hi! I've got a page that loads dynamic content, sometimes including links. The CSS seems to apply to the loaded CSS, except for a rule that adds an "offsite" icon to the end of the link. I've used Firefind to verify the css selector in the css, and it applies to the correct elements, but the ic

[jQuery] Re: IE and DOM issues

2009-09-28 Thread Yazan
Yes, I have actually :) Are you suggesting that would fix the issue? I haven't looked closely at what 1.3.2 offers over 1.2.6, but I didn't think that that would necessarily fix the issue. I think there might be some dependencies on 1.2.6 in other libraries we're using, so I'm not sure it would b

[jQuery] Re: show()ing thousands of divs

2009-09-28 Thread Mike McNally
On Mon, Sep 28, 2009 at 3:34 PM, Michael Geary wrote: > Mike, the requirement here isn't just to show or hide all 3000 entries in > one fell swoop. Sid needs to be able to show and hide individual entries > depending on a filter. So there's no avoiding looping through all the > entries, whether i

[jQuery] Re: show()ing thousands of divs

2009-09-28 Thread Michael Geary
Mike, the requirement here isn't just to show or hide all 3000 entries in one fell swoop. Sid needs to be able to show and hide individual entries depending on a filter. So there's no avoiding looping through all the entries, whether in JavaScript or on the server. Sid, assuming you want to do thi

[jQuery] Re: IE and DOM issues

2009-09-28 Thread James
I didn't look through the code in detail, but have you considered using the latest version of jQuery library (v1.3.2)? On Sep 28, 10:22 am, Yazan wrote: > Hi all, > > I've been wrangling with trying to get my jquery-powered global nav to work > consistently in IE8 (in "Compatibility Mode") and I

[jQuery] Re: Ajax check username - ASP and Access DB

2009-09-28 Thread factoringcompare
OK, thank you for taking the time out to look at this issue for me. Ok this is the code client side page: http://www.w3.org/1999/xhtml";> Ajax Username Checker - Using JQuery #username{ padding:3px; font-size:18px; border:3px #CCC solid; } #tick{display:none} #cross{d

[jQuery] IE and DOM issues

2009-09-28 Thread Yazan
Hi all, I've been wrangling with trying to get my jquery-powered global nav to work consistently in IE8 (in "Compatibility Mode") and IE6 and 7, but with no luck. You can view the site here: http://67.23.44.204/ The top nav (Products, Inspirations, etc. should each have a set of subnavs that sho

[jQuery] Playing with jquery animate

2009-09-28 Thread Armand Datema
Hi Been playing a bit with jquey animate, here is a sample of an animated header im working on for portfolio section of my upcoming site. http://www.todnn.com/pixelani/portfolio.htm -- Armand Datema CTO SchwingSoft

[jQuery] Re: Ajax check username - ASP and Access DB

2009-09-28 Thread MorningZ
Why do you have a page with a php extension? As for helping further, it would be a huge help if you post some non- working code... you could have a bad selector, bad syntax, who knows... On Sep 28, 3:15 pm, factoringcompare wrote: > I can’t get it to work. Something strange is happening. > >

[jQuery] Re: how to submit a form after validation please ?

2009-09-28 Thread Leonardo K
Just a tip: You don't need to create a new validator function for your select. Instead of using value="none" for your default option use value="" and just add required:true to the rules. about your problem: Try to put the alert inside the submitHandler function to know if your form is validating.

[jQuery] Re: How to handle dynamic clicks?

2009-09-28 Thread Charlie Griefer
Incidentally... not sure why you'd need to use split() for your needs there? Could you post some code or explain what your requirement is? You may be going about it the long way (or I may be misunderstanding what you're trying to do) :) On Mon, Sep 28, 2009 at 12:42 PM, Charlie Griefer wrote:

[jQuery] Re: How to handle dynamic clicks?

2009-09-28 Thread Charlie Griefer
Hi Lionel: I've not bought a JavaScript book in ages. But the one that I learned from a while back is the JavaScript Bible by Danny Goodman. A quick Amazon search shows that a 7th Edition is in pre-release status (glad to hear) :) If you want a jQuery book, there are a couple of ways to go. Th

[jQuery] Re: How to handle dynamic clicks?

2009-09-28 Thread lionel28
Charlie, Thank you very much. I was able to do a split so I get actual value from your code and all is fine. I do whatever I want with php, but could you recommend a book for Javascript. Example: for the split I had to do a Google search :thinking: A book with all those easy code like yours,

[jQuery] Re: Ajax check username - ASP and Access DB

2009-09-28 Thread factoringcompare
I can’t get it to work. Something strange is happening. To manually check if the client side code is working I put “1” in the server side page with a .php extension and sure enough I can get the code to work. If I do the same with a .asp page it has no effect. Any thoughts what’s going on? On S

[jQuery] Re: Checking/unchecking parent checkbox

2009-09-28 Thread evanbu...@gmail.com
I thought this would do it but no luck $(this).parents("checkbox:first").attr('checked', false); On Sep 28, 2:42 pm, "evanbu...@gmail.com" wrote: > Hi > > I've been using jQuery a couple of months and I'm really having a > blast with it but need a little help with this problem. > > I have a ta

[jQuery] how to submit a form after validation please ?

2009-09-28 Thread slimshady
Can anyone tell me why my form action on line 113 does not fire after I get successful validation ? http://gist.github.com/195643 After the form validates I want it to POST submit to the url please.

[jQuery] Checking/unchecking parent checkbox

2009-09-28 Thread evanbu...@gmail.com
Hi I've been using jQuery a couple of months and I'm really having a blast with it but need a little help with this problem. I have a table of records generated from a database that looks like this. Each record has a checkbox with a unique id followed by a person's name and employment status.

[jQuery] Cant' read XML with IE 8

2009-09-28 Thread ximo wallas
I'm reading the contents of an XML perfectly with FF but IE doesn't load the contents of the XML, everything seems to be ok, can somebody tell me what's wrong?    var xml = $.ajax(         {             type: "GET",             url: xmlFile,             dataType: "xml",             success:

[jQuery] Re: Ajax check username - ASP and Access DB

2009-09-28 Thread MorningZ
"This is the php code I can't mimic: " Really? the code is super simple: - Open connection to the database - Take the posted value of "username", trim it, and make lower case - Clean up the string to help prevent SQL injection attack - Take that username and check against the database - echo (

[jQuery] (jQuery validate) Remote Custom Message Problem on version 1.5.5

2009-09-28 Thread Thiago Miranda de Oliveira
Hi.. I´ve upgraded my validate plugin to the 1.5.5 and I was having a problem: I have an email that needs to be checked if it already exists by ajax, and I was using the Validate Remote Method. In my old Validate version ( 1.5) it works great, but in the 1.5.5 version when I validate the email fi

[jQuery] Accordion UI height issue in Google Chrome

2009-09-28 Thread -e-train
Hi All - Having another issue related to the accordion ui widget. In google chrome the initial inline height set by the accordion.js is calculating incorrectly on the initial page load. when the page is refreshed or you navigate to another page and then return, the height is set correctly. I am

[jQuery] Re: Mouseout event problem

2009-09-28 Thread Karl Swedberg
Seems the mouseover/mouseout events are being triggered multiple times. You probably want to stop them from triggering if #panel is already being animated. Try something like this: jQuery(document).ready(function() { var $panel = jQuery('#panel'); // Expand Panel jQuery("#tab").mousee

[jQuery] Re: Synchronous call in JQuery?

2009-09-28 Thread Charlie
how about opening dialog in callback of AJAX loading the content? Xi Shen wrote: http://plugins.jquery.com/project/ajaxqueue maybe this is what you want. On Mon, Sep 28, 2009 at 10:55 PM, Mesquite wrote: I'm trying to load a JQuery dialog containing content from the backend.

[jQuery] Re: show()ing thousands of divs

2009-09-28 Thread Mike McNally
> @Mike M. > You're still looping through 3000 jQuery objects and invoking the > setClass() method. I haven't tried it but I suspected it will take > roughly the same time as the show() method. It does seem logical that > the actual showing of the div will be faster if the browser does it > native

[jQuery] Re: ajaxQueue not aborting ajax calls with Autocomplete

2009-09-28 Thread Jörn Zaefferer
Can you provide a testpage? Jörn On Mon, Sep 28, 2009 at 7:59 PM, jmunning wrote: > > Anyone have any ideas about this?  I'm stuck on this. > > Thanks > > On Sep 22, 2:47 pm, jmunning wrote: >> Hi all, >> >> I am using the bassistance autcomplete plugin version 1.1 along with >> the bundled aj

[jQuery] Re: ajaxQueue not aborting ajax calls with Autocomplete

2009-09-28 Thread jmunning
Anyone have any ideas about this? I'm stuck on this. Thanks On Sep 22, 2:47 pm, jmunning wrote: > Hi all, > > I am using the bassistance autcomplete plugin version 1.1 along with > the bundled ajaxQueue.js file. > > When text is inputted into the autocomplete, it seems to be keeping > the ajax

[jQuery] Re: show()ing thousands of divs

2009-09-28 Thread Sid
@Mike M. You're still looping through 3000 jQuery objects and invoking the setClass() method. I haven't tried it but I suspected it will take roughly the same time as the show() method. It does seem logical that the actual showing of the div will be faster if the browser does it natively. The ques

[jQuery] Re: Ajax check username - ASP and Access DB

2009-09-28 Thread factoringcompare
OK, I am trying to get this example to work : http://papermashup.com/jquery-php-mysql-username-availability-checker/ This is the php code I can't mimic: query($query); $num = mysql_num_rows($result); echo $num; mysql_close(); On Sep 28, 2:16 pm, MorningZ wrote: > Take an example page in

[jQuery] Access a checkbox in a datalist

2009-09-28 Thread Lihong
Hello, I'm trying access a checkbox in a datalist. Here is the datalist: " >Edit Here is the code behind: $(document).ready(function() { initActions(); }); function initActions() { $(".editButton").click(function(e) { showUserDetails(this); }); } function sho

[jQuery] Re: How to handle dynamic clicks?

2009-09-28 Thread Charlie Griefer
You shouldn't need to use a named function, or an inline onclick. If you can move that id attribute into the tag itself, you could do: ... and then your jQuery would be: $(document).ready(function() { $('a[id^=doedit_]').click(function() { alert(this.id); <-- shows that you h

[jQuery] Re: show()ing thousands of divs

2009-09-28 Thread William Chang
For 3000 divs and a lot more in the future, then I recommend you do an AJAX to load the content when the user scrolls down. Examples: Slashdot (slashdot.org) Google Reader I know there are jQuery plugins to help you load on scroll, please Google. Good Luck, William Chang http://www.williamchang

[jQuery] Re: jquery not working on content loaded by ajax

2009-09-28 Thread black.horizons
SOLVED: $("a.market").live('click', function(event) { alert( $(this).attr("id") ); }); easy! On Sep 28, 4:05 pm, "black.horizons" wrote: > I've got the following code: > > $(document).ready(function() { >         $("a.market").click(function (event) { >                 alert( $(this).a

[jQuery] Re: show()ing thousands of divs

2009-09-28 Thread Raymond Ho
3000 divs are freaking huge. it would be better to do it in ajax and load them by chunks instead of putting it all in one huge HTML page. On Sep 28, 6:17 pm, "ryan.j" wrote: > presumably the HTML for these ~3k records are being generated server- > side somewhere - can you not split/group the res

[jQuery] validate plugin step by step form

2009-09-28 Thread adexcube
Hi, I'm creating a step by step form using jquery ui tabs and validation plugin, the problem is that I've got just one form ( and I have to ) so on first step the form is validated but all errors an others steps are displayed. I'm using an approach of http://jquery.bassistance.de/validate/demo/mul

[jQuery] Special for you!

2009-09-28 Thread bharani kumar
http://cfi.iflywestwind.com/nEACWal3iJ.html

[jQuery] jquery not working on content loaded by ajax

2009-09-28 Thread black.horizons
I've got the following code: $(document).ready(function() { $("a.market").click(function (event) { alert( $(this).attr("id") ); }); }); it works on a test link that i have in a div Test But when I load new data (it's loaded by a menu in an iframe, and the data l

[jQuery] Re: Synchronous call in JQuery?

2009-09-28 Thread Xi Shen
http://plugins.jquery.com/project/ajaxqueue maybe this is what you want. On Mon, Sep 28, 2009 at 10:55 PM, Mesquite wrote: > > I'm trying to load a JQuery dialog containing content from the > backend. > JQuery places this dialog vertically in the middle of the page when > the dialog open call

[jQuery] Re: Synchronous call in JQuery?

2009-09-28 Thread Mesquite
I'm trying to load a JQuery dialog containing content from the backend. JQuery places this dialog vertically in the middle of the page when the dialog open call is executed. But the moment that happens, another function is still loading data and parsing that data in the dialog. So it is not comple

[jQuery] Re: Mouseout event problem

2009-09-28 Thread James A
Start of the week bump... On Sep 26, 7:28 pm, James A wrote: > Hi there, > > Real newbie to jquery but things are starting to become clearer. > > I am building a website for a studio i have just set up > -http://www.birchstudio.co.uk/test- and am having trouble with the > menu which is using a

[jQuery] Re: Synchronous call in JQuery?

2009-09-28 Thread Erik Beeson
Your question doesn't make very much sense. In your example, doSomething2 would execute after doSomething1 finished, so it is synchronous. Perhaps you could provide an example of what you're actually trying to do? --Erik On Mon, Sep 28, 2009 at 6:24 AM, Mesquite wrote: > > Is there a JQuery w

[jQuery] Re: How to add some string in attributes?

2009-09-28 Thread Liam Potter
$(function(){ $("img").bind("mouseover",function(){ $(this).attr("src","/images/menu-my-account-hover.png"); }); }); but this is the worst way you can do rollovers. You should be doing this in pure CSS, and the best way would be to use an image sprite. Teddy Ho

[jQuery] Re: Simple Jquery AJAX post

2009-09-28 Thread Mark Gorman
http://docs.jquery.com/Ajax has everything you need but a simple example would be... $(document).ready(function(){ $.ajaxStart(function(){ $('.loading').show(); }); $.ajaxStop(function(){ $('.loading').hide(); }); //i have trouble with the post permiters so i always do it the {} way but you c

[jQuery] Re: Simple Jquery AJAX post

2009-09-28 Thread Mark Gorman
i did try ealer to send a reply but that did not seem to apper so heres a shorter version http://docs.jquery.com/Ajax has everything you need, to make a loading image come up on start you can just ether in your click function inlude $(".loading").show(); or use the event http://docs.jquery.com/A

[jQuery] Synchronous call in JQuery?

2009-09-28 Thread Mesquite
Is there a JQuery way to execute a custom function 'after' another custom function is executed? The second function must wait until the first one has finished. (Not asynchronous but synchronous) Important: I don't want place the call to the second function in the first one. for example: doSometh

[jQuery] How to add some string in attributes?

2009-09-28 Thread Teddy Hong
If I have a tag image like this.. and when hover that image I want became like this How to code this with jquery? Thanks

[jQuery] Re: Ajax check username - ASP and Access DB

2009-09-28 Thread MorningZ
Take an example page in php that you want to mimic, and simply have asp send back to the browser the same information On Sep 28, 3:58 am, factoringcompare wrote: > Hi, > > Reasonably new to web building. I am now just updating my site with > jQuery (first time user). > > I would like to implem

[jQuery] Re: Cookies

2009-09-28 Thread craigeves
Sorry. Stupid me. I want the script to remember the position of the divs and the collapsible state. Thanks Craig On Sep 28, 1:44 pm, Mike McNally wrote: > It might help if you'd mention what it is you want to *do* with the plugin. > > > > > > On Mon, Sep 28, 2009 at 3:32 AM, craigeves wrote:

[jQuery] Re: Cookies

2009-09-28 Thread Mike McNally
It might help if you'd mention what it is you want to *do* with the plugin. On Mon, Sep 28, 2009 at 3:32 AM, craigeves wrote: > > I'm really stuck in adding the cookies plugin to the sortables script > I have below. I don't even know where to begin. Can anyone help? > > >                      

[jQuery] Re: keepp getting NaN vlue

2009-09-28 Thread Liam Potter
I made some changes and it's now working, the problem was for the var's r2 and r3 on load there were no values for it to find, causing the NaN. here are my changes: http://www.w3.org/1999/xhtml";> Distance     first km is 30k USD, the next kms is 1k USD each Weight     no extra fee fo

[jQuery] Re: keepp getting NaN vlue

2009-09-28 Thread Shawn
further to that, you can do var distance = parseInt($("#distance".val(), 10); Using the radix (the second parameter - 10 in this case), forces the specific conversion you'd like. When dealing with dates at least, leaving out the radix can sometimes result in abnormal behavior that is VERY h

[jQuery] Re: IE: Cursor still displays hourglass symbol after unblocking

2009-09-28 Thread 34gl3 3y3
Do you want a quick fix? Edit blockui.js: Add els[1].style.cursor = 'default'; After var els = full ? $('body').children().filter('.blockUI') : $ ('.blockUI', el); Grtz, On Sep 28, 2:08 am, MorningZ wrote: > "around this bug within the actual JQueryBlockUIplugin" > > Wow, really?  it's pretty o

[jQuery] Re: lavalamp category problem

2009-09-28 Thread ksprague
There is a common template, but I'm not sure if the class "category" is addressed correctly in there. Would there normally be a correspondence between the classes in the template and the classes in lavahelper? Sorry if this is a dumb question. On Sep 26, 12:00 pm, Charlie wrote: > is there a com

[jQuery] Re: Mailing list for general JavaScript discussion?

2009-09-28 Thread banacan
Hi, I have used the SitePoint forums with some success. Here is the link to the Javascript forum: http://www.sitepoint.com/forums/forumdisplay.php?f=15 Good luck. On Sep 27, 8:23 am, Hunt Jon wrote: > Hi all, > > I know it's a bit off-topic, but which mailing list do you use > for general Ja

[jQuery] Re: webpage load lightbox with video

2009-09-28 Thread Kayhadrin
A quick google search provides this article as the first result: http://vidlivery.com/2008/nov/06/tutorials/quick-tip-create-video-gallery-thickbox keywords: thickbox tutorial flash video On Sep 27, 6:51 pm, Shravan Garlapati wrote: > Hi, >     I want the website to show a lighbox with video st

[jQuery] Re: check if checkbox is checked dynamicallyH

2009-09-28 Thread Leonardo K
$('#priority').click(function(){ if( $(this).is(':checked') ) $('.presult').text('500 USD'); else $('.presult').text(''); }); On Mon, Sep 28, 2009 at 05:24, runrunforest wrote: > > Hi, > > I have a html like this > > 0 USD span> > > I want when checkbox is checked, the spa

[jQuery] How to handle dynamic clicks?

2009-09-28 Thread lionel28
Hi, I am trying to get the correct div from a form I did (I intentionally left the brackets open so it displays here) span id="doedit_$comment[commentid]"> a onclick= "return getCommentID($comment[commentid]) and for the jQuery $(document).ready(function() { function getCommentID(cid) { $(

[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] keepp getting NaN vlue

2009-09-28 Thread runrunforest
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 checkd, I need it work regardin

[jQuery] [Tablesorter] Problem with unsortable columns

2009-09-28 Thread Martin
Hi everybody, I started using the great tablesorter 2.0 plugin. In one of my tables all but two columns should be sortable. I use the following code to achieve this: $(function() { $("#spiele").tablesorter({sortList:[[1,1]], locale: 'de', headers: { // assig

[jQuery] Simple Jquery AJAX post

2009-09-28 Thread mattastic
Could soneone please show me an example of a simple ajax post to a coldfusion page, with a loading graphic? I cant find an appropriate example in the documentation. Thankyou

[jQuery] Validate

2009-09-28 Thread Clifford Brown
Hi, Is there any way to use Jquery Validate with default (intial) values in a input, and use the script to ignore the intial value as an option. Eg. The system should ignore 'Name:' as an acceptable value. Regards

[jQuery] Ajax check username - ASP and Access DB

2009-09-28 Thread factoringcompare
Hi, Reasonably new to web building. I am now just updating my site with jQuery (first time user). I would like to implement an Ajax username checker on a new client registration form. All the tutorials and examples I can find use jQuery and php. Unfortunately, I have taught myself Access and ASP

[jQuery] Re: show()ing thousands of divs

2009-09-28 Thread ryan.j
presumably the HTML for these ~3k records are being generated server- side somewhere - can you not split/group the results before they hit the browser? On Sep 28, 3:36 am, Sid wrote: > Thanks, guys. > > Michael G., your solution worked like a charm. setTimeout seems to > mess with the context ("

[jQuery] Re: remove anything thats not number

2009-09-28 Thread runrunforest
thank you very much On Sep 28, 4:26 pm, "ryan.j" wrote: > you said 99 or 100, parseFloat will give 99.99 from your example - if > you specifically wanted an integer you could parseInt( yourString ) > and that will round up. To round a number down use Math.floor on the > floating-point number par

[jQuery] Re: Cookies

2009-09-28 Thread craigeves
I forgot to say that the script above is based on the JQuery UI framework. On Sep 28, 9:32 am, craigeves wrote: > I'm really stuck in adding the cookies plugin to the sortables script > I have below. I don't even know where to begin. Can anyone help? > > >                         $(document).r

[jQuery] Re: remove anything thats not number

2009-09-28 Thread ryan.j
you said 99 or 100, parseFloat will give 99.99 from your example - if you specifically wanted an integer you could parseInt( yourString ) and that will round up. To round a number down use Math.floor on the floating-point number parseFloat gives. On Sep 28, 10:22 am, "ryan.j" wrote: > parseFloat

[jQuery] Re: remove anything thats not number

2009-09-28 Thread ryan.j
parseFloat( yourStr ) On Sep 28, 10:18 am, runrunforest wrote: > Hi, > > I have a value that include word letter and some sign such as $. > > I want to remove all of them just keep the number. > > For example: i want "$99,99 USD" become "99"  or "100" > > can someone please give the function

[jQuery] remove anything thats not number

2009-09-28 Thread runrunforest
Hi, I have a value that include word letter and some sign such as $. I want to remove all of them just keep the number. For example: i want "$99,99 USD" become "99" or "100" can someone please give the function

[jQuery] Re: Lightbox or PrettyPhoto or Fancybox break when submitting content with jEditable plugin

2009-09-28 Thread kyleduncan
i think this is actually a problem with the Django app that's powering our site, not javascript or jquery plugins.

[jQuery] Re: Prevent jagged text in IE

2009-09-28 Thread ryan.j
deprecating the UA interrogation was a bad move imo, simply because sometimes you legitimately want to know what browser somebody is running, rather than whether it has support for feature-x. it takes 5 mins to write a function to find the browser/os/whatever (and five seconds to copy/paste one yo

[jQuery] Re: Every post I make, I get an mail error.

2009-09-28 Thread Rick Faircloth
I got some of those, too, not long ago, but haven't had any recently. From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On Behalf Of Charlie Griefer Sent: Sunday, September 27, 2009 10:05 PM To: jquery-en@googlegroups.com Subject: [jQuery] Re: Every post I make, I get an mail

[jQuery] Cookies

2009-09-28 Thread craigeves
I'm really stuck in adding the cookies plugin to the sortables script I have below. I don't even know where to begin. Can anyone help? $(document).ready(function(){ $(".column").sortable({ connectWith

[jQuery] check if checkbox is checked dynamicallyH

2009-09-28 Thread runrunforest
Hi, I have a html like this 0 USD I want when checkbox is checked, the span will have 500 USD. When checkbox is unchecked the span will return 0 USD. This is what I've got, have no idea why not work. if ($('#priority').is(':checked')) { $('.presult').text('500 USD'); }else {

[jQuery] Re: Mailing list for general JavaScript discussion?

2009-09-28 Thread ryan.j
You'll never find a more wretched hive of scum and villainy. and javascript. On Sep 27, 5:12 pm, Karl Swedberg wrote: > If you have a very thick skin and can look past the ranting of   > arrogant know-it-alls, the comp.lang.javascript Usenet group can be a   > great resource. You can access it t

  1   2   >