Make your image very large by default (or however large the largest box would ever be) and let the browser scale it down for you automatically. Nothing can make images scale up, but almost anything can do a reasonable job at going down..
This should all be possible with 0 help from tapestry / javascript / dojo. Just your image / css and you. On 8/13/07, Ken nashua <[EMAIL PROTECTED]> wrote: > Folks, > > I want to operate JSON during <body onload:???> > > Basically I have a Border.html that operates a custom <head> which renders a > header image. > > <span jwcid="@ScriptIncludes" /> > <html > jwcid="[EMAIL PROTECTED]" > title="ognl:layout.title" > stylesheet="ognl:assets.stylesheet" > > <body jwcid="@Body"> > > But my header images are not scaling to the exact size of the box. > > So I would like to operate JSON during ONLOAD in order to ask the server > what the actual size of the box is using dojo.html.getContentBox(???); > > Can anyone explain how I can rig this up? > > Preferably I would like to use... > void renderComponent(IJSONWriter writer,IRequestCycle cycle) > > The doc semantics for rigging all this up are not clear. > > At best there are two variables I would like to gather from the server > (scaleWidth, scaleHeight... which are the actual outer dimensions of the box > in question). > > Thanks in advance > > Best regards > Ken in nashua > > _________________________________________________________________ > Now you can see trouble…before he arrives > http://newlivehotmail.com/?ocid=TXT_TAGHM_migration_HM_viral_protection_0507 > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Jesse Kuhnert Tapestry/Dojo team member/developer Open source based consulting work centered around dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
