Re: [jQuery] What I need to know?

2010-03-02 Thread Nathan Klatt
On Tue, Mar 2, 2010 at 3:31 PM, Danjojo wrote: > Is it possible with jQuery to update a database / call a stored > procedure when I update an Input box that represents Quantity of an > item? http://api.jquery.com/category/ajax/ There are some AJAX tutorials targeting jQuery use linked to here:

Re: [jQuery] Get the previous element matching a class

2010-03-02 Thread Nathan Klatt
for a div inside a TD that is *directly* following the > td.time element. Yeah, prev only gets the immediately preceding sibling; prevAll gets all previous siblings so I think you want something like this: $(this).closest('td').prevAll('td.time').last().html() Nathan

Re: [jQuery] Slide down / Slide up, stop repeating

2010-03-02 Thread Nathan Klatt
in animation to its end then starts the out animation - it would be nice if it would freeze the in animation and start the out animation from there but things get messed up with jumpToEnd (the second param) set to false. Nathan

Re: [jQuery] Newbie Question: Finding and manipulating an element

2010-03-01 Thread Nathan Klatt
t; I'm looking for a result like this: > > >     class="portal-navigation-label">Home >         If all of the inner uls are styled the same you don't need a class, just add a rule to your css: ul.foo > li > ul { /* style stuff */ } Nathan

Re: [jQuery] Re: Accordion help ....

2010-02-28 Thread Nathan Klatt
On Sun, Feb 28, 2010 at 12:00 AM, Erik wrote: >  { $(this).removeClass("ui-state-active"); } No, don't do that - that'll screw up the accordion, I expect. I mean something in the css like: .ui-state-active:hover { background-color: inherit; /* or "none" or some specific color */ } Nathan

Re: [jQuery] Accordion help ....

2010-02-26 Thread Nathan Klatt
On Fri, Feb 26, 2010 at 3:12 PM, Erik wrote: > My accordion is working great, but I need to STOP the hover on the > selected item. You should be able to deactivate the hover for .ui-state-active elements. Nathan

Re: [jQuery] Quirks with Tablesorter

2010-02-25 Thread Nathan Klatt
re-apply that logic each time the table is sorted; just add a class to the trs that you want to have the separator after (or before, I suppose). Remember to remove the class before you re-apply the logic, though. :) Good luck. Nathan

Re: [jQuery] Quirks with Tablesorter

2010-02-25 Thread Nathan Klatt
nder > a horizontal link end up getting placed at the top of the table.  So the > data sorts right but something is going on when i use the tags. Sounds right to me. Instead of rows containing hrs, how about some border styling on the trs or tds? Nathan

Re: [jQuery] Help: Iterate through unknown number of elements, apply function

2010-02-23 Thread Nathan Klatt
input"); container.find(".selectA option:selected").appendTo(container.find(".selectB")); }); $(this).find(".remove").click(function() { var container = $(this).closest(".input"); container.find(".selectB option:selected").appendTo(container.find(".selectA")); }); }); }); See it in action here: http://jsbin.com/osipu/edit Nathan

Re: [jQuery] Re: Sortable list - even when list is changed

2010-02-22 Thread Nathan Klatt
x27;s wrong. :) Go to the page I made: http://jsbin.com/oququ3/edit, make your edits, save a "New revision", then forward the link. Nathan

Re: re[jQuery] fresh tabs

2010-02-22 Thread Nathan Klatt
think it should have you on your way. Nathan

Re: [jQuery] Sortable list - even when list is changed

2010-02-21 Thread Nathan Klatt
Hi Rafal, In what way does it not work? I transcribed your code into jsbin and it seems to be fine, though I don't have any roundbox styling being applied: http://jsbin.com/oququ3/edit Nathan

Re: re[jQuery] fresh tabs

2010-02-21 Thread Nathan Klatt
Perhaps you could point us to your page? Or set up an example at jsbin.com or something? Nathan

Re: [jQuery] Scrolling Problem

2010-02-20 Thread Nathan Klatt
Post.find(".title").position(); // or offset() window.scrollTo(positionOfNextTitle.left, positionOfNextTitle.top); }); }); http://jsbin.com/adoti/edit Nathan

