[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, s.dataT

[jQuery] Referencing an element in a frame

2009-05-30 Thread SamCKayak
$(document).ready( function() { // how would I reference a div of ID=test insode the frame named econsole? $('frame[name="econsole"] what goes here') } I'd also like to know the reverse. For javascript insode econsole's window, how would I reference the frameset of id="outer" (I'd like

[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 examp

[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 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 more problemati

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

2009-05-30 Thread RobG
On May 31, 8:10 am, Ricardo 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 the first prop

[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 tho

[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 here.

[jQuery] Help with simple function

2009-05-30 Thread Dave Maharaj :: WidePixels.com
Trying to click hide contents of div, show loading, hide loading and fade new contents in when loaded. This works but does not have the loading effects $('a.save_me').click(function() { $(this).fadeOut("slow"); $('.job_save').load( $(this).attr('href'), function () {

[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 elements

[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: http://flesler.blogspot.com/2009/05/2-ajax-plugins-for-jqu

[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 selecte

[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 wrote: > Everything is

[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 in

[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 wrote: > I said $('html') is working... Please read more carefully... > > What i need i

[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: calling functions between multiple document ready events

2009-05-30 Thread MorningZ
No, because if you say function MyFunctionThatAdds(x, y) { .. } 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, 4); alert(sum); which is also t

[jQuery] Re: handle ajaxSubmit error as normal response instead of ajax response.

2009-05-30 Thread BalusC
OK, I solved it as following: [code] $('#myform').ajaxSubmit({ error: function(xhr) { document.open(); document.write(xhr.responseText); document.close(); }, success: doSomething }); [/code] Isn't there a "nice" jQuery way of doing this anyway? Cheers, B On

[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 w

[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() event

[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 insta

[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 4:55

[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 wrote: >                $('a.goToTop').click(function( > > > > > ) { > >                        $('body').animate({scrollTop : 0},'slow'); > >                }); > On Sat, May 30, 20

[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 wrote: > > Hi! > > I am using this code: > >$('a.goToTop').click(function() { >

[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 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 wrote: > > "If i make a custom function my s

[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] 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 very

[jQuery] $.post form don't post

2009-05-30 Thread _zeh_
I have the following select: ABA CARLOS LUIZ SILVIO and may and my post is this: $.post('teste.php', [$("#ListaCliente option:selected")], function(data){ $('#ResultEsq').show();

[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] 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] [Validate] plugin - is there any rule like notEqual

2009-05-30 Thread itsoft3g
hi, is there any rule like rule{ client: { notEqual: "newClient"; required:true} } and the field is required too. This field is field. I have option: select one and newClient , other client names. Thanks in advance.

[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 wrote: > "If i make a custom function my site uses a lot. i put it in a > plugin. :) " > > Why not fake a namespace instead? > > lik

[jQuery] Re: problem displaying ajax data in Firefox (not IE, chrome)

2009-05-30 Thread peter websdell
Thanks for the replies chaps. I tried Firebug, but I'm not experienced with it and couldn't quite make sense of it. I also changed the requst to $.ajax, which didn't fix it. HOWEVER Using firebug I did notice that the html code was returned, but that firefox would not display it. Then I realised

[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 wrote: > Hello, > > I use JQuery.Autocomplete to autocomplete values into one field. > Depending on the first field, I also need to populate a s

[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 2:04

[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 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 another tab (as they

[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? Thanks

[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