[jQuery] how can we set script/noscript tag html ?

2009-01-16 Thread cc96ai
we can get the .html() in script/noscript but once we want to write it back, we got error e.g. $("script").html("var a=123"); "Unexecpeted call to method or property access"

[jQuery] html() function remove attribute double quote in IE

2009-01-13 Thread cc96ai
alert( $(content).html() ); - html code: http://www.google.ca"; target="_new">test link http://www.google.ca"; target="_new">test link2 - it will return in IE6 http://www.google.ca"; t

[jQuery] Re: strip out textarea 's HTML attribute

2008-11-18 Thread cc96ai
e: > change > > var code = $("").html($("#content").val()); > > to > > var code = $("" + $("#content").val() + ""); > > - Richard > > On Tue, Nov 18, 2008 at 1:14 PM, cc96ai <[EMAIL PROTECTED]> wrote: >

[jQuery] Re: strip out textarea 's HTML attribute

2008-11-18 Thread cc96ai
disconnected from the DOM, as it was never appended > > to the body or any other element in the document. You can also do fun things > > like > > > var strong = $("strong", foo); // find strong elements within the context of > > the (in this case) disconnected DO

[jQuery] Re: strip out textarea 's HTML attribute

2008-11-17 Thread cc96ai
nt('div'); // not part of the dom yet > div.setAttribute('id', 'foo'); // set an id, but it's still not part of the > dom > document.body.appendChild(div); // now the div is part of the dom > > But I'm not sure how tags are handled prior to d

[jQuery] Re: strip out textarea 's HTML attribute

2008-11-17 Thread cc96ai
gt; -Hector > > On Mon, Nov 17, 2008 at 12:21 PM, cc96ai <[EMAIL PROTECTED]> wrote: > > > That is my original design, however if the textarea contains the > > javascript, it will execute the Javascript in div as well. > > > in the following example, the popup will

[jQuery] Re: strip out textarea 's HTML attribute

2008-11-17 Thread cc96ai
ave access to jQuery's functions on the HTML: > var html = $('#content').val(); > var div = $('').css({display: 'none'}); > div.html(html); > div.find('a[target]').removeAttr('target'); > > Then replace the textarea with the

[jQuery] Re: strip out textarea 's HTML attribute

2008-11-17 Thread cc96ai
nt").val(); > content = content.replace(/ target=(\'|\")_(new|blank)(\'|\")/, ""); > content = content.replace(/ border=(\'|\")\d+(\'|\")/, ""); > > -Eric > > On Nov 17, 10:18 am, cc96ai <[EMAIL PROTECTED]> wrot

[jQuery] strip out textarea 's HTML attribute

2008-11-17 Thread cc96ai
I have a text area in the following http://www.google.ca"; target="_new">test link and I would like to strip out the hyperlink target, and image border, and get the string of the HTML, any idea on it? I try the following, but it only remove the hyperlink in the page, not the hyperlink in text

[jQuery] how to output element in string

2008-11-10 Thread cc96ai
my link after remove the target attribute $("#link").removeAttr("target"); I want to get the string is my link but how could I ? I don't think jquery have toString() function, any idea ?

[jQuery] get onclick value

2008-10-15 Thread cc96ai
http://test.com/";>link alert( $("#link1").attr("onclick") ); expect will be target=_self but the result is function anonymous() { target=_self } any idea how could I only get target=_self back

[jQuery] product grid plugin

2008-09-23 Thread cc96ai
does jquery have any plugin like magento product grid ? http://demo.magentocommerce.com/bed-and-bath/living-room

[jQuery] Re: put image on top of another image

2008-09-18 Thread cc96ai
m/code/overlapimages/ > > andy > > -Original Message- > From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On > > Behalf Of cc96ai > Sent: Tuesday, September 09, 2008 3:34 PM > To: jQuery (English) > Subject: [jQuery] put image on top of another image >

[jQuery] pagination sample ?

2008-09-12 Thread cc96ai
Does anyone use pagination plugin http://plugins.jquery.com/project/pagination is there any sample for calling ajax ? how could we apply it ? 1) we set the number record in pagination, if that's ajax dynamic return, we don't know how many will be, how could we resolve it ? function pageselectC

[jQuery] put image on top of another image

2008-09-09 Thread cc96ai
I m new on jquery, I am not can jquery can do or not I want to put a image on top of other image, e.g. we have a product image, we want to put a sign of "sold" or "hot buy" image on top , any idea how could I do it in jquery ?