file_serve on Lasso 8.5.6

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

file_serve on Lasso 8.5.6

Anibal Escobar
Hi, I'm generating thumbnails on the fly with the following code  
combination:

image.lasso:

File_Serve($MyImage->Data, -Type='image/jpg', -
File=action_param('picture'));

and the page that show it, index.lasso, contains:

<img src="/image.lasso?picture=[#a]" alt="" hspace="0" vspace="0"  
border="0"  />

Is there any way to capture the value of the -file parameter from  
image.lasso in index.lasso?

Thanks,
Anibal Escobar
646 336 5000 x8821




#############################################################

Attend the Lasso Developer Conference 2013!
Sept 12-14, 2013 in Niagara Falls, Canada
http://www.lassosoft.com/LDC-niagara-falls-2013

#############################################################
This message is sent to you because you are subscribed to
  the mailing list Lasso
[hidden email]
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
Reply | Threaded
Open this post in threaded view
|

Re: file_serve on Lasso 8.5.6

Anibal Escobar
I should add that the reason I want to do this is to append the image  
width/height to the -file parameter to be able to show those on the  
index.lasso page.

Thanks,
Anibal Escobar
646 336 5000 x8821



On Aug 21, 2013, at 4:14 PM, Anibal Escobar wrote:

> Hi, I'm generating thumbnails on the fly with the following code  
> combination:
>
> image.lasso:
>
> File_Serve($MyImage->Data, -Type='image/jpg', -
> File=action_param('picture'));
>
> and the page that show it, index.lasso, contains:
>
> <img src="/image.lasso?picture=[#a]" alt="" hspace="0" vspace="0"  
> border="0"  />
>
> Is there any way to capture the value of the -file parameter from  
> image.lasso in index.lasso?
>
> Thanks,
> Anibal Escobar
> 646 336 5000 x8821
>
>
>
>
> #############################################################
>
> Attend the Lasso Developer Conference 2013!
> Sept 12-14, 2013 in Niagara Falls, Canada
> http://www.lassosoft.com/LDC-niagara-falls-2013
>
> #############################################################
> This message is sent to you because you are subscribed to
> the mailing list Lasso
> [hidden email]
> To unsubscribe, E-mail to: <[hidden email]>
> Send administrative queries to  <[hidden email]>


#############################################################

Attend the Lasso Developer Conference 2013!
Sept 12-14, 2013 in Niagara Falls, Canada
http://www.lassosoft.com/LDC-niagara-falls-2013

#############################################################
This message is sent to you because you are subscribed to
  the mailing list Lasso
[hidden email]
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
Reply | Threaded
Open this post in threaded view
|

Re: file_serve on Lasso 8.5.6

stevepiercy
Yup.  If you can retrieve the image src attribute, you can
similarly retrieve the height and width attributes.  But instead
of a file, serve JSON back, and use XHR or AJAX.  Make sense?

--steve


On 8/21/13 at 4:16 PM, [hidden email] (Anibal Escobar) pronounced:

>I should add that the reason I want to do this is to append the
>image width/height to the -file parameter to be able to show
>those on the index.lasso page.
>
>Thanks,
>Anibal Escobar
>646 336 5000 x8821
>
>
>
>On Aug 21, 2013, at 4:14 PM, Anibal Escobar wrote:
>
>>Hi, I'm generating thumbnails on the fly with the following
>>code combination:
>>
>>image.lasso:
>>
>>File_Serve($MyImage->Data, -Type='image/jpg', -File=action_param('picture'));
>>
>>and the page that show it, index.lasso, contains:
>>
>><img src="/image.lasso?picture=[#a]" alt="" hspace="0"
>>vspace="0" border="0"  />
>>
>>Is there any way to capture the value of the -file parameter
>>from image.lasso in index.lasso?
>>
>>Thanks,
>>Anibal Escobar
>>646 336 5000 x8821
>>
>>
>>
>>
>>#############################################################
>>
>>Attend the Lasso Developer Conference 2013!
>>Sept 12-14, 2013 in Niagara Falls, Canada
>>http://www.lassosoft.com/LDC-niagara-falls-2013
>>
>>#############################################################
>>This message is sent to you because you are subscribed to
>>the mailing list Lasso
>>[hidden email]
>>To unsubscribe, E-mail to: <[hidden email]>
>>Send administrative queries to  <[hidden email]>
>
>
>#############################################################
>
>Attend the Lasso Developer Conference 2013!
>Sept 12-14, 2013 in Niagara Falls, Canada
>http://www.lassosoft.com/LDC-niagara-falls-2013
>
>#############################################################
>This message is sent to you because you are subscribed to
>the mailing list Lasso
>[hidden email]
>To unsubscribe, E-mail to: <[hidden email]>
>Send administrative queries to  <[hidden email]>

-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
-- --
Steve Piercy               Web Site Builder              
Soquel, CA
<[hidden email]>                  <http://www.StevePiercy.com/>


#############################################################

Attend the Lasso Developer Conference 2013!
Sept 12-14, 2013 in Niagara Falls, Canada
http://www.lassosoft.com/LDC-niagara-falls-2013

#############################################################
This message is sent to you because you are subscribed to
  the mailing list Lasso
[hidden email]
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>