This site makes extensive use of JavaScript.
Please enable JavaScript in your browser.
Live
PTR
10.2.7
PTR
10.2.6
Beta
Tooltip is not working when typing item name in URL
Post Reply
Return to board index
Post by
60456
This post was from a user who has deleted their account.
Post by
Malgayne
http://www.wowhead.com/?search=martin+thunder
Try another item. :)
Post by
73343
This post was from a user who has deleted their account.
Post by
Erorus
Click to see it work.
Click to see the problem.
Post by
Malgayne
The "Powered By Wowhead" script functionality shows a tooltip for every link that takes you to a valid item, NPC, or spell page on Wowhead. If the link doesn't take you to a valid page, it won't work—that's intended functionality.
http://www.wowhead.com/?item=dog+whistle
isn't a valid Wowhead link—all Wowhead URLs use the item ID number.
Our XML feed DOES have an additional function, where it will return valid XML for an item by name, rather than by number, with the following syntax:
http://www.wowhead.com/?item=dog+whistle&xml
...but this has nothing to do with the "Powered by Wowhead" script, and is not officially supported.
Post by
pelf
Though, it seems the powered script isn't dying client-side for a link like that, as we get the "Loading..." tooltip. Shouldn't it parse looking for a number after
item=
and then just die client-side if it doesn't find one?
Post by
Erorus
Power.js used to do like pelf says:
Aa.href.match(/...?(item|quest|spell|achievement)=(+)/);
Due to the profiler tooltips, it was changed to:
aK.href.match(/...?(item|quest|spell|achievement|npc|object|profile)=(+)/);
Post by
73343
This post was from a user who has deleted their account.
Post by
pelf
Power.js used to do like pelf says:
Aa.href.match(/...?(item|quest|spell|achievement)=(+)/);
Due to the profiler tooltips, it was changed to:
aK.href.match(/...?(item|quest|spell|achievement|npc|object|profile)=(+)/);
Ah, I see. So it needs to be:
aK.href.match(/...?(?:(item|quest|spell|achievement|npc|object)=(+))|(?:(profile)=(+))/);
Right?
Post by
Erorus
Something like that. I don't know for sure.
Threads like these, I get tugged in two directions: wanting to help and show off, and not wanting to do unpaid work for the Wowhead devs. ;)
Post by
446822
This post was from a user who has deleted their account.
Post by
Malgayne
They load fine for me, as long as you give them a moment to load. Possibly an issue of our data centers being far apart?
Post Reply
You are not logged in. Please
log in
to post a reply or
register
if you don't already have an account.