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

WebSharper's Enhance.WithResetAction

I built a WebSharper formlet using the combinators, but my goal is to embed it in a jQueryUI pop-up. As a consequence I need to be able to close the dialog when the user clicks no, the following doesn't work: let confirmationForm order = let…
David Grenier
  • 1,098
  • 6
  • 17
0
votes
0 answers

Trying to run Websharper project on localhost

I've created Ws app from Websharper 6 html application template in VS 17.4.0 However I can't seem to be able to run it on localhost in web browser. I'd expect to see to see IIS Express run option however it is not there: In the project properties I…
Konst Sh
  • 148
  • 1
  • 6
0
votes
1 answer

How do I get started with ExtJS and WebSharper?

I'm struggling to use ExtJs with WebSharper. I'd like to run the code sample (pasted at end) here as a starting point: https://try.websharper.com/snippet/0000XW I used the Nuget package WebSharper.ExtJs 2.4.48.145 in VS 2019 in a Suave F# project.…
0
votes
1 answer

External JS library not applied to tag generated by Websharper

According to this post: External JS library with WebSharper in F# And integrate the implementation here: Tag input and type ahead with Bootstrap-taginput and typeahead.js in WebSharper. I create an empty WebSharper project and add the code above, my…
Anibal Yeh
  • 349
  • 1
  • 11
0
votes
1 answer

problem deploying websharper F# web application

I am trying the websharper demonstrations, however I get the following error:- HTTP Error 500.22 - Internal Server Error An ASP.NET setting has been detected that does not apply in Integrated managed pipeline mode. Changing the configuration to…
user4
  • 734
  • 1
  • 5
  • 16
0
votes
0 answers

WebSharper: Rpc-returned object are unusuable on the client or cause error

I have a few server-side objects with inheritrence hierarchy, like this: [] type [] A() = ... [] type [] B() = inherit A() [] type C() = inherit B() The…
Ivaylo Slavov
  • 8,839
  • 12
  • 65
  • 108
0
votes
1 answer

Unable to embed document fragment into a WebSharper page trough a `Var`

I am quite new to using WebSharper and I might be doing things the wrong way. My goal is to be able to update the contents of my page as a result of user actions by updating a Var variable representing a portion of the page to be updated. I'd…
Ivaylo Slavov
  • 8,839
  • 12
  • 65
  • 108
0
votes
0 answers

What is the best way to handle Websharper Remoting Singletons while using Simpleinjector with potentially Scoped Dependencies?

I'm trying to Convert an application I have working under a Basic Websharper Setup into an ASP.NET Core Application, Using Simple Injector for DI, but Cannot get the Configuration quite right. I think I'm missing a piece of abstraction Due to…
to11mtm
  • 169
  • 6
0
votes
0 answers

Fsharp - Websharper Create some Types which are the same and include some buttons

I have a Type of "Person" : Button A : Name Button B : Age Button C : Adres And a button "ADD" I want to create some "Person" when clicking to button "ADD" . But I don't know . I'm using Websharper . Do you know the key word that can help me ?
AIRO 2001
  • 19
  • 1
0
votes
1 answer

Possibly Bug in Websharper Zafir-Libraries (Beta)

I'm trying to create a Sitelet with SiteletBuilder in C#: return WebSharper.Sitelets.Content.Page(...) However, the class Websharper.Sitelet contains Content both as Struct and Class. So, this does not compile. Versions of Zafir-Libraries are Zafir…
Schellaine
  • 43
  • 8
0
votes
1 answer

websharper access to rpc from another site (SPA)

I've got a client-server (with transpiled js and rpc calls to server) application with websharper, and it runs perfectly fine. Now I need a single javascript file for another site (a WordPress app) and from this script, I'd like to access to…
0
votes
1 answer

WebSharper - JQuery and HTTPS reference

After deploying w# client page to the github pages, I got the following error: Mixed Content: The page at 'https://aph5nt.github.io/websharper.amplifyjs/' was loaded over HTTPS, but requested an insecure script…
aph5
  • 771
  • 2
  • 7
  • 23
0
votes
2 answers

The ability to create Doc element of hypertext in Websharper.UI.Next

I have the string with html markup, an I want to cretae Doc elment from it like this: Doc.FromHtm "

.....

.....
" As I understand that this is not possible right now. Ok, what is not possible to accurately sew, I tried to roughly…
fpawel
  • 309
  • 1
  • 3
  • 14
0
votes
1 answer

Doc.Checkbox 'change' event does not occur in Websharper.UI.Next

I have reactive Var variable varDone and Doc.Checkbox for its representation named cbDoc. After changing the value of varDone I need to call my function. For this, I wrote the code illustrated in the following pseudo-code: open WebSharper open…
fpawel
  • 309
  • 1
  • 3
  • 14
0
votes
1 answer

Redefine jQuery dependency search path

I have found that a typical Websharper "hello world" application does not work offline due to the inaccessibility of jQuery resource "http://code.jquery.com/jquery-1.11.2.min.js". The question is: can I override this search path to the local folder…
fpawel
  • 309
  • 1
  • 3
  • 14
1 2 3
10
11