[pandorabots-general] An other question about pandorabot and javascript....

ceki kela jbx028 at hotmail.com
Wed Feb 21 02:31:42 PST 2007


Hi,
As you can see, i am still trying to use javascript with pandorabot (via the 
api).
I know now that <javascript> available in the program D is not supported by 
Program Z but i saw some examples with the tag <script>.
I want to use javascript because i need to manipulate strings caracteres, 
and i need to manipulate numbers (for calculation) as well. It means that i 
do not need javascript in order to open window (window.open) or any other 
browser manipulations.
I wrote this <category> for my test but in training mode, i receive this 
answer : "The result is javascript:Ccc()."

<category>
  <pattern>ADD *</pattern>
  <template>
    <think>
    <script language="JavaScript">
        function Ccc(){
          var increment = '<star index="1"/>';
          switch (increment) {
            case 'ONE':
              return 'TWO';
              break;
            case 'TW0':
              return 'THREE';
              break;
          }
        }
    </script>
    </think>
    The result is javascript:Ccc()
  </template>
</category>
</aiml>

The javascript seems not executed.

This is not a good example because i could make this kind of manipulation 
with aiml only, but i have a bigger scripts where i really need javascript.

Again, i want to use the pandorabot with a third application (web service 
written with vb.net) and not into an html web page.

Any help is welcoming..and apologies again for my poor english level.

Thanks,
Johnny

_________________________________________________________________
Découvrez le Blog heroic Fantaisy d'Eragon! 
http://eragon-heroic-fantasy.spaces.live.com/



More information about the pandorabots-general mailing list