[jQuery] Masked Input plugin, changing values

2010-01-14 Thread Brett Ritter
wipes the existing value of the field. I can tweak the plugin to do what I want, but now I'm running a fork. Has anyone else dealt with this? Am I missing an obvious way of doing this? -- Brett Ritter / SwiftOne swift...@swiftone.org

[jQuery] [Masked Input] Variable length fields / inner padding

2009-12-16 Thread Brett Ritter
and pad the section before it, hopefully without having to effectively rewrite the plugin. Ideas? -- Brett Ritter / SwiftOne swift...@swiftone.org

Re: [jQuery] Re: Problem with plugins

2009-11-27 Thread Brett Ritter
27;t loading, those URLs are quite likely involved. We have no way of knowing if they are indeed working since we don't see the output. Try sending the HTML the browser is getting. -- Brett Ritter / SwiftOne swift...@swiftone.org

[jQuery] Re: how to replace all the '[]' to be '' in $.SortSerialize('MDEExportedList').hash

2009-10-01 Thread Brett Ritter
On Thu, Oct 1, 2009 at 1:18 PM, Junhua Gao wrote: >  I use $.SortSerialize('MDEExportedList').hash.replace('[]','') >   but only the first one is replaced. I thought replace() only replaced the first instance unless a regex with global flag was used

[jQuery] Re: Way to "convert" DOM event to jQuery event?

2009-09-24 Thread Brett Ritter
On Thu, Sep 24, 2009 at 12:10 PM, Kevin Dalman wrote: > > If you need data for multiple fields, then a 3rd option is to create a > single hash/data object for the page and writing all your data into > that. This makes your data easy to read and debug, and is highly > efficient because you don't h

[jQuery] Re: Browser sniffing - the correct way?

2009-09-18 Thread Brett Ritter
pera, you want to detect whether a browser supports negative vertical span margins. I don't know which clause will do that :), but that's what you're looking to do. That way your code will continue to work as desired in the future when Opera address this issue and/or when another brow

[jQuery] Re: jQuery PDF Viewer?

2009-09-17 Thread Brett Ritter
on the client? -- Brett Ritter / SwiftOne swift...@swiftone.org

[jQuery] Re: Browser sniffing - the correct way?

2009-09-17 Thread Brett Ritter
eck out the docs on .supports() -- Brett Ritter / SwiftOne swift...@swiftone.org

[jQuery] Re: Sorting in jQuery

2009-09-11 Thread Brett Ritter
se the same approach: Use the sort() method of the array class and pass in the Jquery elements (gotten via get()) As this seems a common and simple need, I'd guess someone has written a plugin for it, have you tried this? http://plugins.jquery.com/project/sort -- Brett Ritter / SwiftOne swift...@swiftone.org

Re: FW: [jQuery] Re: Newbie: Cannot get .text() to work with IE7

2009-09-10 Thread Brett Ritter
above link covers your exact case and shows a work around for loading local files - it may behave differently on a server. I've not played with it myself as of yet. Sorry you didn't get a faster response. -- Brett Ritter / SwiftOne swift...@swiftone.org

[jQuery] Re: HTML code inside script tag, how access to it with DOM???

2009-09-10 Thread Brett Ritter
that might work now, text/html might end up a known definition at some time, changing behavior. -- Brett Ritter / SwiftOne swift...@swiftone.org

[jQuery] Re: Get the input value of "ANY" element tag

2009-08-25 Thread Brett Ritter
lass I don't know if this issue is related to your problem, but it is a good idea to fix this regardless. -- Brett Ritter / SwiftOne swift...@swiftone.org

[jQuery] Re: App like hangman

2009-08-24 Thread Brett Ritter
s bound to the original are not bound to the clone unless you use live() ) Trying to convert a jQuery element to a string doesn't make sense unless you say what "string" you want - the text, the html, the id, these are all different strings. -- Brett Ritter / SwiftOne swift...@swiftone.org

[jQuery] Re: App like hangman

