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
4
votes
1 answer

F# Web Role Azure

I'd like to create a web application with websharper in F#. Azure 1.4 SDK only includes a F# worker role. How can I create a Azure web role in F#? Does anybody know how to create a template or change the language of a template?
peter
  • 85
  • 3
4
votes
1 answer

How to work WebSharper translator?

Could anyone explain how to work WebSharper translator in conjunction with the F#? Is it translate F# code to JS itself or using F# compiler for it? In second case, what F# compiler are doing when finds [] attribute in source? Does compiler…
semicode
  • 43
  • 3
4
votes
1 answer

JavaScript function signatures in WebSharper

I am creating an ampify.js binding for the WebSharper. (https://github.com/aph5nt/websharper.amplifyjs). While testing my extension I found one issue with publish / subscribe implementation. I declared a subscription handler: let subscribeFn…
aph5
  • 771
  • 2
  • 7
  • 23
4
votes
2 answers

Is there a way to effectively use reactjs with WebSharper

I am currently exploring websharper. However, the UI.Next API seems kind of sluggish. Albeit, it is still experimental. I am thinking the speed and flexibility offered by Facebook's, reactjs and it's functional design, should make a great fit. Has…
George
  • 2,451
  • 27
  • 37
4
votes
1 answer

WebSharper vs. Angular

Angular can work with ui-router to define states in order to move in the application. E.g. when still be on the one page, you can have list view on the left hand side of the page while having detail view on the right side. Then whenever you change…
user2039784
  • 199
  • 9
4
votes
0 answers

How can we get Current Page URL in F#, Websharper

How can we get Current Page URL in F#, Websharper. e.g we do it in c# string PageUrl = Request.Url.ToString(); It is very simple for expert people i just want to get current page url with querystring complete url > e.g.…
Jawad Siddiqui
  • 195
  • 1
  • 1
  • 15
4
votes
1 answer

The meaning of |>! (forward pipe bang)

While perusing the Websharper online examples, I've come across examples like this: Div [Attr.Style "padding: 5px;"] -< [ P [Text "Type a name in the input field below:"] Form [ label "First Name: " input |>! OnKeyUp…
Rob Lyndon
  • 12,089
  • 5
  • 49
  • 74
4
votes
1 answer

WebSharper issue on getting started

So I have been looking at developing RIA or MVC applications using F# and I saw that there were two options : FunScript WebSharper I have a Visual Studio 2012 version and it's a student edition. So I just followed the getting started link here Now…
N00bsie
  • 469
  • 3
  • 19
4
votes
1 answer

Accessing JavaScript's this from WebSharper

I feel a bit dumbfounded at how I have yet to find how to access the JavaScripts this keyword from WebSharper client code. I tried something like this: [] let this() = X But this spits out $this in the generated js code which…
David Grenier
  • 1,098
  • 6
  • 17
4
votes
1 answer

Converting between integer types in WebSharper

It seems that WebSharper has some difficulties converting between integer types (say, int32 to uint64). I get this: error : Failed to translate a method call: ToUInt64(..) [Microsoft.FSharp.Core.Operators] The same happens to int32 -> uint32,…
kirelagin
  • 13,248
  • 2
  • 42
  • 57
4
votes
0 answers

Is it possible and feasable to extend websharper to support decimal datatype?

I am looking for a framework that will generate Javascript for the client side, and i am willing to learn more F# to do this. It is mandatory to have a decimal fully compatible datatype in Javascript Can it be done? Are there any guides for…
Liviu
  • 595
  • 4
  • 11
4
votes
1 answer

Using the WebSharper compiler to write Node.js applications

I was wondering if it is possible to use the WebSharper compiler to write Node.js applications in F#. Are there any resources available that could show me how to do this? Are there any good reasons not to try to do this?
mushroom
  • 6,201
  • 5
  • 36
  • 63
3
votes
1 answer

WebSharper Minimum Browser Requirements

So . . . I have been playing around with WebSharper recently and wanted to check something at work. So, I loaded up IE7, our browser, to go to the WebSharper samples page - http://www.websharper.com/SamplesPage. However, I got a rude surprise when…
zakaluka
  • 150
  • 1
  • 9
3
votes
1 answer

websharper F# endpoints - catch all page handler and page redirect

sorry this is such a long post I am using F# and WebSharper (I am new to both technologies) I have some endpoints defined (I have working code until I add the NotFound endpoint) type EndPoint = | [] Home | [
Derek Lavine
  • 103
  • 8
3
votes
1 answer

websharper - using html template with two way binding

I am using WebSharper 4.3.9 and am using WebSharper.UI to try to get two way binding of variables in a web page. I can get things working when I create the HTML elements in the f# code. let Main () = let rvInput = Var.Create "" let…
Derek Lavine
  • 103
  • 8
1
2
3
10 11