Questions tagged [websharper]

The web platform based on an F# to JavaScript compiler.

WebSharper is a web platform based on an F# to JavaScript compiler, comparable to Google Web Toolkit with F# instead of Java. WebSharper is a product of IntelliFactory.

Website: http://websharper.com/

156 questions
3
votes
1 answer

ws-replace is similar to ws-hole , isn't?

ws-replace The attribute ws-replace creates a Doc or seq hole. The element on which this attribute is set will be replaced with the provided Doc(s). The name of the hole is the value of the ws-replace attribute. ws-hole The attribute ws-hole…
3
votes
0 answers

Websharper doing async call returns server error 500

I'm trying to do async db query using SQLProvider and sqlite as db. The server side function looks like this [Rpc] let dbAsyncCall () = async { return! query { // ... } |> Seq.executeQueryAsync } |>…
Semuserable
  • 454
  • 6
  • 24
3
votes
2 answers

Failure running WebSharper 4.0 tutorial

I am learning how to use WebSharper. Actually, I am failing to learn how to use WebSharper. I wanted to learn how to build a simple SPA so I followed this tutorial from the WebSharper page. I am able to create the SPA with Visual Studio and Zafir…
Steven
  • 3,238
  • 21
  • 50
3
votes
1 answer

WebSharper F# - How to run a template project created with VS Code and Ionide?

I have never worked with .NET before and I would like to know how to run a WebSharper F# project without any IDE. Context I'm running Linux with Mono 4.4.2 The project was created with VS Code and Ionide, using the template…
boechat107
  • 1,654
  • 14
  • 24
3
votes
3 answers

Deploy WebSharper.Suave web application to Heroku

I can not understand what I need to change to make it. I created a demo project from this blogpost with app.json and Procfile: web: fsharpi-heroku WebsahrperSuaveHerokuExample1.sln Next, I tried to deploy it to Heroku in accordance with these…
fpawel
  • 309
  • 1
  • 3
  • 14
3
votes
1 answer

Show mobile page in WebSharper

I have a WebSharper website, and I want it to have a different UI when on a mobile device. I would like the server to respond with different HTML depending on if the user is on a mobile device or not. I can see how to check if the user is on a…
Jacqueline Nolis
  • 1,457
  • 15
  • 22
3
votes
2 answers

Implement F# libraries for consumption by TypeScript/Javascript?

I know there are a number of projects which can compile F# to JavaScript. Does any of these projects support this use case: developing an application in TypeScript but writing part of the application in F#, as a library consuming this F# library…
wmeyer
  • 3,426
  • 1
  • 18
  • 26
3
votes
1 answer

WebSharper 3.4 with working HelloWorld example?

The current HelloWorld example on websharper.com doesn't work anymore due to changes made in WebSharper 3.4. It now requires some attributes and other stuff to compile correctly. I am just getting started with WebSharper and I would like to see a…
Zaid Ajaj
  • 680
  • 8
  • 16
3
votes
0 answers

DataPicker's localization in WebSharper.JQueryUI

It is known that Datepicker of jQuery UI provides support for localizing its content to cater for different languages and date formats: $( selector ).datepicker( $.datepicker.regional[ "fr" ] ); Dear authors of WebSharper.JQueryUI, please tell me a…
fpawel
  • 309
  • 1
  • 3
  • 14
3
votes
1 answer

How do you integrate Websharper with an existing ASP.NET MVC project?

The Websharper website has a tutorial on integrating ASP.NET with Websharper, but it is vague on certain things. I have installed the Websharper package on my ASP.NET MVC project and followed step 1 of the instructions, but I'm confused about the…
Hydromast
  • 280
  • 3
  • 10
3
votes
0 answers

Launching WebSharper client-server sitelet

I'm following WebSharper Sitelet tutorials, such as the minimal example here, but I can't find documentation for launching a server-side process to host a sitelet that runs dynamic code on each request. I can paste the example code into my editor…
spiffytech
  • 6,161
  • 7
  • 41
  • 57
3
votes
3 answers

WebSharper JQuery Mobile Page Hidden

I'm trying to put together a JQuery Mobile site using the F# WebSharper Framework. In WebSharper parlance I have created a Pagelet using JQueryMObile controls which is being served by a Sitelet. Everything compiles and runs, the problem is in the…
Nick
  • 6,366
  • 5
  • 43
  • 62
3
votes
2 answers

Securing WebSharper remote calls

Quoting from the WebSharper 2.5 alpah docs the remoting component assumes that: RPC-callable methods are safe to call from the web by an unauthenticated client. Is there anyway to secure remote calls so they can only be called from an…
3
votes
0 answers

How to install WebSharper 2.5alpha using VS 2013 RC?

I wanted to install the WebSharper 2.5.48 alpha into VS 2013. The Nuget package did load but the vsix file failed with an error indicating there was no product it could extend. Inspecting the manifest showed VS 11 as the highest version supported. I…
jbeeko
  • 457
  • 3
  • 10
3
votes
1 answer

Where can I find the OnAfterRender function referenced in WebSharper code?

I've just started using WebSharper, and I'm trying to do something with the Google Maps API. I have been trying to implement the sample code from below: https://github.com/intellifactory/WebSharper.Google.Maps open…
Max Tilley
  • 1,509
  • 3
  • 10
  • 9
1 2
3
10 11