2009-08-23 Thread Brett Ritter
wever, from looking at the jqueryUI docs, it appears what you are looking for is the "Droppable" plugin, which receives "draggable" objects: http://jqueryui.com/demos/droppable/ Hope that helps! -- Brett Ritter / SwiftOne swift...@swiftone.org

[jQuery] Re: App like hangman

2009-08-19 Thread Brett Ritter
On Wed, Aug 19, 2009 at 9:40 AM, Boris Trivic wrote: > anyone? :s I'm afraid I'm not understanding your question. Can you provide simple html that you are trying to read/manipulate? -- Brett Ritter / SwiftOne swift...@swiftone.org

[jQuery] Re: POST GET help

2009-08-13 Thread Brett Ritter
r to $.post is a callback function that is called on success and is passed the resulting data. Check http://docs.jquery.com/ or http://visualjquery.com/ for more details on the callback and what it is passed. -- Brett Ritter / SwiftOne swift...@swiftone.org

[jQuery] Re: Script not recognizing class

2009-08-13 Thread Brett Ritter
On Thu, Aug 13, 2009 at 1:18 PM, Simon wrote: >         class="notloaded">1 ... > What am I doing wrong? You are using multiple class="" declarations in your tags. You want instead: -- Brett Ritter / SwiftOne swift...@swiftone.org

[jQuery] Re: Best way to add attributes/extend element

2009-08-13 Thread Brett Ritter
#testInput').attr('rel','extrainfo') it just seems like > there should be a better way to do this. Any suggestions? Check out data() method on Jquery objects... -- Brett Ritter / SwiftOne swift...@swiftone.org

[jQuery] Re: Transforming input as it's typed

2009-08-12 Thread Brett Ritter
itiques off my code I'm still interested from a learning perspective) -- Brett Ritter / SwiftOne swift...@swiftone.org

[jQuery] Transforming input as it's typed

2009-08-12 Thread Brett Ritter
else if(size < 11){ val = "(" + base.slice(0,3) + ") " + base.slice(3,6) + "-" + base.slice(6); } $(this).val(val); } }); Comments appreciated. -- Brett Ritter / SwiftOne swift...@swiftone.org

[jQuery] Re: Error when trying to download jquery

2009-08-12 Thread Brett Ritter
ting to look at, particularly the .min.js version). The jquery.com site has some good tutorials to get started with it, but don't expect the file itself to "do" anything. -- Brett Ritter / SwiftOne swift...@swiftone.org

[jQuery] Re: How to specify a default value...

2009-08-11 Thread Brett Ritter
t to look up more about this sort of construct, it's called the "ternary operator" and exists in many programming languages. -- Brett Ritter / SwiftOne swift...@swiftone.org

[jQuery] Re: jQuery and the 'this' keyword

2009-07-30 Thread Brett Ritter
uot; does NOT refer to the object your function is part of. If you expect it to you will encounter much confusion. -- Brett Ritter / SwiftOne swift...@swiftone.org

[jQuery] Re: JQuery BREAKS in IEx -- H E L P!!!!

2009-07-30 Thread Brett Ritter
mple that will be much easier to get help with. Hope that helps! -- Brett Ritter / SwiftOne swift...@swiftone.org

[jQuery] Re: [treeview] Collapsed tree will flash before collapsing. Anyway to avoid it?

2009-07-30 Thread Brett Ritter
you go to: Step 2: You have early-running javascript apply the hiding CSS. Don't stick this in ready(), just stick it in the document. It should execute prior to ready(). There are refinement efforts you can do from there, but that should get you working. ...Wish I could find that tuto

[jQuery] Re: Selector question

2009-07-29 Thread Brett Ritter
only checks immediate children (as with ">"). For further descendants use .find() instead. -- Brett Ritter / SwiftOne swift...@swiftone.org

[jQuery] Re: POST data not being sent

2009-07-29 Thread Brett Ritter
nd.php", data: { aParameter: "somevalue", anotherParamter: "someothervalue" }, dataType: "json", -- Brett Ritter / SwiftOne swift...@swiftone.org

