[jQuery] How to Add A Callback Function to a plugin

2009-10-05 Thread bittermonkey
How do I add a callback function to a plugin so that i can execute another function after the plugin completes its own processes. Thanks in advance.

[jQuery] Removing element from DOM after animate

2009-07-31 Thread bittermonkey
Please tell me why the remove() doesn't work from this call: $(this).parents(.leftbox:first).animate({height:hide, opacity:hide}, 350, , function(){$(this).remove()}); while this one works: $(this).parents(.leftbox:first).animate({height:hide, opacity:hide}, 350).remove(); Thanks in advance.

[jQuery] Re: Get the HTML of the current node plus its Inner HTML

2009-07-17 Thread bittermonkey
has:http://brandonaaron.net/blog/2007/06/17/jquery-snippets-outerhtml http://brandonaaron.net/blog/2007/06/17/jquery-snippets-outerhtml Ted On Thu, Jul 16, 2009 at 3:06 PM, bittermonkey brakes...@gmail.com wrote: Hi, I need to get all the TABLE HTML code within the body tag

[jQuery] Get the HTML of the current node plus its Inner HTML

2009-07-16 Thread bittermonkey
Hi, I need to get all the TABLE HTML code within the body tag for a content-generating application. I'm trying to use the html() method, but it only gets the inner HTML. I also tried clone(), but does the same thing. Or maybe I'm using it wrong. Here's an example to clarify what I wanted to

[jQuery] Re: JQquery Ajax call WCF remotely doesn't work

2009-06-01 Thread bittermonkey
Are you getting the Access to restriced URI denied error? If you are, here's my old post: http://groups.google.com/group/jquery-en/browse_thread/thread/b6579cd6f6c0a160/5e163538fcb0c139?hl=enlnk=gstq=brakes2k3#5e163538fcb0c139 Otherwise, you can try removing http://localhost:3314; from the url

[jQuery] Re: Calling ASMX from JQuery

2009-05-18 Thread bittermonkey
Check in Firebug if the service returns data or a 501 error. Its under CONSOLE. You should allow it to Show XMLHTTPRequests Also, 1. The URL part seems to have an extra space after HTTP.. or maybe its just a typo: url: http: //localhost/BoATransformation/Survey.asmx/ GetSurvey 2. Or try

[jQuery] Re: Best book to learn jQuery?

2009-05-18 Thread bittermonkey
Best book for me were jQuery In Action and Learning jQuery. On May 18, 3:37 pm, alex boba...@googlemail.com wrote: Ah. I'm sure this sounds dunce-y because 'jQuery does it for me', but is a solid grounding in Javascript necessary to a solid grounding in jQuery (or at least, being able to use

[jQuery] Re: How To Get Around: Access to restricted URI denied code: 1012

2009-05-06 Thread bittermonkey
I won't be able to rewrite the service cause we also have cold fusion sites consuming the xml data. I guess I am stuck with creating another asp.net page that will call the service. Thanks for helping out everyone. On May 5, 9:16 pm, 丁亮 bluker2...@gmail.com wrote: use jsoncallback=? in the

[jQuery] How To Get Around: Access to restricted URI denied code: 1012

2009-05-05 Thread bittermonkey
Hi, Here's my code: $.ajax({ type: GET, url: http://wcf.msts.com/WcfService.svc/ GetSponsorSearch?keyword=treventsessionid=2, dataType: xml, success: function(xml) {

[jQuery] Re: How To Get Around: Access to restricted URI denied code: 1012

2009-05-05 Thread bittermonkey
, bittermonkey brakes...@gmail.com wrote: Hi, Here's my code:                 $.ajax({                     type: GET,                     url: http://wcf.msts.com/WcfService.svc/ GetSponsorSearch?keyword=treventsessionid=2,                     dataType: xml,                     success

[jQuery] How to Open Modal Dialog box on button click?

2009-02-26 Thread bittermonkey
Once btnAddSession button is clicked, the div with the addproductsForm ID should open as a modal dialog box. In Firefox it opens properly while in IE it submits the page even with return false; HTML --- h3Products/h3 !-- Placeholder for ajax results -- div

[jQuery] Overlay not working on jquery-ui-personalized-1.6rc6.min.js

2009-02-26 Thread bittermonkey
This is my code: --- script language=javascript type=text/javascript src=/js/ jquery-1.3.2.min.js/script script language=javascript type=text/javascript src=/js/ jquery-ui-personalized-1.6rc6.min.js/script

[jQuery] Re: preventing redirection when opening modal dialog box

2009-02-26 Thread bittermonkey
Nevermind, this was a versioning problem on the jquery and ui plugin javascript files. On Feb 24, 11:35 am, bittermonkey brakes...@gmail.com wrote: Yep I am. I event tried event.stopPropagation() but still the same thing.  Can I say I hate IE? On Feb 24, 10:26 am, Hector Virgen djvir

[jQuery] Re: How to Open Modal Dialog box on button click?

2009-02-26 Thread bittermonkey
Fixed this. File versioning problem. On Feb 26, 10:04 am, bittermonkey brakes...@gmail.com wrote: Once btnAddSession button is clicked,  the div with the addproductsForm ID should open as a modal dialog box.  In Firefox it opens properly while in IE it submits the page even with return false

