[jQuery] $.ajax - truncates data

2009-01-19 Thread pp...@fragrance-world.net

$.ajax({
type: "POST",
url: "/_webservices/shoppingcart.asmx/AddItemToCart",
dataType: "xml",
data: "cartdata=" + $("#cartXml").val() + "&sku=" + sku,
processData: false,
success: function (xml) {
$("#cartXml").val($(xml)[0].xml);

var cartNode = $(xml).find("carttotals");

$(".totaldata:first").text(cartNode.find("items").text
());
$(".totaldata:last").text(cartNode.find("totals").text
());
}
  });

I am calling this code with success, but when cartdata (paramater) get
large, then it seems to truncates getting into web service?  Anyone
have any ideas what it could be?

Thanks
Pardeep


[jQuery] Problem with dynamic XML

2009-02-01 Thread pp...@fragrance-world.net

I have the following code:

var cartXml = $("33");

alert(cartXml.find("items").text());

this will spit out 33 in both safari and firefox

However in IE it does not produce anything

Here is what I have figured out so far:

if I change to the following:

alert($("33").find("p").text());

this works in IE, Safari, and firefox

it seems with IE you need to use real html tag names and not ones that
are made up.

Does anyone know how I can fix this?