Seek javascript validator

From: GIMME (gimme_this_gimme_that_at_yahoo.com)
Date: 05/25/04

  • Next message: Alex99 Kay: "Re: Java Interview Questions: Am I Being Too Difficult?"
    Date: 24 May 2004 15:45:33 -0700
    
    

    Is there a way to confirm that a string has valid Javascript syntax?

    Either a client side or server side solution would be ok.

    For a client side solution I'd like to confirm that, say :

    var a = "function foo { var t='ok'; alert(t); }"

    is valid, or for a server side solution that

    String a = "function foo { var t='ok'; alert(t); }"

    is valid.

    Thanks


  • Next message: Alex99 Kay: "Re: Java Interview Questions: Am I Being Too Difficult?"

    Relevant Pages

    • Each client gets the same port number
      ... This class creates a server socket that will ... For each new connection request from client ... */ private String calculate{String result = null; ...
      (comp.lang.java.help)
    • Re: Applet Consideration
      ... > the client applet to connect to the server. ... everything is sent as String. ... >> I made it so the client has absolutely no knowledge that the db exists. ... Each thread must be initialized by a login. ...
      (comp.lang.java.databases)
    • Re: Applet Consideration
      ... the client applet to connect to the server. ... My computer(the server) is behind a router ... > i.e. boolean login(String domain, String user, String pass) ...
      (comp.lang.java.databases)
    • Re: What doesnt lend itself to OO?
      ... >> proxy and instructs the server to constuct the real object. ... rather than client code. ... If 'clock' is instantiated in the server, ... > for the server interface at the OOA level. ...
      (comp.object)
    • This is going straight to the pool room
      ... or not the client has privilege to do what they're trying to do, ... The server environment is this: ... 3GL User action Routines that Tier3 will execute on your behalf during the ... Routine Name: USER_INIT ...
      (comp.os.vms)