Improved Webinterface

Subscribe to Improved Webinterface 3 post(s), 2 voice(s)

 
Avatar Simon Fox 4 post(s)

Hi there!

I just did some Work on the Webinterface of JBidwatcher.
That’s what is now looks like: Image

My Changes:
  • hovereffect on rows (yellow)
  • added Link to delete Auctions
  • added Link to cancel Snipes
  • instant return to Mainpage after adding/deleting an Auction
  • improved overview and added some usefull colors

I used the Source from JBidwatcher 1.0.3pre2 and changed the code in just 2 Files:
JBidProxy.java and auctionTransform.xsl
Added the string “FOX” to my changes in JBidProxy.java, so you can find them easier (3x)

I know, my Skills are not the best and the code is not very beautiful, but it works. :)
But i’m not sure about my code to delete an Auction, Morgan can you agree with this?

 //realId is the Id of the item i want to delete
AuctionEntry ae = AuctionsManager.getInstance().getEntry(realId);
AuctionsManager.getInstance().delEntry(ae);

Files are uploaded here if someone wants to build his own. (i don’t want to provide an executable)

Or maybe Morgan wants to include these few lines in the next pre…

Greetings
Simon

 
Avatar Morgan Schweers Administrator 949 post(s)

Greetings,
It’s an interesting approach. The Java code is basically good, and points out something I never got around to doing. :( I’ll probably refactor it a bit on its way in, as there’s a couple of places where code is reused that could be turned into a method.

For the XSLT, what’s the Javascript at the top intended to do? Off the top of my head, it looks like ‘break out of frame’ code, which doesn’t seem relevant here, and thus likely to be removed. Is the attribution at the top yours?

I believe the CSS can be shrunk, but I like the basic approach.

I think ‘rem S’ should just be ‘Unsnipe’ or ‘Cancel’, and probably only show up for items that have a snipe already placed on them, but that’s straightforward.

I think this is a reasonable idea.

That said, I’ll toss up a preview link to a feature of the next major version, integrating with a web site I’ll make available shortly…

— Morgan Schweers, CyberFOX!

 
Avatar Simon Fox 4 post(s)

The Javascript on in the head is a sort of framebreaker, yes. It redichts the browser to ”/JBidwatcher” after an adding/deleting an Auction. In the previous Version, the auction was added once more if i reload the page after adding. This is because the Broser points to something like “http://host:port/addAuction?id=XXX&action=Add+Auction”...

/edit:
seems my code for deletin an auction (see first post) don’t work the way it used to…
I can’t add an auction that i just deleted! Maybe you know a fix?

/edit2:
Ok, the error seems to be in the private void addAuction(String auctionId) Method in JBidProxy. I can readd auctions in Jbidwatcher itself, but i can’t readd auctions in the Webinterface.

/edit3:
Ah, found it :-) It’s the undeleting Stuff, 3 lines fixed that