Re: [jQuery] Multiple select box line wrap

2010-02-16 Thread Nathan Klatt
'Course it's a good idea! ;) On Tue, Feb 16, 2010 at 11:29 AM, Paul Collins wrote: > Thanks Nathan > > That's a good idea actually, guess that would work even if you had scripts > turned off... > > Will put that to use, thanks again.

Re: [jQuery] Multiple select box line wrap

2010-02-16 Thread Nathan Klatt
tiple selects are a HTML/CSS/browser weakness. My recommendation is to use checkboxes, styled so they highlight when :selected and the box doesn't show, named as an array, e.g., name="multiSelect[]"; put them all in a ul or ol and make wrapping easy. Nathan

Re: [jQuery] jquery.validate in chrome field loses focus on unhighlight

2010-02-11 Thread Nathan Klatt
On Thu, Feb 11, 2010 at 2:36 PM, jrallan wrote: > Any suggestions? You cannot add $(element).focus() to the unhighlight > function because it runs on blur() so can never escape the field. Have you tried returning false from a blur handler or something along those lines? Good luck. Nathan

Re: [jQuery] Superfish text color with parent - Really need help, thanks

2010-02-10 Thread Nathan Klatt
t; sfHover to the item when you traverse its children? Just about - it looked like superfish was adding the sfHover class to each item as it was hovered over and its menu expanded. You can use the Firefox addon Firebug to watch the classes and styles change. Nathan

Re: [jQuery] Popup

2010-02-10 Thread Nathan Klatt
to load since most browsers don't allow XSS. If you're going to do that, though, be careful! http://www.owasp.org/index.php/XSS Nathan

Re: [jQuery] Re: how to make this really beautifull pattern

2010-02-10 Thread Nathan Klatt
On Wed, Feb 10, 2010 at 8:56 AM, Jonathan Vanherpe (T & T nv) wrote: > How about you just look at the source code? > > http://www.altsoftware.com/alt_news_rotator.js > > There's comments and everything FTW!!!

Re: [jQuery] Replace URL parameters

2010-02-10 Thread Nathan Klatt
On Wed, Feb 10, 2010 at 5:48 AM, Jakub wrote: >    function Dummy(){ >      adress = window.location.href; >      regex = "/^&(.*?)?$/"; >      adress = adress.replace(regex,''); >      alert(adress); >    } One problem is you don't want to put quotes around the regex. Nathan

Re: [jQuery] Replace URL parameters

2010-02-10 Thread Nathan Klatt
On Wed, Feb 10, 2010 at 5:48 AM, Jakub wrote: > I want to replace all parameters, but first. I don't know what is > wrong .. :-( Could you give an example of what you want to happen? I.e., an input string and what you want it to look like after the replace? Nathan

Re: [jQuery] how to make this really beautifull pattern

2010-02-10 Thread Nathan Klatt
and opacity or color. http://api.jquery.com/animate/ Nathan

Re: [jQuery] Superfish text color with parent - Really need help, thanks

2010-02-09 Thread Nathan Klatt
specific/has the highest specificity will be applied. Read through this first link - or even just the table at the top - with an eye for the rule you had and what I added and I think you'll get it. http://www.w3.org/TR/CSS21/selector.html http://www.w3.org/TR/CSS21/cascade.html Nathan

Re: [jQuery] Superfish text color with parent - Really need help, thanks

2010-02-09 Thread Nathan Klatt
as .sf-menu li:hover, .sf-menu li.sfHover, .sf-menu a:focus, .sf-menu a:hover, .sf-menu a:active) seems to do the trick. Nathan

Re: [jQuery] Find nodes

2010-02-05 Thread Nathan Klatt
ot;. I'm guessing your variable got munged, eh? Do you mean you have a string of HTML? If so, you could DOMify it then search in that. var tempDiv = document.createElement('div'); tempDiv.innerHTML = (your variable); var cheverons = $(tempDiv).find("span.cheveron"); Nathan

Re: [jQuery] popup form

