I actually considered that but then I realized I could just use the JS
below the creation of the item and resize it.

Thanks though :)


On Tue, 26 Oct 2004 08:36:33 -0400, Joe Rinehart <[EMAIL PROTECTED]> wrote:
> Greg,
> 
> This may be a little tricky.  CF is a server-side technology:  it
> creates HTML (or other text response), and delivers it to the client.
> In other words, it can create JavaScript, but JavaScript can't talk to
> it:  JavaScript is a client-side technology.
> 
> One way to do this would be to use JavaScript to redirect to a page,
> passing the width in the URL.
> 
> Example:
> 
> Page 1:
> 
> <script>
>  // stuff to get width results in variable named "myWidth"
>  document.location("page2.cfm?width=" + myWidth);
> </script>
> 
> Page 2:
> 
> <cfif not isDefined("url.width") or not isNumeric(url.width)>
>  <cflocation url="page1.cfm" addToken="no" />
> </cfif>
> 
> <cfoutput>
> <div style="width:#url.width#px">
> ...stuff...
> </div>
> </cfoutput>
> 
> Cheers,
> 
> Joe
> 
> On Tue, 26 Oct 2004 07:17:01 -0500, Greg Morphis <[EMAIL PROTECTED]> wrote:
> > I have JS function to get the screen available width.
> > I need to either put that in a CF variable
> > or use it in the <div style=""> directly.
> > Maybe this is real easy and I'm just missing the obivious
> >
> >
> 
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Purchase from House of Fusion, a Macromedia Authorized Affiliate and support the CF 
community.
http://www.houseoffusion.com/banners/view.cfm?bannerid=38

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:182598
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to