Jump to content

zilav

uniGUI Subscriber
  • Posts

    573
  • Joined

  • Last visited

  • Days Won

    43

Everything posted by zilav

  1. You can use jquery plugins for that.
  2. http://stackoverflow.com/questions/1005153/auto-detect-mobile-browser-via-user-agent
  3. You should identify mobile clients by browser's agent string.
  4. zilav

    Web Browser

    Use frames and insert them inside main form.
  5. http://www.iphonedevsdk.com/forum/iphone-sdk-development/74270-javascript-focus-method-not-working-mobile-safari-iphone.html
  6. Push F12 in Mozilla/Chrome and see yourself... or better create your own element to style inside every cell, something like <span style="width: 100%; text-align: center;">test</span>
  7. - dunno, up to 100 concurrent. I think it can easily handle 1000 or even more, because I don't see any kind of stress on server at all. - unless your app leaks memory no restarts are needed - usual business CRUD apps - isapi on windows server 2003. Frankly speaking, standalone is purely for development, when deploying isapi is THE only real option. You want that security and management ISS provides, and allows combining unigui with other isapi modules (Delphi's WebBroker), html, php, node.js, etc. - MSSQL 2008, built-in ADO
  8. Browser cached your image since url is the same, its not an unigui problem. You need to change url to force an update, usually it is done by adding some random stuff (or timestamp) like this http://server.com/image/test.jpg?5238968578
  9. You can create a custom <div> element in DOM and style it to be always on top, but this won't be an unigui form. All unigui controls are just a bunch of <div> tags inside html, so look for tutorials about div positioning over other divs. Like this for example: http://stackoverflow.com/questions/2941189/how-to-overlay-one-div-over-another-div
  10. Add a link to jquery in ServerModule.CustomFiles https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js
  11. zilav

    Catch a GET

    http://forums.unigui.com/index.php?/topic/1940-raw-data-endpoint/
  12. I've already posted a demo of obtaining images from canvas in unigui. This article shows how to draw webcam snapshots on canvas http://arstechnica.com/business/2012/01/hands-on-building-an-html5-photo-booth-with-chromes-new-webcam-api/ What else do you need?
  13. UniSession.AddJS(Format('var ctx=document.getElementById("%s_canvas").getContext("2d"); ctx.font="bold 16px Arial"; ctx.fillStyle = "blue"; ctx.fillText("Hello!", 40, 40);', [uniCanvas1.JSName])); More on topic http://diveintohtml5.info/canvas.html#text
  14. That is a very very very BAD behaviour and should be avoided at all costs when designing any UI, especially in web. Have you ever seen such forms on any of major sites? Google? Microsoft? Facebook? Yahoo?... Anywhere? I guess not because it is a blocking design, and you should never block a user inside a field/form/any UI element. If you want a server-side validation, do it when user clicks Submit/Save/OK button. If you want a sequential validation then disable/hide some input elements until the correct value is given.
  15. zilav

    unidbimage

    Here you go http://forums.unigui.com/index.php?/topic/2019-loading-unicanvas-and-native-canvas-to-db/ It uses TClientDataSet, should be almost the same for any DB provider.
  16. How to upload images from UniCanvas and native HTML5 canvas to database (TClientDataSet). Native canvas is handy when you need to capture images from 3rd party javascript libraries (chart generators, webcam capture, etc). Canvas2DB.zip
  17. Nope sorry.

  18. Just add a call to ShowControls inside DoValidUser if user is valid, why are they separate? And why do you want to show a mask ONLY when user is valid? Just show it before ajaxRequest() and hide inside server event UniSession.AddJS('blablabla.hideMask();') What you want in your example is possible, but you'll need to craft url and make an ajax call manually which is not good, because Farshad can change url for events in future versions of framework.
  19. AProc(Self.ResultObj) is called before form is closed since Self.ShowModal doesn't block execution in unigui. You need to pass that anonymous function to your form and call it in Form.OnClose event.
×
×
  • Create New...