2010-02-05 Thread Nathan Klatt
uthor of Flexigrid hangs out on http://groups.google.com/group/flexigrid so that's a good resource for questions. Nathan

Re: [jQuery] [Maybe OT] Table width 100%

2010-02-05 Thread Nathan Klatt
On Fri, Feb 5, 2010 at 12:41 AM, Steffan A. Cline wrote: > I have a div set to 600px wide and 400px tall. Inside I load different > height tables so I have overflow: scroll to make the div scrollable. Have you tried overflow:auto? Nathan

Re: [jQuery] Forms Plugin - Button Id

2010-02-04 Thread Nathan Klatt
On Thu, Feb 4, 2010 at 9:21 AM, neojquery wrote: > I have two button on the page I need to know which one has > been clicked and trigger an event based on this. http://api.jquery.com/click/ Nathan

Re: [jQuery] “(validate)”

2010-02-04 Thread Nathan Klatt
ntry refers to a field's name. >From your example, it looks like you have a form with id="aspnetForm" but you don't specify what your input's name is; if it isn't txt_1 or txt_2 then it won't be validated. You can find some samples here: http://jquery.bassistance.de/validate/demo/ Nathan

Re: [jQuery] Update div content after dynamic select creation

2010-02-03 Thread Nathan Klatt
).attr('value'); $.post("result.php", {id:id_naz}, function(data){ $("div#result").empty(); $("div#result").append("prova3"); //$("div#result").prepend(data); }); }); }); }); }); Nathan

Re: [jQuery] Traversing to next class?

2010-02-03 Thread Nathan Klatt
ery.com/nextAll/ .nextAll( [ selector ] ) Returns: jQuery Description: Get all following siblings of each element in the set of matched elements, optionally filtered by a selector. Nathan

Re: [jQuery] (validate) Validation following server-side submit

2010-01-31 Thread Nathan Klatt
cares if you handle someone being an ass in a graceful manner? :) Nathan

Re: [jQuery] Tabs not working... NEED HELP!!!

2010-01-29 Thread Nathan Klatt
On Fri, Jan 29, 2010 at 4:19 PM, Erik wrote: >                var activeTab = $(this).find("a").attr("href"); //Find the rel Delete the find("a") bit and you're good. http://jsbin.com/ufagi3/edit Nathan

Re: [jQuery] Tabs not working... NEED HELP!!!

2010-01-29 Thread Nathan Klatt
On Fri, Jan 29, 2010 at 4:19 PM, Erik wrote: >                var activeTab = $(this).find("a").attr("href"); //Find the rel > attribute value to identify the active tab + content >                $(activeTab).fadeIn(); //Fade in the active content What do your hrefs look like? Any chance you cou

Re: [jQuery] Re: Help with Column Navigation plugin (list page by selecting a element with particular ID)

2010-01-28 Thread Nathan Klatt
ents or the href values or the a text or whatever. Hope that helps - like I said, I'm not sure what you're after, exactly. Nathan

Re: [jQuery] My first clip

2010-01-27 Thread Nathan Klatt
On Wed, Jan 27, 2010 at 7:54 PM, Tiffany wrote: > Hi to all. I'm Tiffa , and I have create my small first erotic movie. > Is it looks fun? Beginning of the end?

Re: [jQuery] insertAfter('.address')

2010-01-26 Thread Nathan Klatt
On Tue, Jan 26, 2010 at 9:27 AM, Nathan Klatt wrote: > newDiv = createElement("div"); > newDiv.load("http://mydomain.dev/search/view/Id/"; + $(this).attr("id") > + ".html"); > newDiv.insertAfter(".address"); Whoops, be sure to turn newDiv into a jQuery object after creating it.

Re: [jQuery] insertAfter('.address')

2010-01-26 Thread Nathan Klatt
; + $(this).attr("id") + ".html"); newDiv.insertAfter(".address"); Something like that, I think. :) Nathan

Re: [jQuery] This code is too complex for a noob, can someone break this down.

