PDA

View Full Version : adjusting blogbox width


jsundman
10-09-2003, 08:59 AM
I would like to use the blogbox widget on my website, but it's a little too wide for where I want to put it. I suppose that I could copy the code and put in a different canvas width, and then host that on Mylaszlo.com?

Hmmm. But then what would happen to the art assets?

In any event, I think it would be better if the width were parameterized. What do you advise?

Thanks!

jrs

mdavis
10-09-2003, 10:08 AM
LPS on myLaszlo makes all of the art assets available from the source directory.

You could downlaod all the art individually and reconstruct it in your developer addition LPS installation. When you bundle it all back up again, everything will be in one place.

This has one major downside the be aware of. We are generating the embedding code for you. This allows us to make updates and changes to the widget which are transparent to the end user and deployers such as yourself. By deploying your own version of the widget, you will need to maintain it yourself.

I'm interested in which parameters people want to tweak. Right now you can twiddle tabcolor, gradient color, text color and gradient opacity. Reasonable size params would be widgetWidth, widgetHeight, titleHeight, fontHeight, fontStyle, fontWeight, fontName.

More complexity to be sure....

antun
10-09-2003, 11:37 AM
Parametarizing the width or height isn't that straightforward:

The canvas width or height will be the width/height of the swf that gets sent to the client. You change the object/embed tag dimensions in the HTML page that you embed the widget in, and that will stretch the swf, but it might look ugly.

On the other hand, you could write a JSP that takes a parameter, for the width, then dynamically generates and compiles the LZX code on the server, before sending it back to the client. The downside here is that you won't be getting any server-side cacheing benefits, and the server will be fully recompiling the app on every request - very slow.

Or, you could just take the code, and tweak it so that it's a little narrower, and post your own version on mylaszlo...

-Antun
-Antun