[jQuery] Re: function running 2X

2009-07-29 Thread Brett Ritter
On Wed, Jul 29, 2009 at 3:03 PM, marksimon wrote: > > Still getting 2 alerts. You show your .click() function in another...is that wrapping function getting called more than once? If so, the action is getting bound more than once. -- Brett Ritter / SwiftOne swift...@swiftone.org

[jQuery] Re: POST data not being sent

2009-07-29 Thread Brett Ritter
t threading or sorting by conversation, and a hint as to which part of the thread you are replying to is sufficient. -- Brett Ritter / SwiftOne swift...@swiftone.org

[jQuery] Re: hoverIntent not working?

2009-07-28 Thread Brett Ritter
avior required 2 functions (and people made this same mistake anyway, thus the change). -- Brett Ritter / SwiftOne swift...@swiftone.org

[jQuery] Re: Validation with rewriting

2009-07-27 Thread Brett Ritter
ter for their visual parsing. > Anyway, a validation method has access to the validate element, so you Ah, this is the essential piece I was missing. I'll code a few tests and report back in a few days. Thanks for the help! -- Brett Ritter / SwiftOne swift...@swiftone.org

[jQuery] Re: Validation with rewriting

2009-07-27 Thread Brett Ritter
on methods considerably. Or am I misunderstanding you? -- Brett Ritter / SwiftOne swift...@swiftone.org

[jQuery] Validation with rewriting

2009-07-27 Thread Brett Ritter
proach for doing so? The transformation can be done front-end (i.e. visible to the user, changing the value in the inputs) or internally (standardizing the values sent to the validate plugin), I'm not picky as to which just yet. -- Brett Ritter / SwiftOne swift...@swiftone.org

[jQuery] Re: I dont understand why this doesnt work.

2009-07-18 Thread Brett Ritter
around to SOP: http://www.petefreitag.com/item/703.cfm -- Brett Ritter / SwiftOne swift...@swiftone.org

[jQuery] Re: manipulate the next element with a class

2009-07-15 Thread Brett Ritter
k1").click(function(){ $(this).find(".a1").css({"visibility":"hidden"}); //hides all a1's but keeps the space }); }); -- Brett Ritter / SwiftOne swift...@swiftone.org

[jQuery] Re: Using jQuery to completely separate HTML from Javascript

2009-07-15 Thread Brett Ritter
'foo', reference to function, not foo(), call to function. -- Brett Ritter / SwiftOne swift...@swiftone.org

[jQuery] Re: Detecting a redirect response to an Ajax query

2009-07-15 Thread Brett Ritter
n page text, but not really what you seek. To make life more difficult, that Header is in the XHR object, so you can only check it in the complete() callback (I believe). Otherwise I'm unaware of any solution. -- Brett Ritter / SwiftOne swift...@swiftone.org

[jQuery] Re: <3 Solitaire

2009-07-15 Thread Brett Ritter
n.org/blog/javascript-micro-templating/ -- Brett Ritter / SwiftOne swift...@swiftone.org

[jQuery] Re: <3 Solitaire

2009-07-14 Thread Brett Ritter
On Tue, Jul 14, 2009 at 6:37 PM, weepy wrote: > >> you don't define a type here making your page invalid > Are you referring to $().ready(function() { }) ?  You mean you'd I believe he's referring to the script tag itself. It should given a type (e.g. "tex

[jQuery] Re: Simple selector problem

2009-07-10 Thread Brett Ritter
On Fri, Jul 10, 2009 at 11:34 AM, Chris wrote: > I'm using jQuery 1.3.2.  In IE, this returns 3.  In Firefox, it > returns 4. Are you running Firebug or any add-on that modifies the DOM in Firefox? -- Brett Ritter / SwiftOne swift...@swiftone.org

[jQuery] Re: both 'if' and 'else' blocks being executed

2009-07-10 Thread Brett Ritter
y prevents client-side edits. That said, I think different browsers enforce this to different levels. YMMV. -- Brett Ritter / SwiftOne swift...@swiftone.org