2010-01-25 Thread Nathan Klatt
On Mon, Jan 25, 2010 at 5:19 PM, Bugman1400 wrote: > I still get the Error "$ is not defined" in the console. What could that be > from? That means jQuery isn't being properly included. Nathan

Re: [jQuery] This code is too complex for a noob, can someone break this down.

2010-01-25 Thread Nathan Klatt
ia.org/wiki/Internet_Explorer_Developer_Toolbar Nathan

Re: [jQuery] This code is too complex for a noob, can someone break this down.

2010-01-24 Thread Nathan Klatt
I get no response? Is there a further way to debug? I've heard that > Ajax errors may be silent unless you specify. Well, this is gonna piss you off, but the problem with that particular example is you've got unescaped ticks inside of ticks - check the JS concole. Change to the following and it works: Approve Nathan

Re: [jQuery] Re: loading osx (eric martin) to show errors

2010-01-24 Thread Nathan Klatt
Works great for me: http://jsbin.com/ahowi/edit Make sure you set up the click handler before you execute the click. :) Nathan

Re: [jQuery] Re: loading osx (eric martin) to show errors

2010-01-24 Thread Nathan Klatt
7;$("a.osx").click;') is a typo? Could you point to a page that does this? Or maybe put together a small example of the issue at one of the collaborative Javascript sites, like jsbin.com, or something? Nathan

Re: [jQuery] Re: loading osx (eric martin) to show errors

2010-01-24 Thread Nathan Klatt
On 24 jan, 16:39, Nathan Klatt wrote: > $().ready(function() { $("#osx").click(); }); On Sun, Jan 24, 2010 at 2:29 PM, infojava wrote: > Thanks but it does not work !!! Okay, well what's the #osx element look like? What's its click handler? Is the php file being acc

Re: [jQuery] Are API docs in sync with latest jquery library

2010-01-24 Thread Nathan Klatt
at > the documentation here: http://api.jquery.com/jQuery.ajax/ Poking around a little I see the ajax method has been around since 1.0; I wasn't able to find if the interface changed at all, however. I assume you're using 1.4? This does sound strange - I look forward to seeing the resolution. What are the contents of textStatus? Nathan

Re: [jQuery] iframe on another iframe

2010-01-24 Thread Nathan Klatt
On Sun, Jan 24, 2010 at 7:05 AM, DOTS D.O.Technology Services wrote: > how i can put iframe on top of other iframe in html, http://www.w3.org/TR/CSS21/visuren.html#absolute-positioning

Re: [jQuery] loading osx (eric martin) to show errors

2010-01-24 Thread Nathan Klatt
On Sun, Jan 24, 2010 at 8:22 AM, infojava wrote: > i use a link (wich shows the demo) wich i should active if an error > occures, but it doesn't work !!! Wrap it in a $().ready function? $().ready(function() { $("#osx").click(); });

Re: [jQuery] This code is too complex for a noob, can someone break this down.

2010-01-22 Thread Nathan Klatt
On Fri, Jan 22, 2010 at 6:57 PM, Bugman1400 wrote: > javascript:void(0); " } ,function(data){ $("#approve ?>").html(data); });' ?>" });'>Approve > > The do.php is a query that updates a database and sets an Approve column to > '1'. More context plz, that fragment makes no sense.

Re: [jQuery] Re: New Forums

2010-01-22 Thread Nathan Klatt
On Fri, Jan 22, 2010 at 3:13 PM, John Arrowwood wrote: > What if the forums were 'published' to the mailing list, and the mailing > ... > The mailing list could be set up so that nobody except the forum 'bot' could > post to it, which would make spam go away. People that have accessibility > iss

Re: [jQuery] Putting a table inside a HTML drop down select box

2010-01-21 Thread Nathan Klatt
On Thu, Jan 21, 2010 at 12:16 PM, fachhoch wrote: > is there any way to put table inside a  HTML drop down select box If you were to carpet Florida, how long would it take to vacuum? Err, what I meant to say is, why would you want to do that? What functionality are you hoping for? Nathan

Re: [jQuery] Jquery and Dynamic assignment

