Jump to content

Czar

Members
  • Content Count

    445
  • Joined

  • Last visited

  • Days Won

    13

Everything posted by Czar

  1. I will use that instead, thanks for the suggestion
  2. w3panel1.zoom := 1.5 works fine in browsers like chrome but completely ignored and 0 in Firefox. Could it be fixed or at default to 1?
  3. OK I tried your suggestion node WebSocketServer.js and then it works
  4. The ws folder was placed inside node_modules so I made a copy as a subfolder in output just in case
  5. [info] Program starting *** Cannot create process "\node.exe" --no-warnings --stack-size=1200 "C:\sms3\Projects\Featured Demos\Node.js\Websocket Server Example\output\WebSocketServer.js". [2] The system cannot find the file specified [info] Program stopped I have latest version node I have installed ws folder in output folder as suggested in file. Not sure how to proceed
  6. Just wondering how feasible would it be to use https://peerjs.com to connect two separate web sessions? What I am trying to achieve is to have a tutor and student working on their browser but the two instances of the exercise are linked. So when student types something in the tutor side is updated to show what was typed. Likewise, if tutor clicks a button that action can be transferred to the student side. If this appears feasible I would consider a commission or bounty to implement in an existing project depending on how much effort etc Alternatively would it be possible to show the tutor side a simple screen capture of the student side? If so where would I find information on that option.
  7. @jartothanks that answer was something like I was expecting. However, just so you are aware, when I have browserapi.window. then open is not an option by code insight. See image attachment
  8. This seems like an embarrassingly simple question but I can't figure it out. All I want is to be able to have the user click a button and open a URL in a new tab in their browser I cannot find any examples and searching throws up everything but a solution.
  9. I will have to wait until mid January when I get back from holiday
  10. nah, 3 screws up your logistics. On the plus side it is easier to ignore number three.
  11. Better get it out before third born arrives otherwise we will be waiting a while
  12. Czar

    KaTex

    Thanks a lot that works sweet.
  13. Czar

    KaTex

    Hi everyone, Once again I am trying to incorporate a JS library into my SMS files. https://cdn.jsdelivr.net/npm/katex@0.11.1/dist/katex.js https://katex.org/docs/api.html I can put the code below into the custom template <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.11.1/dist/katex.min.css" integrity="sha384-zB1R0rpPzHqg7Kpt0Aljp8JPLqbXI3bhnPWROx27a9N0Ll6ZP/+DiW/UqRcLbRjq" crossorigin="anonymous"> <!-- The loading of KaTeX is deferred to speed up page rendering --> <script defer src="https://cdn.jsdelivr.net/npm/katex@0.11.1/dist/katex.min.js" integrity="sha384-y23I5Q6l+B6vatafAwxRu/0oK/79VlbSz7Q9aiSZUvyWYIYsd+qj+o24G5ZU2zJz" crossorigin="anonymous"></script> <!-- To automatically render math in text elements, include the auto-render extension: --> <script defer src="https://cdn.jsdelivr.net/npm/katex@0.11.1/dist/contrib/auto-render.min.js" integrity="sha384-kWPLUVMOks5AQFrykwIup5lo0m3iMkkHrD0uJ4H5cjeGihAutqP0yW0J6dpFiVkI" crossorigin="anonymous" onload="renderMathInElement(document.body);"></script> I would like to render a maths string into the caption of a label but I don't understand how I do that. I am hoping someone can help explain or show me how to set up KaTex inside the form and how to access the functions in the JS file.. lbl.caption := myKatex.renderToString("c = \\pm\\sqrt{a^2 + b^2}");
  14. My most significant challenge, I find, is making a webpage/app properly responsive. The tlayout is not inuitiove and has weird side effects. Will the new designer make it easier to create responsive programs? Also, side thought, the css is pretty extensive but also difficult and resistant to reskinning for a different look/feel.
  15. HI, I am keen make an app for our tutors to manage their shifts. The push notification system would seem to be an ideal solution for alerting tutors that their shift-roster is available or changes have been made. However, the demos above are no longer available. This is an area I have zero experience in so an example demo or other helpful information would be super helpful.
  16. Czar

    TryStrToInt bug

    Ran into this issue again - who is looking after the codegen?
  17. Components on the visual form lose their name property if they are cut and paste. I use this quite often as I will use a panel to organise related editboxes, and labels. 1. drop a label on the visual forum and call it lbl1 2. now drop a panel on the form. 3. We will cut the label and paste it inside form. select the lbl + ctrl X. And then select the panel and ctrl + v to paste the label into the form. 4 . This works fine but the label is now call w3label1 It would be nice if the component retained the name property.
  18. The colour property is irritating to use. It is not possible to edit directly, you cannot paste a value in the only way is bring up the colour picker. And even then you can can't paste in colour values in Hex you have to add them in one bye at a time. Could this property be opened up so we can simply type in $c0c0c0 etc
  19. Ok, good work around - wasn't obvious for me
  20. It is not possible to change the text of a radiogroup item e.g., W3RadioGroup1.Add('test'); W3RadioGroup1.items[0] := 'it does not work'; as a workaround - I am removing and then inserting
×
×
  • Create New...