having an issue with svn metadata plugin if compressed with
packer 3.0 beta 8 or beta 9. code below will return undefined,
works fine with uncompressed version.

<p id="one" class="some_class" data="{item_id: 1, item_label:
'Label'}">This is a p</p>
<script>
$.meta.setType("attr", "data");
alert( $("#one").eq(0).item_label );
</script>

thank you, have a great day!
-will





On 28-mag-07, at 16:24:23, howard chen wrote:


Hello,

I don't know why my example on metadata plugin won't work, in
IE7,nothing has been show up...(no error)

Source Code:
==============

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
<html xmlns="http://www.w3.org/1999/xhtml";>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf8" />
<title>Demo</title>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="metadata.js"></script>
</head>

<body>
<p id="one" class="some_class" data="{item_id: 1, item_label:
'Label'}">This is a p</p>

<script>
$.meta.setType("attr", "data");
alert( $("#one")[0].item_label );
</script>
</body>
</html>




==============

anyone can help?

thanks.

Reply via email to