thank you :)

By on 7/31/2015 1:30 PM ()

With 3.4 and its CSRF features, have a read at the recent announcement on the blog - WebSharper 3.4 released, this has an effect on the above code.

By on 7/31/2015 4:21 PM ()

If your Cordova app depends on the website backend, yes. This brings the RPC functions in scope for the Cordova app, but you still need to set the remoting endpoint to where the main website is deployed.

Something like (in your Cordova app):

1
2
3
4
5
6
7
8
9
Button [Text "Send"]
|>! OnClick (fun _ _ ->
    Remoting.EndPoint <- "<<URL of your YourWebsite>>"
    async {
        let! data = YourWebsite.DoSomething input.Value
        output.Text <- data
    }
    |> Async.Start
)
By on 7/31/2015 7:40 AM ()
IntelliFactory Offices Copyright (c) 2011-2012 IntelliFactory. All rights reserved.
Home | Products | Consulting | Trainings | Blogs | Jobs | Contact Us | Terms of Use | Privacy Policy | Cookie Policy
Built with WebSharper