Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Jan 31 15:28
    lanqy starred dotnet-websharper/ui
  • Jan 24 09:53
    ajuch starred dotnet-websharper/ui
  • Jan 16 09:44

    Jand42 on master

    Remove build badge for non-exis… (compare)

  • Jan 16 06:58

    granicz on master

    Update README.md (compare)

  • Jan 07 14:52

    Jand42 on server-side-subtemplates

    (compare)

  • Nov 10 2018 18:10
    kordeviant starred dotnet-websharper/ui
  • Nov 09 2018 12:05
    Jand42 opened #205
  • Oct 31 2018 09:25
    Tarmil labeled #204
  • Oct 31 2018 09:09

    Tarmil on 4.5.6.156

    (compare)

  • Oct 31 2018 08:59
    Tarmil closed #204
  • Oct 31 2018 08:59

    Tarmil on master

    Fix #204 Compile-time error wit… (compare)

  • Oct 31 2018 08:53
    Tarmil labeled #204
  • Oct 31 2018 08:53
    Tarmil assigned #204
  • Oct 31 2018 08:53
    Tarmil opened #204
  • Oct 30 2018 18:15
    Tarmil labeled #175
  • Oct 30 2018 18:14
    Jand42 closed #175
  • Oct 30 2018 18:08
    Tarmil labeled #201
  • Oct 30 2018 18:08
    Tarmil closed #201
  • Oct 30 2018 18:08
    Tarmil commented #201
  • Oct 30 2018 17:42
    Tarmil labeled #187
István Gansperger
@qwe2
What system are you running it on? For me it went from 24K to 27K then to 29K and after that went back to constant 27K .
Thats on windows 8.1 x64
Ryan Riley
@panesofglass
Mine kept going up to 70K, 72K, then I stopped it. I was running self-host, which might have something to do with it.
Ryan Riley
@panesofglass
@granicz or @Tarmil, have you done any performance comparisons with other client-side frameworks? How does UI.Next compare?
I've really been enjoying it as I rebuild c4fsharp.net
Adam Granicz
@granicz
no, but any such comparison would be welcome
fpawel
@fpawel
Hi! I opened a new issue intellifactory/websharper.ui.next#70
fpawel
@fpawel
Is there a way to restore the previous position of the browser's vertical scroll bar after some View<_> changing?
Dimitar Georgievski
@dgeorgievski
following up on this discussion of UI.Next vs WebSharper.Html
If I use UI.Next
then I would need to use Piglets to take advantage of forms and validations?
István Gansperger
@qwe2
@fpawel what do you mean by previous position? you'd like to sync a View<_>'s value with the vertical scrollbar?
@dgeorgievski Piglets are for WebSharper.Html. We have a reimplementation for UI:Next which is called WebSharper.Forms (currently available as a prerelease). You can obviously roll your own form composition and validation but I'd use Forms for doing these sorts of things.
Dimitar Georgievski
@dgeorgievski
@qwe2 i already figured that out and have a suggestion for updating the documentation
the introduction link leads you to Piglets
secondly
the try.websharper.com examples with Log-in have Piglets in the description
but they are actrully using WebSharper.Forms
it would really help if the documentation is brought upto date
and lastly one question about using Forms
basically
I would like at Forms.Run to call the backent (RPC) call
to perform autjentication
and if successful would like to redirect to the main page
i succeeded using someting like this
[<Inline "window.location=$url">]
let Redirect (url: string) = ()
in the cient side
and then
|> Form.Run (fun _ ->
Redirect "/"
)
the question is
is there any better mode idiomatic way to perform this in WebSharper?
Loïc Denuzière
@Tarmil
the window object is available as JS.Window
so you can do JS.Window.Location.Replace "/"
Dimitar Georgievski
@dgeorgievski
thanks, I’ll try that
and while at it
i’ve been reading that the RPC calls are not performant
any alternaitve you guys would recommend fir Client/Server apps?
like maybe using Ajax ?
Loïc Denuzière
@Tarmil
RPC calls are just Ajax with some automatic JSON de/serialization
where did you read that they're not performant?
Dimitar Georgievski
@dgeorgievski
i found some discussion on the Web, don’t have the links at hand at the moment
but it is good hear that those fears were unfounded
thanks!
fpawel
@fpawel
@qwe2, not really. I mean vertical scroll position before pressing the button that caused the change of a View<_>'s value.
István Gansperger
@qwe2
So you mean you want to save the scroll's position before the view change happens, and as a result of the view's change the scroll position changes for some reason and you want to restore the previous one?
fpawel
@fpawel
@qwe2 Yes, because otherwise the pressed button disappears from the client area. I just need to hold the button's vertical possition
István Gansperger
@qwe2
I can't think of a way at the moment that would let you define a function that runs after the rendering of a DOM node dependent on a view finishes. Cannot this be solved with CSS and/or changing your layout up?
fpawel
@fpawel
@qwe2 Yes, it can be done with some voodoo and weightlifting like this http://stackoverflow.com/questions/18997724/how-to-change-scroll-bar-position-with-css/18998575#18998575
Adam Granicz
@granicz
(Hi all - please use the https://gitter.im/intellifactory/websharper room for UI.Next and UI-related discussions - added everyone from here to that channel for convenience, talk to you there!)