[jQuery] Colorcoding textarea UBB tags

2008-12-24 Thread Fluffy Convict
Does anybody know of a jquery plugin that is able to colorcode tags in a textarea? So, if you have this is [b]bold[/b], then [b] and [/b] would be colored red, for instance coloring must happen realtime. Any help would be greatly appreciated!

[jQuery] Re: Why is the behavior only attached to the first select?

2008-11-16 Thread Fluffy Convict
eve this works nowadays as well: > >       var selected = $(this).val(); > > You might also consider storing the base URLs in an associative array > rather than relying on custom (non-validating) attributes. > > HTH, > Jason > > On Nov 16, 3:08 pm, Fluffy Convict <[EMAIL

[jQuery] Why is the behavior only attached to the first select?

2008-11-16 Thread Fluffy Convict
I'm trying to attach a function to all selects that have the custom goto-attribute. It works for the first one, but the behavior isn't being attached to the second . Any ideas how to fix it? $(document).ready(function() { $('select[goto]').each(function () { $(this).change(function () {

[jQuery] [HOWTO] Update IMG SRC after AJAX call?

2008-11-15 Thread Fluffy Convict
Using the following code in my CMS, I can grant or deny certain user groups access to a certain page. In this example, usergroup #1 has access to page #2. By clicking the image, the server will respond with "role-1-2|icons/user-0.gif" (0 meaning "no access"). In the admin of the site, I have many

[jQuery] [HOWTO] Rewrite my own library functions to jQuery?

2008-11-15 Thread Fluffy Convict
I have a lot of little functions I use on my website, like these. Is there a standard way how I should rewrite them to jQuery? Could somebody give me an example with one of these functions to go by, using best practices? Your help would be greatly appreciated! function select_goto(obj, base_url)

[jQuery] Re: Why is "width" always zero?

2008-11-15 Thread Fluffy Convict
on't have a width and height attribute explicitly set in   > the html. > >   $(window).bind('load', function() { >     // your code ... > > }); > > --Karl > > > Karl Swedbergwww.englishrules.comwww.learningjquery.com > > On Nov 15, 2008,

[jQuery] Why does img_width always return 0 (zero)?

2008-11-15 Thread Fluffy Convict
I'm rewriting my own js library to jquery functions. A huge undertaking, but hopefully worth it in the future :) Question: why does the script always return 0 for img_width? Logo.gif exists and moving the code to the end of the page (before the closing body-tag) doesn't help either. Any help would

[jQuery] Why does img_width always return 0 (zero)?

2008-11-15 Thread Fluffy Convict
I'm rewriting my own js library to jquery functions. A huge undertaking, but hopefully worth it in the future :) Question: why does the script always return 0 for img_width? Logo.gif exists and moving the code to the end of the page (before the closing body-tag) doesn't help either. Any help would

[jQuery] Why is img_width always 0 (zero)?

2008-11-15 Thread Fluffy Convict
I'm rewriting my own js library to jquery functions. A huge undertaking, but hopefully worth it in the future :) Question: why does the script always return 0 for img_width? Logo.gif exists and moving the code to the end of the page (before the closing body-tag) doesn't help either. Any help would

[jQuery] Why is "width" always zero?

2008-11-15 Thread Fluffy Convict
I'm rewriting my own javascript library to jQuery. A huge undertaking, but hopefully it will payoff in the future :) Anyways - I'm trying to write a function that takes the title-attribute of an image and inserts is as a caption: $(document).ready(function(){ $("img.capt