Oracle tags and JavaScript

Attention JavaScript and Oracle Guru's,
My company has come up with a great requirement using JavaScript and dynamic pages to provide end users with a Systems Availability Information portlet, which scrolls text along the screen.
This is as follows.....
They want a Portlet which scrolls text along the screen on the users home page. This has been easy enough to implementbut now this information has to be supplied from the database (an Internal Systems Operation team input information into this table via a form)
HmmmmOracle tags do not work within JavaScript. So I have created a hidden form on the outside of the JavaScript to pass in text.
This works great with normal text variables, so I thought the addition of Oracle tags would be the next logical step needed to pass data from the database into the scrolling text Portlet.
With use of the <Oracle> tags and hidden variables I have managed to come up with the following....
<html>
<body>
<form id="hiddenOracleForm">
<input type="hidden" name="recordset1" value="<oracle> select * from mnunn.matt_ticker_table</oracle> ">
</form>
< !-- START OF SCRIPT -->
<HTML>
<BODY BGCOLOR="FFFFFF" TEXT="000000" LINK="0000FF" VLINK="800080" ALINK="FF0000">
<head>
<script language="JavaScript">
< !-- begin
var max=0;
function textlist()
max=textlist.arguments.length;
for (i=0; i<max; i++)
this=textlist.arguments[i];
document.write('the variable for rs1 is ' + rs1);
var rs1 = document.forms['hiddenOracleForm'].recordset1.value;
tl=new textlist
rs1
var x=0; pos=0;
var l=tl[0].length;
function textticker()
document.tickform.tickfield.value=tl[x].substring(0,pos)+"_";
if(pos++==l) { pos=0; setTimeout("textticker()",1000); x++;
if(x==max) x=0; l=tl[x].length; } else
setTimeout("textticker()",50);
// end -->
</script>
<head>
<body onLoad="textticker()" >
<center>
<form name="tickform"><input type=text name="tickfield" size=40></form>
</BODY>
</HTML>
< !-- END OF SCRIPT -->
<img src="file://hofisintranet1/qualitydocs$/DW/stag bitmaps/monfaq.gif" border="0">
< !-- START OF SCRIPT -->
< !-- For more scripts visit http://www.hof.co.uk -->
<FORM><input type="button" Value="Click here for full details" ONCLICK="window.open('http://www.hof.co.uk', 'Sample', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,copyhistory=yes,width=635,height=260')"></FORM>
< !-- END OF SCRIPT -->
</body>
</html>
Now when this scrolls along the screen, I do not get the expected outcome from the database table. Instead it scrolls.<TABLE border=
I dont know where this information has come from because it should say..
Enter password:
Connected to:
Oracle8i Enterprise Edition Release 8.1.7.0.0 - Production
JServer Release 8.1.7.0.0 - Production
SQL> select * from mnunn.matt_ticker_table;
INFO
This is information taken from the portal database
SQL>
Has anybody tried this before or got any ideas on where I could be going wrong??????
Thanks for any help..Matt.
null

