[jQuery] Chaining and each

2009-10-30 Thread noon
Kind of large to paste here. My script and resulting HTML can be found at: http://jquery.pastebin.com/m3f98dd99 If you look towards the bottom you will see the following: .parents('td.embedded td.latest') .each(function(i) { $(this) .append(new_table)

[jQuery] Re: Chaining and each

2009-10-30 Thread noon
nevermind. its because parents() runs for each TD (9) On Oct 30, 11:09 am, noon nun...@gmail.com wrote: Kind of large to paste here. My script and resulting HTML can be found at:http://jquery.pastebin.com/m3f98dd99 If you look towards the bottom you will see the following: .parents

[jQuery] [validate] required that select input's option is anything other than default

2009-03-06 Thread noon
I'm trying to throw the field is required option on a select when its selected option is my default option of dashes/0. I might be going about this the complete wrong way with the required (dependency- callback). Help is appreciated. My HTML/JS may make more sense than this quesiton HTML:

[jQuery] $.post and single quotes

2008-07-17 Thread noon
I didn't notice until now that my quotes are already being escaped somewhere between after I call $.post() and when my php page picks them up. I have been using mysql_real_escape_string for the way into the DB and strip_slashes for the way out. I don't really want to strip_slashes before I post

[jQuery] Re: Livequery add class to new DOM elements

