-
Posts
1578 -
Joined
-
Last visited
-
Days Won
134
Content Type
Profiles
Forums
Events
Everything posted by Hayri ASLAN
-
Add this to mainform.Script function PrintMe(DivID) { var disp_setting="toolbar=yes,location=no,"; disp_setting+="directories=yes,menubar=yes,"; disp_setting+="scrollbars=yes,width=650, height=600, left=100, top=25"; var content_vlue = document.getElementById(DivID).innerHTML; var docprint=window.open("","",disp_setting); docprint.document.open(); docprint.document.write('<!DOCTYPE html PUBLIC "-/W3C/DTD XHTML 1.0 Strict/EN"'); docprint.document.write('"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">'); docprint.document.write('<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">'); docprint.document.write('<head><title>My Title</title>'); docprint.document.write('<style type="text/css">body{ margin:0px;'); docprint.document.write('font-family:verdana,Arial;color:#000;'); docprint.document.write('font-family:Verdana, Geneva, sans-serif; font-size:12px;}'); docprint.document.write('a{color:#000;text-decoration:none;} </style>'); docprint.document.write('</head><body onLoad="self.print()"><center>'); docprint.document.write(content_vlue); docprint.document.write('</center></body></html>'); docprint.document.close(); docprint.focus(); } To print execute this code UniSession.AddJS('PrintMe('''+unihtmlframe1.jsname+'_id'')');
- 6 replies
-
- 1
-
- UniHTMLFrame
-
(and 2 more)
Tagged with:
-
Merhaba, Main module sadece uygulama bir kullanıcıda açıkken aktif olur. eğer siz ne olursa olsun işlem yaptırmak istiyorsanız bunu servermodule de yapmalısınız.
-
Delphi Developer Thank you so much.
-
Hi, in this example we are seeing 2 button on top of grid. http://dev.sencha.com/ext/5.1.0/examples/grid/row-editing.html when we look the source we can see that buttons adding to tbar. I tried to get this but couldn't. How can i add buttons to tbar?
-
Hi, this is about layout problem on demo. in demo topleft, topright... is not working. please select top bottom etc at this time. i will update demo
-
Delphi ile yapmak istiyorsanız Datasnap ile yapmak en mantıklı olan.
-
AFAIK you can't do this in one procedure due to unigui restrictions. we need farshad's help
-
Yes. correctly
-
Dear HarryG Thank you for your suggestion. I will prepare a documentation for first post.
-
hi, you can use unispecialXE2.dpk is it giving error?
-
check clearbutton properties to True
- 1 reply
-
- 2
-
formun onready eventine unisession.addjs(' var userLang = navigator.language || navigator.userLanguage; '+ ' ajaxRequest('+UniForm1.WebForm.JSForm.JSName+', ''onLanguage'', ["Language="+userLang]);'); yazacaksınız. Daha sonra onajaxevent bölümüne geleceksiniz if eventname='onLanguage' then dil:=params.values['Language']; yazacaksınız.
-
Örnek Sonuç : onLanguage Ajax=1 IsEvent=1 Obj=O8 Evt=onLanguage Language=tr _S_ID=cuCisTtc7QzfH6Y _seq_=4
-
unisession.addjs(' var userLang = navigator.language || navigator.userLanguage; '+ ' ajaxRequest('+UniForm1.WebForm.JSForm.JSName+', ''onLanguage'', ["Language="+userLang]);'); Yukarıdaki kodla formun ajaxeventine gelen onLanguage eventi ile geçerli dili alabilirsin.
-
Merhaba, Evet tek pc de 2 farklı tabda çalışıyor. Farklı 2 bilgisayarda çalışan komponent bulursanız onu da eklerim.
-
Update Sent to buyers.
-
Hi, There is another component. UniSpSaveForm. This is save form element's value(Uniedit, UniNumberedit,UniMemo). It is using LocalStorage. When Session restored, clients says all inputs blank. All my works is gone. Now I am saving values with a timer. When session restored asking to them there is a saved form. I can fill again. So clients is happy Just Add : UniSpSaveForm1.SaveForm(frm_SpSaveForm.WebForm.JSName); To Restore Form: UniSpSaveForm1.RestoreForm(frm_SpSaveForm.WebForm.JSName);
-
i added its to unispecial component set. http://forums.unigui.com/index.php?/topic/4666-unispecial-component/?p=28522
-
i see. please use this : window.location.href you will get url with parameters.
-
Hi, I am using this: UniserverModule.Servermessages.TerminateTemplate: [###url###] <-- With this i getting url with parameters. Also you can change [###url###] to requested url. Like : location.href = "http://forums.unigui.com/"; <html> <script> function redirect() { location.href = "[###url###]"; } window.onpaint = redirect(); </script> <body bgcolor="#dfe8f6"> </body> </html>
-
Hi, There is a breaking change for unispecial. I removed load js files dynamically. So you need to add required files to Uniservermodule.CustomFiles manually. Tonight i will send update to all buyers. All required files write in .pas of component. Like : Also There is 3 new component. 1 -) UniSpCheckCombobox. It is core Extjs. 2-) UniSpMaxLength 3-) UniSpSySend (Send Message Between Application in Different Tabs)
-
when i open 2 page of http://jcubic.pl/sysend.php it is working. when i open 2 page of http://terminal.jcubic.pl/sysend.php it is working. what is problem?
-
i think you are looking to this : http://jcubic.pl/sysend.php
-
Demo altındaki HTTP Post Callback örneklerini incelemelisin. http://takip.mygps.com.tr/ adresinde ilk ekranda gelen şey urlframe. ben ordaki kullanıcı adı ve girilen şifreyi demoya bakarak aldım. anahtar nokta şurası : <script> function do_submit() { var ss = undefined; var frm=document.forms[0]; var submitUrl=location.search.split('submitUrl=')[1]; if (submitUrl) var ss=submitUrl.split('&')[0]; frm.action=(ss ? ss: submitUrl); frm.submit(); } }); </script>
-
Hi, i checked this now. When sweetalert in mainmodule or datamodule, we can't get Jsname of sweetalert. It is getting only "O0" Maybe farshad can give a clue about that.