[jQuery] Re: tablesorter line numbers

2010-01-25 Thread jay
Is there any way to get the following code to refresh after every sort? The < $("#myTable").each(function(){ > numbers it, and if I replace it with < $("#myTable").bind("sortEnd",function(){ > it just adds a new numbered row after every sort (three sorts gets you three columns of numbers). -

[jQuery] Re: mouseover highlighting rows using tablesorter plug-in

2010-01-15 Thread jay
Hey, I've got my table set up. The rows all work backwards and forwards, and I've got the columns disabled that I want disabled. But I have searched and tested and I can't find any method of mouseover highlighting that works. For some reason, addClass and removeClass don't seem to work. I know jus

[jQuery] Re: image refresh problem due to browser cache

2009-11-13 Thread Jay
earthcam.com/ec_metros/newyork/newyork/lindys.jpg?refre...[random_number]"; > > for [random_number] try generating a random number using javascript > then putting it there. I have heard that passing a query string can > trick browsers into thinking it is a different file. > > On Nov

[jQuery] image refresh problem due to browser cache

2009-11-12 Thread Jay
I am trying to display a image on my website. The image always has the same file name, but the content will change each time it is requested. I use the following code to refresh it on my web site, but it only works with Firefox. Is there any better way to do it? Simple Page

[jQuery] Overriding default checkbox behavior

2009-08-16 Thread Jay
Hello, I'm working on an application wherein I have a checkbox that triggers an ajax call to update a database. Should the database operation fail, I want the checkbox to retain its old state. I'm having trouble making this work. The closest I've gotten is that if I bind the 'click' event of t

[jQuery] Superfish not embedding

2009-08-06 Thread Jay Sarn
This site: [url]http://www.prodigytech.com[/url] I'm having problems with embedding the Superfish vertical menu. anything found underneath it actually extends to under the superfish menu. couldn't find where in the css it might help. thanks!

[jQuery] How to simulate a human-triggered event?

2009-06-16 Thread Jay
Hi, I'm trying to change the value of an input field (target) which depends on another input (source). It works well when I manually change the source value. But if I changed the source value with another button, the target value remains the same. Here's the code... $(document).ready(function() {

[jQuery] Re: .each - how to write in my code?

2009-04-12 Thread jay
inside the each you need to reference "this" or "$(this)" instead of referencing all of the elements again. On Apr 12, 11:38 am, adesign wrote: > Hello, > > I am very new to jQuery and don´t know how to write my code for every > item. > > Here is my code for a list with hover functions, I would

[jQuery] Re: replacing entire html node & having jquery trigger document.ready again for new content

2009-04-12 Thread jay
Is the document not ready after innerHTML is set? I'd imagine there would be circumstances where different browsers would behave differently with styling of certain DOM elements, but I imagine you could special case those situations. On Apr 12, 10:31 am, "e.sand" wrote: > So far I've been able t

[jQuery] Re: Dragable Limit

2009-04-10 Thread jay
It would be fairly trivial to roll your own drag-drop plugin, and this way you can have better control of the characteristics. For general info on how drag-drop works in javascript (in the event that you don't already know) I have found this web page invaluable (it is the first link that pops up

[jQuery] Re: How do get the ID of an element that has been clicked ?

2009-04-10 Thread jay
A live handler is different from a normal handler, and I'm not sure why you're putting a normal handler inside of a live handler. A live handler works by looking at the target of whatever is clicked and comparing it to the selector, in this case, the thumbnail class. I personally prefer to use l

[jQuery] Re: How do get the ID of an element that has been clicked ?

2009-04-10 Thread jay
$('div').click(function(){ alert(this.id); }); On Apr 10, 8:46 pm, thought wrote: > Hi all. > This might be more of a javascript problem rather than a jquery > problem, > but I'm also wondering if there is a 'jquery way' of solving it. > > Given this code: > > > > > > > Lets say that the

[jQuery] Re: Endeavour: translating X-Library functionality "click-n-drag checkboxes" into Jquery

2009-04-10 Thread jay
e > > checkbox). I was also trying to follow cross-browser.com's way of > > listening to the mousedown on the cell containing the checkbox rather > > than on the checkbox itself, making the whole click-drag thing a lot > > more user-friendly. > > > On 10 Apr,

[jQuery] Re: jcarousel and text below image

2009-04-10 Thread jay
with ASP. > > > Could you be so kind to tell me where I would place this code in the > > code that I supplied ? > > > I managed to get this working by changing things and refresh. Takes me > > a long time, but I learn.... > > > If you could tell me where to PLACE THIS

[jQuery] Re: jcarousel and text below image

2009-04-10 Thread jay
If you want it directly below the image the easiest thing to do would be to position it absolutely to this position when you hover over the image. Something like this might work: div = $("blah") jcarousel.find("img") .hover( function(){ div.css({display:'block',position:'absolute',left:$(this)

[jQuery] Re: jquery treeview menu problem

2009-04-10 Thread jay
Can you post an example? I'm not sure I understand your question. On Apr 10, 5:23 am, Titti wrote: > Hi, i'm using jquery treeview > (http://bassistance.de/jquery-plugins/jquery-plugin-treeview/ > ) menu in my website and i have a little problem: when i open a page > from the menu tree,  menu e

[jQuery] Re: Error with BlockUI: 'parentNode' is null or not an object

2009-04-10 Thread jay
Why not just surround it in: if (node){ ..code that uses a non-null node } On Apr 10, 3:59 am, mikemad wrote: > I'm getting the error "'parentNode' is null or not an object" when > using BlockUI (Latest version and latest Jquery). I'm also using > Microsoft AJAX.NET. I'm blocking on an element

[jQuery] Re: how to avoid load jquery several times?

2009-04-10 Thread jay
You can check the version with $().jquery. You can remove all instances of jquery from the current page using something like this: if(jQuery) $('script[src^=jquery]').remove(); There is also the noConflict method which might help. On Apr 10, 1:44 pm, "ihomest...@gmail.com" wrote: > Hi, > > Is

[jQuery] Re: Endeavour: translating X-Library functionality "click-n-drag checkboxes" into Jquery

2009-04-10 Thread jay
Just curious.. What is the difference between mouseover.dc and mouseover? On Apr 10, 1:44 pm, Ricardo wrote: > This (untested) is how I envision the code for that: > > $.fn.dragCheck = function(){ >   //this == the current jQuery element >   return this.each(function(){ > >     //this == current

[jQuery] Live events within plugin question

2009-04-10 Thread jay
I'm working on a multiselect plugin that uses only live events, and the way it works is the select element gets replaced by an input and div element. I would like to supply a callback function where the callback is tied to the input element. Is using the "data" method to store the callback the b

[jQuery] Re: Orphan nodes

2009-04-09 Thread jay
'</select>'; //$('#selectBin').find('select').multiSelect(); $('#selectBin').find('select').myPlugin(); } function Remove(){ $('#selectBin').find('select').unbind('click') $('#selectBin').empty

[jQuery] Orphan nodes

2009-04-09 Thread jay
Is there a general rule of thumb to avoid orphan nodes? I'm using a multiselect plugin which I'd like to be able to remove from the DOM but it is creating orphan nodes in IE and the nodes are not removed according to sIEve. I suspect it is the order that the elements are removed from the DOM, but

[jQuery] Re: IE7 memory leak solution

2009-04-08 Thread jay
I've added similiar functionality to the remove and empty methods to fix this bug. I know dojo does something similiar. Also I've noticed that it still causes leaks if the content you load has script in it. For example: On Mar 9, 4:33 pm, mif86 wrote: > Hi. > Update on the IE7 memoryleakprobl

[jQuery] Re: Array of all checked checkboxes

2009-03-27 Thread jay
Simple example: var checked = $('.cbx:checked'); alert(checked[0].id+", "+checked[1].id) On Mar 27, 3:55 pm, Thierry wrote: > I have a series of checkboxes with class="the_checkbox".  I can get > all checkboxes by classname and manually loop through each to find out > the chec

[jQuery] Re: iframe ang jQuery

2009-03-27 Thread jay
It doesn't matter what is used to generate the (x)html/css. Just set the src of the iframe to the URL and it should work. On Mar 27, 3:47 pm, themba wrote: > Hi Guys is it possible to embed a php website on an asp website using > jQuey or is possible to create a dynamic height iframe for embedd

[jQuery] How to drag link from another window and using the javascript in the main window to intercept the link and add customized handler?

2009-03-16 Thread Jay W
How to drag link from another window and using the javascript in the main window to intercept the link and add customized handler? The goal is to have an event handler in the main window, then whenever a new link from different browser window is dragged into the main window, the dropped link will

[jQuery] How to use superfish menu style

2009-02-26 Thread jay
Dear All, Please help me in installing and using superfish menu in my website. I downloaded the file but I don't know how to make it work in my website for the menus. Thanks in advance Jay

[jQuery] Re: Access DOM cross-domain

2009-02-09 Thread jay
? On Feb 9, 4:29 pm, Ricardo Tomasi wrote: > Why not simply use escaped plain text? > > On Feb 9, 6:04 pm, jay wrote: > > > I'm playing around with writing a server-side script that generates > > JSONP from content that is downloaded by the script (URL is passed to

[jQuery] Access DOM cross-domain

2009-02-09 Thread jay
I'm playing around with writing a server-side script that generates JSONP from content that is downloaded by the script (URL is passed to script from querystring). Is there a better way to do it than to encode it as base64, or is there a work-around that doesn't require any server-side code? I'm

[jQuery] Re: Cross domain Ajax without Proxy

2009-02-06 Thread jay
I tested it and it works cross-domain with IE7 and FF3. It appears to send the data URL encoded inside the CSS like so: #cr0 { background: red url(http://cssrpc/%3Ch1%3EResult%20from%20CSS %201%3C/h1%3E); } #cr1 { background: blue url(http://cssrpc/%3Cp%3EThis%20is%20lorem%20ipsum %20in

[jQuery] Re: Performance suggestion: Use object hash instead of regexp

2009-02-03 Thread jay
I imagine a switch is the same speed as a hash (switches generally evaluate to a hash). Using a trie structure could be faster than regex in some circumstances I imagine: http://en.wikipedia.org/wiki/Trie On Feb 3, 12:45 pm, Eric Garside wrote: > In that case, wouldn't a switch statement have

[jQuery] Re: A general question about troubleshooting Jquery

2009-01-28 Thread jay
you can also debug javascript with visual studio On Jan 28, 2:37 pm, Vaughn wrote: > I'm new to Jquery, but one thing I'm having trouble with is > troubleshooting my code. > > For example, I have a page, and things work until I perform a certain > action. > > No errors result, inspecting the gen

[jQuery] Re: $.Ajax giving problem in IE

2009-01-28 Thread jay
can u post your code? On Jan 28, 10:41 pm, AbhishEk wrote: > Hi, > > i have a page on which i have used$.ajax for asynchronous call which > works quite f9 in firefox but it is not working in IE .. > > Plz help > abhishek

[jQuery] Re: how to use onfocus event with jQuery ?

2009-01-28 Thread jay
http://docs.jquery.com/Events/focus On Jan 28, 9:28 pm, Alex wrote: > hi all, > >      i'm new to jQuery,    how to use onfocus event with jQuery ? > >      Could you give me a demo ? > >      Thank you! > > Alex

[jQuery] Re: Can jQuery calculate "CSS Width/Height"

2009-01-28 Thread jay
with 1.3.1 I'm able to get pixel measurement from percent with no problem. example: test alert($("#d1").width()); alert($("#d2").width()); alert($("#d3").width()); alert($("#d4").width()); On Jan 28, 12:17 pm, Kevin Da

[jQuery] Re: Is .parent() only one level up?

2009-01-28 Thread jay
> > The key is I'm trying to understand how to stop having to write > traversing like this: > > $(this).parent.().parent().prev().prev().prev().children("p.example"); > > If you see what I'm getting at? > > On Jan 28, 11:42 am, jay wrote: > > > > &g

[jQuery] Re: How to wait for load() to finish executing

2009-01-28 Thread jay
This could be accomplished using a synchronous xmlhttp call (does jQuery even support this?), or you could put a while loop before the return true to poll a variable that is set in the callback. You would probably want to set the variable if there is an error as well so that the browser doesn't fr

[jQuery] Re: $('#list').unbind().html('') -- redundant?

2009-01-28 Thread jay
html('') calls empty() so starting with 1.2.2 it will also remove all event handlers and internally cached data. On Jan 28, 11:48 am, René wrote: > I have a dynamically generated a long list of items with events bound > to them. I was wondering, when I clear the list, or replace it, is it > nec

[jQuery] Re: Is .parent() only one level up?

2009-01-28 Thread jay
http://docs.jquery.com/Traversing/closest On Jan 28, 12:39 pm, kgosser wrote: > Hello, pretty noob question here. I have this example: > > >     >       >           Example >           >       >     > > > Now let's say there's this jQuery: > > $("input").click(function(){ >    $(this).paren

[jQuery] Re: Is .parent() only one level up?

2009-01-28 Thread jay
I think the method you are looking for is closest On Jan 28, 12:39 pm, kgosser wrote: > Hello, pretty noob question here. I have this example: > > >     >       >           Example >           >       >     > > > Now let's say there's this jQuery: > > $("input").click(function(){ >    $(thi

[jQuery] feedback for alert replacement plugin

2009-01-28 Thread jay
I wrote a quick plugin to replace alert (I didn't like that I couldn't copy and paste from the alert window, and that it was modal). I decided to use window.open instead of absolute divs to show it. I've also used toJSON plugin for when an object is passed in. Faced a couple of problems with ge

[jQuery] Re: what would be the opposite of top.frames as a jquery selector context?

2009-01-27 Thread jay
This seemed to work on FF and IE: $('#myiframe')[0].onload=function(){ $("body",frames.frmName.document).html('test') } On Jan 27, 3:36 pm, jquertil wrote: > If i want to do something in a parent frame, I would do this: > > $('#myDiv', top.document).hide(); > > but what about this following

[jQuery] Re: what would be the opposite of top.frames as a jquery selector context?

2009-01-27 Thread jay
the $(frames.frameName.document).ready is not actually working on firefox.. you would probably have to put $(document).ready in the src page and poll it to see if the document is actually ready On Jan 27, 4:27 pm, jay wrote: > Look at the test case I made here and let me know if it he

[jQuery] Re: what would be the opposite of top.frames as a jquery selector context?

2009-01-27 Thread jay
Look at the test case I made here and let me know if it helps: http://jquery.nodnod.net/cases/73 On Jan 27, 3:36 pm, jquertil wrote: > If i want to do something in a parent frame, I would do this: > > $('#myDiv', top.document).hide(); > > but what about this following scenario? I'm inside a fra

[jQuery] Re: Losing event handlers when appending same element multiple times

2009-01-27 Thread jay
> you've described here. It's also nice to be able to excise my event > declarations from my dom manipulations. > > Again, I can't think of a situation where your method would be better > in any way than using a live event. > > On Jan 27, 11:37 am, jay wrote:

[jQuery] Re: Losing event handlers when appending same element multiple times

2009-01-27 Thread jay
of course if there are other things that may need to be customized about the event(s) in question it might make more sense to pass in an options object. On Jan 27, 11:30 am, jay wrote: > I thought the point was to avoid the each()?  What's wrong with: > > $('ul li').app

[jQuery] Re: Losing event handlers when appending same element multiple times

2009-01-27 Thread jay
round your elements around and not apply new styles, > just: > > $('ul li').each(function(){ >    $(this).append($('Click me!').click(function(){})) > > }); > > On Jan 27, 11:14 am, jay wrote: > > > > > It's not that I prefer it.  I think

[jQuery] Re: Losing event handlers when appending same element multiple times

2009-01-27 Thread jay
> $('ul li span').live('click', function(){}); > $('ul li').append('Click me'); > > The live syntax is, at least in this example, shorter, more efficient, > cleaner, and easier to use. Perhaps it's just that I'm not > understand

[jQuery] Re: UI Dialog Position Based on Link Position

2009-01-27 Thread jay
Also will want to compare position of mouse to width of window and if the difference is less than the width of the dialog then position tooltip to right, else to the left Here is the link for the width() property: http://docs.jquery.com/CSS/width On Jan 27, 9:45 am, Adam wrote: > I'd like to op

[jQuery] Re: Losing event handlers when appending same element multiple times

2009-01-27 Thread jay
should be an optional boolean passed to the event > > handlers to specify carrying over event handlers like there is with > > the clone() method? > > There is. That's exactly what live() does. You just define it before > runtime. > > On Jan 27, 10:06 am, jay wrote: &

[jQuery] Re: Losing event handlers when appending same element multiple times

2009-01-27 Thread jay
It actually makes sense, because you've only created one element here: var handle = $('Click me'); By doing append() on a set of elements using this one element, it may be implying you would like to clone this element for the elements after the first one, but it's not completely obvious. Someth

[jQuery] Re: Passing an HTML page fragment as an Ajax XML field

2009-01-27 Thread jay
You could also try changing to instead. For example this worked in firefox but not IE: City of LondonLondon is on the River Thames var frag = $("frag").children(); $("#myid").after(frag); When I switched frag to span, for example, it worked. On Jan 27, 7:29 am, JS London wrote:

[jQuery] Re: Passing an HTML page fragment as an Ajax XML field

2009-01-27 Thread jay
You could do it this way: http://docs.jquery.com/Ajax/load You can pass a selector to load() to pick what you want from the response. On Jan 27, 7:29 am, JS London wrote: > Hi, > > I would like to pass an fragment of HTML as a field in my Ajax > response and then insert this into the DOM. For

[jQuery] Re: Implementing a Knob Control

2009-01-26 Thread Jay Abdal
To add canvas support to IE you can use the following script (slower, but works): http://code.google.com/p/explorercanvas/ On Mon, Jan 26, 2009 at 2:41 PM, Eric Garside wrote: > > Canvas is probably the most elegant way to go, especially given the > type of knobs you want. My suggestion is to

[jQuery] Re: Continuing to Seek Rounded Corners on Absolutely Positioned Elements that Work in IE7

2009-01-26 Thread Jay Abdal
could this be why?: "Note that if gradients are used, you will need a "min-height" (or fixed height) rule on the body of the dialog. If these examples appear *funny at the bottom*, it is because they do not enforce the min-height rule." On Mon, Jan 26, 2009 at 12:33 PM, Vik wrote: > > The latest

[jQuery] Re: jquery not working at all after upgrade to 1.3.1

2009-01-26 Thread Jay
Yes, and on top of that I put an alert in the jquery-1.3.1.js to see if it was finding the file correctly and it is, I got the alert before the page loaded. On Jan 23, 8:20 pm, Mike Alsup wrote: > > This is the same error I get when I was building the app and the id, > > gid3 in this case, did

[jQuery] Re: Can JQuery solve the iframe height=100% problem?

2009-01-24 Thread jay
html,body{height:100%} sometimes works.. try googling it.. getting height 100% for any element is a common problem.. On Jan 24, 8:15 pm, "laredotorn...@zipmail.com" wrote: > Hi, > > I'm trying to get my iframe to occupy 100% of its parent block > element.  But the height=100% attribute in CSS is

[jQuery] Re: Scale effect and hover

2009-01-24 Thread jay
i was looking for! > Thanks too Jay and Mauricio, but i was looking for something more > scalable, for tons of thumbnails, with centered position scale! > Anyway, is there a way to execute just one time a function within the > hover event? (and no repeated multiple times during the hover stat

[jQuery] Re: Odd dialog bug

2009-01-24 Thread jay
I've used negative values on IE7 before.. Is a different DOCTYPE possible? On Jan 24, 7:42 am, Mike Alsup wrote: > > $('#' + popupId).dialog({ > >                                 autoOpen:               true, > >                                 resizable :     false, > >                        

[jQuery] Re: AJAX data in IE

2009-01-24 Thread jay
When I click any of the links I get jQuery undefined script error line 119 in IE On Jan 24, 8:20 am, Charlie22 wrote: > sry it didnt work, because console.log there.. > > On 24 Led, 14:12, Charlie22 wrote: > > > > > thx for tip, but no success. Try to check this > > page..http://83.240.47.84/s

[jQuery] Re: trying to get parent frame from mouse event

2009-01-23 Thread jay
self.name On Jan 23, 8:29 pm, jquertil wrote: > whats the best way to find the frame name of a click event? > > in FF I managed to do this: > > $('#'+e.view.name, top.document) > > but > > e.view.name is "undefined" in IE.

[jQuery] Re: Text Manipulation

2009-01-23 Thread jay
Something like this should work: str = $(textinput).val(); $(textinput).val( str.substr(0,str.indexOf("@")) ); On Jan 23, 7:51 pm, whtthehecker wrote: > Hi, > > I'm trying to create a sign up form where after the user inputs their > email address when they click or tab down to the next field

[jQuery] Re: Recursion issue with nested lists.

2009-01-23 Thread jay
You could try using a regular expression to exclude xml tags.. of course you would need something that gives more info than text().. I'm not sure what the function is for xml.. perhaps html() or contents() will work On Jan 23, 6:01 pm, Nicholas wrote: > For a short summary on my issue, all that

[jQuery] Re: UI/Accordion - Possible to deep-link?

2009-01-23 Thread jay
something like this might work: $(document).scrollTop(getRealTop(accordian)); function getRealTop(el){ yPos = document.getElementById(el).offsetTop; tempEl = document.getElementById(el).offsetParent; while (tempEl != null) { yPos += tempEl.offsetTop; tempEl = tempEl.offsetParent; } return yPos;

[jQuery] Re: Scale effect and hover

2009-01-23 Thread jay
this works for me.. style is bad though sorry had to do it quick: something $(function(){ scaleImg = $("#scale_img"); scaleImg.w = scaleImg.width(); scaleImg.hover(function(){ scaleImg.width(scaleImg.w*2); }, function(){ scaleImg.width(scaleImg.w); }); }); On Jan 23, 4:44 pm, "-=A

[jQuery] Re: Reload Part of a Page

2009-01-23 Thread jay
just reload it with whatever is in the data variable. $("#myUL").html (data) will do the trick assuming your data is just html like "12" On Jan 23, 12:46 pm, Good Knight wrote: > Is there an easy way to reload a section of a page? > > I have a .post() that updates the contents of an unordered l

[jQuery] Re: id question

2009-01-23 Thread jay
based on this wouldn't the syntax be alert($('#id\\{0\\}___').val ()); ? On Jan 23, 5:19 pm, "Mauricio \(Maujor\) Samy Silva" wrote: > You must escape properly weird characters in ID values. > Have a look > at:http://docs.jquery.com/Frequently_Asked_Questions#How_do_I_select_an_... > > Maurício

[jQuery] Re: Slide Toggle Question

2009-01-23 Thread jay
I get javascript errors in IE, and the images overlap the content in firefox.. what am I looking for exactly? On Jan 23, 3:03 pm, Christian wrote: > Hey everyone. > > I'm still a bit new to the whole jQuery world.  I love what I've seen > so far, and it seems fairly simple to implement on a site

[jQuery] Re: id question

2009-01-23 Thread jay
I would assume that it doesn't like the \{0} part.. is this server- side code or something? On Jan 23, 4:56 pm, gvangass wrote: > Hi > > Is there a reason why: alert($('#id\{0}___').val()); > not displaying the value, also no error with Firebug > > but > > alert(document.getElementById("id{0}___

[jQuery] Re: Highlight onKeyUp using Cursor Keys

2009-01-23 Thread jay
which element was selected, I have to check for > its background?  Is that right? > > On Jan 23, 4:49 pm, jay wrote: > > > > > You could write something yourself fairly easily.  Just update the > > backgroundColor css property when you press the up/down keys on your

[jQuery] Re: Highlight onKeyUp using Cursor Keys

2009-01-23 Thread jay
The code is a bit overwhelming for just the highlight functionality. > Thanks anyway. > > On Jan 23, 4:17 pm, jay wrote: > > > > > Here is a jquery autocomplete plugin I googled and seems to do what > > you want: > > >http://www.pengoworks.com/workshop/jquery

[jQuery] Re: Highlight onKeyUp using Cursor Keys

2009-01-23 Thread jay
Here is a jquery autocomplete plugin I googled and seems to do what you want: http://www.pengoworks.com/workshop/jquery/autocomplete.htm On Jan 23, 4:00 pm, bittermonkey wrote: > How do I initialize a hover on a tag using cursor keys in > jQuery?  It's similar to how google highlights its auto

[jQuery] Re: getting to a variable in the parent frame - stumped

2009-01-23 Thread jay
That makes sense. I think you just need document if you need to access the other frame's DOM tree. On Jan 23, 4:04 pm, jquertil wrote: > oh! I got it. thanks Jay, your suggestion gave me the hint I needed to > figure it out. > > removing var did 1/2 the trick, the second 1/2

[jQuery] Re: getting to a variable in the parent frame - stumped

2009-01-23 Thread jay
perhaps you need to do this.module = {...}? Doing var module makes it "private" I believe On Jan 23, 3:31 pm, jquertil wrote: > I'm using frames (don't ask) and have exhausted my abilities > (sniff)... here is some pseudo-code to illustrate the situation: > > first, CONT

[jQuery] Re: neccessity of binding update after adding html dynamically

2009-01-23 Thread jay
click attribute.. but then that wouldn't be the jQuery way.. On Jan 23, 1:29 pm, aldana wrote: > yes this was it. > > when not using html() and setting values with "normal" dom-operations > instead I wouldn't need to rebind, correct? > > > > > &g

[jQuery] Re: If object wrapped, parents can't be found?

2009-01-23 Thread jay
This worked for me: $(function(){ $("#myEl").wrap("").parents().each(function(){alert (this.tagName)}) }); something On Jan 23, 1:24 pm, Nic Hubbard wrote: > I ran into a strange problem which too me a while to figure out what > was going on.  I used the .wrap() function

[jQuery] Re: jquery not working at all after upgrade to 1.3.1

2009-01-23 Thread Jay
nt) > > }); > > Same with the unload in the body tag. > > $(document).unload(function(){ >   $('#gid3').flexDestroy();} > > On Jan 23, 9:04 am, Jay wrote: > > > Unfortunately, no, classified type site.  Here is code though with > > details removed that may be

[jQuery] Re: Query on jQuery object?

2009-01-23 Thread jay
That makes more sense.. children() will only do immediate descendents. You could also do mydiv.find(expr) as well I suppose. On Jan 23, 1:04 pm, Eric Garside wrote: > var mydiv = $('#mydiv'); > $('.childdiv', mydiv).css('font-weght', 'bold'); > > On Jan 23, 12:57 pm, corb wrote: > > > > > This

[jQuery] Re: Query on jQuery object?

2009-01-23 Thread jay
Would mydiv.children("#childdiv").css("font-weight", "bold"); work? On Jan 23, 12:57 pm, corb wrote: > This may obvious, but I haven't seen any examples that fit what I'm > trying to do. In many places in my code, I will select an element once > into a var and make necessary changes. What I can'

[jQuery] Re: neccessity of binding update after adding html dynamically

2009-01-23 Thread jay
If you do: $(anyElement).html("blah"); then you will need to do: $('#bla').bind("click",function(){.}); after the html() call. Does this answer your question? On Jan 23, 11:30 am, aldana wrote: > I am binding elements inside document.ready(): > $('#bla').bind("click",function(){.});

[jQuery] Re: jquery not working at all after upgrade to 1.3.1

2009-01-23 Thread Jay
Unfortunately, no, classified type site. Here is code though with details removed that may be problematic. There are 2 function using jquery, flexigrid, and a function I wrote called flexDestroy. This is the same error I get when I was building the app and the id, gid3 in this case, did not exis

[jQuery] Re: Events. .click() vs. .onclick

2009-01-23 Thread jay
Are you including any other js files? Perhaps it's confused about $. Try a simple html file like this: $(function(){ $("#elementID").click(function(){alert('clicked')}); }); asdf On Jan 23, 10:20 am, KidsKilla wrote: > Hi everyone! > I have a problem with binding events in jQuery. I di

[jQuery] jquery not working at all after upgrade to 1.3.1

2009-01-23 Thread Jay
I have various jquery apps. In 1.3.1 I get the error "$ ('#id3').functionName is not a function. I switch to 1.2.6 and everything works fine. Anyone else running into this?

[jQuery] Re: TableSorter, Turning Sort Off

2009-01-23 Thread jay
I amend what I said. A hashtable is not necessary for going from row number to unique id, an array is fine. Going from unique id to row number, however, is necessary. On Jan 23, 11:16 am, jay wrote: > If you just postback the page, the table should be restored to the > original

[jQuery] Re: TableSorter, Turning Sort Off

2009-01-23 Thread jay
If you just postback the page, the table should be restored to the original state. Otherwise, if you have a unique id for each row you could try creating a hash table which returns the unique id based on the row number (create the hash table when page is first loaded). Then you could just loop th

[jQuery] Re: sd

2009-01-23 Thread jay
qwert On Jan 23, 7:10 am, Agile Consulting wrote: > asd

[jQuery] Re: Events. .click() vs. .onclick

2009-01-23 Thread jay
this should work: $("#elementID").click(function(){alert('clicked')}); On Jan 23, 10:20 am, KidsKilla wrote: > Hi everyone! > I have a problem with binding events in jQuery. I didn't figured out > why, but when i'm tryin to bind a callback to links ( $(elm).click > (function() ), it doesn't wor

[jQuery] General drag drop question without UI plugin

2009-01-23 Thread jay
Is there a way to determine a drop container without looping through each container and comparing absolute positions? This is the only solution mentioned in this article: http://www.webreference.com/programming/javascript/mk/column2/2.html I don't want to have to move the item being dragged out

[jQuery] Re: Unable To Traverse From an XML Ajax Response

2009-01-22 Thread jay
Perhaps "table" is case-sensitive? On Jan 22, 3:53 pm, bittermonkey wrote: > Hi, > > I need to know where I am doing wrong.  The ALERT message in my jquery > code doesn't seem to get hit when I put a breakpoint in firebug.  The > plan is to loop through all the Elements in the XML response > an

[jQuery] Re: Split data grid

2009-01-22 Thread jay
I think you can just do something like this to freeze the table header element: $("table th").css("position","relative"); Not sure how well it works across browsers. I had issues with this on IE7 when I later tried to resize the overflow:scroll div. On Jan 22, 11:15 am, Mandrake wrote: > I've

[jQuery] Re: Jquery tree menu Ul Li Ul

2009-01-22 Thread jay
You can store information in a hidden input field (or fields) across postbacks (stores text only). Reference this field when the document gets loaded to either render your menu the way it needs to be rendered, or to adjust its state to reflect the state that was saved. This is how ASP.NET manages

[jQuery] Re: $.ajax timeout and trouble with Microsoft IIS 6

2009-01-22 Thread jay
Perhaps the cache:false option is necessary? It adds a timestamp to the end of the querystring. The browser may be caching the request and therefore not showing potential errors. But then that wouldn't explain the descrepency between apache and iis. On Jan 22, 11:55 am, Stefano Corallo wrote:

[jQuery] Re: Index of Parent TD

2009-01-22 Thread jay
Here's an example using the index() function: 0.. 1.. 2.. 3.. 4.. test = $("td.test"); alert( $("tr td").index( test ) ) test = $("td a#linkID").parent(); alert( $("tr td").index( test ) ) On Jan 22, 10:58 am, Aarron wrote: > Hi there, > > I have a link which sits inside a td within

[jQuery] drag and drop fileupload with jquery

2009-01-04 Thread Jay
hi there, is a drag and drop fileupload with jquery possible? are there existing plugins? thanks in advance jay

[jQuery] Re: xml find element with this attribute value

2008-12-09 Thread Jay Darnell
I do sincerely apologize for my tone in my previous message. It's merely all too common for me to spend hours researching something I know should be fairly "simple" only to find scores of pages full of posts telling me how not to do it but not taking the time to tell me how to do it right. Thank yo

[jQuery] Re: has anyone come across a plugin like this ?

2008-11-13 Thread Jay
Thought it was pretty cool, so I threw my own plug in together in a little over an hour to mimic what he did there. It's pretty simple but should work in ie6/7,ff,safari. You can set a few different options, and I'm sure this could be expanded upon to give it a lot more power. Anyway, here you

[jQuery] Re: How to pass a jQuery object to PHP as an array

2008-11-03 Thread Jay
> How can I pass this object as an hidden form field back to my PHP > controller as an array? What would php do with a javascript object if you passed it? Perhaps you should be passing some property of the object instead?

[jQuery] Re: Get All Values/Text and Add a ";"

2008-11-01 Thread Jay
You're using each() to extract the selected options. That will not work as written. You need to select the child nodes that are 's, See the selector below. You also need to move the result write after the end of the loop. Flowers Shrubs Trees