Re: JSON help... image scaling onRender

2007-08-14 Thread Ken nashua

Thanks Jesse,

Well I was hoping to find an end to end JSON example... just snippets 
around... no one really has shown substantial usage of that.


For my solution though...

Currently this is what we got in css (the main reason why I wanted to go 
with JSON)...


div#header {
color: black;
clear: both;
padding: 0;
height: 94px;
background: #fff url( images/trails-header94.jpg ) top left no-repeat;
}

So I am assuming your implying this... since there are no width/height specs 
for background


div#header {
color: black;
clear: both;
padding: 0;
height: 100%;
width: 100%;
background: #fff url( images/trails-header94.jpg ) top left no-repeat;
}

But you forgot that I do not have any frames... so when I specify 100%, the 
image takes up the WHOLE space of the browser viewport. ANything rendered 
after that gets clipped (which is basically my nav pane and content pane).


I do not want to go with frames due to clipping issues.

Any more ideas?

how bout' that JSON end to end example? Any takers (or givers).
best regards
Ken

_
See what you’re getting into…before you go there 
http://newlivehotmail.com/?ocid=TXT_TAGHM_migration_HM_viral_preview_0507



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: JSON help... image scaling onRender

2007-08-14 Thread Ken nashua

Thanks Jesse,

Wanted to let you know that the scaling down fails.

I went with...

div#header {
color: black;
clear: both;
padding: 0;
height: 15%;
width: 100%;
background: #fff url( images/trails-header94.jpg ) top left no-repeat;
}

And the image gets clipped. It does not scale down to the 15%. Is all this 
incapability due to CSS geometry mgt? Thats kinda why I wanted to go with 
JSON to do my own geometry mgt onLoad.


Best regards
Ken

_
Find a local pizza place, movie theater, and more….then map the best route! 
http://maps.live.com/default.aspx?v=2ss=yp.bars~yp.pizza~yp.movie%20theatercp=42.358996~-71.056691style=rlvl=13tilt=-90dir=0alt=-1000scene=950607encType=1FORM=MGAC01



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: JSON help... image scaling onRender

2007-08-14 Thread Ken nashua

Ooops... let me take that back...

That was extraneous text being clipped... not the image.

OK, so the actual image does scale down.

I reduced my height to somethign reasonable for header and went with 
WIDTH=100%.


I think this should get me what I want for the short run.

Thanks for taking the time.
Best regards
Ken

_
Puzzles, trivia teasers, word scrambles and more. Play for your chance to 
win! http://club.live.com/home.aspx?icid=CLUB_hotmailtextlink



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



JSON help... image scaling onRender

2007-08-13 Thread Ken nashua

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]



Re: JSON help... image scaling onRender

2007-08-13 Thread Jesse Kuhnert
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]