[jQuery] Re: caching result of selector in object, reusing

2009-09-16 Thread pantagruel
Never mind, it should have been obvious, the object properties weren't in my document.ready On Sep 16, 10:31 am, pantagruel wrote: > Hi, > > I have some selectors - an example would be $("#LinkToPreviousHit") > all of which work fine when used directly. > >

[jQuery] caching result of selector in object, reusing

2009-09-16 Thread pantagruel
Hi, I have some selectors - an example would be $("#LinkToPreviousHit") all of which work fine when used directly. If I use it to toggle the class, which also works, I might do - $("#LinkToPreviousHit").attr({"class": "activeNavButton"}); since I am using my selectors in multiple places I figur

[jQuery] Get following rows in a table until id not match certain pattern

2009-07-16 Thread pantagruel
Hi, I have a situation where a user clicks on something in a particular table row which should cause all following rows in that table that have a particular format of id to toggle visibility.. so for example click here...rest of row data ... ... ... click here...rest of row data

[jQuery] jquery prompt replacement

2009-07-01 Thread pantagruel
Hi, I've seen a number of jquery prompt replacements that allow you to have a customizable prompt of some sort but none that allow you to actually use it the way a prompt is normally used - that would say var x = prompt("please enter your value"); alert(x); Is there anything like that? If not -

[jQuery] Re: using replaceWith to overwrite a stylesheet, dynamically set styles

2009-02-17 Thread pantagruel
Ok, I solved the problem with using !important on the rule. But after some more looking at the technique it is probably better to use script insertion anyway. On Feb 17, 7:38 am, pantagruel wrote: > Hi, > > I want to do the following: > function CheckCurrentDataStream(){ > wi

[jQuery] Re: using replaceWith to overwrite a stylesheet, dynamically set styles

2009-02-17 Thread pantagruel
page load. The current browser I'm testing on is Firefox. On Feb 17, 7:38 am, pantagruel wrote: > Hi, > > I want to do the following: > function CheckCurrentDataStream(){ > window.setTimeout ("CheckCurrentDataStream()", 2); > $("#statuscss").rep

[jQuery] using replaceWith to overwrite a stylesheet, dynamically set styles

2009-02-16 Thread pantagruel
Hi, I want to do the following: function CheckCurrentDataStream(){ window.setTimeout ("CheckCurrentDataStream()", 2); $("#statuscss").replaceWith(''); } The css I'm getting either is empty or it has a style in it changing the color of a certain link to let people know that there is waiting d

[jQuery] Re: how to catch mouse click if it is also an onblur event

2009-02-13 Thread pantagruel
Never mind, obviously should just catch the onmousedown. On Feb 13, 9:47 pm, pantagruel wrote: > I hope the above is clear. I have an click event that should be > happening at the same time that a blur event is happening (by clicking > on a link in a menu I am blurring the input fie

[jQuery] how to catch mouse click if it is also an onblur event

2009-02-13 Thread pantagruel
I hope the above is clear. I have an click event that should be happening at the same time that a blur event is happening (by clicking on a link in a menu I am blurring the input field) which event puts the display of the menu to none. It seems that when I do this however despite it is the click

[jQuery] Re: selector to return the number of rows in a table before the row I just selected

2009-02-10 Thread pantagruel
> >  rowsBefore = row.rowIndex; Ok, but jQuery("#activator" + input).parent().parent(); selects the row, but when I try to get rowIndex of that selected row I get undefined back. var trow = jQuery("#activator" + input).parent().parent(); alert(trow.attr("class")); // the class of my row alert(

[jQuery] selector to return the number of rows in a table before the row I just selected

2009-02-08 Thread pantagruel
Hi, I am selecting the row of a table. I would like to be able to count how many rows there are in the table before the row I just selected. i suppose there is a jQuery selector that will do this. Thanks

[jQuery] selector finds element but changing css has no effect?

2009-02-04 Thread pantagruel
Hi, I have a div that is inside a td. My code is the following fragment: var currentelement = jQuery("#" + activecolid); var selectedcontent = jQuery("#" + activecolid).find ("div.contentdisplay"); alert(currentelement.html()); alert(selectedcontent.html()); selectedcontent.css({border: "10px s

[jQuery] Re: newbie: autocompletion using hidden data inline in document

2009-01-28 Thread pantagruel
Hi, Ok solved my problem. Using methods shown here: http://www.mattryall.net/blog/2008/07/jquery-filter-demo Cheers, Bryan Rasmussen On Jan 28, 12:06 pm, pantagruel wrote: > Hi, > > I have something like the following (fragment but shows context): > > var currentActiveCom

[jQuery] newbie: autocompletion using hidden data inline in document

2009-01-28 Thread pantagruel
Hi, I have something like the following (fragment but shows context): var currentActiveCommands = jQuery("#menudiv ul li.runnable").find ("a.c"); var len = currentActiveCommands.length; var resulthtml = ""; var field = document.getElementById("run_command"); var currentidtoclick =""; var displ

[jQuery] scrolling page when mouse at edge.

2009-01-08 Thread pantagruel
Hi, somewhat off-topic, but jQuery is the javascript library I've chosen... I have a menu that is longer than the page. When I go down this menu with the mouse I would like the page to scroll in the same direction and speed as the mouse. I guess scrolling should actually only happen if I get at

[jQuery] multi-class display toggling

2008-12-21 Thread pantagruel
Hi, I have a menu of links that have multiple classes, for example xObject yObject zObject. I want to dynamically toggle display on elements of this menu dependent on classes, for example lets suppose I have three links: link1 has the classes xObject and yObject link2 has the classes yObject and

[jQuery] newbie: making a sortable table by some hidden value

2008-12-04 Thread pantagruel
Hi, I would like to sort a table a number of table rows by values inside hidden form elements inside cells of the table. These form elements can represent different 'datatypes' (I put datatypes in quotes because the types my application defines aren't necessarily always the classic types one migh

[jQuery] navigating through checkboxes like in gmail

2008-12-03 Thread pantagruel
Hi, Originally posted to Jquery-ui: I was just wondering if anyone had already made anything similar to gmail's interface where you can navigate between the checkboxes in an application via keys, for example k selects the preceding checkbox, j selects the next? I'm supposing there is already an