You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@shindig.apache.org by Neo Anderson <ne...@googlemail.com> on 2008/06/17 11:00:33 UTC
Dynamic height in Content type URL gadget
Long time ago I got below response:
In the interim, you'll want to generate something like this (PHP example):
*$scriptPath = $containerUrl.strip_tags($_GET['libs']);
echo '<script src="'.$scriptPath.'"></script>';*
But when I put above PHP script, the dynamic height js or settitle js
files are not getting included.
But the libs parameter is: *
dynamic-height:settitle.js?v=fecaa74c9a98ecd5c1639191e126f88*
In the case of rpc file, we can include it by using <script src="
http://localhost:8080/gadgets/js/rpc.js?c=1&debug=1"></script>,
But the features files will be placed in classes. So, how can I include
them?
Re: Dynamic height in Content type URL gadget
Posted by Chris Chabot <ch...@xs4all.nl>.
now now, there's no need to be rude :)
On Jun 17, 2008, at 11:04 AM, Arun Kumar wrote:
> Don't spam the list. Why you are posting the same message again?
>
> On 6/17/08, Neo Anderson <ne...@googlemail.com> wrote:
>> Long time ago I got below response:
>>
>> In the interim, you'll want to generate something like this (PHP
>> example):
>>
>> *$scriptPath = $containerUrl.strip_tags($_GET['libs']);
>> echo '<script src="'.$scriptPath.'"></script>';*
>>
>> But when I put above PHP script, the dynamic height js or settitle js
>> files are not getting included.
>>
>> But the libs parameter is: *
>> dynamic-height:settitle.js?v=fecaa74c9a98ecd5c1639191e126f88*
>>
>> In the case of rpc file, we can include it by using <script src="
>> http://localhost:8080/gadgets/js/rpc.js?c=1&debug=1"></script>,
>>
>> But the features files will be placed in classes. So, how can I
>> include
>> them?
>>
Re: Dynamic height in Content type URL gadget
Posted by Arun Kumar <ar...@gmail.com>.
Don't spam the list. Why you are posting the same message again?
On 6/17/08, Neo Anderson <ne...@googlemail.com> wrote:
> Long time ago I got below response:
>
> In the interim, you'll want to generate something like this (PHP example):
>
> *$scriptPath = $containerUrl.strip_tags($_GET['libs']);
> echo '<script src="'.$scriptPath.'"></script>';*
>
> But when I put above PHP script, the dynamic height js or settitle js
> files are not getting included.
>
> But the libs parameter is: *
> dynamic-height:settitle.js?v=fecaa74c9a98ecd5c1639191e126f88*
>
> In the case of rpc file, we can include it by using <script src="
> http://localhost:8080/gadgets/js/rpc.js?c=1&debug=1"></script>,
>
> But the features files will be placed in classes. So, how can I include
> them?
>
Re: Dynamic height in Content type URL gadget
Posted by Chris Chabot <ch...@xs4all.nl>.
the rpc.js?c=1 makes me think that in this case your talking about the
functionality for set height / title for the -container- and not the
gadget?
if your talking about the container, there's 2 options
1) Use the supplied javascript example files (see examples/*.html and
samplecontainer/samplecontainer.html sources for a examples). This is
the quick way to get something demoable up and running, but then you
don't have a lot of freedom in the way the page is laid out, and you
can't use secure tokens, so for a production env this isn't ideal. The http://shindig.us.chabotc.com/gadgets/files/container/gadgets.js
file then provides the set height, tittle, etc functionality for you
2) Create your own, this means registering your own RPC handlers for
those types of calls in and performing those actions.. for instance a
simple example of how thats done in partuza: http://code.google.com/p/partuza/source/browse/trunk/html/js/container.js
-- Chris
On Jun 17, 2008, at 11:00 AM, Neo Anderson wrote:
> Long time ago I got below response:
>
> In the interim, you'll want to generate something like this (PHP
> example):
>
> *$scriptPath = $containerUrl.strip_tags($_GET['libs']);
> echo '<script src="'.$scriptPath.'"></script>';*
>
> But when I put above PHP script, the dynamic height js or settitle js
> files are not getting included.
>
> But the libs parameter is: *
> dynamic-height:settitle.js?v=fecaa74c9a98ecd5c1639191e126f88*
>
> In the case of rpc file, we can include it by using <script src="
> http://localhost:8080/gadgets/js/rpc.js?c=1&debug=1"></script>,
>
> But the features files will be placed in classes. So, how can I
> include
> them?