[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] Re: Removing element from DOM after animate

2009-07-31 Thread bittermonkey
y: 0}, 350) >  .remove(); > > you are actually chaining your events to occur one after the other on a > specific element or group of elements > > in the first piece of code you shared you. it would want to remove the > element as it animates, not after. > > On Fri, Jul 31, 2

[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

[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 wrote: > > > Hi, > > > I need to get all the TABLE HTML code

[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 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 do: I

[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=en&lnk=gst&q=brakes2k3#5e163538fcb0c139 Otherwise, you can try removing "http://localhost:3314"; from the

[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 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), or just goo

[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: 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, 丁亮 wrote: > use jsoncallback=? in the end of url

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

2009-05-05 Thread bittermonkey
I was wondering if I have another option without going this route? On May 5, 5:08 pm, James wrote: > What about going through a proxy (e.g. a PHP script that fetches the > XML content from wcf.mstsc.com domain) hosted on your current domain? > > On May 5, 11:01 am, bittermonkey wro

[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=tr&eventsessionid=2", dataType: "xml", success: function(xml) { ale

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

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

[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 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 wrote: &

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

2009-02-26 Thread bittermonkey
This is my code: --- $(function(){ /* Modal Dialog Box Configuration */ $("#addproductsForm").dialog({

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

[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 wrote: > > > Steve, yes I did try to use , , and > > but to no success. > > > Hector, it still does the same thing even with the preventDefault() > > method in place. > > > On

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

2009-02-24 Thread bittermonkey
Steve, yes I did try to use , , and 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 wrote: > Try preventing the default action of the event: > $("#btnAddSession").click(function(event){ >     $("#addpro

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

2009-02-23 Thread bittermonkey
arningjquery.com > > On Feb 23, 2009, at 12:56 PM, bittermonkey wrote: > > > > > 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 th

[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

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

2009-02-02 Thread bittermonkey
element's index? On Feb 2, 3:08 pm, "Mauricio \(Maujor\) Samy Silva" wrote: > Try: > > $('input[type=text]').each(function(i) { >   $(this).click(function() { >    alert(i); >   }); >  }); > > Maurício > > -Mensagem Original- >

[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: Highlight onKeyUp using Cursor Keys

2009-01-23 Thread bittermonkey
ositioned element, and when you press enter perform an > action that is associated with that element. > > On Jan 23, 4:32 pm, bittermonkey wrote: > > > The code is a bit overwhelming for just the highlight functionality. > > Thanks anyway. > > > On Jan 23, 4:1

[jQuery] Re: Highlight onKeyUp using Cursor Keys

2009-01-23 Thread bittermonkey
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 autocomplete > > results. So, from google.com, type the letter "a" in the searchbox > > then p

[jQuery] Highlight onKeyUp using Cursor Keys

2009-01-23 Thread bittermonkey
How do I initialize a hover on a 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 and so

[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 wrote: > 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 see

[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 Elements in the XML response and create a 3-column HTML table from its child nodes. Thanks in advance. This is my j

[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" wrote: > Do you have Firebug? If not, get it and enable the Console and Script tabs, > then enter these statements into the console input

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

[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]);});