[jQuery] IE and object

2009-03-04 Thread Frederik Ring
Hello! If you copy paste the embed-code from a YouTube-Video like this: object width=425 height=344param name=movie value=http:// www.youtube.com/v/ewnfWoSQz3ohl=defs=1/paramparam name=allowFullScreen value=true/paramparam name=allowscriptaccess value=always/paramembed src=http://

[jQuery] Re: css method on span reports block?

2009-03-01 Thread Frederik Ring
Looks like this is a 1.3.2 issue I think. Just tried it with 1.2.6 and it returned inline in both cases. On Mar 1, 6:31 pm, sliver sliver2...@gmail.com wrote: Im not sure if this is intended, but it leads to some unexpected results: console.log($('span/').css('display')); -- 'block'

[jQuery] IE won't show changes made on $(document).ready?

2009-02-28 Thread Frederik Ring
Hello! I am doing the following in order to remove those new YouTube- Headlines on a blog: $(document).ready(function(){ $('param').each(function(){ var oldname = $(this).attr('value'); var check = oldname.search(/youtube.+/); if (check != -1){ var

[jQuery] Re: Does a plugin like this excist allready

2009-02-26 Thread Frederik Ring
Just use $('#id').show(speed); and $('#id').hide(speed); See: http://docs.jquery.com/Effects/show#speedcallback

[jQuery] Re: Pagination control jquery -- Need some help

2009-02-26 Thread Frederik Ring
Why don't you just do it like: $('#prev').css('cursor','pointer').click(function(){ $('.page:visible').hide().prev().show(); } Same with next. $('#next').css('cursor','pointer').click(function(){ $('.page:visible').hide().next().show(); } You will pro On Feb 26, 5:43 pm, Doug C

[jQuery] Re: Pagination control jquery -- Need some help

2009-02-26 Thread Frederik Ring
Sorry I think it has to be: $('.page:visible').hide().prev('.page').show(); and $('.page:visible').hide().next('.page').show(); Or is the second class selection not necessary? On Feb 26, 8:33 pm, Frederik Ring frederik.r...@gmail.com wrote: Why don't you just do it like: $('#prev').css

[jQuery] Re: Rich text Editor

2009-02-25 Thread Frederik Ring
Are you using a plugin or are you trying to do oit by yourself? In case you are doing it by yourself this thread might help: http://groups.google.com/group/jquery-en/browse_thread/thread/6902e3e091ec9e4b/f8a135f66d533265#f8a135f66d533265 Works both with selected text and no selection (cursor).

[jQuery] Re: Multiselect listbox

2009-02-25 Thread Frederik Ring
' is always false. Can you guide me , how to solve this problem. Thanks in advance On Feb 25, 2:04 pm, Frederik Ring frederik.r...@gmail.com wrote: You could do sth like: var ok = false; $('.elementInListbox').each(function(){ if ($(this).attr('checked') == checked){ok = true

[jQuery] Re: Multiselect listbox

2009-02-25 Thread Frederik Ring
Also remove the else-part of the attribute checking, this way it'll only return true if the last element is checked. On Feb 25, 11:41 am, Frederik Ring frederik.r...@gmail.com wrote: 2 things: you are referring to multiple checkboxes, but do that with an ID (#zonelocation). That will not work

[jQuery] Re: Multiselect listbox

2009-02-25 Thread Frederik Ring
') == 'checked'){                         zonelocationVal = true;                 }         }); /*/ What Iam doing wrong? Thanks in advance. On Feb 25, 3:45 pm, Frederik Ring frederik.r...@gmail.com wrote: Also remove the else-part of the attribute checking

[jQuery] Re: Is it possible to override a link?

2009-02-23 Thread Frederik Ring
This should be working: $('a#woof').click(function(e){ e.preventDefault(); //do ajax form }); Or you could set all href attributes to '#' before adding the click function

[jQuery] Re: Selecting dynamically created elements

2009-02-23 Thread Frederik Ring
Usually you should be able do what you are trying to do. To me it sounds as if you are trying to select the dynamically created content before you created it (on $(document).ready for example). How and when are trying to get the $('img')-selection? On Feb 23, 8:55 pm, Petar pta...@gmail.com

[jQuery] Re: Selecting dynamically created elements

2009-02-23 Thread Frederik Ring
By the way (although I do not think it causes the problem) you are missing a ' there. Should be: $('img src=images/pic.jpg alt=').appendTo(#table); instead. On Feb 23, 9:07 pm, Frederik Ring frederik.r...@gmail.com wrote: Usually you should be able do what you are trying to do. To me

[jQuery] Re: how to use sortable and dragable on the same element?

2009-02-22 Thread Frederik Ring
When you have two sortable lists, there's a 'connectWith' option in the $(this).sortable()-command that lets you drag items from one list to the other. You can also specify callbacks for the removal and receiving of list items via remove:function and receive:function. Sth like this:

[jQuery] How to get the selected text inside a textarea

2009-02-22 Thread Frederik Ring
Hello! I don't know if this is a 100% jQuery-specific question, but here's what I'd like to do: I'd like to add a hyperlink-functionality to a textarea, so basically I'd just like to wrap a a href=thisthat/ a in plain text around the currently selected range in a textfield using the URL

[jQuery] Re: How to get the selected text inside a textarea

2009-02-22 Thread Frederik Ring
replace = 'a href='+url+'' + sel + '/a'; textarea.value = textarea.value.substring(0,start) + replace + textarea.value.substring(end,len); } On Feb 22, 7:11 pm, Frederik Ring frederik.r...@gmail.com wrote: Hello! I don't know if this is a 100% jQuery-specific question, but here's what I'd like

[jQuery] Re: problems getting HREF attribute in click event

2009-02-22 Thread Frederik Ring
Because this in your context refers to the #wiki_article_list Refer to the a as a descendant of $(this) instead On Feb 22, 9:34 pm, hybris77 dist...@yahoo.com wrote: can anyone help me to get the href attribute to send off with the function in this code please $(Item,

[jQuery] Re: problems getting HREF attribute in click event

2009-02-22 Thread Frederik Ring
I don't know what else is contained in your #wiki_article_list, but since you appended the li just right before this should work: $(this).children('li:last').children('a').attr('href')

[jQuery] Re: problems getting HREF attribute in click event

2009-02-22 Thread Frederik Ring
Ok, so now I think I get what you want to do - I was running around wondering why you had the preventDefault() in there. In your case the click event isn't bound to the a but to your #wiki_article_list since you are chaining it after the append(). If you would do it like: $(

[jQuery] Re: Event handling/propagation question

2009-02-20 Thread Frederik Ring
I think it should be also working just this way: $('#mydiv').css('cursor','pointer').click(function(){ $(this).addClass('selected'); }); No need to select all the contents manually. On Feb 20, 5:16 pm, spaceage spaceageliv...@gmail.com wrote: OK, so you have to independently assign a handler

[jQuery] Re: Bad Syntax? $('body').append('input value=' + multipliedweight + ''); breaks script

2009-02-19 Thread Frederik Ring
Well, since your jQuery seems to be ok, the problem should be the variable you're trying to read. Can you access it with a simple console.log('multipliedweight') or will this also return 'undefined'? On Feb 19, 8:10 pm, Zaliek zali...@gmail.com wrote: A test page is located a

[jQuery] Re: Can’t set CSS using variable

2009-02-19 Thread Frederik Ring
I just tried your approach and everything worked just the way it should. Can you post the rest of your code? How do you handle the event that changes the CSS? On Feb 19, 6:41 pm, davis cinema...@gmail.com wrote: I am trying to dynamically set css with variables I retrieve from what a user

[jQuery] Auto-Replacing HTML-entities

2009-02-18 Thread Frederik Ring
Hello! I have setup a simple editor site for a image gallery where the user can visually edit (sort entries, add entries, edit captions) the HTML of a ul. When finished the content gets saved via PHP. Is there a simple way to have special characters in image captions converted into HTML

[jQuery] Re: Auto-Replacing HTML-entities

2009-02-18 Thread Frederik Ring
, and don't harm yourself or others, only then should you accept them.'   From:       Frederik Ring frederik.r...@gmail.com                                                                               To:         jQuery (English) jquery-en@googlegroups.com

[jQuery] Re: How to make an element *not* have a function attached...

2009-02-13 Thread Frederik Ring
This should be done using $(this).unbind(event,function). I don't know from your example how your handle the event so I cannot give you a more specific answer. On Feb 13, 7:57 pm, Rick Faircloth r...@whitestonemedia.com wrote: Strange question, perhaps...but... If I have an element that has

[jQuery] Re: How to make an element *not* have a function attached...

2009-02-13 Thread Frederik Ring
the textarea expandable is not something I want on all the time. -Original Message- From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On Behalf Of Frederik Ring Sent: Friday, February 13, 2009 2:04 PM To: jQuery (English) Subject: [jQuery] Re: How to make

[jQuery] Re: gettng value from radio buttons

2009-02-12 Thread Frederik Ring
Hi! You could do it like this: $(document).ready(function(){ $('input:radio[name=\'optns\']').click(function() { var optns = $(this).val(); alert (optns); }); }); You'll have to remove your onclick-s then. On Feb 12, 3:22 pm,

[jQuery] Re: uncheck specific checkbox

2009-02-12 Thread Frederik Ring
Hi! The thing is that somwhow (don't ask me why) the unchecked attribute of a checkbox is '' instead of 'false'. This worked fine with me: HTML: input class=parentcheckbox type=checkbox checked=true name=cb01/input input class=childcheckbox type=checkbox checked=true name=cb02/input input

[jQuery] Re: uncheck specific checkbox

2009-02-12 Thread Frederik Ring
=disabled, etc.) Use removeAttr() instead of setting the value to false. On Feb 12, 8:26 am, Frederik Ring frederik.r...@gmail.com wrote: Hi! The thing is that somwhow (don't ask me why) the unchecked attribute of a checkbox is '' instead of 'false'. This worked fine with me: HTML

[jQuery] Re: onClick event on content loaded by ajax

2009-02-12 Thread Frederik Ring
If I get you right you have to put your function into the callback part of your $(this).load(that); via $(this).load(url, {},myCallbackFunction()); The callback-function will be executed when the ajax-call has been completed and should do what you are asking for. On Feb 12, 7:28 pm, oli

[jQuery] Re: toggle question

2009-02-12 Thread Frederik Ring
How do you select the items to toggle and how are the Maxi Mini - images arranged in the HTML. If you have 2 things toggling at the same time it looks like you are doing somehting wrong with the selection. On Feb 12, 10:00 pm, Alain Roger raf.n...@gmail.com wrote: Hi, I would like to

[jQuery] Selecting the params inside an object

2009-02-07 Thread Frederik Ring
Hi! I think this is a simple question but I somehow cannot solve it myself. I'd like to remove those new Youtube-Headings on a blog by adding 'showinfo=0' to the Youtube-URLs. It works absolutely fine with the embeds by doing this: $('embed').each(function(){ var newname =

[jQuery] Re: Selecting the params inside an object

2009-02-07 Thread Frederik Ring
Totally sorry! I messed up 'name' and 'value', so I tried to augment the 'name' of the param. No wonder it didn't work! Works absolutely fine with: $('param').each(function(){ var newname = $(this).attr('value')+'showinfo=0'; $(this).param('value',newname); }); Thanks!

[jQuery] Altered SWF not updating

2009-02-07 Thread Frederik Ring
Hello! I am using jQuery to alter the parameters of embedded YouTube-Videos. This works fine with browsers that use the embed portion of the code (Opera FF), whereas the browsers who use the object part (IE Chrome) will update the code accordingly but not refresh the Video. What I am using is

[jQuery] Re: How to get html string including the selected element

2009-02-02 Thread Frederik Ring
So you could just either wrap it in a dummy-div or add the div id=test and /div code manually?

[jQuery] Re: How to get html string including the selected element

2009-02-02 Thread Frederik Ring
Why can't you just read the html() of the element containing your #test?