[jQuery] Re: Can't get FF 3 to respond to keyup()

2009-11-10 Thread shenry
Answered my own question, posting here in case others have the same issue. Apparently the problem was with the variable name ph... must be a namespace issue with jQuery. Changing the variable to xph in the script made it work fine in FF3 and IE7. Stu

[jQuery] Re: jQuery & Functions

2009-11-10 Thread Lukas
Hi MorningZ, thanks for your help it is greatly appreciated. Yes i did get a bit confused with empty (i blame php :P). I've only been playing with jquery or anything besides plain old document.form.elementname JS for a week so i'm all over the palce. I now have it all working just fine. final co

[jQuery] Re: events propagation once again

2009-11-10 Thread Matthew
Hi Norbert, If you read up on the jQuery click event http://docs.jquery.com/Events/click you will see that it binds a click listener to whatever element you apply it to so in your case: $("#fake_href").click(); <- this is 'listening' for a user to click on some element with id = #fake_href, so

[jQuery] Re: Error '$this' is undefined

2009-11-10 Thread Daybreak0
I should have said, so as to to be confusing The Jquery code which is not working is $('.cartSummaryLink').val( $(this).val().replace('Cart','My Shopping Bag') The CSS class of the link View Cart is '.cartSummaryLink' $(this) is meant to be equal to 'View Cart'

[jQuery] Re: resize.simplemodal

2009-11-10 Thread Eric Martin
There are a few different ways you could handle this. I've provided a couple of ideas below" 1) after you get the ajax content, check it's height/width and adjust the container dimensions accordingly: $('#modal').modal({ onShow: function (d) { $('#modalclick', d.container[

[jQuery] Can't get FF 3 to respond to keyup()

2009-11-10 Thread shenry
I have a page that calculates some values on the fly whenever a key is pressed (using keyup(); ). Here is the script (go easy on me, I'm a noob): $(document).ready(function() { $(document).keyup(function() { var ph = $("input#ph").val(); var targetMSO2 = $("

[jQuery] Re: events propagation once again

2009-11-10 Thread norbi
I am even more confused right now. I decided to create fake outside to avoid the propagation issue. $(document).ready(function(){ $("#menu_ma a") .click(function(e,a){ $(this).closest("li.ui-selectee").addClass("ui-selected").siblings ().removeClass("ui-select

[jQuery] Re: Error '$this' is undefined

2009-11-10 Thread Daybreak0
Joe Here is the Html fom above - I should have continued it into the conversations. HTML Code: 1 item (s),Total: £0.00 View Cart The CSS class of the link View Cart is '.cartSummaryLink' The Jquery code is of course $('.cartSummaryLink').val( $(this).val().replace('Cart','My Shopping Bag') $(t

[jQuery] Re: Selection logic

2009-11-10 Thread Mr Speaker
BTW, just to be clear: there shouldn't EVER be a reason ever to do: $($ (el).parents('div').get(0)).addClass('blah') You'd just be getting all the parent divs, asking for their actual DOM references (for no reason) then re-wrapping them into jQuery objects before adding classes to them! On Nov 11

Re: [jQuery] Re: Error '$this' is undefined

2009-11-10 Thread Joe Moore
Well, what are you expecting $(this) to be? What code (HTML & JavaScript ) do you have to show us? On Nov 10, 2009 8:42 PM, "Daybreak0" wrote: Joe and Marcel - I see. Thank you $('.cartSummaryLink').val( $(this).val().replace('Cart','My Shopping Bag') ); No errors occur but it does not work.

[jQuery] Re: jquery and json triggers no event.

2009-11-10 Thread Mr Speaker
The "a.delete" click handler only attaches to _current_ elements on the page. If you want to bind to future elements (that you build dynamically) you can use the .live method: $("a.delete").live( "click", function(){ alert( "test" ); } ); (Also, another solution is to take advantage of event dele

[jQuery] Re: events propagation once again

2009-11-10 Thread norbi
Thank you for answering. >Looks like you could listen for a click on the 'li' then trigger a >click on the child 'a' tag without worrying about extracting the >target or href. I know that. I do that. I am extracting target due to workaround. If we skip that, when I catch the click in and then tr

[jQuery] Sortable Help

2009-11-10 Thread Dave Maharaj :: WidePixels.com
I am trying to send the data in a numbered array but i end up with set[]=56454&set[]=54546522 when i need set[0]=56454&set[1]=54546522 $(document).ready(function() { $("#sortable").sortable({ placeholder: 'ui-state-highlight', update: function() {$.post('/order/.php',{data: $("#s

[jQuery] Re: jQuery & Functions

2009-11-10 Thread MorningZ
What is this syntax supposed to accomplish? if( !$.(arrFieldNames[x]).empty() ){ Issues: "empty()" is a *method* and it empties the children from a DOM object (see the docs: http://docs.jquery.com/Manipulation/empty) You've also got a period after the $, that's not good (nor going to work!)

[jQuery] Accordion Menu

2009-11-10 Thread Nelly
Hi! I'm trying to implement an accordion menu but I'm only getting the first sub menu to show up when I click on its header menu. This is the code I have for the function. $(document).ready(function() { $("div.menu_body").hide(); $("p.menu_head").click(function() { $(

[jQuery] (validate) Change Framework to Select from Classes attached to Table Elements

2009-11-10 Thread Oldschool
I have a special application that I am trying to get the jQuery Validation Plugin to work. All the elements on my page are encased inside of a table, and I don't have the ability to apply classes directly to the validated elements (, etc). The classes must come on the table elements:

[jQuery] jQuery & Functions

2009-11-10 Thread Digital Evasion
Firstly hello everyone and apologies for breaking new ground in terms of simple idiot questions. Ok so I'm trouble doing something I would consider as simple with jquery. I have a form and i want to run a common function (that checks a bunch of inputs) that will be run when certain fields blur. wor

[jQuery] Re: Cascade plugin and multiple selected values

2009-11-10 Thread Mike Nichols
$('select#parent').trigger('cascade'); ? On Nov 9, 5:08 pm, rmachado wrote: > Hello to all > > I using thecascadeplugin in 3 dropdowns and it works fine, but in > some ocasions I need to pre selected the values because the user is > editing the previous recorded selections. > > I manage to select

[jQuery] Re: Error '$this' is undefined

2009-11-10 Thread Daybreak0
Joe and Marcel - I see. Thank you $('.cartSummaryLink').val( $(this).val().replace('Cart','My Shopping Bag') ); No errors occur but it does not work. I am not sure why, as its beyond my limited knowledge, but there must be a way to replace certain text.

[jQuery] Re: events propagation once again

2009-11-10 Thread Matthew
Sorry I can't be more specific Norbert, I'm at work and have limited time. Check out the "Trigger" event for jQuery: http://docs.jquery.com/Events/trigger Looks like you could listen for a click on the 'li' then trigger a click on the child 'a' tag without worrying about extracting the target or

[jQuery] Re: Passing typeof function

2009-11-10 Thread aze
Thanks waseem, I think I have found what I want You code also give me some ideas and had used part of it. Thanks again

[jQuery] Solved: Re: Why does 'attr' work with 'divs' and not 'p's'?

2009-11-10 Thread dorich
Thanks for the response. I pasted the wrong code, they were consistent in the original. mea culpa! However, this is solved. I had created a conflict with classes somewhere else in the html and that was the source of the problem. On Nov 10, 12:12 pm, D A wrote: > > jquery > > var originalTitle=$("

[jQuery] events propagation once again

2009-11-10 Thread norbi
Hello everybody It is my first post here I guess. I must say - I love jQuery, thank you ! A few days ago I faced a problem that I cannot overcome and hope you can help me. In the group archive I saw similar problem, but solved in the way I have it solved, which is not sufficient for me right now.

[jQuery] Re: Ajax Load, CSS Insert on Loading Gif and Fade Out

2009-11-10 Thread artesianwells
Thankyou Nathan, I am sure this plugin and the filement group loading plugin are great, but I wanted a really lightweight solution that uses the css. If anyone knows how to set it up properly the chaining the etc (if possible using .empty()). Please post. I am sure there are others who would like

[jQuery] Problem with drop down menu

2009-11-10 Thread Atkinson, Sarah
I'm just picking up javascript and Jquery. I'm trying to do a drop down menu. I've downloaded several and tried to use their code but they all seem to have issues with my menu. What is going on? My current problem is that when a person rollsover just the li that it then opens all of the dropdow

[jQuery] JQuery/PHP/MySQL Best Practice Sample Application?

2009-11-10 Thread dvanatta
Can someone point me to a JQuery/PHP/MySQL application which has source code available which I can use to learn? Thanks.

[jQuery] Validate Plugin - addMethod with Custom Messages?

2009-11-10 Thread itsallgood
Hi guys, I've been trying to work this out for about 7 hours - no exaggeration. I just cannot seem to work it out :-( I have used the sample code from "custom-methods-demo.html" $.validator.addMethod("buga", function(value) { return value == "buga"; }, 'Please en

Re: [jQuery] Error '$this' is undefined

2009-11-10 Thread Joe Moore
$this should be $(this). Hth, Joe On Nov 10, 2009 2:12 PM, "Daybreak0" wrote: Hi all, I have the following html, of which I want to replace the text "Cart" with "My Shopping Bag" (The Veiw Cart text is near the end) Code: 1 item(s), Total: £0.00 View Cart Now I need the ability to actually

[jQuery] Re: Show Loading

2009-11-10 Thread Matthew
Nathan's plugin looks like the way to go, but before I saw his plugin I would always just show some loading div or paragraph before the ajax call, then hide it in your 'success:' function in the ajax call. $('#loader").fadeIn(500); do your ajax thing success: function(){ $('#loader").fadeOu

Re: [jQuery] Show Loading

2009-11-10 Thread Nathan Bubna
I was working on adding this feature to the loading plugin a few weeks ago. I finished it today: http://jquery-values.googlecode.com/svn/other/loading/jquery.loading.js On Tue, Nov 10, 2009 at 11:17 AM, Dave Maharaj :: WidePixels.com wrote: > Is there a way that when your loading content to dis

[jQuery] Re: trying to get jQuery plugin to work with onclick IE6/7

2009-11-10 Thread Matthew
Scott, thanks for your time, I have been banging my head on the desk for a while. I edited the code down and used JS Bin: http://jsbin.com/ehoxu The original jQuery plugin uses ajax to bring in a form from a php page and does some other things, but my watered down version on JS Bin seems to genera

[jQuery] fadeOut problem

2009-11-10 Thread Jakub Suder
Hi, I've found a minor issue with the fadeOut animation - I'm not sure if this can be fixed easily, or even if it is a bug at all... this appears in a case which I suppose is quite rare, when the element's height is 0, but the element is visible on the screen anyway. When fadeOut is called on this

Re: [jQuery] tablesorter + AJAX

2009-11-10 Thread sumdog
Nevermind. My original approach worked. I had just forgotten to use th tags instead of td tags in the thead section of the table in my AJAX call. Silly mistake. aquaone wrote: > > try: > $('#mainContent').html(data).find('#ratesTable').tablesorter(); > > > > On Mon, Nov 9, 2009 at 20:38,

[jQuery] Re: Error '$this' is undefined

2009-11-10 Thread Daybreak0
Thank you > > Code: > $('.cartSummaryLink').val( $*(*this*)*.val().replace('Cart','My Shopping > Bag') ); > Unfortunately the above does not work New error in IE and FF is Message: Syntax error Char: 35

Re: [jQuery] tablesorter help - sort by date wont work!

2009-11-10 Thread sethwb
Hey, I got the click to work - syntax error, however, it still doesn't seem to want to sort correctly on the Months Where in the script does it actually do the sorting? It actually doesn't seem to be sorting in any apparent order, kind of random like. Is this the right return format: mmdd?

[jQuery] Re: trying to get jQuery plugin to work with onclick IE6/7

2009-11-10 Thread Scott Sauyet
On Nov 10, 2:22 pm, Matthew wrote: >    So my code works in FF, IE8 and Safari (I've only tested in the > latest versions of all). But in IE6 and IE7 I get an error saying > "Object doesnt support this property or method". I know the site is not visible, but can you make a small test case using J

Re: [jQuery] Why does 'attr' work with 'divs' and not 'p's'?

2009-11-10 Thread D A
> jquery > var originalTitle=$("a.basic").attr("title"); >                        $("p.area1").text(originalTitle); > > html > This is where the original title should go > Your selector is looking for a paragraph with a class of 'area1'. However, there is no paragraph with that class in your mark

Re: [jQuery] Error '$this' is undefined

2009-11-10 Thread Marcel Araujo
just do it Code: $('.cartSummaryLink').val( $*(*this*)*.val().replace('Cart','My Shopping Bag') ); 2009/11/10 Daybreak0 > Hi all, > > I have the following html, of which I want to replace the text "Cart" > with "My Shopping Bag" (The Veiw Cart text is near the end) > > Code: > vertical="Fals

[jQuery] Re: clueTip display inconsistently

2009-11-10 Thread Simone
Hello everyone... figured out what was wrong... I am using sharepoint and was trying to add the stylesheet to a content editor webpart as a link... it was not working... and funy thing is that some sort of style was being loaded... anyhow... thanks for the wonderful tool :) Cheers, Simone On Nov

[jQuery] trying to get jQuery plugin to work with onclick IE6/7

2009-11-10 Thread Matthew
Okay, So my code works in FF, IE8 and Safari (I've only tested in the latest versions of all). But in IE6 and IE7 I get an error saying "Object doesnt support this property or method". http://www.curvesinformation.com/ index.php?Referrer=GFC&campaign=GF" target="_blank"> curvesLeadForm is a c

[jQuery] Show Loading

2009-11-10 Thread Dave Maharaj :: WidePixels.com
Is there a way that when your loading content to display the loading div for a minimum amount of time? I am requesting Ajax grab some content for me and while its doing so I show the loading spinner but in some cases it just flashes for a millisecond and gone. Can it be set to show for a minimum

[jQuery] Re: Superfish

2009-11-10 Thread dimsum
I also experienced this. If the "active class" is on the third level the .sf-breadcrumb wont show up. But if the "active class" is on the second level it's okay. Only happens in Safari so far. Any ideas? On Oct 21, 11:33 am, Ron wrote: > I have setupsuperfishon my wp powered site, its all workin

[jQuery] jquery and json triggers no event.

2009-11-10 Thread s.soch
Hi, I'm attempting to build a list of items that are to be clickable to delete. - I am able to visually build the list and it is added to a div I want. My a.delete click event is never triggered when I click on a json built hyperlink. If I manually add the html like test then the event is trigg

[jQuery] Jquery Lavalamp - prevent the hovering effect on a specific class/item

2009-11-10 Thread Falz
Hi guys, As the subject indicates, is it possible to prevent the lavalamp effert from moving to a specific within the list? .. for instance if the li has a class , once the user hovers over that the hovering image remains on the currently selected item Any indications or help would be greatly

[jQuery] How to send Object Graphs to the server via AJAX?

2009-11-10 Thread cimodev
Hello i'm using jqGrid with the type "clientSide" and plan to send editted data back to the server. With a $.ajax-Request i receive an object with sub-objects as JSON from the server and can directly work with them in javascript, e.g. add the sub-objects to the grid, and display other properties

[jQuery] Re: clueTip display inconsistently

2009-11-10 Thread Simone
Hey Wendy/Karl... can you share your findings?? I am having the same problem just using the default style. I am using the basic function with default style! and the results I get are a tip box with dark, 60% transparent background... very confused and have spent a couple of days on this...!! any h

[jQuery] Validate not working in IE, but working in Firefox.

2009-11-10 Thread paulyoung1701
Hello there, I know this has come up before, but I've checked it through and I think I must be going blind as I can't see why it's not currently doing any validation. Firefox works fine, but IE doesn't do any validation and just goes straight to the form processor. The code I'm using is: