[jQuery] jQuery $ alert....

2009-05-30 Thread Rams j
Hi All I am having the following div tag in body.. div id=div01img src=lions/1.jpg alt=flower class=flower//div and my script as follows... varX = 2; varY = 3; var txt = '#div' + varX+ varY; alert($(txt).innerHtml); this is alerting like *div23.innerHtml* but this is not alerting the inner

[jQuery] .length value different in IE vs FF

2009-05-30 Thread Bob O
I have a pretty simple character counter to count the number of character typed by a user.. broadcastSubmit = $('#broadcastSubmitButton'); broadCastMessageDiv = $('#broadcastMessage'); availableChars = 140; charCount = $('.char_count'); boilerPlateKeyword =

[jQuery] Re: jqGrid with an editable checkbox column

2009-05-30 Thread Tony
Hello, One possible solution is to use custom formatter to add checkbox and bind evens to it Best Regards Tony On May 30, 6:19 am, dev java_mail_l...@yahoo.com wrote: Hello, I'm trying to create a grid, using jqGrid-3.4.4, with checkbox in one of its column. I have been able to create grid

[jQuery] Re: The Assignment of Functions to Tags that Are Not jQuery Methods

2009-05-30 Thread kiusau
On May 27, 3:38 pm, kiusau kiu...@mac.com wrote: On May 26, 2:19 am, Pepperman chorno...@gmail.com wrote: Although I was eventually able to resolve my problem at W3Schools, I would very much like a clarification of what Pepperman wrote above and to which I dutifully responded. Certainly, it

[jQuery] Re: .length value different in IE vs FF

2009-05-30 Thread Christiaan Baartse
It is because of line endings. I think it might be that one of them counts \r\n as 1 character and the other as 2 characters. To test this, just remove all your newlines and see if the problem still occurs. On 30 mei, 08:27, Bob O sngndn...@gmail.com wrote: I have a pretty simple character

[jQuery] maximize window

2009-05-30 Thread Octavian Râşniţă
Hi, Does anyone know if there is a possibility of maximizing a popup window opened with window.open()? (Like when clicking the maximize button of the window, not by resizing the window to fit the whole screen) Thank you. Octavian

[jQuery] Autocomplete two fields

2009-05-30 Thread Adrian Grigoras
Hello, I use JQuery.Autocomplete to autocomplete values into one field. Depending on the first field, I also need to populate a second field. For example: I autocomplete the Name field and depending on the selected name I need to autocomplete also Phone field. It's possible to do that?

[jQuery] Re: tabs and ajax

2009-05-30 Thread Klaus Hartl
Which version are you using? I've fixed a similiar bug (if not the same) bug a while ago... --Klaus On 28 Mai, 19:30, nextpulse rob...@nextpulse.com wrote: I have 3 tabs that each loads using ajax (via href). The problem i am having is that while a tab is loading - the user can click on

[jQuery] Re: jQuery $ alert....

2009-05-30 Thread Richard D. Worth
change $(txt).innerHtml to either $(txt).html() or $(txt)[0].innerHTML The first calls the jQuery method .html() on a jQuery object. The second grabs the first element (a DOMElement) in the array-like jQuery object, and accesses its innerHTML property. - Richard On Sat, May 30, 2009 at

[jQuery] Re: Autocomplete two fields

2009-05-30 Thread MorningZ
Use the .result() event of the first one to do your logic to wire up (or destroy) the autucomplete of the second On May 30, 5:15 am, Adrian Grigoras adrianc.grigo...@gmail.com wrote: Hello, I use JQuery.Autocomplete to autocomplete values into one field. Depending on the first field, I also

[jQuery] Re: calling functions between multiple document ready events

2009-05-30 Thread Ricardo
Because you're creating a global variable, and global vars are evil :) Same reason why you don't want to pollute the jQuery namespace. On May 30, 1:27 am, MorningZ morni...@gmail.com wrote: If i make a custom function my site uses a lot. i put it in a plugin. :) Why not fake a namespace

[jQuery] Tree View

2009-05-30 Thread DJ
Is there any treeview component or plugin which gives services like keyboard navigation? I found one jstree which is great. But is there any such plugins available? Please let me know if you have such bookmarks :)

[jQuery] Re: tablesorter bug: th with colspan

