[jQuery] non-html elements

2008-06-14 Thread Andy Chambers
Hi, Are you supposed to be able to use jquery to search for non-html elements? I've got a web-app that is sending out xrefs which are recursively expanded by jquery using the following function. function expand_refs (context) { $("xref",context||document).each(function (i) { var rpl = cac

[jQuery] Re: expand-refs

2008-06-01 Thread Andy Chambers
On Jun 1, 9:01 am, Wizzud <[EMAIL PROTECTED]> wrote: > Untested... > > function expand_refs (context) { > $("xref",context||document).each(function (i) { > var rpl = defs[$(this).attr("ref")]||0; > if(rpl){ > var cntxt = $(rpl).insertAfter(this); > $(this).remove();

[jQuery] expand-refs

2008-05-31 Thread Andy Chambers
Hi, I'm generating some code that looks like the snippet below. Embedded within the html are some elements. I want to expand each one according to the corresponding property of the defs object. My naive attempt is as follows function expand_refs () { $("xref").each(function (i) { $

[jQuery] Re: Find a exact location in the dom, then move down from that location to another element

2008-04-10 Thread Andy Chambers
On Apr 10, 11:24 pm, sleepwalker <[EMAIL PROTECTED]> wrote: > Is there a way in jquery to find your exact location in the dom and > then move down from that location to another element? For example can > I get the value of a input[text].someClass after changing it and write > that change only to t

[jQuery] correct way to quote strings

2008-04-01 Thread Andy Chambers
Hi, I am writing a server program that updates a page according to the current state on the server by sending down jquery commands to be evaluated. http://gitorious.org/projects/hunchncells At the moment, the server is generating strings like this... $("s").html(" "); These are failing, I t