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
2
votes
0 answers

Client-serv. app run: System.ArgumentException: An item with the same key has already been added

Have an issue after deploying and running WebSharper client-server app to the remote server: I get System.ArgumentException: An item with the same key has already been added. Here is a gist with stack trace in my case . However all is OK on my…
Alan Freeman
  • 147
  • 1
  • 10
2
votes
0 answers

Where is

I see here that the tag for
ben432rew
  • 1,872
  • 16
  • 30
2
votes
1 answer

WebSharper Operators

Being new to WebSharper I am looking for documentation and examples on Operators such as ? , ?<- , -< , ===. , => or |>!. I did not find it in http://websharper.com/docs. Did I miss it? (there are some listed in…
Goswin Rothenthal
  • 2,244
  • 1
  • 19
  • 32
2
votes
1 answer

How to execute configuration code in a WebSharper SPA without using the JavaScript attribute

I want to evaluate some values that I read in from a config source, and bake those values into my WebSharper SPA. With these value I want to generate the SPA for each of my customers and use the SPA in a different mobile app for each customer. When…
Mr. Mr.
  • 4,257
  • 3
  • 27
  • 42
2
votes
1 answer

websharper webgl demo security issue?

Playing a bit with websharper and tried to get the webgl demo running on my system. I modified the given demo code such that I can use it in a SinglePage Application. Also, I changed the texture used by demo to a texture I actually have on my…
BitTickler
  • 10,905
  • 5
  • 32
  • 53
2
votes
1 answer

Websharper compiler can't translate other assemblies

my goal is to simply output a javascript file containing my translated F# library. Nothing more. I have an empty solution to which I added two F# projects. One is a library called WSLib with a single file: namespace…
Ed Ayers
  • 1,342
  • 1
  • 11
  • 24
2
votes
1 answer

Does WebSharper have an anti-CSRF mechanism?

I use ASP.NET MVC's AntiForgeryToken and ValidateForgeryToken for anti-CSRF for POSTs (AJAX POSTs and form POSTs). Does WebSharper have something that does the same job? (I can't consider using a web framework that doesn't have this, so knowing…
Bellarmine Head
  • 3,397
  • 2
  • 22
  • 31
2
votes
2 answers

Writing handlers for JS.Window.Onpopstate in Websharper

I'm trying to get proper back-button support in my WebSharper-app. I can put stuff in history just fine: type MyRecord = { foo: int; bar: string } JS.Window.History.PushState({foo=10; bar="hello"}, "", "mysuffix") I was hoping to add a…
Søren Debois
  • 5,598
  • 26
  • 48
2
votes
0 answers

Failed to deserialize metadata WebSharper

The questions relates to the following link: How do I generate data for Google Visualizations on the server using WebSharper I wanted to re-implement the above although using the latest version of Websharper (open source alpha release) but I receive…
user1129988
  • 1,516
  • 4
  • 19
  • 32
2
votes
0 answers

Can't install Websharper nuget

When i'm trying to create a sitelet project, nuget fails on installing NuGet Package restore failed for project To2a1.PublicSite.WebSharper: Could not find file…
2
votes
1 answer

Websharper example SPA project - bad jquery ref?

I'm trying to get started with websharper using the example SPA project template. After manually adding fsharp.core to the refs I'm able to F5, but then I get a JS syntax error in *.head.js. I noticed that the uri for jquery…
TheLazyDogsBack
  • 197
  • 1
  • 11
2
votes
1 answer

WebSharper : How to use the .On event handler

I'm trying to use JQuery provide by WebSharper to catch the following event : selectstart. So I write the following code : JQuery.Of(".editorArea").On("selectstart", fun x -> ( JavaScript.Log("test") true ) ) The problem is…
Maxime Mangel
  • 1,906
  • 16
  • 18
2
votes
1 answer

WebSharper error when building under Mac OS X

I'm trying to build a project using WebSharper under Mac OSX and I got the following error : Target WebSharperCompile: Compiling with WebSharper.. /Volumes/Data/Dev/Landmark_tools/packages/WebSharper.2.5.125.62/build/WebSharper.targets:…
Maxime Mangel
  • 1,906
  • 16
  • 18
2
votes
1 answer

Managing resources in a sitelet

I'm beginning my trek in learning WebSharper, and I'm finding managing resources (e.g. css and javascript files) a bit confusing. The documentation on this gives an example resource declaration type MyResource() = inherit…
Christopher Stevenson
  • 2,843
  • 20
  • 25
2
votes
1 answer

How to interact and set DOM properties with WebSharper?

I often need to interact with my page's DOM, how can I do it via WebSharper? For instance when I want to redirect my page in just JavaScript I'd run: window.location = "http://www.google.com/"; How can I access window and set location? how would…
MasterMastic
  • 20,711
  • 12
  • 68
  • 90