Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Design and Architecture
  4. Integrate Scripting to Appliacation

Integrate Scripting to Appliacation

Scheduled Pinned Locked Moved Design and Architecture
csharpjavajavascripttutorialquestion
4 Posts 3 Posters 12 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    Torma
    wrote on last edited by
    #1

    Hi! I'd like to integrate "massively" scripting capabilities to my application. I've done this before by "inventing" my own scripting language and a relatively silly interpreter behind it. But now, while porting the application to .Net, I'd like to use a real scripting environment, ideally JavaScript. I searched around the web and found Rhino for Java and LUA. Does anybody have experience with this approach? I'd like to sandbox the scripting capabilities and expose only a part of the domain model to the scripting - how to perform this? Thanks for you advice! Torma

    P C 2 Replies Last reply
    0
    • T Torma

      Hi! I'd like to integrate "massively" scripting capabilities to my application. I've done this before by "inventing" my own scripting language and a relatively silly interpreter behind it. But now, while porting the application to .Net, I'd like to use a real scripting environment, ideally JavaScript. I searched around the web and found Rhino for Java and LUA. Does anybody have experience with this approach? I'd like to sandbox the scripting capabilities and expose only a part of the domain model to the scripting - how to perform this? Thanks for you advice! Torma

      P Offline
      P Offline
      Pete OHanlon
      wrote on last edited by
      #2

      This article might help. http://www.divil.co.uk/net/articles/plugins/scripting.asp[^]

      Deja View - the feeling that you've seen this post before.

      T 1 Reply Last reply
      0
      • P Pete OHanlon

        This article might help. http://www.divil.co.uk/net/articles/plugins/scripting.asp[^]

        Deja View - the feeling that you've seen this post before.

        T Offline
        T Offline
        Torma
        wrote on last edited by
        #3

        Not in particular, it's interesting. I thing I read about the principle in c't (german)... I think this approach is something very powerful, too powerful for my needs. The sanboxing is a very important element if I want to give the scripting to users. I'd like just want to offer a dedicated domain model with only the objects and methods I want to expose in the scripting environment. I could circumvent the sandboxing by parsing the script for accesses to unallowed objects, but this is to prone to breaches... It seems there's nothing ready out of the box, but the need seams so obvious to me:confused:... AJAX seems to be the only interest for scripting... I came only reacently back to MS developping, so I'm not very avare what's available right now. I read about some stripting technology MS withdrew in .Net 2.0 or so (VSA? http://www.codeproject.com/csharp/vsascripting.asp ) I'm not technical enough to do such a thing myself in a correct manner (I'm getting too old :) ) a+ Torma -- modified at 15:10 Tuesday 24th April, 2007

        1 Reply Last reply
        0
        • T Torma

          Hi! I'd like to integrate "massively" scripting capabilities to my application. I've done this before by "inventing" my own scripting language and a relatively silly interpreter behind it. But now, while porting the application to .Net, I'd like to use a real scripting environment, ideally JavaScript. I searched around the web and found Rhino for Java and LUA. Does anybody have experience with this approach? I'd like to sandbox the scripting capabilities and expose only a part of the domain model to the scripting - how to perform this? Thanks for you advice! Torma

          C Offline
          C Offline
          Chris Kaiser
          wrote on last edited by
          #4

          There's an article somewhere around here that uses C# for scripting. But if you're targeting users, Lua is a nice one. Not sure about support in .NET, its been awhile since I worked with it.

          This statement was never false.

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups