English 中文(简体)
IE AJAX Responses Trim All Data After Null (0x00)profiles
原标题:IE AJAX Responses Trim All Data After Null (0x00) Characters

在互联网探索者(IE6、IE7和IE8)中,除“0x00”外的特性外,任何特性(数据)。

我收到了日本宇宙航空研究开发机构的请求,如:

var pages = 10;
var nextnoteid = 0;

for (isub = 1; isub <= pages; isub++)
    {
    var c = "http://www.site.com/application.exe?id=" + nextnoteid;
    $.ajax(
        {
        url: c,
        cache: false,
        async: false,
        success: function(data)
            {
            var start = data.indexOf("NEXTNOTEID") + 10;

            // save the id of the next note to retrieve
            nextnoteid = data.substring(start, start + 16).trim();
            data = data.substring(0, start - 10);

            // append note to DOM
            $("#printarea").append("<pre class= pxprintpage >" + data + "</pre>");
            }
        });
    }

答复按以下格式(即0x00特性)重新作出:

Note Title
Note Author
... simple text note ...
__________NEXTNOTEID__________9827482998274829__________

我如何能够在0x00之后,在IE6、IE7和IE8中获取这一数据,而不会改变反应?

最佳回答

IE browsers希望终止在法国国立大学的特征。 解决办法是用空间取代无效特性。 不幸的是,这似乎是唯一的解决办法,这并不符合提出的问题。

问题回答

我不敢肯定这样做会真正帮助,但试图在通过至<编码>的>文本”<<的备选办法中确定<代码>Type field。

如果对该问题加以限定,请看dataFilter 备选办法至。 这使你能够确定处理原始反应的备用功能。





相关问题
selected text in iframe

How to get a selected text inside a iframe. I my page i m having a iframe which is editable true. So how can i get the selected text in that iframe.

How to fire event handlers on the link using javascript

I would like to click a link in my page using javascript. I would like to Fire event handlers on the link without navigating. How can this be done? This has to work both in firefox and Internet ...

How to Add script codes before the </body> tag ASP.NET

Heres the problem, In Masterpage, the google analytics code were pasted before the end of body tag. In ASPX page, I need to generate a script (google addItem tracker) using codebehind ClientScript ...

Clipboard access using Javascript - sans Flash?

Is there a reliable way to access the client machine s clipboard using Javascript? I continue to run into permissions issues when attempting to do this. How does Google Docs do this? Do they use ...

javascript debugging question

I have a large javascript which I didn t write but I need to use it and I m slowely going trough it trying to figure out what does it do and how, I m using alert to print out what it does but now I ...

Parsing date like twitter

I ve made a little forum and I want parse the date on newest posts like twitter, you know "posted 40 minutes ago ","posted 1 hour ago"... What s the best way ? Thanx.

热门标签