2009-05-30 Thread franzo
I haven't got a fix, but I have more information. The example on tablesorter.com that uses colspans works, but it is using an old 2.0 version of tablesorter. The example on tablesorter.com doesn't work on 2.0.3. The suggested change below doesn't work with multiple rows of THs. On May 4, 6:47 

[jQuery] $.post form don't post

2009-05-30 Thread _zeh_
I have the following select: select name=ListaCliente id=ListaCliente title=$row_RSCliente ['CodCliente'] option value=4ABA/option option value=1CARLOS/option option value=3LUIZ/option option value=2SILVIO/option /select and may and my post is

[jQuery] Superfish

2009-05-30 Thread shawna
hi..I know this may seem like a gay question, but I am a lowly newbie to your navigation and I am in desperate need of some help..you the code gods I call upon to impart some knowledge to me.. please see here: http://soulandsportventures.com/_allother/_admin/_helpme/index.html I am using the

[jQuery] animate scrollTop

2009-05-30 Thread GaVrA
Hi! I am using this code: $('a.goToTop').click(function() { $('html').animate({scrollTop : 0},'slow'); }); And it works like it should. Problem is that sometimes it just bugs out for short period of time, like when you click anchor and it

[jQuery] Re: calling functions between multiple document ready events

2009-05-30 Thread waseem sabjee
so is namespace faking bad ? On Sat, May 30, 2009 at 4:19 PM, Ricardo ricardob...@gmail.com wrote: Because you're creating a global variable, and global vars are evil :) Same reason why you don't want to pollute the jQuery namespace. On May 30, 1:27 am, MorningZ morni...@gmail.com wrote:

[jQuery] Re: animate scrollTop