2008-07-16 Thread noon
livequery accepts two parameters, the first is the event to which a function (the 2nd parameter) is bound to. $('a.someLink').livequery('click', function() { // anchors with a class of 'someLink' // can now be dynamically inserted to the dom // yet still have an 'onclick' event associated

[jQuery] Re: Livequery add class to new DOM elements

2008-07-16 Thread noon
sorry, I am incorrect. I forgot there were multiple forms. That should work On Jul 16, 2:29 pm, noon [EMAIL PROTECTED] wrote: livequery accepts two parameters, the first is the event to which a function (the 2nd parameter) is bound to. $('a.someLink').livequery('click', function

[jQuery] Re: using live query howto

2008-07-15 Thread noon
If your form is dynamically created you can use livequery on that too. I notice you have 'onclick' in yours which is incorrect $('#addLinksForm').livequery('submit', function() { $('#addLinks').livequery('click', function() { // stuff } } On Jul 15, 12:34 am, Tom Shafer [EMAIL

[jQuery] Re: jquery.livequery with with variables

2008-07-15 Thread noon
Use an anonymous function wrapper. $('li').livequery('click', function() { deleteitem(id); }); On Jul 15, 4:17 am, Tom Shafer [EMAIL PROTECTED] wrote: i got livequery to bind but i need to be able to pass a variable to it lets say i have a function like deleteitem(id) how can i make

[jQuery] Re: Fading images with jQuery

2008-07-15 Thread noon
fadeIn/fadeOut can take a second parameter, a callback. I would assume in your case that the $('app') is hidden and you are fading it in slowly, but you don't wait until that fade in is complete and have it fade out, therefore appearing as its doing nothing at all. $(#app).fadeIn(slow,

[jQuery] Re: AJAX bugging out

2008-07-15 Thread noon
What exactly is the return from die? Is there an id field in bttt, or are you mistaken and it should be board_id? Every post variable passed is a string unless it is eval'd IIRC. On Jul 14, 3:24 pm, jbhat [EMAIL PROTECTED] wrote: Hi, So i use $.post to call click.php.  The variables are

[jQuery] Re: jMaps + livequery

2008-07-15 Thread noon
Anyone on this? On Jul 14, 10:27 am, noon [EMAIL PROTECTED] wrote: I am using jMaps to add a point to my map and inside the point bubble I have a link to add the searched location to a favorites list.  I am using livequery to catch the event handler for this dynamically created point bubble

[jQuery] jMaps + livequery

2008-07-14 Thread noon
I am using jMaps to add a point to my map and inside the point bubble I have a link to add the searched location to a favorites list. I am using livequery to catch the event handler for this dynamically created point bubble HTML/link. However nothing is firing. I've tripled checked my ID

[jQuery] Re: Calling PHP Functions from jQuery?

2008-07-14 Thread noon
No. Suggestion: modify your php page to accept a POST/GET variable specifying the function that you wish to be run... On Jul 14, 10:11 am, Yavuz Bogazci [EMAIL PROTECTED] wrote: Hi, is it possible to call php functions from jquery? I knew how to call a .php page from jquery with $.post and

[jQuery] Re: slideDown hidden portion/bump

2008-07-11 Thread noon
Swedbergwww.englishrules.comwww.learningjquery.com On Jul 8, 2008, at 8:31 AM, noon wrote: Anyone have any ideas on this one?  It's really stumping me. On Jul 7, 9:15 am, noon [EMAIL PROTECTED] wrote: I don't know why it does this.  I am experiencing hidden content (the username label) until

[jQuery] Re: slideDown hidden portion/bump

2008-07-11 Thread noon
it properly ? Make it bigger and see what happens. L noon wrote: I wrapped it in a div and slid the div.  Still same problem, visible again athttp://nunyez.googlepages.com/slidedowntest On Jul 8, 6:37 pm, Karl Swedberg [EMAIL PROTECTED] wrote: Try wrapping the form in a div

[jQuery] Re: Some If/Then help

2008-07-11 Thread noon
Don't understand when this could occur to make any sense for images being inserted like this without an example, but at any rate... You'll have to think about when and how this is triggered in order for these if statements to be executed because as said, i don't understand switch

[jQuery] Re: Need Help Filtering Content

2008-07-11 Thread noon
First of all, you should be assigning your content links (the ones on the left) classes and not IDs. Not only is it bad practice, but jQuery will stop after it hits the first one. Second of all, $(a).click(function () { var filter = $(this).attr(id);

[jQuery] Re: Button Click

2008-07-11 Thread noon
Should you? Well if thats the only javascript on the page there isn't much point in including a library for something like that. However you could do it by saying: // jQuery's document ready $(function() { // grab the button and assign event $(#Cancel).click(function() {

[jQuery] Re: Display (or not display) content based on url hash

2008-07-09 Thread noon
() { location.reload(true) }); but it doesn't really do anything. Thanks again, you've been a giant help thus far. On Jul 8, 12:23 pm, noon [EMAIL PROTECTED] wrote: I the if/else statement doesn't seem to be working. You're if statement is using the equals sign as an assignment operator

[jQuery] Re: jMaps and other G* functions

2008-07-08 Thread noon
I'm aware that it binds opening to the click function but I want to open without click. On Jul 7, 6:19 pm, Colin Guthrie [EMAIL PROTECTED] wrote: noon wrote: All jMaps functions never seen to return a handler that I can use, but only fire the callback if provided.  I used jMaps to add

[jQuery] Re: slideDown hidden portion/bump

2008-07-08 Thread noon
Anyone have any ideas on this one? It's really stumping me. On Jul 7, 9:15 am, noon [EMAIL PROTECTED] wrote: I don't know why it does this.  I am experiencing hidden content (the username label) until the animation is complete and the bump occurs.  See it for yourself http

[jQuery] Re: Display (or not display) content based on url hash

2008-07-08 Thread noon
alert(document.location.toString().split('#')[1]) will get you the hash. From there an if statement or a switch/case would serve you. On Jul 8, 8:54 am, mitchel [EMAIL PROTECTED] wrote: Hello. Admittedly, I know very little about jQuery or javascript in general but it seems like it should be

[jQuery] Re: Fade in background image.

2008-07-08 Thread noon
I see your problem now. What about using a z-index and have them float on top of each other? This way no element is kicked out of position. I don't know your CSS savvy but having a container for the item with a position of relative, and then the children with absolute positioning would have

[jQuery] Re: Display (or not display) content based on url hash

2008-07-08 Thread noon
://www.mitchmckenzie.com/index.php Any further help would be greatly appreciated. On Jul 8, 8:00 am, noon [EMAIL PROTECTED] wrote: alert(document.location.toString().split('#')[1]) will get you the hash. From there an if statement or a switch/case would serve you. On Jul 8, 8:54 am, mitchel [EMAIL

[jQuery] slideDown hidden portion/bump

2008-07-07 Thread noon
I don't know why it does this. I am experiencing hidden content (the username label) until the animation is complete and the bump occurs. See it for yourself http://nunyez.googlepages.com/slidedowntest Help appreciated

[jQuery] Re: How to replace a div content?

2008-07-07 Thread noon
Cut and pasted your example. Works fine for me. Do you not have an onready opening function, eg $(function() {}? On Jul 7, 10:04 am, SimDigital [EMAIL PROTECTED] wrote: How could i replace a html content inside the div? I have 1 div (div id=elemini text/div) and everytime i click a button, i

[jQuery] jMaps and other G* functions

2008-07-07 Thread noon
All jMaps functions never seen to return a handler that I can use, but only fire the callback if provided. I used jMaps to add a marker and centered the map. On this newly created marker, how can I get to the other G* methods such as openInfoWindow?

[jQuery] Element's inner/children

2008-07-02 Thread noon
I have the following HTML structure: div id=new-msgs div class=msg.../div div class=msg.../div /div I have the following code: $('#new-msgs') .appendTo('#prev-msgs') .wrap('div id=p'+pCurrent+'/div'); I want everything inside #new-msgs to be appended to

[jQuery] Dynamic event listener?

2008-06-27 Thread noon
I have the following code which is clearing the contents of an input box and modifying its css. $('.untouched') .focus(function(){ $(this).val(''); $(this).removeClass('untouched'); $('.add-msg').css('display','inline'); })

[jQuery] Toggle(fn,fn1) not working as expected

2008-05-06 Thread noon
$(p.more a).click(function() { $(this).parent().siblings(div.overflow).toggle(); $(this).toggle( function() {$(this).html(laquo; Less); alert('1');}, function() {$(this).html(More raquo;); alert('2');} ); }); I am referring to p.more a when

[jQuery] Re: Toggle(fn,fn1) not working as expected

2008-05-06 Thread noon
Thanks a lot !

[jQuery] IE6 flicker/display problem

2008-04-25 Thread noon
http://docs.jquery.com/Tutorials:Live_Examples_of_jQuery This url used to display fine in IE6 (im pretty sure...) and now when I open it, the 2-column content is hidden as soon as jQuery fires (on ready). Why is this happening? I've tested this on two machines running IE6. Is this happening to

[jQuery] Re: new to jquery

2008-04-04 Thread noon
=== jQuery code === $(function(){ $(a.toggle) .click(function(){ if ( $(this).parent(fieldset).hasClass(collapsed) ) { $(this).parent(fieldset).removeClass(collapsed); }

[jQuery] new to jquery

2008-04-03 Thread noon
Hello, i've been writing javascript for a while now. So, as you can imagine I am struggling just a bit. I browsed a few of the beginner tutorials and didn't see what I was looking for. I understand that methods like .is or .hide are special to the jquery library and you can't access these

[jQuery] Re: code minimization / abstraction

2007-09-05 Thread Joe Noon
Instead, make your code a static function: Mike, You're a huge help! That all makes much more sense now. Here is what I ended up with: (function( $ ) { $.rjax = function(options) { $.ajax($.extend({ dataType: script, beforeSend: function(xhr) {xhr.setRequestHeader(Accept,