tag:blogger.com,1999:blog-869579236085438805.post3888651778715305805..comments2024-02-17T17:44:10.911+10:00Comments on Random Insights into Oracle: Implementing Ext Dates in Oracle ApexMark Lancasterhttp://www.blogger.com/profile/06316329564169609358noreply@blogger.comBlogger12125tag:blogger.com,1999:blog-869579236085438805.post-73585603680973352009-11-18T23:34:46.665+10:002009-11-18T23:34:46.665+10:00Hi Mark!
Thanks for response, in fact that easy an...Hi Mark!<br />Thanks for response, in fact that easy and best implemented in your version.<br /><br />I found exactly my problem.<br />I found a visualization error, when DOM input text is defined in ApEx as TEXT_DISABLED, and appens only with FireFox....Seekhttps://www.blogger.com/profile/01067458775922046460noreply@blogger.comtag:blogger.com,1999:blog-869579236085438805.post-64108968282055623072009-11-18T23:21:19.319+10:002009-11-18T23:21:19.319+10:00This comment has been removed by the author.Seekhttps://www.blogger.com/profile/01067458775922046460noreply@blogger.comtag:blogger.com,1999:blog-869579236085438805.post-9862836335145692242009-11-18T22:40:44.668+10:002009-11-18T22:40:44.668+10:00Hi Seek
Disabled is easy:
function makeDateField...Hi Seek<br /><br />Disabled is easy:<br /><br />function makeDateFields(){<br /> var els=Ext.select('input.date-picker',true);<br /> els.each(function(el){<br /> new Ext.form.DateField({<br /> applyTo: el,<br /> disabled: el.dom.disabled,<br /> format:'d-M-Y',<br /> altFormats:'j|j/n|j/n/y|j/n/Y|j-M|j-M-y|j-M-Y'<br /> });<br /> });<br />}Mark Lancasterhttps://www.blogger.com/profile/06316329564169609358noreply@blogger.comtag:blogger.com,1999:blog-869579236085438805.post-15031368095712546922009-11-18T03:44:13.071+10:002009-11-18T03:44:13.071+10:00Nice and useful Mark!
What about disabled fields?
...Nice and useful Mark!<br />What about disabled fields?<br /><br />function makeDateFields(){<br /> var els=Ext.select('input.date-picker',true);<br /> els.each(function(el){<br /> var df=new Ext.form.DateField({<br /> 'format':'d-M-Y',<br /> 'altFormats':'j|j/n|j/n/y|j/n/Y|j-M|j-M-y|j-M-Y'<br /> });<br /> df.applyToMarkup(el);<br /> if (el.getAttribute('readonly')){<br /> df.disable();<br /> }<br /> })<br />}<br /><br />I'm trying to do the same thing managing disable state, but I have some problem setting the correct data value, did you encounter this problem?<br /><br />Thanks<br />SeekSeekhttps://www.blogger.com/profile/01067458775922046460noreply@blogger.comtag:blogger.com,1999:blog-869579236085438805.post-66952796641605197522008-11-20T04:40:00.000+10:002008-11-20T04:40:00.000+10:00Mark,I tried to implement this but wasn't succ...Mark,<BR/><BR/>I tried to implement this but wasn't successful. Can you please help me?<BR/><BR/>Here's what I did:<BR/>1.Uploaded ext-all.js & ext-base.js to Shared Components -->Files -->Static files and calendar.gif to images<BR/>2.Copied the following in the HTML Header of the page attributes:<BR/><BR/>script language="JavaScript" type="text/javascript" src="#WORKSPACE_IMAGES#ext-all.js"/script<BR/>script language="JavaScript" type="text/javascript" src="#WORKSPACE_IMAGES#ext-base.js"/script<BR/>script type="text/javascript"<BR/>// convert inputs with class "date-picker" to date fields<BR/>function makeDateFields(){<BR/> var els=Ext.select("input.date-picker",true);<BR/> els.each(function(el){<BR/> var df = new Ext.form.DateField({"format":'d-M-Y',"altFormats":'j|j/n|j/n/y|j/n/Y|j-M|j-M-y|j-M-Y'});<BR/> df.applyToMarkup(el);<BR/> })<BR/>}<BR/> <BR/>Ext.onReady(function() {<BR/> makeDateFields();<BR/>});<BR/>/script<BR/>3.Changed the date item to Text field.<BR/>4.Entered in HTML Form element attributes: class="date-picker"<BR/>But still not seeing calendar icon next to the date item.<BR/><BR/>PS: Removed tags <><BR/>Your help is greatly appreciated.<BR/>Thanks<BR/>PradeepUnknownhttps://www.blogger.com/profile/03330109086348570771noreply@blogger.comtag:blogger.com,1999:blog-869579236085438805.post-76125400945231051812008-03-19T20:45:00.000+10:002008-03-19T20:45:00.000+10:00Hi Mark,thanks for your help regarding to the comm...Hi Mark,<BR/>thanks for your help regarding to the commenting system. I build one with js (without ext) that works fine. And i also tried to build a commenting system with ext integration, but it didn´t work. I´m a newbie in js, so could you post a little extjs-commenting example please?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-869579236085438805.post-87695099083945134672008-03-17T10:15:00.000+10:002008-03-17T10:15:00.000+10:00MJYes, you can use Apex + XE to create a website -...MJ<BR/><BR/>Yes, you can use Apex + XE to create a website - the Oracle forums contain heaps of info on this.<BR/><BR/>You would be best served to install Apache as the web-server, rather than using the embedded PL/SQL gateway.<BR/><BR/>Also, there a number of security holes with XE - sometimes "free" is not the best approach.Mark Lancasterhttps://www.blogger.com/profile/06316329564169609358noreply@blogger.comtag:blogger.com,1999:blog-869579236085438805.post-15220584934894001902008-03-17T10:03:00.000+10:002008-03-17T10:03:00.000+10:00Hi TimoHere is a super-brief explaination, I'm a l...Hi Timo<BR/><BR/>Here is a super-brief explaination, I'm a little time challenged at the moment :)<BR/><BR/>I use an application process to insert the data into the database. The javascript to do this is on my demo site - just download the source and then format it to see what's going on.<BR/><BR/>When inserting it into the database I have to unescape the comment so it will render later.<BR/><BR/>I use dbms_xmlgen.convert(:new.app_comment,dbms_xmlgen.entity_decode) to do this. There may be a better way I haven't thought of.<BR/><BR/>I also strip out some html elements such as script, object, embed etc to prevent malicious attacks.<BR/><BR/>The javascript then does a PPR to display the comment immediately.<BR/><BR/>Regards<BR/><BR/>MarkMark Lancasterhttps://www.blogger.com/profile/06316329564169609358noreply@blogger.comtag:blogger.com,1999:blog-869579236085438805.post-10895338054661870022008-03-14T07:15:00.000+10:002008-03-14T07:15:00.000+10:00hey ya!first of all, apologies if i used this aven...hey ya!<BR/><BR/>first of all, apologies if i used this avenue for a question unrelated to the post (can't find any other way to contact you).. sorry!<BR/><BR/>Ive been using forms/reports all my professional life (5 yrs) and i wanted to branch out to other things (extinct dinosaurs come to mind). I've come across APEX bec of this and wanted to know how:<BR/><BR/>I can create a website (or a blog) using XE + Apex? Is this possible?<BR/><BR/>Your blog came up when i asked mr. google and i was wondering if you could 'point' me to the right direction...<BR/><BR/>apologies again and i hope you reveal your email in your about page =)Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-869579236085438805.post-23456884327963182812008-03-10T22:25:00.000+10:002008-03-10T22:25:00.000+10:00Hi Mark,i´ve played a little bit with your comment...Hi Mark,<BR/>i´ve played a little bit with your commenting system, but i can´t understand the way how you write the information into the database table. Is it possible for you to write a little explanation about the way. Thank you very much! TimoAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-869579236085438805.post-8529713359380005542008-03-10T21:06:00.000+10:002008-03-10T21:06:00.000+10:00Hi TimoThanks for bringing the error to my attenti...Hi Timo<BR/><BR/>Thanks for bringing the error to my attention - I'd updated the code, but not the example script.<BR/><BR/>MarkMark Lancasterhttps://www.blogger.com/profile/06316329564169609358noreply@blogger.comtag:blogger.com,1999:blog-869579236085438805.post-27138967858124775392008-03-10T18:31:00.000+10:002008-03-10T18:31:00.000+10:00Hi Mark, thanks for the implementing instruction. ...Hi Mark, thanks for the implementing instruction. I´m using the ext version 2.0.2. And there you will get an error when using "df.applyTo(el);". There you need to write "df.applyToMarkup(el);" in the javascript.Anonymousnoreply@blogger.com