2009-05-30 Thread waseem sabjee
$('a.goToTop').click(function( ) { $('body').animate({scrollTop : 0},'slow'); }); On Sat, May 30, 2009 at 4:29 PM, GaVrA ga...@crtaci.info wrote: Hi! I am using this code: $('a.goToTop').click(function() {

[jQuery] Re: animate scrollTop

2009-05-30 Thread GaVrA
If you mean just to remove html with body - that wont work... Already tried it. On May 30, 4:50 pm, waseem sabjee waseemsab...@gmail.com wrote:                $('a.goToTop').click(function( ) {                        $('body').animate({scrollTop : 0},'slow');                }); On

[jQuery] Re: animate scrollTop

2009-05-30 Thread waseem sabjee
$('a.goToTop').click(function() { $(this).animate({scrollTop : 0},'slow'); }); OR $('a.goToTop').click( function() { $().animate({scrollTop : 0},'slow'); }); On Sat, May 30, 2009 at

[jQuery] Re: animate scrollTop

2009-05-30 Thread GaVrA
I said $('html') is working... Please read more carefully... What i need is a fix for this function becouse it is still being animated for a small period of time, after it reach top. It seems that if you have that anchor relativly close to the top, this bug have more chance to show, and for

[jQuery] Re: question re: .live() and .empty()

2009-05-30 Thread Brandon Aaron
The .live() method binds event handlers at a higher level than the node(s) selected. So, in other words the events aren't actually bound to specific nodes so they won't be removed when you call empty. If you need to remove a live event, just call .die(). It is like .unbind() but for .live()

[jQuery] Re: question re: .live() and .empty()

2009-05-30 Thread Jack Killpatrick
Thanks, Brandon. So .empty() won't touch events that were bound using a selector on objects inside what is being emptied, right? Gotta use .die() to get rid of them? - Jack Brandon Aaron wrote: The .live() method binds event handlers at a higher level than the node(s) selected. So, in other

[jQuery] Re: calling functions between multiple document ready events

2009-05-30 Thread MorningZ
No, because if you say script type=text/javascript function MyFunctionThatAdds(x, y) { .. } /script that *technically* attaches that function to the window object so saying var sum = MyFunctionThatAdds(3, 4); alert(sum); is the same as saying var sum = window.MyFunctionThatAdds(3,

[jQuery] Autocomplete Question

2009-05-30 Thread Marc
I am using jquery.autocomplete in a search for schools. I have optional fields (referenced as extraParams) which allow the user to narrow the search to a specific state and city. This part works fine. If the user selects a state and city and then initiates the search be entering a value into the

[jQuery] Re: animate scrollTop

2009-05-30 Thread GaVrA
Everything is fine. It turns out i have putted this script on wrong place so it was imported and runned 20 times... Dont ask why... lol Like i said - now it works like a charm... :) On May 30, 5:17 pm, GaVrA ga...@crtaci.info wrote: I said $('html') is working... Please read more carefully...

[jQuery] Re: Superfish

2009-05-30 Thread shawna
Hi Ethan I checked and removed the previous div and the following div did indeed have position:relative as well as z index applied..I have since removed this and I still have the same problem..I just want the navigation to force fit into this div containing the superfish menu..I have defined it

[jQuery] Re: animate scrollTop

2009-05-30 Thread Ariel Flesler
It won't work on all major browsers. Not all of them support scrolling when applied to 'html', some require 'body'. This varies depending on whether you're on quirks mode or not. It's even more problematic when animating iframes. -- Ariel Flesler On May 30, 1:52 pm, GaVrA ga...@crtaci.info

[jQuery] AutoComplete with extraParam

2009-05-30 Thread Dushyant Patel
Hi All, I am using AutoComplete plug-in, its working great for me. But now i have some new requirement and i am not able to make it work with autocomplete. Requirement is as follow: Now i need 2 extra parameter to pass and these two parameter's value would be depend on selected value of

[jQuery] [ANN] 2 Ajax plugins for jQuery +1.3

2009-05-30 Thread Ariel Flesler
Hi All I never actually announced these 2 small plugins I made right before jQuery 1.3 was released. They're meant to provide users with a nicer way of using certain new ajax features that could be conflicting otherwise. Here's the link:

[jQuery] Re: question re: .live() and .empty()

2009-05-30 Thread Karl Swedberg
On May 30, 2009, at 12:14 PM, Jack Killpatrick wrote: Thanks, Brandon. So .empty() won't touch events that were bound using a selector on objects inside what is being emptied, right? Gotta use .die() to get rid of them? Yes and no. empty() will unbind events that were bound to the

[jQuery] Re: calling functions between multiple document ready events

2009-05-30 Thread Ricardo
myFunction() and window.myFunction are not necessarily the same. the first one will look up the scope chain and use the first ocurrence, it doesn't go directly to the window object. var x = 3; (function(){ var x = 5; alert(x); })(); alert(x); Again, this is basic javascript, I'll stop

[jQuery] Re: question re: .live() and .empty()

2009-05-30 Thread Jack Killpatrick
Thanks guys, I understand now. Related question (but maybe for the UI guys)... does anyone know if any jquery UI components (sortables and dialog in particular) bind events to something outside their own scope (like by using .live())? I'm guessing not and that I'm safe instantiating one of

[jQuery] Re: calling functions between multiple document ready events

2009-05-30 Thread RobG
On May 31, 8:10 am, Ricardo ricardob...@gmail.com wrote: myFunction() and window.myFunction are not necessarily the same. the first one will look up the scope chain and use the first ocurrence, it doesn't go directly to the window object. The second looks up the scope chain too and uses

[jQuery] Re: animate scrollTop

2009-05-30 Thread GaVrA
Yeah, i know, i ended up using html,body ;) On May 30, 10:18 pm, Ariel Flesler afles...@gmail.com wrote: It won't work on all major browsers. Not all of them support scrolling when applied to 'html', some require 'body'. This varies depending on whether you're on quirks mode or not. It's even

[jQuery] Re: JQuery Treeview - Display sub nodes when mouse over menu

2009-05-30 Thread eclipseTalk
Thanks for your reply. I'm just using CLICK from jquery.treeview.js I'm initializing my tree as follow: $(#navigation).treeview({ animated: fast, persist: location, collapsed: true, unique: true }); Do you have an example on

[jQuery] Referencing an element in a frame

2009-05-30 Thread SamCKayak
frameset id=outer rows=20%,* frame name=econsole src=econsole.htm frameborder=0 noresize=noresize / frame name=launch src=launch.htm frameborder=0 noresize=noresize / /frameset $(document).ready( function() { // how would I reference a div of ID=test insode the frame named econsole?

[jQuery] xml parse error onreadystatechange

2009-05-30 Thread will
I'm confusedwhy is the xml parse error being thrown when I'm dealing with json? if ( status == success ) { // Watch for, and catch, XML document parse errors try { // process the data (runs the xml through httpData regardless of callback) data = jQuery.httpData( xml,