[jQuery] Re: How do I extract a part of received data

2009-09-22 Thread Frederik
would look like: > > HelloWorld > > > > On Mon, Sep 21, 2009 at 11:49 AM, Frederik wrote: > > > Anyone has any idea ? > > > I have tried this way. > > $("Hello").find("p").appendTo("#content");  // > > works... it append

[jQuery] Re: How do I extract a part of received data

2009-09-21 Thread Frederik
oblem is when I try to extract a part of data, it does not work $(data).find("p").appendTo("#content"); // Does not find the Hello part Thanks in advance for your help On Sep 18, 10:34 am, Frederik wrote: > Wrong syntax?  Please explain. > > I try to use this instructi

[jQuery] Re: How do I extract a part of received data

2009-09-18 Thread Frederik
Wrong syntax? Please explain. I try to use this instruction found on http://www.visualjquery.com/: jQuery(expression, context) > The core functionality of jQuery centers around this function. Everything in > jQuery is based upon this, or uses this in some way. The most basic use of > this fun

[jQuery] How do I extract a part of received data

2009-09-17 Thread Frederik
I explain... I try to load only a part of my data file (named Elements.html). It will load all the data file with var elem = $('#section_news', data); Here is my code $.get("Elements.html", function(data){ // get id section_news for the receive data var elem = $('#section_news', data);

[jQuery] How do I extract a part of received data

2009-09-17 Thread Frederik
I explain... I try to load only a part of my data file (named Elements.html). It will load all the data file with var elem = $(data); I am unable to load only a section of this file if I use var elem = $('#section_news', data); Could you please help me find out what part of my code is inco

[jQuery] How do I extract a part of received data

2009-09-17 Thread Frederik
I explain... I try to load only a part of my data file (named Elements.html). It will load all the data file with var elem = $('#section_news', data); I am unable to load only a section of this file if I use var elem = $('#section_news', data); Could you please help me find out what part o

[jQuery] IE and

2009-03-04 Thread Frederik Ring
Hello! If you copy paste the embed-code from a YouTube-Video like this: the tag is missing its classid-attribute and will therefore be ignored by IE. Now I have the sitaution that I need to alter the parameters of the object but cannot as IE will simply ignore them. I'd like to do sth like t

[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 wrote: > Im not sure if this is intended, but it leads to some unexpected > results: > > console.log($('').css('display')); --> 'block' > > According to W3, span's d

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

[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 wrote: > Why don't you just

[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 wrote: > I wr

[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: Multiselect listbox

2009-02-25 Thread Frederik Ring
unction(){ > >                 if(jQuery('.zonelocation[]').attr('checked') == 'checked'){ >                         zonelocationVal = true; >                 } >         }); > /*/ > > What Iam doing wrong? > > Thank

[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 wrote: > 2 things: you are referring to multiple checkboxes, but do that with > an ID (#zonelocation). That will not work. Use a cl

[jQuery] Re: Multiselect listbox

2009-02-25 Thread Frederik Ring
/ > > Problem is that, if I select atleast one record,  even then > 'zonelocationVal' is always false. > > Can you guide me , how to solve this problem. > > Thanks in advance > > On Feb 25, 2:04 pm, Frederik Ring wrote: >

[jQuery] Re: Multiselect listbox

2009-02-25 Thread Frederik Ring
You could do sth like: var ok = false; $('.elementInListbox').each(function(){ if ($(this).attr('checked') == checked){ok = true);} }); You will have to set your attributes according to the type of your elements though. On Feb 25, 9:55 am, Bluesapphire wrote: > Hi! >     How can i check that

[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). On

[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: $('').appendTo("#table"); instead. On Feb 23, 9:07 pm, Frederik Ring wrote: > Usually you should be able do what you are trying to do. To me it &g

[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 wrote: > I'm creating

[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: 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 but to your #wiki_article_list since you are chaining it after the append(). If you would do it like: $( '#wiki_article_list'

[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 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
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 wrote: > can anyone help me to get the href attribute to send off with the > function in this code please > > $("Item", xmlData).each(function(){ >      

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

2009-02-22 Thread Frederik Ring
end); var replace = '' + sel + ''; textarea.value = textarea.value.substring(0,start) + replace + textarea.value.substring(end,len); } On Feb 22, 7:11 pm, Frederik Ring wrote: > Hello! > > I don't know if this is a 100% jQuery-specific question, but here's &

[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 "" in plain text around the currently selected range in a textfield using the URL specified in a dialog win

[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: $('#list1').s

[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 wrote: > OK, so you have to independently assign a handler to all descendant > el

[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 wrote: > I am trying to dynamically set css with variables I retrieve from what > a user types into a textfield

[jQuery] Re: Bad Syntax? $('body').append(''); 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 wrote: > A test page is located http://www.procycle.us/ > test.html">

[jQuery] Re: Auto-Replacing HTML-entities

2009-02-18 Thread Frederik Ring
t; find they make sense, conform to your experience, and don't harm yourself > or others, only then should you accept them.' > >   From:       Frederik Ring                         >                                                     > >   To:         "jQuery (English

[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 . When finished the content gets saved via PHP. Is there a simple way to have special characters in image captions converted into HTML entities?

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

2009-02-13 Thread Frederik Ring
nality, until another link is clicked to re-enable the functionality. > > In other words, having the textarea "expandable" is not something I want > on all the time. > > > -Original Message- > > From: jquery-en@googlegroups.com [mailto:jquery...@googl

[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" wrote: > Strange question, perhaps...but... > > If I have an element that has an function from a pl

[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 wrote: > Hi, > > I would like to simulate the maximize/

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

[jQuery] Re: uncheck specific checkbox

2009-02-12 Thread Frederik Ring
;checked" (for disabled it's > disabled="disabled", etc.) > > Use removeAttr() instead of setting the value to false. > > On Feb 12, 8:26 am, Frederik Ring wrote: > > > Hi! > > > The thing is that somwhow (don't ask me why) the unchecked

[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: jQuery: $(document).ready(function(){ $('.childcheckbox').change(function(){ $(this).prev('.parentcheckbox').attr('checked

[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, "angelochen...@gmail

[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 portion of the code (Opera & FF), whereas the browsers who use the part (IE & Chrome) will update the code accordingly but not refresh the Video. What I am using is the follo

[jQuery] Re: Selecting the s 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 . 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] Selecting the s inside an object

2009-02-07 Thread Frederik Ring
var newname = $(this).attr('src')+'&showinfo=0'; $(this).attr('src',newname); }); Since the -tag gets its parameters from the nested I somehow don't manage to access these. How do I access the name-parameter of each object? Thanks! Frederik

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