[jQuery] Re: Overlay not working on jquery-ui-personalized-1.6rc6.min.js

2009-02-26 Thread bittermonkey
a default overlay style which you can modify or overide, using css in a stylesheet, rather than in js. If you need any further help, please note there's a dedicated jQuery UI list: http://groups.google.com/group/jquery-ui Thanks. - Richard On Thu, Feb 26, 2009 at 12:33 PM, bittermonkey brakes

[jQuery] Re: preventing redirection when opening modal dialog box

2009-02-24 Thread bittermonkey
Steve, yes I did try to use button, a, input=button and input=submit but to no success. Hector, it still does the same thing even with the preventDefault() method in place. On Feb 23, 11:43 pm, Hector Virgen djvir...@gmail.com wrote: Try preventing the default action of the event:

[jQuery] Re: preventing redirection when opening modal dialog box

2009-02-24 Thread bittermonkey
();}); -Hector On Tue, Feb 24, 2009 at 6:48 AM, bittermonkey brakes...@gmail.com wrote: Steve, yes I did try to use button, a, input=button and input=submit but to no success. Hector, it still does the same thing even with the preventDefault() method in place. On Feb 23, 11:43 pm, Hector Virgen

[jQuery] preventing redirection when opening modal dialog box

2009-02-23 Thread bittermonkey
hi, I have this snippet which works fine in Firefox but not in IE6/7. Somehow in IE instead of opening the modal dialog box, it gets posted to the submit page when the button with btnAddSession Id gets clicked. $(#btnAddSession).click(function(){ $(#addproductsForm).dialog(open); return false;

[jQuery] Re: preventing redirection when opening modal dialog box

2009-02-23 Thread bittermonkey
hard to guess, but is it   possible that you have more than one element with either an id or a   name of btnAddSession? --Karl Karl Swedbergwww.englishrules.comwww.learningjquery.com On Feb 23, 2009, at 12:56 PM, bittermonkey wrote: hi, I have this snippet which works

[jQuery] How do I get the index of the currently clicked textbox?

2009-02-02 Thread bittermonkey
Hi, How do I get the index of the currently clicked textbox? I have 5 textboxes in a form, all of which I am binding a click event. Here is the code: $(#associate-form input[type=text]).bind(click, function() { alert(this); //what is its index position from the 5 other

[jQuery] Re: How do I get the index of the currently clicked textbox?

2009-02-02 Thread bittermonkey
? On Feb 2, 3:08 pm, Mauricio \(Maujor\) Samy Silva css.mau...@gmail.com wrote: Try: $('input[type=text]').each(function(i) {   $(this).click(function() {    alert(i);   });  }); Maurício -Mensagem Original- De: bittermonkey brakes...@gmail.com Para: jQuery (English) jquery-en

[jQuery] Highlight onKeyUp using Cursor Keys

2009-01-23 Thread bittermonkey
How do I initialize a hover on a A HREF tag using cursor keys in jQuery? It's similar to how google highlights its autocomplete results. So, from google.com, type the letter a in the searchbox then press the Down Arrow Key and notice how the first item in the autocomplete box gets highlighted

[jQuery] Re: Highlight onKeyUp using Cursor Keys

2009-01-23 Thread bittermonkey
, bittermonkey brakes...@gmail.com wrote: How do I initialize a hover on a A HREF tag using cursor keys in jQuery?  It's similar to how google highlights its autocomplete results. So, from google.com, type the letter a in the searchbox then press the Down Arrow Key and notice how the first

[jQuery] Re: Highlight onKeyUp using Cursor Keys

2009-01-23 Thread bittermonkey
absolutely positioned element, and when you press enter perform an action that is associated with that element. On Jan 23, 4:32 pm, bittermonkey brakes...@gmail.com wrote: The code is a bit overwhelming for just the highlight functionality. Thanks anyway. On Jan 23, 4:17 pm, jay jay.ab

[jQuery] Unable To Traverse From an XML Ajax Response

2009-01-22 Thread bittermonkey
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 TABLE Elements in the XML response and create a 3-column HTML table from its child nodes. Thanks in advance. This

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

2009-01-22 Thread bittermonkey
yep that's it. On Jan 22, 4:23 pm, jay jay.ab...@gmail.com wrote: Perhaps table is case-sensitive? On Jan 22, 3:53 pm, bittermonkey brakes...@gmail.com 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

[jQuery] Re: Selector Question

2009-01-14 Thread bittermonkey
Got it. Thanks Mike. So this code would have made better sense: $(button:first).click(function(event){alert(this);}) On Jan 13, 5:52 pm, Michael Geary m...@mg.to wrote: Do you have Firebug? If not, get it and enable the Console and Script tabs, then enter these statements into the console

[jQuery] Selector Question

2009-01-13 Thread bittermonkey
Why does this work? $($(button)[0]).bind(click, function(event){return AlertOnClick (this + not + $(button)[0]);}); And why does this DOESN'T? $(button)[0].bind(click, function(event){return AlertOnClick(this + not + $(button)[0]);});

[jQuery] Selector Question

2009-01-13 Thread bittermonkey
I'm fairly new to the framework and I've been messing around a bit. These below confuses me. 1. Why is this snippet not working? Firefox's error console throws an error saying $(button)[0].bind is not a function $(button)[0].bind(click, function(event){alert(this)}); 2. And why does this