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"
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
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:
>
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
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
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
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
nt").val();
> content = content.replace(/ target=(\'|\")_(new|blank)(\'|\")/, "");
> content = content.replace(/ border=(\'|\")\d+(\'|\")/, "");
>
> -Eric
>
> On Nov 17, 10:18 am, cc96ai <[EMAIL PROTECTED]> wrot
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
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 ?
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
does jquery have any plugin like magento product grid ?
http://demo.magentocommerce.com/bed-and-bath/living-room
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
>
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
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 ?
15 matches
Mail list logo