From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@sympa.inria.fr Delivered-To: caml-list@sympa.inria.fr Received: from mail4-relais-sop.national.inria.fr (mail4-relais-sop.national.inria.fr [192.134.164.105]) by sympa.inria.fr (Postfix) with ESMTPS id D83967F2AA for ; Thu, 20 Dec 2012 18:56:03 +0100 (CET) Received-SPF: None (mail4-smtp-sop.national.inria.fr: no sender authenticity information available from domain of db0company@gmail.com) identity=pra; client-ip=209.85.213.189; receiver=mail4-smtp-sop.national.inria.fr; envelope-from="db0company@gmail.com"; x-sender="db0company@gmail.com"; x-conformance=sidf_compatible Received-SPF: Pass (mail4-smtp-sop.national.inria.fr: domain of db0company@gmail.com designates 209.85.213.189 as permitted sender) identity=mailfrom; client-ip=209.85.213.189; receiver=mail4-smtp-sop.national.inria.fr; envelope-from="db0company@gmail.com"; x-sender="db0company@gmail.com"; x-conformance=sidf_compatible; x-record-type="v=spf1" Received-SPF: None (mail4-smtp-sop.national.inria.fr: no sender authenticity information available from domain of postmaster@mail-ye0-f189.google.com) identity=helo; client-ip=209.85.213.189; receiver=mail4-smtp-sop.national.inria.fr; envelope-from="db0company@gmail.com"; x-sender="postmaster@mail-ye0-f189.google.com"; x-conformance=sidf_compatible X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AjMHAMBP01DRVdW9Wmdsb2JhbABFg0iDLrZ0CBYDARcKCggTBiOCHgEBAQQBAQFZHRALGC4jEQEFAQgUiBkBEgyaS4wziB4KGYENiHyMUoEagykDiGKORYgxgW2DLj+ENg X-IronPort-AV: E=Sophos;i="4.84,326,1355094000"; d="scan'208";a="166449932" Received: from mail-ye0-f189.google.com ([209.85.213.189]) by mail4-smtp-sop.national.inria.fr with ESMTP; 20 Dec 2012 18:56:02 +0100 Received: by mail-ye0-f189.google.com with SMTP id r9so1898551yen.6 for ; Thu, 20 Dec 2012 09:56:01 -0800 (PST) Received: by 10.49.35.77 with SMTP id f13mr1536384qej.4.1356026161501; Thu, 20 Dec 2012 09:56:01 -0800 (PST) Path: glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: fa.caml Date: Thu, 20 Dec 2012 09:56:01 -0800 (PST) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=46.126.93.2; posting-account=JTN7owoAAADOb0sf-PIFn9TRV1SmwmD4 NNTP-Posting-Host: 46.126.93.2 References: User-Agent: G2/1.0 X-Google-Web-Client: true X-Google-IP: 46.126.93.2 MIME-Version: 1.0 Message-ID: <7f60bbcb-5a25-4fc9-b878-fc8081cbe8bb@googlegroups.com> From: "Barbara Lepage (db0)" To: fa.caml@googlegroups.com Cc: Caml List Content-Type: text/plain; charset=ISO-8859-1 X-Validation-by: db0company@gmail.com Subject: Re: [Caml-list] An easy tutorial to js_of_ocaml? Hi, On Thursday, December 20, 2012 5:41:11 PM UTC+1, bob zhang wrote: > I am absolutely a newbie in javascript, is there some simple working > examples online? You can find several examples of projects using js_of_ocaml on the documentation page: http://ocsigen.org/js_of_ocaml/ The source code of these examples is availailable on the darcs repository: http://ocsigen.org/darcsweb/?r=js_of_ocaml;a=tree;f=/examples If you want to use javascript mixed with standard server-side web actions, I recommend you to use Eliom too. The tutorial page (http://ocsigen.org/tutorial/) is a good start. The first tutorial (http://ocsigen.org/tutorial/application) explains server and client interactions. Let me know if that helps, -- db0 sur http://db0.fr/