zilav
-
Posts
573 -
Joined
-
Last visited
-
Days Won
44
Content Type
Profiles
Forums
Events
Posts posted by zilav
-
-
-
You should identify mobile clients by browser's agent string.
-
Use frames and insert them inside main form.
-
-
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>
-
Use CSS for that.
-
- How many clients are using (total and concurrent)
- Uptime (does it need constant restarts?)
- What kind of project
- Isapi, Standalone or service
- what database are you using and component for connection (ado, dbexpress)
- 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
- 1
-
It works
-
I have a UniImage with the URL http://server.com/image/test.jpg then I update the image on the server. How to update the UniImage with the new picture?
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
-
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
-
Add a link to jquery in ServerModule.CustomFiles
https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js
-
-
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?
- 1
-
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
-
they are as important fields so you should not exit them without introducing one correct value, so it refocus itself again.
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.
-
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.
-
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).
- 1
- 4
-
-
-
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.
-
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.
-
Made some updates to demo project.
-
Wrap that code in UniSesion.AddJS('...') and you can load css in any events.
-
Thanks, I see it is simple to generate a XHR call and pass my parameters, but how can I return a plain stream of data from this event?
Assuming that I caught this event, generated some json from DB, so what do I do to return that json as a plain string back to browser? I know I can AddJS() some code, but this will be eval()'d in javascript which is not good. And also I want to send back not only json, but sometimes a binary data, so eval() will just fail.
Does UniGUI have a similar function like AddString() or AddStream()?
Improvement Required
in General
Posted
You can use jquery plugins for that.