I'll try for the repost. This time without the compilation of the code......here goes.
Attention JavaScript and Oracle Guru's,
My company has come up with a great requirement using JavaScript and dynamic pages to provide end users with a Systems Availability Information portlet, which scrolls text along the screen.
This is as follows.....
They want a Portlet which scrolls text along the screen on the users home page. This has been easy enough to implementbut now this information has to be supplied from the database (an Internal Systems Operation team input information into this table via a form)
HmmmmOracle tags do not work within JavaScript. So I have created a hidden form on the outside of the JavaScript to pass in text.
This works great with normal text variables, so I thought the addition of Oracle tags would be the next logical step needed to pass data from the database into the scrolling text Portlet.
With use of the <Oracle> tags and hidden variables I have managed to come up with the following....
<form id="hiddenOracleForm">
<input type="hidden" name="recordset1" value="<oracle> select * from mnunn.matt_ticker_table</oracle> ">
</form>
<!-- START OF SCRIPT -->
<BODY BGCOLOR="FFFFFF" TEXT="000000" LINK="0000FF" VLINK="800080" ALINK="FF0000">
<head>
<script language="JavaScript">
<!-- begin
var max=0;
function textlist()
max=textlist.arguments.length;
for (i=0; i<max; i++)
this=textlist.arguments[i];
document.write('the variable for rs1 is ' + rs1);
var rs1 = document.forms['hiddenOracleForm'].recordset1.value;
tl=new textlist
rs1
var x=0; pos=0;
var l=tl[0].length;
function textticker()
document.tickform.tickfield.value=tl[x].substring(0,pos)+"_";
if(pos++==l) { pos=0; setTimeout("textticker()",1000); x++;
if(x==max) x=0; l=tl[x].length; } else
setTimeout("textticker()",50);
// end -->
</script>
<head>
<body onLoad="textticker()" >
<center>
<form name="tickform"><input type=text name="tickfield" size=40></form>
</BODY>
<!-- END OF SCRIPT -->
<img src="file://hofisintranet1/qualitydocs$/DW/stag bitmaps/monfaq.gif" border="0">
<!-- START OF SCRIPT -->
<!-- For more scripts visit http://www.hof.co.uk -->
<FORM><input type="button" Value="Click here for full details" ONCLICK="window.open('http://www.hof.co.uk', 'Sample', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,copyhistory=yes,width=635,height=260')"></FORM>
<!-- END OF SCRIPT -->
Now when this scrolls along the screen, I do not get the expected outcome from the database table. Instead it scrolls.<TABLE border=
I dont know where this information has come from because it should say..
Enter password:
Connected to:
Oracle8i Enterprise Edition Release 8.1.7.0.0 - Production
JServer Release 8.1.7.0.0 - Production
SQL> select * from mnunn.matt_ticker_table;
INFO
This is information taken from the portal database
SQL>
Has anybody tried this before or got any ideas on where I could be going wrong??????
Thanks for any help..Matt.

