Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation

Re: AJAX replacement for voting buttons

by McDarren (Abbot)
on Jan 03, 2007 at 02:04 UTC ( #592686=note: print w/replies, xml ) Need Help??

in reply to AJAX replacement for voting buttons

After installing this, I've found that I can no no longer see anything within <code>tags. All I see are the code "blocks" with no content. Here is a screenshot in case you're not sure what I mean.

Using Firefox 2.0 on WinXP.


Replies are listed 'Best First'.
Re^2: AJAX replacement for voting buttons
by ikegami (Patriarch) on Jan 03, 2007 at 04:53 UTC

    TT elements are being stripped in an attempt to remove the existing ++ and -- text, but TT elements are also used for code tags.

    It's just a question of fixing the XPath query. "//tt" needs to be replaced. I think "//div[@class='vote']//tt" will do the trick.

      Yes, I had started noting that peculiar behaviour. I have updated the script with your new XPath query. Thanks.

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://592686]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (5)
As of 2022-10-04 20:39 GMT
Find Nodes?
    Voting Booth?
    My preferred way to holiday/vacation is:

    Results (19 votes). Check out past polls.