2010-01-21 Thread Nathan Klatt
On Wed, Jan 20, 2010 at 2:54 AM, West415 wrote: > My question is how can I use jquery to assign click handlers without having > to do this: > > >

Re: [jQuery] Re: Bindind keydown function to a form - submit on keydown (value change)

2010-01-20 Thread Nathan Klatt
Sorry, function setFamily() { $('#family').css('font-family', $('#family :selected').val()); } $("#family option").each(function() { $(this).css('font-family', $(this).val()) }); setFamily(); $('#family').bind("change keypress", setFamily); http://jsbin.com/agifi/2/edit Nathan

Re: [jQuery] Re: Bindind keydown function to a form - submit on keydown (value change)

2010-01-20 Thread Nathan Klatt
On Wed, Jan 20, 2010 at 11:20 AM, Mircea wrote: > Thanx Nathan, > It works. It does change the class to the #family form. Is it possible > to make it change the class to the Option element? You mean style the option element? function setFamily() { $('#family :selected'

Re: [jQuery] Bindind keydown function to a form - submit on keydown (value change)

2010-01-20 Thread Nathan Klatt
er of the option they're selecting - it's all good. :) Nathan

Re: [jQuery] replaceWith bug in jQuery 1.4?

2010-01-20 Thread Nathan Klatt
ocumentation, emphasis mine: "Replaces all matched elements with the specified HTML or DOM elements. This returns the JQuery element that was just replaced, *which has been removed from the DOM*." Nathan

Re: [jQuery] jQuery +

2010-01-20 Thread Nathan Klatt
On Wed, Jan 20, 2010 at 12:34 AM, Mateo wrote: > var selectedId = $("#mySelectElement").val(); Returns the value of the select element but you want the value of the selected option element under the select, hence: > var selectedId = $("#mySelectElement :selected").val(); Nathan

Re: [jQuery] Re: Multiple elements slider

2010-01-19 Thread Nathan Klatt
t;.resizeable").css('font-size', maxFont * percentage); not var resizeable = $(".resizeable"); onChanging: function(percentage, e) { resizeable.css('font-size', maxFont * percentage); You know? Just a thought. Nathan

Re: [jQuery] jquery iframe hide div

2010-01-19 Thread Nathan Klatt
Assuming you do not control the content you're embedding in the iframe, online consensus seems to be that you are SOL. http://www.google.com/search?q=css+apply+iframe+contents On Tue, Jan 19, 2010 at 4:05 PM, DOTS D.O.Technology Services wrote: > hello all any one on this ? > > On Wed, Jan 20, 2

Re: [jQuery] Validate jquery plugin problem

2010-01-19 Thread Nathan Klatt
2010/1/19 Niagara : > My code with  jQuery validation plug-in 1.5 work correctly, but with > the new version NO. In what way does it not work? False positives? False negatives? Console errors or silent refusal? Help us to help you. ;) Nathan

Re: [jQuery] Selection broken in Firefox 3.5.7

2010-01-19 Thread Nathan Klatt
On Tue, Jan 19, 2010 at 2:31 PM, Jeff wrote: > if ($("input[type='checkbox'][checked]").size() == 0) Think you want: if ($("input[type='checkbox']:checked").size() == 0) Nathan

Re: [jQuery] Simplae JQuery/Ajax question - GET variables

2010-01-19 Thread Nathan Klatt
On Tue, Jan 19, 2010 at 2:29 PM, parot wrote: > so you could have something like > > $("button#prevMonth").click(function() { > loadMonth(--currentMonth),loadYear(--currentYear); }); Well, to handle year and month you'll want something like: var currentMonth = 1; var currentYear = 2010; function

Re: [jQuery] Multiple elements slider

