[jQuery] Re: Debug Tools - Charles, DebugBar, Firebug Lite

2008-01-05 Thread Phil Glatz
cfdvlpr wrote: > > How do you test in both IE 6 and IE 7? Are you able to install both > > these on the same machine or do you have more than one machine? I use the Microsoft Virtual PC: http://pingv.com/blog/glhines/200712/browser-testing-ie6 It works very well, and since it has its own regist

[jQuery] passing cookies in drupal modules

2007-12-18 Thread Phil Glatz
I'm using jquery.cookie.js with Drupal 5.5, and am trying to pass a value between some jquery code etween a module I wrote and the rest of the site. I found I could set the cookie in my module, and it would be set correctly the next time I entered the module. But from rest of the site, I don't see

[jQuery] getting height of frameset window

2007-11-26 Thread Phil Glatz
I'm trying to get the height of the enclosing frameset window in a page that is using traditional framesets. I am in a function called by the lower frame. I've tried the dimension plugin, and $ (window).outerHeight() is reporting the height of the window the current frame is in. I'm in a frame ca

[jQuery] $ is not defined error

2007-09-18 Thread Phil Glatz
I'm modifying the Drupal img_assist module, and trying to add a little jquery to the popup it creates. When I do, I get this error: $ is not defined When I view source, I see the jquery init code at the bottom of the html for both the page frameset, and for both of the framed pages (the popup us

[jQuery] using tabIndex

2007-07-18 Thread Phil Glatz
I have some fields that may be generated on the fly via DOM, and want to set the tab index. This isn't working for me: $("#elem2").attr("tabindex", $("#elem1").attr("tabindex") + 1); What would the correct syntax be to make the tabindex of elem2 to be that of elem1 + 1?

[jQuery] Re: tableSorter - sorting

2007-07-05 Thread Phil Glatz
Christian Bach wrote: > And to leak a new feature: it will contain multiple column sorting. One more suggestion, if it isn't in there already: the ability to exclude some columns as sortable. The column wouldn't display the sorting class in the header, and clicking on it would have no effect. May

[jQuery] Re: tableSorter - problems with changing the number of rows

2007-07-05 Thread Phil Glatz
On Jul 5, 4:22 am, "Christian Bach" <[EMAIL PROTECTED]> wrote: > set useCache: false > > then trigger this after the update. > > $('#bodytable').trigger("updateColumnData"); Thanks, Christian; that did the trick. When I rebuild the table with more rows, sorting isn't working. If I was sorting o

[jQuery] tableSorter - problems with changing the number of rows

2007-07-05 Thread Phil Glatz
I'm using the tableSorter plugin and am having a problem with the number of rows displayed; I hope I can describe the situation clearly. I'm building my table dynamically from a local javascript array, initially populated with a database query. Next, I call the tableSorter function. So far so goo

[jQuery] Re: inner loop values

2007-07-02 Thread Phil Glatz
Thanks Ben, works perfectly! On Jul 2, 6:12 pm, "Benjamin Sterling" <[EMAIL PROTECTED]> wrote: > Phil, > This is what I have and get the appropriate rowid in the alert: > > > $(function() { > for (i=0; i<5; i++) { > var row_id = 'row' + i; > var rw = '

[jQuery] Re: inner loop values

2007-07-02 Thread Phil Glatz
Thanks for the suggestions, but I haven't found the answer yet. > Try: > alert( $(this).attr('id') ); This displays "undefined" in the alert box. > var rw = $('row ' + i + '').click( > function() { alert(row_id); } ); This displays "row4" for all rows in the alert box. > $('#t1 tr#row'+ i).

[jQuery] inner loop values

2007-07-02 Thread Phil Glatz
I'm building a dynamic table, assigning each row a unique ID based on the value of the counter, and trying to display the row id in an alert box when a row is clicked: $(function() { for (i=0; i<5; i++) { var row_id = 'row' + i; var rw = 'row ' + i + ''; $('#t1').append (r

[jQuery] Building a table from an array

2007-06-30 Thread Phil Glatz
Newbie question - can somebody please provide an example or reference to some existing code on how to create a table from an array of javascript data, please? I have an array of data to populate the table tbody; each element in the array represents a row, and contains an array of the contents of

[jQuery] displaying an offscreen row

2007-06-23 Thread Phil Glatz
I have a table inside a div; the div has a fixed height and overflow set to scroll. When the page is opened, the row containing the last selected data is highlighted, via jquery/DOM. the problem I have is that if the list (number of rows in the table) is bigger than can fit in the div, and the cur

[jQuery] waiting for a request to complete

2007-06-11 Thread Phil Glatz
Rob wrote: Where you're checking the request status you're creating a new request each time. You need to store the XHR object from the request and use that (untested): var xhr = $.post("/myhandler.php", params); while (xhr.status != 200); With Firefox 2, I'm getting this error: [Except

[jQuery] waiting for a request to complete

2007-06-11 Thread Phil Glatz
Rob suggested: > Alternatively you could use a globally accessibly variable which states > whether there is a pending request or not. > When a request is sent, set it true, when the response is received set > it false. Something like this? var pending = false; function send_message(msg) { pe

[jQuery] waiting for a request to complete

2007-06-11 Thread Phil Glatz
I'm calling $.post to send some text back to a web server, where it gets logged. The function is something like this: function send_message(msg) { var params = {}; params['my_message'] = msg; $.post("/myhandler.php", params); } It calls a php page that appends it to a log. If I view the lo

[jQuery] Dragging from a Drupal block to tinyMCE

2007-05-29 Thread Phil Glatz
I'm using Drupal 5.1 and jquery to build a site where members can create content. I wrote a module to display a list of available images and videos in a list in a block. I'd like to be able to select an item from the list and drag it into the article body textarea, and wondering if this can be don