Hayri ASLAN Posted February 24, 2017 Author Share Posted February 24, 2017 Test case here. Working in form but toggle is not fired in frame: http://sansaisolutions.linkpc.net:8000/portal/apis/fileExplorer/share_link.cgi?link=P/AtG1mO1OV6HTObnDuhS0 Hi, Can't reach the test case Quote Link to comment Share on other sites More sharing options...
DoiSuthep Posted February 24, 2017 Share Posted February 24, 2017 Hi, Can't reach the test case Strange, I still can download it. Well, I uploaded it to GoogleDrive also here: https://drive.google.com/open?id=0B6zkR2oKE8NsNjFWM0xaSjFGd0k Quote Link to comment Share on other sites More sharing options...
Hayri ASLAN Posted February 24, 2017 Author Share Posted February 24, 2017 Strange, I still can download it. Well, I uploaded it to GoogleDrive also here: https://drive.google.com/open?id=0B6zkR2oKE8NsNjFWM0xaSjFGd0k Hi Change EventHandler-> JSName in uniSpToggle line 156. Quote Link to comment Share on other sites More sharing options...
DoiSuthep Posted February 24, 2017 Share Posted February 24, 2017 Hi Change EventHandler-> JSName in uniSpToggle line 156. Thanks Hayri for fast answer. It is working now. Quote Link to comment Share on other sites More sharing options...
david0204 Posted February 24, 2017 Share Posted February 24, 2017 Hi David, I am not experienced with C++. The other 3rd party components are working properly? Hi Hayri, I can build http://forums.unigui.com/index.php?/topic/3446-tunicaptcha-stop-spam-draw-shapes/?hl=captchawith C++ Builder 10.1 and work fine. You give me the source codes like "tunicaptcha".I can build it for C++ Builder 10.1 , will you? Best, David Quote Link to comment Share on other sites More sharing options...
Hayri ASLAN Posted February 24, 2017 Author Share Posted February 24, 2017 Hi david0204 yes exactly. So send me your name surname email and country via private message Quote Link to comment Share on other sites More sharing options...
MarkLince Posted March 2, 2017 Share Posted March 2, 2017 Hi Hayri, Hope you are well. I have a question about UniSpwebcam. Is it possible to intercept and suppress alerts triggered in webcam.min.js and replace with my own alerts. Thanks Mark Quote Link to comment Share on other sites More sharing options...
Hayri ASLAN Posted March 2, 2017 Author Share Posted March 2, 2017 Hi, Which alerts do you mean? Quote Link to comment Share on other sites More sharing options...
MarkLince Posted March 2, 2017 Share Posted March 2, 2017 Hi, In webcam.min.js hooks: { load: null, live: null, uploadcomplete: null, uploadprogress: null, error: function(e) { alert("Webcam.js Error: " + e) ------- > these alerts } Thanks Mark Quote Link to comment Share on other sites More sharing options...
Hayri ASLAN Posted March 2, 2017 Author Share Posted March 2, 2017 Hi, Add this to line 111 of UniSpWebcam Webcam.hooks.error = function(e) { alert("Custom Error Text") } Quote Link to comment Share on other sites More sharing options...
MarkLince Posted March 3, 2017 Share Posted March 3, 2017 Hi Hayri, Thanks very much for that, I can see how I can use it. However, what I want to do is replace the browser alerts with say a showmessage or unispnoty, but I'm a beginner in js. so... I have a new property in unispwebcam called FCamMessage private FonSnapshot : TChangeEvent; FDestinationWidth, FDestinationHeight : integer; FCamMessage : string; I'd like to be able to bring back the messages (mostly error) generated in the webcam.min.js in an ajax event and put the result in FCamMessage (published as CamMessage). In my main form I can then check unispwebcam.cammessage and create a unispnoty to inform user and/ or do some other action. So far I have in UniSPWebCam.pas; 1. I have the new publshed property CamMessage. 2. I have added to ajax procedure as below. procedure TUniSpWebcam.Ajax(Sender: TComponent; EventName: string; Params: TUniStrings); var SS: TStringStream; MS: TMemoryStream; FN: String; begin if EventName='snap' then begin SS := TStringStream.Create(Params.Values['data']); try MS := TMemoryStream.Create(); try DecodeStream(SS, MS); FN := UniServerInstance.LocalCachePath + IntToStr(Random(10000000))+'.jpg'; MS.SaveToFile(FN); finally MS.Free; end; finally SS.Free; end; if Assigned(onSnapshot) then onSnapshot(Self, FN); end else if EventName='Mes' then begin // assign params.values['txt'] to CamMessage end; end; but I'm struggling with the ajax request as in procedure TUniSpWebcam.StartWebcam; var data:string; begin data:='Webcam.set({ '+ ' width: '+IntToStr(Width)+','+ ' height: '+IntToStr(Height)+','+ ' dest_width: '+IntToStr(DestinationWidth)+','+ ' dest_height: '+IntToStr(DestinationHeight)+','+ ' image_format: ''jpeg'', '+ ' jpeg_quality: 100 '+ ' }); '+ ' Webcam.attach( ''#UniSpWebcam'' ); '+ ' Webcam.hooks.error = function(e) {ajaxrequest('+Self.JSName+', "mes" ,["txt="+function(e) {"this is a test "+e}])}; ';// This is completely wrong!! UniSession.AddJS(data); end; What do I need to do to bring back the text of the messages in webcam.min.js and put the result in CamMessage I hope that makes sense to you. And thanks for your help and patience. Regards Mark Quote Link to comment Share on other sites More sharing options...
Hayri ASLAN Posted March 3, 2017 Author Share Posted March 3, 2017 hi, This is not correct Webcam.hooks.error = function(e) {ajaxrequest('+Self.JSName+', "mes" ,["txt="+function(e) {"this is a test "+e}])}; You need to change to this Webcam.hooks.error = function(e) { ajaxRequest('+Self.JSName+', "mes" ,["txt="+e]); } Quote Link to comment Share on other sites More sharing options...
MarkLince Posted March 3, 2017 Share Posted March 3, 2017 Hi, Thanks for the super quick response! and thanks for the help, I got into quite a mess with the ajaxrequest! but you have done it! it works. Many, many thanks Regards Mark Quote Link to comment Share on other sites More sharing options...
nyy216 Posted March 4, 2017 Share Posted March 4, 2017 when free? Quote Link to comment Share on other sites More sharing options...
RobYost Posted March 6, 2017 Share Posted March 6, 2017 I am interested in the Notify,Wait, Place Holder Edit and ComboBox. But I only need them in the Mobile version. Are you planning on converting any of these to mobile? Quote Link to comment Share on other sites More sharing options...
ricardolb Posted March 7, 2017 Share Posted March 7, 2017 Hi, I am testing out the Bootstro component, and it only seems to work on buttons, was not able to make it work on a Treeview or Edit for example, any hints? Quote Link to comment Share on other sites More sharing options...
ricardolb Posted March 7, 2017 Share Posted March 7, 2017 Found the problem, if the component I am trying to focus is inside a container it is limited by the container size Quote Link to comment Share on other sites More sharing options...
araujoadanr Posted April 28, 2017 Share Posted April 28, 2017 For some reason none of the UniSpecial components work on some of my projects. I'm using FMSoft_uniGUI_Complete_Professional_1.0.0.1391_RC with Delphi XE10.1. The odd thing is that the UniSpecial demo works perfectly. Do you have any advice that can help me to review. I get the error sweetAlert({ title: "Title", text: "", type: "success", allowOutsideClick: false, showCancelButton: false, closeOnConfirm: true, confirmButtonText: "OK" , confirmButtonColor: "#AEDEF4" , cancelButtonText: "Cancel" , imageUrl: "" , }, function(isConfirm){ if (isConfirm) { ajaxRequest(O4DA, "onConfirm", []); } else { ajaxRequest(O4DA, "onCancel", []); } }); Quote Link to comment Share on other sites More sharing options...
Hayri ASLAN Posted April 29, 2017 Author Share Posted April 29, 2017 Hi Adan, Do not forget add required files to uniservermodule.customCss Quote Link to comment Share on other sites More sharing options...
rhennink Posted May 2, 2017 Share Posted May 2, 2017 Can we still buy these components, and if yes how? and can we see the latest demo somewhere? Richard Quote Link to comment Share on other sites More sharing options...
rhennink Posted May 9, 2017 Share Posted May 9, 2017 Can we still buy these components, and if yes how? and can we see the latest demo somewhere? Richard Anyone?? Quote Link to comment Share on other sites More sharing options...
Hayri ASLAN Posted May 9, 2017 Author Share Posted May 9, 2017 Hi, Please send me Name Surname Country and Email. Quote Link to comment Share on other sites More sharing options...
robinhodemorais Posted August 2, 2017 Share Posted August 2, 2017 Good evening, the demo is not loading Quote Link to comment Share on other sites More sharing options...
drdavinci Posted August 5, 2017 Share Posted August 5, 2017 demo is not working. how can we reach? Quote Link to comment Share on other sites More sharing options...
Hayri ASLAN Posted August 7, 2017 Author Share Posted August 7, 2017 Hi Demo is working now. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.