2010-01-19 Thread Nathan Klatt
lass, say, "resizeable", then modify the slider to only manipulate elements with that class, a la: onChanging: function(percentage, e) { $(".resizeable").css('font-size', maxFont * percentage); Nathan

Re: [jQuery] (Validate) Checking once an Entry is Change

2010-01-19 Thread Nathan Klatt
On Sat, Jan 16, 2010 at 6:42 PM, Scott Wilcox wrote: > Pastebin of code: http://pastebin.com/ma643a4e Hiya Scott, What's the code at the other end look like - i.e., /api/check/existac? Nathan

Re: [jQuery] Simplae JQuery/Ajax question - GET variables

2010-01-19 Thread Nathan Klatt
On Tue, Jan 19, 2010 at 1:45 PM, parot wrote: > I want to scroll back and forward through the months on a calendar without > refreshing the page. I have the php calendar, but I don't want any page > refresh which I can do with PHP and just send the GET to the page.  so > ideally what I need is 2 l

Re: [jQuery] Simplae JQuery/Ajax question - GET variables

2010-01-19 Thread Nathan Klatt
www.websequencediagrams.com/?lz=bm90ZSBsZWZ0IG9mIHdlYnBhZ2U6IG1lIGZpcnN0IQpKYXZhc2NyaXB0LT50cnlpdC5waHA6IHRyeXRoaXMgPSA1NwoAPwVyaWdoAEAFABsLU2ltcGxlIGVjaG8gb2YgdmFyaWFibGUANggKAEgJLS0-AF8KOiA1NwBrDQCBDgkACQ8AexUic29tZXRoaW5nIGVsc2UiAExSAFERAIEXFQB3EQ&s=default Could you modify that to better explain what you mean, maybe? Nathan

Re: [jQuery] Simplae JQuery/Ajax question - GET variables

2010-01-19 Thread Nathan Klatt
this case a simple php echo. I must misunderstand you... var trythis = 57; $.get("tryit.php", { trythis: trythis }, function(data) { $("#resultsGoHere").html(data); }); Nathan

Re: [jQuery] JQuery Trigger Event

2010-01-19 Thread Nathan Klatt
while for you to put together a simple example on one of the collaborative Javascript sites (e.g., http://jsbin.com) so others on the list can easily see it for ourselves and play around. Nathan

Re: [jQuery] need help with simple jQuery problem

2010-01-19 Thread Nathan Klatt
That seems like a lot of code for something so simple. Why don't you just follow the example from the docs: http://docs.jquery.com/Effects/slideToggle#speedcallback ? Nathan

Re: [jQuery] Re: Validation on a Modal form does not work

2010-01-18 Thread Nathan Klatt
> On Jan 7, 10:39 am, Elan Noy wrote: >> I have amodalform that I want to validate. >> Themodalis based on the simplemodalplugin and thevalidationis >> based onvalidationplugin. >> Thevalidationworks well on a regular (nonmodal) form. ANy ideas? >> >>  

Re: [jQuery] Re: selected accordion background

2010-01-18 Thread Nathan Klatt
>>                 header: '.heading', >>                 collapsible: true, >>                 autoHeight: false         }) .bind('accordionchange', function(event, ui) { $(ui.oldHeader).removeClass("selected"); $(ui.newHeader). addClass("selected"); }); }); >> Nathan

Re: [jQuery] $.ajax call doesn't complete on 400 bad request response

2010-01-18 Thread Nathan Klatt
On Mon, Jan 18, 2010 at 11:05 AM, anton wrote: > Can't seem to get any response from an ajax call which response is 400 > Bad Request > >      $.ajax({ >               url: url >               type: "GET", Hey, is that missing comma after url a typo? Nathan

Re: [jQuery] $.ajax call doesn't complete on 400 bad request response

2010-01-18 Thread Nathan Klatt
sponds with error code 400 neither the error function > nor the complete function is called, any tips on how to correct this? What is aj.dataLoaded doing? I believe a 400 will go to the success callback; after that finishes (assuming it does so :) it should call the complete callback. Can the call to complete be disabled by returning false from the success/error callback? Nathan

Re: [jQuery] JQuery Trigger Event

2010-01-18 Thread Nathan Klatt
On Mon, Jan 18, 2010 at 10:30 AM, ashar udeen wrote: > $('#parent1').trigger("click"); > > This code seems to be work in Firefox. But when I tried the same in > IE8, it does not work. Could any one update me, how to fix this. Have you tried just $('#parent1').click()?

