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
and pad the section before it, hopefully
without having to effectively rewrite the plugin.
Ideas?
--
Brett Ritter / SwiftOne
swift...@swiftone.org
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
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
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
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
on the client?
--
Brett Ritter / SwiftOne
swift...@swiftone.org
eck out the docs on .supports()
--
Brett Ritter / SwiftOne
swift...@swiftone.org
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
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
that might work now, text/html might end up a known
definition at some time, changing behavior.
--
Brett Ritter / SwiftOne
swift...@swiftone.org
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
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
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
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
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
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
#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
itiques off my code I'm still interested
from a learning perspective)
--
Brett Ritter / SwiftOne
swift...@swiftone.org
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
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
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
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
mple that will be much
easier to get help with.
Hope that helps!
--
Brett Ritter / SwiftOne
swift...@swiftone.org
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
only checks immediate children (as with ">"). For further
descendants use .find() instead.
--
Brett Ritter / SwiftOne
swift...@swiftone.org
nd.php",
data: {
aParameter: "somevalue",
anotherParamter: "someothervalue"
},
dataType: "json",
--
Brett Ritter / SwiftOne
swift...@swiftone.org
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
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
avior
required 2 functions (and people made this same mistake anyway, thus
the change).
--
Brett Ritter / SwiftOne
swift...@swiftone.org
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
on methods considerably.
Or am I misunderstanding you?
--
Brett Ritter / SwiftOne
swift...@swiftone.org
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
around to SOP:
http://www.petefreitag.com/item/703.cfm
--
Brett Ritter / SwiftOne
swift...@swiftone.org
k1").click(function(){
$(this).find(".a1").css({"visibility":"hidden"}); //hides all a1's
but keeps the space
});
});
--
Brett Ritter / SwiftOne
swift...@swiftone.org
'foo', reference to function, not
foo(), call to function.
--
Brett Ritter / SwiftOne
swift...@swiftone.org
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
n.org/blog/javascript-micro-templating/
--
Brett Ritter / SwiftOne
swift...@swiftone.org
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
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
y prevents
client-side edits.
That said, I think different browsers enforce this to different levels. YMMV.
--
Brett Ritter / SwiftOne
swift...@swiftone.org
41 matches
Mail list logo