Re: [jQuery] Replace element in DOM tree.

2007-01-23 Thread Galen Palmer
with the same id but a different attributes and internal structure). Another possibility is: $(#child2).remove().after(div id=\child2\New Content/div); Anyone tried anything similar? Thanks again, Galen On 1/23/07, Galen Palmer [EMAIL PROTECTED] wrote: Hi all, Is there a way to replace an element

Re: [jQuery] How does one add children to a DOM element using jQuery?

2007-01-22 Thread Galen Palmer
Hi all, I'm going to append on to this thread since it seems to be related... I'm trying to dynamically build a tree from ajax calls using jQuery. The actual code is more complicated than I'm listing here, but I'm trying to get to the crux of the problem which is: Can jQuery append to

Re: [jQuery] How does one add children to a DOM element using jQuery?

2007-01-22 Thread Galen Palmer
Stupid error: I forgot to put a # in front of my id selector. GSP On 1/22/07, Galen Palmer [EMAIL PROTECTED] wrote: Hi all, I'm going to append on to this thread since it seems to be related... I'm trying to dynamically build a tree from ajax calls using jQuery. The actual code is more

[jQuery] Another XML / .get / iterator question

2006-12-22 Thread Galen Palmer
I'm trying to implement a web2.0y tag interface. I did a subversion update and built jquery.pack.js and tested on more time before posting this question so I think I am completely up to date. Anway, I want to iterate through a set of XML tags the JQuery way but the loop never appears to be

[jQuery] Appending option to select

2006-10-10 Thread Galen Palmer
Hi All, I'm new to jquery but like what I see so far. I have an array of strings that I'd like to add to a select element as option elements. HTML: select id=routeSelect /select JavaScript: for(var i = 0; i routes.length; ++i) { $(#routeSelect).append(option value=\

[jQuery] $.getJSON not a function?

2006-09-29 Thread Galen Palmer
I'm using the packed jQuery library from August 31st.My script to display a list of tags is: function loadTags() { $.getJSON(tag.ajx, { id: ${ model.item.id} }, function(json){ tags = json.tags; if(tags.size() 0) { $(#tagDisplayArea).empty().append(Technorati Tags: ul); for(i = 0; i