Perhaps this is a silly thought on my part, but it seems to me that the question might best be asked on a jquery programming forum, as opposed to a Pentax Discuss list. For example: http://www.dreamincode.net/forums/forum/105-jquery/
I'm no jquery programmer, but it seems to me that you should: either add another DIV to encapsulate your replacement code and then simply call it by it's (parent) ID in your replacewith. Let's ID that new encapsulating DIV "parentDIV": $( "div.breadcrumb" ).replaceWith( $( ".parentDIV" ) ); I kind of doubt that you want to replace it with an entire HTML page code, which includes head and body code, which is what it looks like you are doing. replaceWith examples: http://api.jquery.com/replacewith/ On Tue, Mar 11, 2014 at 8:18 AM, CollinB <coll...@brendemuehl.net> wrote: > I need to replace the contents of a current <div> with those of a page > loaded into "data". > The <div> on the loaded content has the same ID as the in-memory page on the > client. > (I have verified the contents of "data".) > So ... > $(".breadcrumb").replaceWith(data(".breadcrumb").html()); > > The first part works. I can "replaceWith" raw text with no problem. > Retrieving the "breadcrumb" out of "data" is my issue. > > TIA, > > Collin > > > -- > PDML Pentax-Discuss Mail List > PDML@pdml.net > http://pdml.net/mailman/listinfo/pdml_pdml.net > to UNSUBSCRIBE from the PDML, please visit the link directly above and follow > the directions. -- Photographers must learn not to be ashamed to have their photographs look like photographs. ~ Alfred Stieglitz -- PDML Pentax-Discuss Mail List PDML@pdml.net http://pdml.net/mailman/listinfo/pdml_pdml.net to UNSUBSCRIBE from the PDML, please visit the link directly above and follow the directions.