Similar Messages

  • Netui tags and javascript

              Hello Gang, not sure if anyone has run into this issue, but here it goes.
              I got a netui:form with netui:checkboxes that I need to have a specific type of
              functionality.
              The first netui:checkbox when checked calls a javascript function that enables
              the remaining netui:checkboxes so that the user can check them.
              Except the first netui:checkbox, all other netui:checkboxes need to be disabled
              at run time and then enabled once the first check box is checked, below is the
              code I got thus far, can't get the diable/enable part to work for the netui tags.
              (Keep in mind that this works well with regular html checkbox tag and javascript)
              The following code wont generate javascript errors.
              It's not doing anything in terms of enabling/disabling the netui:checkboxes.
              <script language="javascript">
              function checkBoxDisable()
              document[getNetuiTagName("updateForm")][getNetuiTagName("tue")].disabled=true;
              document[getNetuiTagName("updateForm")][getNetuiTagName("wed")].disabled=true;
              document[getNetuiTagName("updateForm")][getNetuiTagName("thu")].disabled=true;
              document[getNetuiTagName("updateForm")][getNetuiTagName("fri")].disabled=true;
              function checkboxEnable()
              if (document[getNetuiTagName("updateForm")][getNetuiTagName("mon")].checked)
              document[getNetuiTagName("updateForm")][getNetuiTagName("tue")].disabled=false;
              document[getNetuiTagName("updateForm")][getNetuiTagName("wed")].disabled=false;
              document[getNetuiTagName("updateForm")][getNetuiTagName("thu")].disabled=false;
              document[getNetuiTagName("updateForm")][getNetuiTagName("fri")].disabled=false;
              else
              document[getNetuiTagName("updateForm")][getNetuiTagName("tue")].disabled="true";
              document[getNetuiTagName("updateForm")][getNetuiTagName("wed")].disabled="true";
              document[getNetuiTagName("updateForm")][getNetuiTagName("thu")].disabled="true";
              document[getNetuiTagName("updateForm")][getNetuiTagName("fri")].disabled="true";
              </script>
              <netui:form action="updateContact" tagId="updateForm">
              <netui:checkBox dataSource="{actionForm.accessDays}" defaultValue="{pageFlow.days[0]}"
              tagId="mon" onClick="checkboxEnable()"/>Monday
              <netui:checkBox dataSource="{actionForm.accessDays}" defaultValue="{pageFlow.days[1]}"
              tagId="tue"/>Tuesday
              <netui:checkBox dataSource="{actionForm.accessDays}" defaultValue="{pageFlow.days[2]}"
              tagId="wed"/>Wednesday
              <netui:checkBox dataSource="{actionForm.accessDays}" defaultValue="{pageFlow.days[3]}"
              tagId="thu"/>Thursday
              <netui:checkBox dataSource="{actionForm.accessDays}" defaultValue="{pageFlow.days[4]}"
              tagId="fri"/>Friday
              </netui:form>
              Any help on this will be appreciated ..
              

              Hello Gang, not sure if anyone has run into this issue, but here it goes.
              I got a netui:form with netui:checkboxes that I need to have a specific type of
              functionality.
              The first netui:checkbox when checked calls a javascript function that enables
              the remaining netui:checkboxes so that the user can check them.
              Except the first netui:checkbox, all other netui:checkboxes need to be disabled
              at run time and then enabled once the first check box is checked, below is the
              code I got thus far, can't get the diable/enable part to work for the netui tags.
              (Keep in mind that this works well with regular html checkbox tag and javascript)
              The following code wont generate javascript errors.
              It's not doing anything in terms of enabling/disabling the netui:checkboxes.
              <script language="javascript">
              function checkBoxDisable()
              document[getNetuiTagName("updateForm")][getNetuiTagName("tue")].disabled=true;
              document[getNetuiTagName("updateForm")][getNetuiTagName("wed")].disabled=true;
              document[getNetuiTagName("updateForm")][getNetuiTagName("thu")].disabled=true;
              document[getNetuiTagName("updateForm")][getNetuiTagName("fri")].disabled=true;
              function checkboxEnable()
              if (document[getNetuiTagName("updateForm")][getNetuiTagName("mon")].checked)
              document[getNetuiTagName("updateForm")][getNetuiTagName("tue")].disabled=false;
              document[getNetuiTagName("updateForm")][getNetuiTagName("wed")].disabled=false;
              document[getNetuiTagName("updateForm")][getNetuiTagName("thu")].disabled=false;
              document[getNetuiTagName("updateForm")][getNetuiTagName("fri")].disabled=false;
              else
              document[getNetuiTagName("updateForm")][getNetuiTagName("tue")].disabled="true";
              document[getNetuiTagName("updateForm")][getNetuiTagName("wed")].disabled="true";
              document[getNetuiTagName("updateForm")][getNetuiTagName("thu")].disabled="true";
              document[getNetuiTagName("updateForm")][getNetuiTagName("fri")].disabled="true";
              </script>
              <netui:form action="updateContact" tagId="updateForm">
              <netui:checkBox dataSource="{actionForm.accessDays}" defaultValue="{pageFlow.days[0]}"
              tagId="mon" onClick="checkboxEnable()"/>Monday
              <netui:checkBox dataSource="{actionForm.accessDays}" defaultValue="{pageFlow.days[1]}"
              tagId="tue"/>Tuesday
              <netui:checkBox dataSource="{actionForm.accessDays}" defaultValue="{pageFlow.days[2]}"
              tagId="wed"/>Wednesday
              <netui:checkBox dataSource="{actionForm.accessDays}" defaultValue="{pageFlow.days[3]}"
              tagId="thu"/>Thursday
              <netui:checkBox dataSource="{actionForm.accessDays}" defaultValue="{pageFlow.days[4]}"
              tagId="fri"/>Friday
              </netui:form>
              Any help on this will be appreciated ..
              

  • Oracle Openscript and javascript functions

    I'm using Openscript on a form page that is using a clickable div "save" button. When the button is clicked manually a javascript event is executed to save the changes on the page. When I play back the script, the script clicks on the button and gets redirected to the next page but does not save the changes I made on the text boxes. I'm guessing it doesnt run the ng-click updateUser() function when doing a playback. How can I get openscript to click on the save button and run the javascript function?
    Openscript code:
    web.button( "/web:window[@index='0' or @title=Payment Processor']/web:document[@index='0']/web:form[@name='form' or @index='0']/web:button[@index='1']") .click();
    This is what the div save button code looks like:
    <div class="row"> <div class="col-xs-12"> <button class="btn btn-primary" ng-click="updateUser()"> <i class="fa fa-asterisk"></i> Save </button>  </div> </div>

    Hi,
    You mentioned click action on div element, but your code is click action on button. get Xpath of div element and perform respective action on the same.

  • Dynamic Page / Oracle Tags/ Javascript

    I'm attempting to insert values from an Oracle database into javascript code that creates a scrolling text area. I'm assuming I need to use <oracle></oracle> tags to do so, but I'm not sure exactly how to populate what I need in the code. Any ideas?
    The code is below. The area that needs to be populated with the data is in the Array variable, and I've used "Database Value 1, 2, 3" as placeholders.
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <html>
    <head>
         <title>Untitled</title>
    <style TYPE="text/css">
         <!--
         .TextScrollStyle {
              visibility:hidden;
              font-family:Verdana;
              font-weight:bold;
              text-align:center;
              padding:0;
              margin:0;
              width:100%;
              overflow:hidden;
         -->
         </style>
    <script language="JavaScript1.2">
              var TS_message = new Array();
    TS_message[0] = '<div align="left">Database Value 1</div>';
         TS_message[1] = '<div align="left">Database Value 2</div>';
              TS_message[2] = '<div align="left">Database Value 3</div>';
    var TS_scrollwidth=400
              var TS_colorFG = 0x000000;
              var TS_colorBG = 0xFFFFFF;
              var TS_ymax = 50;               
              var TS_ystep = 1;               
         var TS_speed = 2;                    
    var TS_pause = 100;
              var TS_fadestep= 20;               
    if (document.all)
    document.write('<style>#containerarea{width:'+TS_scrollwidth+'}</style>')
    </script>
    </head>
    <body>
    <DIV id="containerarea">
    <SCRIPT LANGUAGE="JavaScript1.2" SRC="\\Portalapp\ORACLE\iSuites\portal30\java\textfader.js"></SCRIPT>
    </DIV>
    </body>
    </html>

    You can write a piece of PL/SQL for
    TS_message[0] = '<div align="left">Database Value 1</div>';
    TS_message[1] = '<div align="left">Database Value 2</div>';
    TS_message[2] = '<div align="left">Database Value 3</div>';
    between <ORACLE> tags:
    declare
    cursor ...
    begin
    loop for i in cursor loop
    htp.p('TS_message[0] = ''<div align="left">'||i.value||'</div>''; ';
    end loop;
    end;
    Hope it helps.

  • Question about BC4J data tags, Oracle sessions and Locking!

    Hi ,
    I have seen numerous examples of JSPs using data tags and in all the examples the data tag for the application module has the "username" and "password" harcoded in it.
    My questions are:
    1) For a stateful application should we be including the username and password in every JSP page. I personally believe that we should not.
    2) If we have a username and password in every JSP page will it not start a new ORACLE user session and if so will it not cause locking problems?
    3) If we don't hard code the username and password in every JSP page, will it reuse the same ORACLE session ?
    4) How do we avoid locking problems when we use data tags?
    5)I can understand the inclusion of username and password in every JSP page if it is a stateless application but again Is there a way we can avoid hardcoding the username and password in every single page?
    I would appreciate if some one can let me know if any of my assumptions are incorrect.
    JDeveloper Team/Juan any advice?

    The username and password are optional. They can be provided via the connections.properties file. The multple entries for username and password don't mean that separate connection are made. The first time the ApplicationModule tag is encountered, your application instance is created. If you are running in reserved mode (look at your releasePageResources tag) the application instance is kept until your Http session times out. If you are running in Stateful or Stateless mode, you application instance is returned to the application pool and retrieved the next time you need an instance. Please refer to the application pool documentation and to the source in oracle\jbo\common\ampool provided in jbohtmlsrc.zip.

  • Filting html tags, css, and javascript with regex

    hi everyone,
    im writing a small application where a user types in a url, and the text of the webpage is displayed in a text area.
    ive got it to work, however it takes some time, and also alot of content i dont want is displayed - tags, scripts and sometimes css.
    initally i filtered out the html tags with a regular expression, but i still get alot of unwanted content.
    im not a confident java programmer, and the idea of parsing html, css and javascript is the scariest idea ever to me, so my next idea is to keep only everything between the <body> tags - everything above and below it is deleted - hopefully that should leave me only with the visible content on the site.
    ive messed around with regular expressions but i cant get it to work, can anyone help out?
    thanks alot,
    Torre

    Darryl.Burke wrote:
    I tried out the regexes I posted on the source of a forum page, which is not valid html (contains two each opening and closing body tags). With a bit of trial and error I was able to remove everything upto the first, and not the second, opening tag by using a reluctant qualifier, ^.*?, but couldn't for the life of me achieve removal of only the last closing tag, leaving the other, invalid one intact. How would you do that?Regexes always try to match the first occurrence of whatever they're looking for (the sentinel), and there's no way to change that behavior (but it would be handy if you could). What you have to do instead is make sure the rest of the regex can't match the sentinel. For that you need lookahead, and the simplest way to use it is to scan the rest of the text looking for the sentinel and, if it doesn't find one, go ahead and gobble up the remaining text: "(?is)</body>(?!.*</body).*$" However, if there are many occurrences of the sentinel, you could take a serious performance hit. Here's a much more efficient way: "(?is)</body>(?:[^<]++|<(?!/body>))*+$" After matching the sentinel, this regex gobbles up anything that's not the first character of the sentinel, or the first character as long as it isn't followed by the remaining characters of the sentinel. The advantages of this regex are that it never has to backtrack, and the lookahead is only applied when it's necessary, where the first regex applies it every time.

  • Netui tags and illegal Javascript names - workaround?

    I'm trying to use the netui tags and tie reference the netui generated names. For example, these look like:
    portlet_2_3{actionForm.customerGroup}
    but this is not a legal Javascript name because of the curly braces. Is there a way around this?

    Hi
    havent tried it, but you wouldnt be adding a netui tag, you would be adding a textbox whose name would be exactly like the generated name if you had the netui tag in the jsp
    i.e. add the textbox with name <portletInstance>{actionForm.fieldName[1]}
    where portletInstance is obtained dynamically. i guess the property would have to be mapped as an array type on the form bean
    regars
    deepak

  • Using facelets and javascript in dynamic regions

    Hello
    I'm using JDeveloper 11g 11.1.1.4.0.
    In the JDeveloper's documentation I found that there is the best parctice to use facelets.
    Now, I have next problem.
    I use dynamic region iside xhtml (facelets) page. Inside that dynamic region there is a view (jsff).
    The problem is that I can't use any custom JavaScript in that jsff.
    I tried next thing:
                <trh:script id="trhs1">
                    <af:resource type="javascript">
                      testm = function (event) {
                      alert('qqq');
                    </af:resource>
               </trh:script>
    <af:clientListener method="testm" type="dblClick"/>If that task-flow is placed inside jspx (not facelets) page, then all works.
    If that task-flow is placed inside xhtm (facelets) page, I have an error from browser that javascript's 'testm' method is not defined.
    I checked source code of the result html-page, and my javascript code really doesn't exists there.
    I can fix it by moving javascript code from the taskflow's jsff to surrounding xhtml page or using jspx page, but, maybe, there is another solution?
    Anatolii
    Edited by: Anatolii. on 11/4/2011 0:32

    Thank for replay, Shay
    I found that in Web User Interface Developer's Guide for Oracle ADF, 2 Getting Started with ADF Faces, Section 2.4, "Creating a View Page":
    Best Practice: Use Facelets to take advantage of the following:
    The Facelets layer was created specifically for JSF, which results in reduced overhead and improved performance during tag compilation and execution.
    Facelets is considered the primary view definition technology in JSF 2.0.
    Some future performance enhancements will only be available with Facelets
    Now I have facelets page with dynamic region, it works.
    I've decided to use facelets because of the forthcoming JDeveloper with JSF 2.0 and for performance improvements described above.
    Do you think it's better to use jspx?
    I have not found any limitations for facelets in Web User Interface Developer's Guide for Oracle ADF and Fusion Developer's Guide for Oracle ADF
    Anatolii

  • ORACLE tags not working after 1.5.1 patch

    I have some logic in my template the looks up information from some Oracle tables. This logic worked fine in 1.5.0, however, after applying the 1.5.1 patch it does not perform the Oracle logic, but shows the Oracle code as HTML on the page. Here is the code in question: (This is not the entire code, but one HTML TD that comes before the Oracle code, and one HTML TD that comes after it)
    <TD align="center" valign="top"><A
    href="/pls/portal/PORTAL.home"><IMG src="#WORKSPACE_IMAGES#ihome.gif" alt="Home" border="0"></A></TD>
    <ORACLE>
    BEGIN htp.tableData(htf.anchor2('javascript:help_openTopic(''/insitehelp/Insite_Help.htm'', ''' || pkg_insite_general.help_link(v('APP_ID'), v('APP_PAGE_ID')) || ''')', '', '', '', '><IMG src="#WORKSPACE_IMAGES#ihelpl.gif" alt="Help" border=0'), 'center');
    END;
    </ORACLE>
    <TD align="center" valign="top"><IMG src="#WORKSPACE_IMAGES#ilogout.gif" alt="Logout" border="0"></TD>
    This is what displays on the web page:
    BEGIN htp.tableData(htf.anchor2('javascript:help_openTopic(''/insitehelp/Insite_Help.htm'', ''' || pkg_insite_general.help_link(v('APP_ID'), v('APP_PAGE_ID')) || ''')', '', '', '', '>

    Your removal of functionality in a bug fix has broken a production application for us. This does not seem like something that should have been done with a "patch"
    I have just read all that I can find on "shortcuts" and am not finding what I need.
    Here is what we are doing:
    We are using RoboHelp for our help content. We have a help icon and a help link on the header of the page. This is defined in our template. We have to have the name of the module (Page Alias) to link the page being run to the help content for that page. Since you do not have a system variable for page name or page alias, I have had to put this information into an Oracle table. I was looking that up with a function within the Oracle Tags.
    Can I create a shortcut that would create the following code pl/sql code into a PL/SQL function body:
    BEGIN
    htp.tableData(htf.anchor2('javascript:help_openTopic(''/insitehelp/Insite_Help.htm'', ''' || pkg_insite_general.help_link(v('APP_ID'), v('APP_PAGE_ID')) || ''')', '', '', '', '><IMG src="#WORKSPACE_IMAGES#ihelpl.gif" alt="Help" border=0'), 'center');
    END;
    and call this shortcut where this help icon needs to appear like:
    <TD align="center" valign="top">
    "CALLHELPWITHICON"
    </TD>
    I have done the above, but it does not work. What am I doing wrong, how can I get this to work? We have had to remove our help icons because of this patch.
    I thank you so for your research on this.

  • SSO and JavaScript

    Hi all,
    does any one of you know about any restriction or any other issue involving SSO and JavaScript?
    We have a web app in an OC4J instance, which uses JSP and JavaScript.
    When SSO is disabled for the application, everything goes well. But when SSO is active, the page loads a lot slower, and the IE browser always shows the error icon when any component tries to execute Javascript.
    Any ideas about this issue?
    Oracle AS 10g (9.4.1)
    Win 2000 SP4
    IE 6.0 SP1
    Thanks a Lot in advance.
    Have a nice day.
    Jaime

    It is simpler to do from server side as follows. Place below line
    inside Page_Load event of any portal component:
       Write(this.Request.Cookies.Get("MYSAPSSO2").Value);

  • ORACLE Tags in Dynamic Pages

    In the beta version, a Dynamic Page could be developed that did not contain the Oracle tags, <ORACLE> and </ORACLE>. The production version appears to require the use of these tags.
    I've tried to work around this by using <ORACLE> select ' ' from dual</ORACLE> which gave me a blank, but with a different color background and <ORACLE>htp.br;</ORACLE> which Oracle Portal would not accept.
    Any suggestions on how to create a Dynamic Page where the Oracle tags do not impact the display of the page?
    Fran Bailey
    EDS - Meredith Account

    I am running 3.0.6.6.5 on Solaris 2.6.
    I entered your work around (<ORACLE>begin null; end;</ORACLE>) and got this error message when I tried to save the HTML code:
    ORA-06550: line 1, column 15:
    PLS-00103: Encountered the symbol
    "end-of-file" when expecting one of the following:
    ; <an identifier> <a double-quoted
    delimited-identifier>
    The symbol ";" was substituted for "end-of-file" to continue. (WWV-11230)
    Failed to parse as MAH - BEGIN NULL;
    END (WWV-08300)
    Any other suggestions would be appreciated.

  • Oracle Tag in Report Header Text

    I am trying to use the Oracle tag in the Report and Customization Form Text Header Section. I would like to show the current date/time as well issue a select statement. Does this not work?
    <ORACLE>
    htp.p(to_char(sysdate,'Day, Month DD YYYY HH:MI AM'));
    </ORACLE>

    Hi,
    You can only enter plain text or HTML tags here. If you want to use select statement or plsql you can use the
    additional plsql code sections to do this.
    Thanks,
    Sharmila

  • Using CSS and Javascript to display a div with flash in it, mozilla reloads the flash file!

    I am using CSS and Javascript to display a div with an
    embedded flash object in it. Mozilla Firefox reloads the flash file
    when the div is displayed! (I dont want this to happen, as it's
    unexpected functionality, my expectation would be that the flash
    file would not change it's state at all, and would remain in
    whatever state it was left in.)
    I was wondering if anyone has come across this issue and is
    there something I can do to prevent this from occurring?
    To be more specific, I have a single HTML page with 8 flash
    files embedded in it (yeah I know, it's a bit much). I am then
    using CSS and Javascript to display (via a numbered link (with an
    id)) an equivalent numbered div tag containing the flash file.
    Mozilla Firefox reloads the flash object that is in the div.
    Internet Explorer will not do this and will instead, load the flash
    object only upon initial view of the flash object. All subsequent
    links (in IE) will NOT reload the flash object on the page. I'm
    guessing this is some kind of difference in the flash player as an
    Active X object and the plugin, or is it just IE being clever? Or
    am I way off?
    Anyway, here is the code...

    I am using CSS and Javascript to display a div with an
    embedded flash object in it. Mozilla Firefox reloads the flash file
    when the div is displayed! (I dont want this to happen, as it's
    unexpected functionality, my expectation would be that the flash
    file would not change it's state at all, and would remain in
    whatever state it was left in.)
    I was wondering if anyone has come across this issue and is
    there something I can do to prevent this from occurring?
    To be more specific, I have a single HTML page with 8 flash
    files embedded in it (yeah I know, it's a bit much). I am then
    using CSS and Javascript to display (via a numbered link (with an
    id)) an equivalent numbered div tag containing the flash file.
    Mozilla Firefox reloads the flash object that is in the div.
    Internet Explorer will not do this and will instead, load the flash
    object only upon initial view of the flash object. All subsequent
    links (in IE) will NOT reload the flash object on the page. I'm
    guessing this is some kind of difference in the flash player as an
    Active X object and the plugin, or is it just IE being clever? Or
    am I way off?
    Anyway, here is the code...

  • Want to include ?xml tag and  schema when creating XML

    My database table that need to be generated in to XML are large and therefore I must use OracleXMLQuery.getXMLSAX . The output is missing the <?xml version="1.0" ?> tag. How do I get it? I am on 9i but have imported the .jar containing oracle/xml/parser/v2/XMLSAXSerializer from 10g XDK.
    Also, I want the schema to be written next, before the actual XML table values.
    I know that a command line parameter exists, which works for small XML files:
    java oraclexml getxml -user "scott/tiger" -withDTD "select ....
    How do I get the equivalent of '"-withDTD" when using
         OracleXMLQuery qry = new OracleXMLQuery(conn, "select * from "+table_name );
         qry.getXMLSAX(myStream);
         myStream.flush();
    Thank you,
    Elaine

    No. Actually, I can get the <?xml tag and DTD if my select statement contains 'where rownum=0', as the resultset is small which lets me use getXMLMetaData() .
    I write it to one output file, then do another OracleXMLQuery, repeating the select statement without the where clause, and run that through getXMLSAX to get the detail.
    Next, I need to scrub the data of special characters acceptable in the database but which cause problems to a browser or XML validator. (e.g. accented characters).
    Finally, I will concatente the two files.
    Is there a simpler way to do this?
    Thanks,
    Elaine

  • Video Uploading in oracle database and playing that video in a jsf page

    Aoa,
    I want to upload videos in oracle database and I also want to play those videos using <af:media> tag in JDeveloper 11g. I have an applicaton which stores images in the database
    and show the images but when I try to upload videos lot of exceptions come.
    any suggestions / help

    Getting OracleMultimedia to work can be tricky. What kind of file are you trying to load into the database?

Maybe you are looking for

  • Oracle RAC 11G - Service configuration

    Hi, I have been reading a lot of documentation regarding oracle services and I have an ok understanding of how they work. However, I have a general question regarding configuring services using Oracle RAC. For instance, if I have a 2 node oracle 11GR

  • Calling function from sql folder vs report

    Hi, A report based on a custom sql folder is taking a long time to run. One of the things that I noticed is that when I run the sql in plsql it takes a long time, but if I remove the row where I call a function, it runs pretty quickly. In general, is

  • Defferla Sales Tax Benefit.

    Dear Gurus, Our implementation is for automobile spare parts industry sold to dealers all over country. We have a particular case where a same / single part can be both manufactured in the company or the same part can also be bought out part (externa

  • I need help fast !

    so when i get into my itunes account i look through my history just to see what i have bought in the past and i noticed that someone spent $12 and $9:99 and i get confused because i didnt spent that much money on one game and like i report it and lik

  • How to get links to single Outlook Elements

    When I drag any Outlook item (or any office document) to the Outlook journal folder I get a new journal entry with a link to the Outlook item. This link can be moved into the notes field of any other Outlook item. I love it to have such links. Is it