Results 1 to 10 of 10

Thread: Send Arguments (payloads) to Girder from HTML?

  1. #1
    Join Date
    Jan 2004
    Location
    Dayton, Ohio
    Posts
    22

    Default Send Arguments (payloads) to Girder from HTML?

    Okay, I know how to send events to Girder using the <a href="javascript:document.title='GirderEventName'; "> trick.

    Now, the question is: Is it possible for me to send arguments (payloads) along with an event using HTML (JavaScript/Flash)?

    The idea is to create a host HTML document with a text form field that can send arguments to Girder:
    Code:
    <form name="userInput">
    <input type="text" name="inputText">
    <input type="button" value="Send Text" onClick="sendEvent&#40;document.forms&#91;'userInput'&#93;.elements&#91;'inputText'&#93;.value&#41;;">
    </form>
    ....where sendEvent() would be a generic function that receives its value from the text field 'inputText' and sends it to Girder as arguments (payloads) upon the event.

    Anyone have any ideas how to accomplish this?

  2. #2
    Join Date
    Dec 2001
    Posts
    11,560

    Default

    grabtv, have a look at http://www.girder.nl/phpBB2/viewtopic.php?p=32151#32151 for a different approach.

  3. #3
    Join Date
    Jan 2004
    Location
    Dayton, Ohio
    Posts
    22

    Default

    Quote Originally Posted by Mike C
    grabtv, have a look at http://www.girder.nl/phpBB2/viewtopic.php?p=32151#32151 for a different approach.
    Thanks, Mike C! 8)

    I also found some answers after a bit of digging at: http://www.girder.nl/phpBB2/viewtopic.php?t=2737

    You can also do this:
    You then only have to retrieve the [pld1] and [pld2] values!

    What I plan to do is this:
    --Create an HTML text input field using HTMLOSD
    --Initialize the Microsoft Windows XP Language Bar and set it to "Dictation" mode
    --Talk into my microphone, and have my words appear on the VFD of my HTPC case!

    OH, HAPPY DAY!!!

  4. #4
    Join Date
    Aug 2003
    Location
    Pacific Northwest
    Posts
    744

    Default

    --Talk into my microphone, and have my words appear on the VFD of my HTPC case!
    I could imagine some spooky applications for this! Forget the VFD, get a wireless mic, and have the words overlaid on your TV screen with an XBob from www.decadenet.com. Bring your technophobe friends over, and show them how you have "become one with the TV," so that anything you say is printed on the TV screen.

  5. #5
    Join Date
    Jan 2004
    Location
    Dayton, Ohio
    Posts
    22

    Default

    Quote Originally Posted by miked
    I could imagine some spooky applications for this! Forget the VFD, get a wireless mic, and have the words overlaid on your TV screen with an XBob from www.decadenet.com. Bring your technophobe friends over, and show them how you have "become one with the TV," so that anything you say is printed on the TV screen.
    GWAHAHAHAHAHA..... *chokes* .....WAAAHAHAHAHAAAAA!!!1111

  6. #6
    Join Date
    Nov 2003
    Location
    Montreal, Canada
    Posts
    89

    Default great idea

    it is a great idea grabtv, another great application for it, is to get this HTMLOSD pop up using the speech plug in (functions as getting attension of your pc), then you speak what you like, and make a script that will trigger different events and you got girder doing complex speech recognition .....

    if you got it done, would you care to share the code ... :roll:

  7. #7
    Join Date
    Dec 2001
    Posts
    11,560

    Default Re: great idea

    Quote Originally Posted by Haddood
    it is a great idea grabtv, another great application for it, is to get this HTMLOSD pop up using the speech plug in (functions as getting attension of your pc), then you speak what you like, and make a script that will trigger different events and you got girder doing complex speech recognition .....

    if you got it done, would you care to share the code ... :roll:
    You can do this using MSAgent - see the Luacom thread above

  8. #8
    Join Date
    Jan 2004
    Location
    Dayton, Ohio
    Posts
    22

    Default

    Actually, you can use the Microsoft Language Bar OR Dragon Naturally Speaking to convert speech to text.

    All I plan to do is have a generic form text area--so, in essence, you could also type-in what you want to display as well!

  9. #9
    Join Date
    Nov 2003
    Location
    Montreal, Canada
    Posts
    89

    Default Re: great idea

    Quote Originally Posted by Mike C
    Quote Originally Posted by Haddood
    it is a great idea grabtv, another great application for it, is to get this HTMLOSD pop up using the speech plug in (functions as getting attension of your pc), then you speak what you like, and make a script that will trigger different events and you got girder doing complex speech recognition .....

    if you got it done, would you care to share the code ... :roll:
    You can do this using MSAgent - see the Luacom thread above

    hey Mike
    i guess if it is up to you, you will go and write an OS with LUA com(though it is not possible by defenition), man give me a break, I am not familiar with com, and I do scripting in a very limited time frame .... What i loved about girder it is that you can do alot of stuff visually you don't have to dump long code then suffer debugging it ... and i hope it will not loose this in favor for LUA or LUA com ... as it will loose alot of users
    greatings and i hope you will not hate me :-?

  10. #10
    Join Date
    Dec 2001
    Posts
    11,560

    Default Re: great idea

    [quote="Haddoodhey Mike
    i guess if it is up to you, you will go and write an OS with LUA com(though it is not possible by defenition), man give me a break, I am not familiar with com, and I do scripting in a very limited time frame .... What i loved about girder it is that you can do alot of stuff visually you don't have to dump long code then suffer debugging it ... and i hope it will not loose this in favor for LUA or LUA com ... as it will loose alot of users
    greatings and i hope you will not hate me :-?[/quote]

    The beauty of COM is that it opens up many more possibilities for doing things that were previously not possible. Don't worry about the "visual" approach of Girder is this is what most users use. But for those that want to do more advanced things, Lua and LuaCOM are the way to go.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •