English 中文(简体)
频率延长 美容
原标题:Jquery extension BeautyTips doesn t work with dynamic ajaxPath option

I m 采用美容分法,但Im没有装 l通过动态的URLs作为亚子宫。 http://www.lullabot.com/files/bt/bt-latest/DEMO/index.html“rel=“nofollow”>。

$( #example18 ).bt({
  ajaxPath: ["$(this).attr( href )",  div#content ]
});

$(  .username  ).bt({ 
    ajaxPath: ["$(this).attr( title )"]
});

However, when I hover over the username element, instead of bringing up the URL stored in the title attribute within the Beautytip, it attempts to send the whole browser to another page (or refresh; it s hard to tell because the browser address doesn t change, but the page goes blank, and a View Source shows an entirely different page.)

我verified that the title in the element in question is correct and is being addressed correctly. If I statically pass the path, it works, but I d rather not write a new version of this function for every item on the page that needs a Beautytip.

Is there a syntax issue here? Any help would be much appreciated.

我的超声望是:

<span class="username" title="http://degree3.com/popup/baloon/member-summary?id=53">Username</span>
最佳回答

奥凯,我不得不通过延期感到愤慨,但我是这样。

原始作者(由于我没有花时间去除西半球)杀死了美容操作的元件的“称号”特性,并将其价值转嫁给所谓的“物权”。 我猜测,为什么他的样本使用了“href”的属性,而不是称号,而我是 d,试图把这个名词用在错误的属性上。

Anyway, this works:

$(  .username  ).bt({ 
    ajaxPath: ["$(this).attr( bt-xtitle )"]
});
问题回答

暂无回答




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

热门标签