HTML Panel into HTML Panel

Hello,
I know this topic has been seen a lot, but I still can't find
the answer for me...
Well, it's easy, I use html panels to load content into my
website (I have a SPRYMenu wich loads content into the
"main" div)
But, when I load content including another HTML Panel, it
doesn't work...
I've set the evalscripts to true, but it doesn't work...
here is a small portion of code coming from the exaples, wich
looks like what i want to do, even if in this code, it loads a
slidingPanel, not a HTLMPanel, but I think if I can make it work,
I'll be able to do what I want then !
here is the main file
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
Transitional//EN" "
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="
http://www.w3.org/1999/xhtml">
<head>
<style type="text/css">
hr, .clearAll {
clear: both;
.SlidingPanels {
width: 300px;
height: 300px;
.SlidingPanelsContent {
width: 300px;
height: 300px;
.p1 {
background-color: #CCCC66;
.p2 {
background-color: #FFFFCC;
.p3 {
background-color: #6699FF;
.p4 {
background-color: #99CCCC;
.p5 {
background-color: #FF99CC;
.p6 {
background-color: #339933;
.p7 {
background-color: #9933FF;
.p8 {
background-color: #669966;
.p9 {
background-color: #00FFCC;
#example2.SlidingPanels {
float: left;
#example2 .SlidingPanelsContentGroup {
float: left;
width: 10000px;
#example2 .SlidingPanelsContent {
float: left;
</style>
<script src="inc/SpryHTMLPanel.js"
language="javascript"
type="text/javascript">
Spry.Widget.HTMLPanel.evalScripts =
true;</script>
<link href="inc/SpryHTMLPanel.css"
rel="stylesheet"
type="text/css" />
<meta http-equiv="Content-Type"
content="text/html; charset=iso-8859-1" />
<title>Document sans nom</title>
</head>
<body>
<div id="panelSpry"
style="">text de base</div>
<div><a
href="essai1.html"
onclick="panelWidget.loadContent(this.href);return
false;">changement</a></div>
<script>
var panelWidget = new
Spry.Widget.HTMLPanel("panelSpry", { evalScripts:
true });
</script>
</body>
</html>
and here is the loaded file (essai1.html) :
<link
href="inc/SprySlidingPanels.css"
rel="stylesheet"
type="text/css" />
<script type="text/javascript"
src="inc/SprySlidingPanels.js"></script>
<p>
Navigate by index:
<a href="#"
onclick="sp2.showPanel(0); return
false;">1</a> |
<a href="#"
onclick="sp2.showPanel(1); return
false;">2</a> |
<a href="#"
onclick="sp2.showPanel(2); return
false;">3</a> |
<a href="#"
onclick="sp2.showPanel(3); return
false;">4</a> |
<a href="#"
onclick="sp2.showPanel(4); return
false;">5</a> |
<a href="#"
onclick="sp2.showPanel(5); return
false;">6</a> |
<a href="#"
onclick="sp2.showPanel(6); return
false;">7</a> |
<a href="#"
onclick="sp2.showPanel(7); return
false;">8</a> |
<a href="#"
onclick="sp2.showPanel(8); return
false;">9</a>
</p>
<p>
Navigate by id:
<a href="#"
onclick="sp2.showPanel('ex2_p1'); return
false;">p1</a> |
<a href="#"
onclick="sp2.showPanel('ex2_p2'); return
false;">p2</a> |
<a href="#"
onclick="sp2.showPanel('ex2_p3'); return
false;">p3</a> |
<a href="#"
onclick="sp2.showPanel('ex2_p4'); return
false;">p4</a> |
<a href="#"
onclick="sp2.showPanel('ex2_p5'); return
false;">p5</a> |
<a href="#"
onclick="sp2.showPanel('ex2_p6'); return
false;">p6</a> |
<a href="#"
onclick="sp2.showPanel('ex2_p7'); return
false;">p7</a> |
<a href="#"
onclick="sp2.showPanel('ex2_p8'); return
false;">p8</a> |
<a href="#"
onclick="sp2.showPanel('ex2_p9'); return
false;">p9</a>
</p>
<p>
Other navigation methods:
<a href="#"
onclick="sp2.showFirstPanel(); return
false;">First</a> |
<a href="#"
onclick="sp2.showPreviousPanel(); return
false;">Previous</a> |
<a href="#"
onclick="sp2.showNextPanel(); return
false;">Next</a> |
<a href="#"
onclick="sp2.showLastPanel(); return
false;">Last</a>
</p>
<p> </p>
<div id="example2"
class="SlidingPanels"
tabindex="0">
<div
class="SlidingPanelsContentGroup">
<div id="ex2_p1"
class="SlidingPanelsContent p1">Panel
1</div>
<div id="ex2_p2"
class="SlidingPanelsContent p2">Panel
2</div>
<div id="ex2_p3"
class="SlidingPanelsContent p3">Panel
3</div>
<div id="ex2_p4"
class="SlidingPanelsContent p4">Panel
4</div>
<div id="ex2_p5"
class="SlidingPanelsContent p5">Panel
5</div>
<div id="ex2_p6"
class="SlidingPanelsContent p6">Panel
6</div>
<div id="ex2_p7"
class="SlidingPanelsContent p7">Panel
7</div>
<div id="ex2_p8"
class="SlidingPanelsContent p8">Panel
8</div>
<div id="ex2_p9"
class="SlidingPanelsContent p9">Panel
9</div>
</div>
</div>
<script
type="text/javascript">
var sp2 = new Spry.Widget.SlidingPanels('example2');
</script>
I hope somebody can help....
Thanks !

Thank you for your quick reply.
I still have a problem here.
Would you please see my 3 files for my problems.
Thank you very much for your time.
1. index.php
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Test for Spry HTML Panel</title>
<script src="../spry/SpryHTMLPanel.js" language="javascript" type="text/javascript"></script>
<link href="../spry/SpryHTMLPanel.css" rel="stylesheet" type="text/css">
</head>
<body>
<input type="button" value="Click Here to Load Document Level 2" onclick="body_content_area.loadContent('doc_level_2.php');" />
    <div id="body_content_area" style="clear:both; width:100%;">
        <!-- Put Content Here -->
        <div class="HTMLPanelLoadingContent">Loading ...</div>
    </div>
<script type="text/javascript" language="javascript1.2">
<!--
var body_content_area = new Spry.Widget.HTMLPanel("body_content_area");
//-->
</script>
</body>
</html>
2. doc_level_2.php
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Untitled Document</title>
<script src="../spry/SpryHTMLPanel.js" language="javascript" type="text/javascript"></script>
<link href="../spry/SpryHTMLPanel.css" rel="stylesheet" type="text/css">
</head>
<body>
<H1>Here is a content of document level 2</h1>
<br /><br />
<input type="button" value="Click Here to Load Document Level 3" onclick="body_content_area_2.loadContent('doc_level_3.php');" />
    <div id="body_content_area_2" style="float:left; width:100%;">
        <!-- Put Content Here -->
        <div class="HTMLPanelLoadingContent">Loading ...</div>
    </div>
<script type="text/javascript" language="javascript1.2">
<!--
var body_content_area_2 = new Spry.Widget.HTMLPanel("body_content_area_2");
//-->
</script>
</body>
</html>
3. doc_level_3.php
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Untitled Document</title>
</head>
<body>
<div style="float:left;">
<h2>Here is the content of document level 3</h2>
</div>
</body>
</html>

Similar Messages

  • Insert multiple panel into sub panel

    hello
    I've written a subVI which performs differents tasks. For each task there is a corresponding panel; That is my subVI  has multiple panel. Each task is performed one at a time : I call the panel showing the actual task progression the active panel. My subVI runs (is called) on the block diagram of the main VI.
    Now my question : How can I plot only the subVI active panel into the sub panel of main VI? I am wondering if at all it's possible! if not! is there another way of doing this?
    Thanks for reply

    Hi Achilles,
    I've created a tab as you suggested. I set the size of my subVI's Panel to be equal to tab's size. But I'm having difficuties centering it into the sub panel control. Have you got a clue on how to achieve this?

  • A way to group front panels into one panel?

    Hi all,
    To control our setup we need a number of Vis. Each Vi has, of course, it is own front panel and the end result on the monitor is a mess of overlapping front panels. My Question: is there a clever way to combine all of the panels into one central control panel?
    Thanks in advance
    M
    Solved!
    Go to Solution.

     You can add subpanels to your main VI, and load the sub-vi's in those subpanels.
     Here's an example:
    Attachments:
    example.zip ‏19 KB

  • Can i embed HTML file into HTML file?

    Recently i learn to design and code my website from scratch with some help from my friend and asking here and there.
    I want to make it easier for editing so i make header and footer. At first i want to embed header.html and footer.html into index.html, as my friend said index.html is more google friendly than index.php
    I can't find the answer anywhere for embedding HTML into HTML, is there a way?
    My website is at http://www.baliweddingphoto.com
    Probably you guys can check and help me embed .html into .html
    Thanks before.

    Already did, i'm glad to hear from MurraySummers and Rob Hecker2 that no differences between index.html and index.php, so i will stick on using my index.php
    Now i can sleep well and continue my code learning without doubt
    Thanks Guys.

  • Add a panel on another panel

    I am working on a program and need to put one panel into another panel . I have been successful at adding the panel
    however when i do this i cannot set the size of the 2nd panel. The first panel on the frame is just fine
    i have tried adding the panel to the first panels constructor this works the panel shows up but i am unable
    to set the size of the panel which is the problem.
    I tried calling this.setSize in the second panels constructor to solve this problem no luck there
    i have also tried adding the 2nd panel to the frame but this produces the same problem as stated above
    im really stumped any help woul be appreciated
    here is some code i have
    This is the frames class with the first panel added
    public ICUFrame () {
            super("ICU");
            canvas= new ICUPanel();
            add(canvas, BorderLayout.CENTER);
            setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            setSize(1000,1000);
            setVisible(true);
        } this is the panel on the frame
    only the constructor is required here as the rest is just code for drawing etc...
    public class ICUPanel extends JPanel {
        DiaDisplay d ;
        SysDisplay s;
        public ICUPanel(){
            super();
            setBackground(Color.BLACK);
            ICUMonitoring monitor = new ICUMonitoring();
            Thread rep = new Thread(new Repainter());
            d = new DiaDisplay(220,20,40,200);
            s = new SysDisplay(420,220,40,200);
            rep.start();
        }// end of constructor
    }this is the 2nd panel i am trying to add to the 1st panel
    public class ECGPanel extends JPanel {
        ecgDisplay e;
         public ECGPanel(){
         super();
         setBackground(Color.white);
         e = new ecgDisplay();
        }// end of constructor
    }

    xiaolixx wrote:
    I am working on a program and need to put one panel into another panel . I have been successful at adding the panel
    however when i do this i cannot set the size of the 2nd panel. The first panel on the frame is just fine
    i have tried.. What happened to your shift key? Please apply it once at the start of every sentence, rather than those rare occasions you 'feel like it'. Adding an upper case letter to each sentence makes it easier for people to quickly scan the text, looking for ways to help. You would not want to make it harder for someone to help, would you?
    ..adding the panel to the first panels constructor this works the panel shows up but i am unable
    to set the size of the panel which is the problem.
    I tried calling this.setSize in the second panels constructor to solve this problem no luck there
    i have also tried adding the 2nd panel to the frame but this produces the same problem as stated above
    im really stumped any help woul be appreciated
    here is some code i haveAlso known as 'uncompilable code snippets'. For better help sooner, post an SSCCE . But first, go through the tutorial to which Darryl linked.

  • HTML preview on front panel

    Hi!
    Is it possible to preview a text that contains HTML tags on the front panel as HTML?
    I'd like to see my html report result before i save it into file. 
    Thanks 
    Solved!
    Go to Solution.

    Hmm! Thanks!
    And how portable is it? Does it work if i build an executable from my project and then use it on another PC? I guess that the only requirement would be the same browser on that machine.
    I found an example in LV, using IE with activex. Did you mean that?
    Thanks 

  • Html panel - inside html panel?

    hi everyone
    i have a page with a main content div which is an html panel theat will load different content
    one of the (fragment) pages it loads has xml data etc on it.
    i now need on this dynamic page a little html  in a div too, but that means an html panel within an html panel!
    i declared var infolpanel; on the main page, and the maincontent htmlpanel div has evalscripts set true
    on the dynamic fragment page, the xml datasets are working etc, but i need another html panel
    infopanel = new Spry.Widget.HTMLPanel("info");
    infopanel.loadContent('products/'+ product + '/info.html');}};
    now when i load the page, none of the xml data populates either, instead showing {dataset::variable} instead :-s
    removing the above javascript again fixes it.
    so, is there any (other?) way for this fragmented page to load a smaller fragment into the div?
    thanks
    delboy

    How do I open another collapsible panel, on a different page
    through a link? I have tried many different ways, including trying
    to use SpryURLUtils.js and am not having any luck? I really wanted
    to jump to a different pages' collapsible panel, open it, and then
    populate the SpryHTMLPanel, located inside that targeted
    collapsible panel. My collapsible panels and HTML panels all work
    fine on the target page, when just interacting on the page itself,
    with mouseclicks. Inside the collapsible panels I have unordered
    list of links, that populate HTMLpanels, with the appropriate HTML
    fragments. My problems lies in crosslinking from other webpages to
    the exact collapsible panel, and then populating the exact HTML
    fragment, just as if I had clicked on the link in the list, if I
    had been on the target page in the first place.
    <a href="../OA_qi_docreq.html?panel=0#cp1">
    <a href="../OA_qi_docreq.html#cp1">
    <a href="../OA_qi_docreq.html#cp1.open();">

  • Print only a specific control or indicator on a front panel to HTML document

    Is there any way to print a specific control or indicator (not the whole front panel) to HTML document? I am trying to print a report that has a graph and some indicator value on it.

    There is a VI called "Append Control Image to Report.vi" which will allow you to do this. It's located in the Functions>>Report Generation pallette. Take a look at this and see if it's what you're looking for.
    J.R. Allen

  • Display external html page in (Collapsible Panel widget)

    i everybody
    is there a way to display external html page in (Collapsible Panel widget)
    All the example a seen is with raw text in it
    is the panel can display different object instead of simple text
    At least a internal designed html page
    Thanks

    Thanks... surely a easy one for you
    But its a great tool and its exatly what i want
    even my js button works trough it
    Thanks again

  • How can I drag and drop an icon/image into a panel??

    Dear Friends:
    How can I drag and drop an icon/image from one panel into another target panel at any position in target panel at my will??
    any good example code available??
    I search for quite a while, cannot find a very good one.
    please help
    Thanks
    Sunny

    [url http://java.sun.com/developer/JDCTechTips/2003/tt0318.html#1]DRAGGING TEXT AND IMAGES WITH SWING

  • How to take data from HTML Template into BSP Variable?

    hi all,
                can we take the data from the input field of HTML Template and collect into BSP variable? i have the shown the HTML Template into BSP page by passing the url in <IFRAME> tag now i have to take the data form the into field of HTML Template and save it back to the BSP table onclicking the Save button of BSP Page. please help me out thanks in advance.
    Thanks & Regards,
    Amol

    Hi Amol,
    This is very simple....
    In the onInputProcessing event of the page use the following code to read data from the InputField into an ABAP variable...
    Then you can use it at will..!
    Code is :
    data : event       TYPE REF TO if_htmlb_data,
           but_event   TYPE REF TO cl_htmlb_event_button.
    event = cl_htmlb_manager=>get_event( request ).
    IF event->EVENT_NAME = 'button' and event->EVENT_TYPE = 'click'.
          but_event ?= event.
          CASE event->EVENT_ID.
            when 'your_button_id'.
              data : lw_inf type ref to cl_htmlb_inputfield.
                 lw_inf ?= cl_htmlb_manager=>get_data(
                                request = runtime->server->request
                                name    = 'inputField'
                                id      = 'your_inputField_id'  ).
              if lw_inf->value is not initial.
                lw_variable = lw_inf->value.
              endif.
         ENDCASE.
    ENDIF.

  • Using webmail in Mozilla Firefox 17.0.1 on Windows 8, original messages get turned into html code when I reply to or forward them. How can I fix this?

    I have tried re-setting Firefox and working in Safe Mode, but the problem still recurs. I use Fastmail as my webmail server and never had this problem on Windows XP or Windows 7. When I reply to a message, the original message is turned into html code. The same happens when I forward a message.
    My JavaScript is up to date, in case that's relevant. The Fastmail support team suggested the problem would be Firefox-related.
    The other function of my Fastmail account that isn't working properly in Firefox 17.0.1. is the search function.
    Do I need to get new plugins or something? I don't know where the HTML editor is in Firefox or if that's what's wrong.
    Regards,
    Rachel

    Thanks for your reply, cor-el. Norton 360 came pre-installed on the laptop as part of the package I bought. I haven't changed the pre-set firewall or anti-virus settings. Should I change something?
    I will try rebooting in Windows Safe mode as you say and report if that makes any difference.
    Rachel

  • Linking PL/SQL custom region into html db pages

    Hello,
    I have built an htmldb application with several pages, the first 7 of which contain html regions containing htmldb form items I created using the html db interface. I am able to step through the first 6 pages of my application, noting that the values of all the variables are saved when clicking from tab to tab.
    I created page 8 which contains a custom dynamic region, in which I used the PL/SQL web toolkit to create an html table, form, and several form fields in which to capture data.
    What I'd like to do is, link my custom region variables, etc. into the other pages that were generated by html db. The code snippet for my custom region is located below... After I navigate to my page with the custom region then click on Submit or even try to switch to another tab, I get the dreaded error: "The requested URL /pls/htmldb/wwv_flow.accept was not found on this server."
    I am learning this product and admittedly am just knowledgeable to be dangerous. There must be some way to link in the items on my form I created with the rest of the pages within the application.
    I am sure I'm missing an important piece. Has anyone else done something similar? Any ideas, or can you tell me if what I'm doing is not possible?
    In case you're curious, the reason I am writing my own region with PL/SQL using the WebToolkit, etc. is because our organization wanted an example of taking an html db page and porting it over for use in Portal.
    Thanks in advance for any comments.
    code snippet for my custom region:
    declare extracurtxt varchar2(500);
    worktxt varchar2(120);
    begin
    htp.htmlOpen;
    htp.headOpen;
    htp.title('Extracurricular, Community and Work Activities');
    htp.header(1,'Extracurricular, Community, and Volunteer Activities');
    htp.headClose;
    htp.bodyOpen;
    extracurtxt := 'Please list your principal extracurricular, community, church, and family activities and hobbies in order of interest to you. Include specific events and/or major accomplishments such as musical instrument played, varsity letters earned, etc. Please check those activities you hope to pursue in college';
    htp.small(extracurtxt);
    htp.formOpen(owa_util.get_owa_service_path || 'wwv_flow.accept');
    htp.nl;
    htp.nl;
    -- Test working with form elements in table now
    htp.tableOpen;
    htp.tableRowOpen;
    htp.tableHeader;
    htp.tableHeader('Grade level or','center',null,null,null,'5',null);
    htp.tableHeader('Approximate time spent','center',null,null,null,'2',null);
    htp.tableHeader('Positions held','center');
    htp.tableHeader('Do you plan','center');
    htp.tableRowClose;
    htp.tableRowOpen;
    htp.tableHeader;
    htp.tableHeader('post-secondary (PS)','center',null,null,null,'5',null);
    htp.tableHeader('Hours','center');
    htp.tableHeader('Weeks','center');
    htp.tableHeader('honors won,','center');
    htp.tableHeader('to participate','center');
    htp.tableRowClose;
    htp.tableRowOpen;
    htp.tableHeader('Activity','center');
    htp.tableHeader('9');
    htp.tableHeader('10');
    htp.tableHeader('11');
    htp.tableHeader('12');
    htp.tableHeader('PS');
    htp.fontOpen(null,null,'1');
    htp.tableHeader('per week','center',null,null,null,null,'small');
    htp.tableHeader('per year','center');
    htp.fontClose;
    htp.tableHeader('or letters earned');
    htp.tableHeader('in college?');
    htp.tableRowClose;
    htp.tableRowOpen;
    htp.tableData((htf.formText('PT6_EXTRACUR_1','40','65',null,'id="P6_EXTRACUR_1"')));
    htp.tableData((htf.formCheckbox('PT6_EXTRACUR_L9_1','0',null,'id="P6_EXTRACUR_L9_1"')));
    htp.tableData((htf.formCheckbox('PT6_EXTRACUR_L10_1','0',null,'id="P6_EXTRACUR_L10_1"')));
    htp.tableData((htf.formCheckbox('PT6_EXTRACUR_L11_1','0',null,'id="P6_EXTRACUR_L11_1"')));
    htp.tableData((htf.formCheckbox('PT6_EXTRACUR_L12_1','0',null,'id="P6_EXTRACUR_L12_1"')));
    htp.tableData((htf.formCheckbox('PT6_EXTRACUR_LPS_1','0',null,'id="P6_EXTRACUR_LPS_1"')));
    htp.tableData(htf.formText('PT6_HOURS_WEEK_1','3','3',null,'id="P6_HOURS_WEEK_1"'),'center'); htp.tableData(htf.formText('PT6_WEEKS_YEAR_1','3','3',null,'id="P6_WEEKS_YEAR_1"'),'center');
    htp.tableData(htf.formText('PT6_HONORS_1','25','45',null,'id="P6_HONORS_1"'),'center');
    htp.tableData(htf.formCheckbox('PT6_PARTICIPATE_1','0',null,'id="P6_PARTICIPATE_1"'),'center');
    htp.tableRowClose;
    --snip table has seven rows with associated variables.
    htp.tableClose;
    --WORK EXPERIENCE
    htp.header(1,'Work Experience');
    worktxt := 'List any job (including summer employment) you have held during the past three years.';
    htp.small(worktxt);
    htp.tableOpen;
    htp.tableRowOpen;
    htp.tableHeader; htp.tableHeader;
    htp.tableHeader('Approximate Dates','center',null,null,null,'2');
    htp.tableHeader('Approximate No.','center');
    htp.tableRowClose;
    htp.tableRowOpen;
    htp.tableHeader; htp.tableHeader;
    htp.tableHeader('Of Employment','center',null,null,null,'2');
    htp.tableHeader('of Hours','center');
    htp.tableRowClose;
    htp.tableRowOpen;
    htp.tableHeader('Specific Nature of Work','center');
    htp.tableHeader('Employer','center');
    htp.tableHeader('From','center');
    htp.tableHeader('Until','center');
    htp.tableHeader('Per Week','center');
    htp.tableRowClose;
    htp.tableRowOpen;
    htp.tableData(htf.formText('PT6_JOB_1','25','45',null,'id="P6_JOB_1"'));
    htp.tableData(htf.formText('PT6_JOB_EMP_1','25','45',null,'id="P6_JOB_EMP_1"'));
    htp.tableData(htf.formText('PT6_JOB_FROM_1','20','30',null,'id="P6_JOB_FROM_1"'));
    htp.tableData(htf.formText('PT6_JOB_UNTIL_1','20','30',null,'id="P6_JOB_UNTIL_1"'));
    htp.tableData(htf.formText('PT6_JOB_HOURS_1','3','3',null,'id="P6_JOB_HOURS_1"'),'center');
    htp.tableRowClose;
    htp.tableRowOpen;
    htp.tableData(htf.formText('PT6_JOB_2','25','45',null,'id="P6_JOB_2"'));
    htp.tableData(htf.formText('PT6_JOB_EMP_2','25','45',null,'id="P6_JOB_EMP_2"'));
    htp.tableData(htf.formText('PT6_JOB_FROM_2','20','30',null,'id="P6_JOB_FROM_2"'));
    htp.tableData(htf.formText('PT6_JOB_UNTIL_2','20','30',null,'id="P6_JOB_UNTIL_2"'));
    htp.tableData(htf.formText('PT6_JOB_HOURS_2','3','3',null,'id="P6_JOB_HOURS_2"'),'center');
    htp.tableRowClose;
    htp.tableRowOpen;
    htp.tableData(htf.formText('PT6_JOB_3','25','45',null,'id="P6_JOB_3"'));
    htp.tableData(htf.formText('PT6_JOB_EMP_3','25','45',null,'id="P6_JOB_EMP_3"'));
    htp.tableData(htf.formText('PT6_JOB_FROM_3','20','30',null,'id="P6_JOB_FROM_3"'));
    htp.tableData(htf.formText('PT6_JOB_UNTIL_3','20','30',null,'id="P6_JOB_UNTIL_3"'));
    htp.tableData(htf.formText('PT6_JOB_HOURS_3','3','3',null,'id="P6_JOB_HOURS_3"'),'center');
    htp.tableRowClose;
    htp.tableClose;
    htp.formSubmit('P6_GO');
    htp.formClose;
    htp.bodyClose;
    htp.htmlClose;
    end;

    Thank you for your reply...
    I actually was probably not very clear about what I'm trying to do. Let me try to clarify and give more background info...
    I have found it very easy to utilize html db to create my web forms, and manage all the variables and session state for me. It is so easy to make a quick form, capture info in a few fields and then post it to the DB. I have found it very difficult to use, however, in terms of getting it to format things the way I wish them to be.
    For example: I cannot seem, for the life of me, to get it to wrap field labels. This results in oddly formatted tables. I have tried to utilize the stop and start html table controls, begin on new line, new field, colspan, rowspan, etc., but what I really need is for it to let me define the tables and field labels, as I have done so successfully with the PL/SQL web toolkit (the code snipped for this is in my first post). What I did unsuccessfully with my custom dynamic region was manage to incorporate my form fields into variables and session state that will be automatically managed by html db along with the other 6 pages in my application. I was perhaps, expecting code to write itself, in retrospect. I'm sure some coding will be necessary to bind my form fields to vars in my html db appl. But, after reading a blog by a Mr. Spledoni (forgive me if spelling is wrong,) I think I messed up by overlapping <FORM> elements in my custom region. I admittedly don't understand how html db renders the form elements and processes them behind the scenes. I do remember from the Portlet classes, however, that coding was certainly necessary to process the forms once submitted.
    Am I making sense?
    I guess I need to either figure out how to format field labels the way I want them to be, OR to be able to write a custom region in PL/SQL using the web toolkit and figure out how to incorporate the values captured within the region into items or variables within my application, all other pages of which are html regions with html db items within them (not dymanic PL/SQL regions).
    Thanks for reading this, I know it's tedious...

  • How to load a large amount of HTML into HTML region?

    I am trying to display a clickable image map (HTML <map>) in a region. The HTML source for the image map is fairly large and will not fit in the Apex editor (HTTP 400 error when I Apply Changes). I would also rather not manage that much HTML in the Apex web editor. So I stored the code in a file and added it to my applications file storage.
    I have tried various methods of getting the HTML to load when the page is rendered. I tried a URL region, but that leads to all kinds of ACL/security issues that we do not want the customner to have to deal with. i also tried some PL/SQL:
    DECLARE
    l_file_id NUMBER;
    BEGIN
    SELECT id
    INTO l_file_id
    FROM APEX_APPLICATION_FILES
    WHERE filename = 'myhtml';
    APEX_UTIL.GET_FILE(
    p_file_id => l_file_id,
    p_inline => 'YES');
    END;
    But that just replaces the entire page, not just the region it's defined in (even when the HTML is without <head> etc).
    Various attampes wih #APP_IMAGES#myhtml and &APP_IMAGES.myhtml just give me the translation of the APP_IMAGES variable.
    So, how do I load a large chunk of HTML into a region dynamically at run time? I also need this to interact with APEX in the sense that JavaScript will set APEX variables and cause a SUBMIT when the use clicks on the image map.

    Hi Andy,
    ATD wrote:
    Does your HTML define the regions/points on the map using AREA tags?Yes. it is actually generated using MapSefrver from huge tables of SDO_GEOMETRY (Oracle Spatial).
    If so, you could define a report template that does this and use this for a report based on a table that has the settings for shape, coords, href etcHmm, the code (HTML map) is auto-generated so if I understand you correctly, this might be difficult. One of the HTML is approximately 180KB of text.
    I found a way to do this using dynamic PL/SQL. I created a new table that has a varchar filename and a CLOB for the file data. I then imported the HTML into the table using SQL Developer (copy&paste, nice!). I then created an HTML region and used the following:
    declare
    html clob;
    len number;
    st number;
    c number;
    begin
    select length(data)
    into len
    from FILES
    where name = 'state_query.html';
    st := 1;
    while len > 0
    loop
    if len > 32000 then
    c := 32000;
    else
    c := len;
    end if;
    select substr( data,st,c )
    into html
    from FILES
    where name = 'state_query.html';
    htp.p( html );
    st := st + c;
    len := len - c;
    end loop;
    end;
    Edited by: CoyoteTech on May 13, 2009 7:27 AM

  • Is it possible to convert PDF file into HTML

    Dear friends
    Is it possible to convert PDF file into HTML. I have few hundread PDF files i like to convert this files into HTML. I hope it can be done through Java but i don't know how to start this coding. anybody can give me a brief idea to go ahead.

    Why do you want to do this yourself? I quick search on Google showed several utilities to do this, some freeware, some commercial.

Maybe you are looking for