Re: [jQuery] new forums used?

2010-01-18 Thread Nathan Klatt
lists won't > hurt anyone. The mailing list is great but what's expected to happen shortly after they stop moderating it, reportedly a significant effort, is the list will be overrun by spammers. Hopefully their fears are unfounded but I'm not holding my breath. Nice knowin' y'all. ;) Nathan

Re: [jQuery] Re: SlideDown Issue.. help!

2010-01-18 Thread Nathan Klatt
alias-box-link').click(function () { Otherwise, depending on what else you have going on, you could do something like what Waseem suggested or something like this example: http://jsbin.com/aqoti/edit Nathan

Re: [jQuery] Validation plugin

2010-01-18 Thread Nathan Klatt
On Mon, Jan 18, 2010 at 4:55 AM, perkin5 wrote: > http://www.richardbarnfather.co.uk/esu/php/booking_mike.php > > All fields have a class of 'required' and the email field has The fields that aren't validating have typos in the class setting - they're missing the equals sign: class"required" inst

Re: [jQuery] Select part of text and add a CSS class

2010-01-18 Thread Nathan Klatt
pan - you can't apply a class to an arbitrary block of text, you know? Might not be the only problem with your script but I bet it's at least part of it. :) Good luck, Nathan

Re: [jQuery] background mouseover fade effect

2010-01-17 Thread Nathan Klatt
s would be easy > if I were using two colors, but since I'm using 'none' as one You probably figured something out for this by now but, if not, one kinda ugly way would be to position a black div behind the element, hide it, and fade it in on mouseover and back out on mouseout... Nathan

Re: [jQuery] some basic questions

2010-01-17 Thread Nathan Klatt
ide from the jQuery documentation (http://docs.jquery.com/) I have no specific tutorials to recommend. If it helps, though, I've implemented a quick, but annotated, example of what you described: http://jsbin.com/aqoti/edit Good luck and have fun! Nathan

Re: [jQuery] Re: hide() works fine - fadeOut() is not working - Don't understand....

2010-01-17 Thread Nathan Klatt
On Sun, Jan 17, 2010 at 6:17 AM, Reinhard Vornholt wrote: > After switching to jQuery 1.4 everything works fine. > My guess is, that it had something to do with the css of my . It > had a position:fixed attribute. But thats just a guess. Glad you got it figured out but it wasn't the position:fixe

Re: [jQuery] javascript loaded via ajax

2010-01-13 Thread Nathan Klatt
On Wed, Jan 13, 2010 at 6:45 PM, Michael Geary wrote: > In your example, the hello function will never be garbage collected, because > the window object has a property named 'hello' that holds a reference to the > function. Thanks for the correction. Nathan

Re: [jQuery] javascript loaded via ajax

2010-01-13 Thread Nathan Klatt
lt;script id="removeMe" type="text/javascript"> function hello(msg) { alert(msg); } $().ready(function() { hello("one"); $("#removeMe").remove(); hello("two"); setTimeout("hello('three')", 2500); }); The code gets removed from the DOM (verified using Firebug) but the function still works 2.5 seconds later. Nathan

Re: [jQuery] Sceptic about JQuery

2010-01-13 Thread Nathan Klatt
y, it would be a good idea to at least consider the alternatives, a good starting point being the Wikipedia entry, of course, http://en.wikipedia.org/wiki/JavaScript_library. Nathan

Re: [jQuery] Re: Cloning a table row that is not in a table

2010-01-13 Thread Nathan Klatt
and what you mean by "in the source" - do you mean when you do a View | Source it's there? Because that is merely the text sent by the server to the browser. It's what the browser uses to generate the DOM, it is not the DOM itself. Know what I mean? Nathan

Re: [jQuery] please can you help me with with :contains? :)

2010-01-13 Thread Nathan Klatt
"hide_profile"); // toggle visibility profile var jDetails = jThis.next('.directors_details') .toggle(); // change show/hide text in the link if (jDetails.is(":visible")) { jThis.text(jThis.text().replace('Show','Hide')); } else { jThis.text(jThis.text().replace('Hide','Show')); } return false; }); Nathan

