[Seaside] autocompleter script

Michael Delache vladmanchev at gmail.com
Fri Mar 26 11:30:17 UTC 2010


So, I created a class initialize method like suggered in the seaside book
like this:

initialize
>        | application |
>        application := WAAdmin register: self asApplicationAt:
> 'javascript/jquery-ui'.
>        application preferenceAt: #scriptGeneratorClass put:
> JQScriptGenerator.
>        application
>                addLibrary: JQDeploymentLibrary;
>                addLibrary: JQUiDeploymentLibrary
>

But I have another problem. It seems that my 'style' method is overrided.
Indeed, a part of the web page has a background-color (that I never
declared) different to the rest of the page.

But, at least, it does what I want

2010/3/25 Michael Delache <vladmanchev at gmail.com>

> Ok, thank you very much for your help. I'll have a look for this
>
>
> 2010/3/25 Lukas Renggli <renggli at gmail.com>
>
>> Use the applications that are already registered in
>>
>>   http://localhost:8080/javascript/scriptaculous
>>   http://localhost:8080/javascript/jquery-ui
>>
>> As you can see in the respective registration code you are required to
>> add the Javascript libraries. For example:
>>
>>  JQUiAllFunctionalTests>>initialize
>>        | application |
>>        application := WAAdmin register: self asApplicationAt:
>> 'javascript/jquery-ui'.
>>        application preferenceAt: #scriptGeneratorClass put:
>> JQScriptGenerator.
>>        application
>>                addLibrary: JQDeploymentLibrary;
>>                addLibrary: JQUiDeploymentLibrary
>>
>>  When you work with Javascript it is the key that you use a tool like
>> FireBug. That would have pointed out immediately that you are missing
>> some Javascript code.
>>
>> Lukas
>>
>>
>> On 25 March 2010 23:18, Michael Delache <vladmanchev at gmail.com> wrote:
>> > Hmmm... That's pretty weird.
>> >
>> > In workspace I type:
>> >
>> >> WAAdmin register:SUAutocompleterTest
>> asApplicationAt:'autocompleterTest'.
>> >
>> > I go then to 'localhost:8080/autocompleterTest'. I can see the text and
>> > textInput but it didn't work. I can type everything, there is no
>> > autocompletion...
>> >
>> > 2010/3/25 Lukas Renggli <renggli at gmail.com>
>> >>
>> >> Tests are in JQAutocompleteFunctionalTest and SUAutocompleterTest.
>> >>
>> >> If you have a look at Javascript Functional Test applications in the
>> >> Pharo One-Click image it works out of the box.
>> >>
>> >> Lukas
>> >>
>> >> On 25 March 2010 23:03, Michael Delache <vladmanchev at gmail.com> wrote:
>> >> > Yeah I know it's supposed to work but I didn't get to get it work.
>> >> > Firstly,
>> >> > there is a variable in renderContentOn, text, that is unknow.
>> >> > Also, I couldn't find the one in jquery, is it in the folder "test"?
>> >> > I'm on Seaside 3.0a5
>> >> >
>> >> > 2010/3/25 Lukas Renggli <renggli at gmail.com>
>> >> >>
>> >> >> >   I'm looking for an autocompleter script (I already tried the one
>> >> >> > given
>> >> >> > by
>> >> >> > scriptaculous but it didn't worked...).
>> >> >>
>> >> >> Normally it should work.
>> >> >>
>> >> >> There is also a fully integrated one based on JQuery.
>> >> >>
>> >> >> Check out the demos.
>> >> >>
>> >> >> Lukas
>> >> >>
>> >> >> --
>> >> >> Lukas Renggli
>> >> >> http://www.lukas-renggli.ch
>> >> >> _______________________________________________
>> >> >> seaside mailing list
>> >> >> seaside at lists.squeakfoundation.org
>> >> >> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>> >> >
>> >> >
>> >> > _______________________________________________
>> >> > seaside mailing list
>> >> > seaside at lists.squeakfoundation.org
>> >> > http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>> >> >
>> >> >
>> >>
>> >>
>> >>
>> >> --
>> >> Lukas Renggli
>> >> http://www.lukas-renggli.ch
>> >> _______________________________________________
>> >> seaside mailing list
>> >> seaside at lists.squeakfoundation.org
>> >> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>> >
>> >
>> > _______________________________________________
>> > seaside mailing list
>> > seaside at lists.squeakfoundation.org
>> > http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>> >
>> >
>>
>>
>>
>> --
>> Lukas Renggli
>> http://www.lukas-renggli.ch
>> _______________________________________________
>> seaside mailing list
>> seaside at lists.squeakfoundation.org
>> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/seaside/attachments/20100326/11c7d1a6/attachment.htm


More information about the seaside mailing list