English 中文(简体)
为何这篇文章似乎不在我的网站iPad/iPhone工作?
原标题:Why doesn t the $.post appear to be working on an iPad/iPhone on my site?

< a href=" "http://wncba.co.uk/resultures/? action=navigate&seasson=2012&easion_id=3&division_id=14&fixture_id=2444&nav_key=4bb9400f779ddf686dea09070519589" rel=“no follow” >Thi 是页面之一。

当您单击表格底部的错误图标时,表格中会出现更多的错误图标。当您单击表格中的图标时,就会出现qtip 弹出,然后通过jquery 函数抓取代码 $. pos. 。 我在 IE、 Chrome、 Opera 和 Firefox 中测试了代码, 并且效果很好。 在ipod/ipad 上的搜索中, 它没有在 ipod/ pad 上出现, 然后在设备上开发控制台没有多大帮助。 其中出现的一个( 两次) 是 :


JavaScript: Error
undefined
TypeError:  undefined  is not a function

有谁知道这可能会引发什么,如果这与为什么ajax不起作用有关?包含的脚本是在这里

谢谢


<强力 > 编辑: 这是我现在修改的代码的一部分, 以修正它。 它从

$.post("ajax_requests.php?action=get_error_code", {data:$(this.targetThis).attr( data-errorData )}, function(data) {

    $(this.qtipThis).find( .code ).html(data);

    $(this.qtipThis).find( .email .link ).attr( onclick ,   );
    $(this.qtipThis).find( .email .link ).attr( href ,  mailto: +errorReportEmail+ ?subject=Website Table Error (Error id:  +data+ ) );

}.bind(this));

感谢 @raina77ow的回答)

    var self = this;
    $.post("ajax_requests.php?action=get_error_code", {data:$(this.targetThis).attr( data-errorData )}, function(data) {

    $(self.qtipThis).find( .code ).html(data);

    $(self.qtipThis).find( .email .link ).attr( onclick ,   );
    $(self.qtipThis).find( .email .link ).attr( href ,  mailto: +errorReportEmail+ ?subject=Website Table Error (Error id:  +data+ ) );
});
最佳回答

如果问题与 $.post 有关,可能是因为这个问题 的某种变异?它不是关于batman ,而是关于函数.bind()方法。

问题回答

暂无回答




相关问题
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.

热门标签