Re: [jQuery] Re: Cloning a table row that is not in a table

2010-01-13 Thread Nathan Klatt
has no chance of finding it. :) Nathan

Re: [jQuery] Cloning a table row that is not in a table

2010-01-13 Thread Nathan Klatt
On Wed, Jan 13, 2010 at 9:15 AM, RhythmicDevil wrote: > So it seems I can only select a row if its in a table? That makes no > sense? Makes perfect sense; a table row cannot exist outside of a table. Nathan

Re: [jQuery] Converting a javascript to jQuery

2010-01-13 Thread Nathan Klatt
This is totally untested but I expect it should look something like the below. Nathan function initShowHideDivs() { $("div.breakbg").each(function(breakbgIndex) { this .click(showHideContent) .attr("id", "ssdm"+breakbgIndex) // .classNa

Re: [jQuery] Are numerical properties/indexes supported?

2010-01-13 Thread Nathan Klatt
mentioned in the documentation then, no, you can't count on that working in the future. Nathan

Re: [jQuery] Append prepend?

2010-01-12 Thread Nathan Klatt
On Tue, Jan 12, 2010 at 4:36 PM, Dave Maharaj :: WidePixels.com wrote: > I cant seem to understand the logic behind these functions. append prepend > appendTo, prependTo Methinks you're very close! This what you're getting at? http://jsbin.com/elaja/edit Nathan

Re: [jQuery] Re: Get Value. Please, is kind of urgent. Thanks.

2010-01-12 Thread Nathan Klatt
On Tue, Jan 12, 2010 at 3:42 PM, shapper wrote: > And is there a way to check if GBrowserCompatible is valid? >From http://www.idealog.us/2007/02/check_if_a_java.html: if (typeof(yourFunctionName) == 'function') yourFunctionName(); Nathan

Re: [jQuery] Get Value. Please, is kind of urgent. Thanks.

2010-01-12 Thread Nathan Klatt
Like so? if (GBrowserIsCompatible()) { var gmapsUrl = "/Google/Map"; if ($("#Place").val()) gmapsUrl += "/"+$("#Place").val(); $.getJSON(gmapsUrl, Initialise); }

Re: [jQuery] getScript - Site does not finish loading?

2010-01-12 Thread Nathan Klatt
er?id='+get_url_param('id'), function() { jQuery('#counterfu_online_count').text(count); if (getCounterCount < 2) getCounter(); }); } Nathan

Re: [jQuery] Re: long-term browser support strategy

2010-01-11 Thread Nathan Klatt
gt; That is a sensible decision Anyone clinging to IE6, at this point, has gone wy beyond not leading the way! Nathan

Re: [jQuery] Re: can anchor tag be used in jquery to define areas

2010-01-11 Thread Nathan Klatt
is check for the hash in the URL then, if I find one, call $("#"+tabFromHash).click(). Nathan

Re: [jQuery] The form is not submitted onKeyDown

2010-01-07 Thread Nathan Klatt
mit if it's successful, a la: if (validator.form()) $("#myform").submit();. Nathan

Re: [jQuery] Need your opinion you ALL!!!

2010-01-07 Thread Nathan Klatt
> Someone wants me to use FULL DIRECTORY PATHS for every page Assuming you're generating your html on the back-end, just use a variable for the base URL and no worries. Stict with UNIX through the learning curve and I guarantee you'll never go back, at least not voluntarily. :) Nathan

Re: [jQuery] Another "Why doesn't this work in IE"

2010-01-04 Thread Nathan Klatt
Then I'd say you ought to try making the load the callback of the post and see if that works, something along the lines of: $("#TOAppr").live("click", function() { $.post("webapps/hr/admin/actions/act_adminHR_handler.cfm", { desc: $(this).attr('desc'

Re: [jQuery] Another "Why doesn't this work in IE"

2010-01-04 Thread Nathan Klatt
Is it okay if the load happens immediately after the data is posted? Or will it be loading something based on the DB actions having been successful completed? As it is it's not waiting for the post to complete before issuing the load. Nathan

  1   2   >