Hello Garrett,
I was trying to read through the view hooks that you wrote and got a feeling from the way the handlers have been written that if I create a custom view, I should be able to see the active expiration countdown timer based on js there as well. That was my assumption after reading the "uc_auction_handler_field_expires.inc" file. Is the assumption incorrect? If not, is there a way I can enable this?
I have been trying to implement views theming and have modified the entire look and feel of the page. My initial hope was that I could just replicate what you've done in the node/% callback to implement the timer but while reading through the views files, it seems you've already coded what I was planning to implement but somehow it isn't showing up.
p.s. Javascript is already enabled in the views
Ravdeep
Comments
Comment #1
Garrett Albright commentedI believe you're saying you want the expiration date and times as displayed in Views listings to update as they do for the standard product pages, right?
No, I haven't done anything special to enable this, though it shouldn't be impossible. You'll need to tweak, replace or supplement UC Auction's standard JavaScript file, though.
Comment #2
ocamp commenteddid this ever get done?
Comment #3
jepster_This JS does only the counter, but no live counter, so you can simply write your views handler as usual.
Comment #4
jepster_closed - please reopen, if something isn't clear for you.
Comment #5
oren102 commentedsorry, i know this is closed but i'm trying to accomplish the same thing as Garret.
Basically, i have an auction site and instead of refreshing the views every second to update the auction timer, I would like to use the built in javascript already coded in the auction module.
All help is appreciated.
Comment #6
oren102 commentedI actually figured out a solution using some custom php and javascript.
This javascript helped me out: http://andrewu.co.uk/clj/countdown/pro/
Also, I had to disable AJAX because it was conflicting with the view pager.