AJAX response - escaped html

Hi people,

I use the glow of the BBC to make an ajax post to a coldfusion page.

It works fine apart from the display of the results in a div with all the HTML escaped.

Anyone know how I can display the results as html?

Is there a coldfusion tag / function that transforms special characters in html?

Thank you very much

[CODE]
< div id = "alert" >

& lt; table width = "100%" border = "0" cellspacing = "5" cellpadding = "5" & gt;
& lt; TR & gt;
& lt; TD & gt; Name & lt; table & gt;
& lt; TD & gt; Lead & lt; table & gt;
& lt; /TR & gt;

& lt; TR & gt;
& lt; TD & gt; & lt; table & gt;
& lt; TD & gt; & lt; table & gt;
& lt; /TR & gt;
& lt; TR & gt;

& lt; TD & gt; ABDUL KADIR & lt; table & gt;
& lt; TD & gt; & lt; table & gt;
& lt; /TR & gt;
& lt; TR & gt;
& lt; TD & gt; Abigail Clinton & lt; table & gt;

& lt; TD & gt; & lt; table & gt;
& lt; /TR & gt;
& lt; TR & gt;
& lt; TD & gt; Adrienne Parker & lt; table & gt;
& lt; TD & gt; & lt; table & gt;

& lt; /TR & gt;
& lt; TR & gt;
& lt; TD & gt; Aileen Makohon & lt; table & gt;
& lt; TD & gt; & lt; table & gt;
& lt; /TR & gt;

& lt; TR & gt;
& lt; TD & gt; Aimee Garbett & lt; table & gt;
& lt; TD & gt; & lt; table & gt;
& lt; /TR & gt;
& lt; TR & gt;

& lt; TD & gt; Alison Boughey & lt; table & gt;
& lt; TD & gt; & lt; table & gt;
& lt; /TR & gt;
& lt; TR & gt;
& lt; TD & gt; Alison Durman & lt; table & gt;

& lt; TD & gt; & lt; table & gt;
& lt; /TR & gt;
& lt; TR & gt;
& lt; TD & gt; Alison Hodgson & lt; table & gt;
& lt; TD & gt; & lt; table & gt;

& lt; /TR & gt;
& lt; TR & gt;
& lt; TD & gt; Amy Harrison & lt; table & gt;
& lt; TD & gt; 1 & lt; table & gt;
& lt; /TR & gt;

& lt; TR & gt;
& lt; TD & gt; Matthew Harris & lt; table & gt;
& lt; TD & gt; 1 & lt; table & gt;
& lt; /TR & gt;
& lt; TR & gt;

& lt; TD & gt; Clare O'Neill & lt; table & gt;
& lt; TD & gt; 1 & lt; table & gt;
& lt; /TR & gt;
& lt; TR & gt;
& lt; TD & gt; Lynne Thompson & lt; table & gt;

& lt; TD & gt; 1 & lt; table & gt;
& lt; /TR & gt;
& lt; TR & gt;
& lt; TD & gt; Clare O'Neill & lt; table & gt;
& lt; TD & gt; 1 & lt; table & gt;

& lt; /TR & gt;
& lt; TR & gt;
& lt; TD & gt; Amanda Harris & lt; table & gt;
& lt; TD & gt; 0 & lt; table & gt;
& lt; /TR & gt;

& lt; TR & gt;
& lt; TD & gt; Amanda Harris & lt; table & gt;
& lt; TD & gt; 0 & lt; table & gt;
& lt; /TR & gt;
& lt; TR & gt;

& lt; TD & gt; Amanda Harris & lt; table & gt;
& lt; TD & gt; 0 & lt; table & gt;
& lt; /TR & gt;
& lt; TR & gt;
& lt; TD & gt; Amanda Harris & lt; table & gt;

& lt; TD & gt; 1 & lt; table & gt;
& lt; /TR & gt;
& lt; TR & gt;
& lt; TD & gt; Amanda Harris & lt; table & gt;
& lt; TD & gt; 1 & lt; table & gt;

& lt; /TR & gt;
& lt; TR & gt;
& lt; TD & gt; Matthew Harris & lt; table & gt;
& lt; TD & gt; 1 & lt; table & gt;
& lt; /TR & gt;

& lt; TR & gt;
& lt; TD & gt; Matthew Harris & lt; table & gt;
& lt; TD & gt; 1 & lt; table & gt;
& lt; /TR & gt;
& lt; TR & gt;

& lt; TD & gt; Matthew Harris & lt; table & gt;
& lt; TD & gt; 1 & lt; table & gt;
& lt; /TR & gt;
& lt; TR & gt;
& lt; TD & gt; Matthew Harris & lt; table & gt;

& lt; TD & gt; 1 & lt; table & gt;
& lt; /TR & gt;
& lt; TR & gt;
& lt; TD & gt; Matthew Harris & lt; table & gt;
& lt; TD & gt; 1 & lt; table & gt;

& lt; /TR & gt;
& lt; TR & gt;
& lt; TD & gt; Matthew Harris & lt; table & gt;
& lt; TD & gt; 1 & lt; table & gt;
& lt; /TR & gt;

& lt; TR & gt;
& lt; TD & gt; Matthew Harris & lt; table & gt;
& lt; TD & gt; 1 & lt; table & gt;
& lt; /TR & gt;
& lt; TR & gt;

& lt; TD & gt; Matthew Harris & lt; table & gt;
& lt; TD & gt; 1 & lt; table & gt;
& lt; /TR & gt;
& lt; TR & gt;
& lt; TD & gt; Matthew Harris & lt; table & gt;

& lt; TD & gt; 1 & lt; table & gt;
& lt; /TR & gt;
& lt; TR & gt;
& lt; TD & gt; Amanda Harris & lt; table & gt;
& lt; TD & gt; 0 & lt; table & gt;

& lt; /TR & gt;
& lt; TR & gt;
& lt; TD & gt; Amy Harrison & lt; table & gt;
& lt; TD & gt; 0 & lt; table & gt;
& lt; /TR & gt;

& lt; TR & gt;
& lt; TD & gt; Amanda Harris & lt; table & gt;
& lt; TD & gt; 0 & lt; table & gt;
& lt; /TR & gt;
& lt; TR & gt;

& lt; TD & gt; Amanda Harris & lt; table & gt;
& lt; TD & gt; 0 & lt; table & gt;
& lt; /TR & gt;
& lt; / table & gt; < / div >


[/ CODE]

Without drilling up to the problem - why the characters appear as escape sequence, I'll just answer the question:

No, it doesn't have a function in ColdFusion that cancels the replacement of HTML strings with escaped. Someone has published such function on cflib.org.

But unescaping is easy with the ReplaceList() function. Just the typical/probably escaped and strings unescaped in lists of arguments and you will have yourself a function.

Something like this:

public void HtmlUnescape (htmlstring)

{

Return replaceList (arguments.htmlstring,">, <",">)<>

Add all other probable special characters and their encoding also to the list

}

< table width = "100%" border = "0" cellspacing = "5" cellpadding = "5" >

original: #htmlcodeformat (test) #.


unescaped: #htmlcodeformat (HtmlUnescape (test)) #.

-Fernis

Tags: ColdFusion

Similar Questions

  • Escape html characters

    Hi all

    I'm creating a flex chat application. It communicates with my own chat server.

    Now, I want to know what is the best way to escape characters?

    I send all the data in an XML document on the server, so if I type a message: < /i > < i > test the text will appear in Italy, because it is not escaped.

    If I use escape, he escaped to a code that the text control is not able to read.

    I just want to know what function will replace < in & lt; > to & gt;. and & to & amp;

    Thank you!

    Google, you will find examples.

  • Using Ajax in Iscript

    Hi all

    I am using Ajax in Iscript and have problem, when I give my page url target (which is another page of Iscript). However when I give this url in my browser it works fine. Here is my sample code

    IScript Main Page that sends the Ajax request *.

    function ajaxrequest()

    {

    var XMLHTTP;

    If (window. XMLHttpRequest) {/ / code for IE7 +, Firefox, Chrome, Opera, Safari}

    XMLHTTP = new XMLHttpRequest();

    }

    on the other

    {/ / code for IE6, IE5}

    XMLHTTP = new ActiveXObject ("Microsoft.XMLHTTP");

    }

    XMLHTTP.onreadystatechange = function () {}

    If (xmlhttp.readyState == 4 & & xmlhttp.status == 200)

    {

    document.getElementById("myDiv").innerHTML = xmlhttp.responseText;

    }

    var abcParamEnc = encodeURIComponent (document.getElementById("abc").value);

    parameters var is 'abc =' + abcParamEnc;.

    Local everything & url = GenerateScriptContentURL (% Portal, % node, Record.weblib_targetpage, Field.ISCRIPT1, "FieldFormula", "IScript_HelloWorld");

    XMLHTTP. Open ('POST', ' & url', true);

    xmlhttp.setRequestHeader ("Content-type', ' application/x-www-formulaires-urlencoded");

    XMLHTTP. Send (Parameters);

    }

    ***********************Target Page *******************

    String & courseEncoded = % Request.GetParameter ("coursecode");

    Local number & courseEncodedLenth = Len (& courseEncoded);

    If courseEncodedLenth > 2 then

    Response.Write ("false");

    on the other

    Response.Write ("true");

    Please tell me what I'm doing wrong. Why can't I call ajax in my iscript...

    Thanks in advance

    msf321

    First of all, you could reduce your JavaScript to a couple of lines using jQuery instead. Yes, if you use jQuery would increase your total number of JavaScript, but must not maintain jQuery. You would just maintain the lines of 3 or more using jQuery. Also, just FYI, jQuery is included with 8.53 PeopleTools, so it is quite easy to include in an iScript.

    Now, on to the Ajax... I'm glad that you highlighted the line 'Local any... ". "in bold because that's the problem. From the list above, it seems that you have in your JavaScript. Instead, you must place all the JavaScript from the upper list (and corresponding HTML) code in a HTML definition and edit your Local everything & url line to this:

    var url = "%Bind(:1)";
    
    xmlhttp.open('POST', url, true);
    

    In your PeopleCode iScript, which actually serves this definition HTML, use the following syntax:

    Local string &url = GenerateScriptContentURL(%Portal, %Node, Record.weblib_targetpage, Field.ISCRIPT1, "FieldFormula", "IScript_HelloWorld");
    
    Local string &html = GetHTMLText(HTML.NAME_OF_HTML_DEFN, EscapeJavaScriptString(&url));
    
    %Response.Write(&html);
    

    If you have Firefox, install Firebug and look at the console when loading the page. If you don't see any JavaScript errors, then your JavaScript syntax is good. Then, set a breakpoint at the var url =... line. Run the JavaScript (or reload the page, then it will run) and inspect the value of the url.

  • Help Popup not rendered HTML based on the referenced element.

    I have a named item & P104_GENDER on a page that references a hidden item, which is calculated using a calculation that uses a database function to retrieve data to help for the item and fill in the hidden element.

    So for this article, is the source of help & P104_GENDER_HELP. & P104_GENDER_HELP is filled with "Please enter a sex. Possible values are: & lt; BR & gt; -Male & lt; BR & gt; -Female' according to the debugging session.


    When I click on the label to display the context-sensitive Help window, it displays: "Please enter a sex. Possible values are: & lt; BR & gt; -Male & lt; BR & gt; -Female. "

    Apex 3.X, the HTML would render correctly and it would display:

    Please enter a sex. Possible values are:
    -Male
    -Female

    But in Apex 4.0, it makes just the text as if it had no HTML implementation involved form, i.e. "Please enter a sex. Possible values are: & lt; BR & gt; -Male & lt; BR & gt; -Female. "

    However, if I put the source directly for help on the question "Please enter a sex. Possible values are: & lt; BR & gt; -Male & lt; BR & gt; -Female", without reference to the hidden item, it renders properly in HTML format.

    I tried to change my label template to use javascript:popupfieldhelpclassic instead of the javascript:popupfieldhelp function, but I get the same wrong result.

    When I looked at the source that is generated in the pop-up window when you reference an element hidden, is to convert the < and >, symbols of "& lt" and "& gt" respectively, which means it does reference the text from the element hidden in the form of literal text and convert anything that resembles HTML in plain text instead of treat it only as HTML. I can see why this would be useful for some people, but it's not so useful to me, especially since he is used to the opposite effect.

    They have both have in common, is that they use the wwv_flow_item_help.show_help function. I guess that the culprit lies in this encapsulated code.

    Anyone has an idea on how to work around this problem so that text coming from referenced items analyzed and presented in HTML format instead of literal text?

    Thank you very much.

    Published by: user12021046 on December 15, 2011 13:51
    Changed for good formatting HTML :-)

    Ah, now I understand!

    So I think the problem is, when you click the label, he calls a procedure that returns the text of help via AJAX. In my view, this procedure escapes html tags, and from what I can tell, there is no setting to disable. :( Even if you load classic help, these tags are also escaped. There may be tweaks that I don't know, but I looked into the security of the shared components section, but nada.

    So a possible solution?

    If you look at the label, you'll see that it links to the following function:

    function popupFieldHelp(b,a){
         if(!$x("pScreenReaderMode")){
              apex.jQuery.getJSON("wwv_flow_item_help.show_help?p_item_id="+b+"&p_session="+a+"&p_output_format=JSON",
              function(c){
                   var d=apex.jQuery("#apex_popup_field_help");
                   if(d.length===0){d=apex.jQuery('
    '+c.helpText+"
    "); d.dialog({title:c.title,bgiframe:true,width:500,height:350,show:"drop",hide:"drop"}) } else{ d.html(c.helpText).dialog("option","title",c.title).dialog("open") } }) }else{ popupFieldHelpClassic(b,a) } return }

    A quick and dirty solution would be to replace the escape with their html tags characters so that it is rendered correctly

    that is, add the following:

                   c.helpText = c.helpText.replace(/</g, '<');
                   c.helpText = c.helpText.replace(/>/g, '>');
    

    -These forums are not keep what I write here, I'm sure you can understand what im speak well.

    Of course, change the label template to point to your custom function.

    The other solution I was going to suggest was to write your own application process that gets you some JSON - Martin D'Souza has written a blog on the use of the apex_util.json_from_sql; which is what you would probably use a query such as:

    select label, item_help_text
    from apex_application_page_items
    where item_id = apex_application.g_x01
    

    The problem is the text of the done element refers to another page, so it would return to the value chain e.g. & P12_ITEM. of course it wouldn't be to hard to get around.

    for example, select replace (item_help_text, '&' | apex_application.g_x02 |'.) (', v (apex_application.g_x02)) item_help_text
    of apex_application_page_items
    where item_id = apex_application.g_x01

    (not tested)

    and then as a quick primer to a way of doing AJAX

    1. create a htmldb_Get object: helpText var = new htmldb_Get (null, null, "APPLICATION_PROCESS = nom_processus");

    Where nom_processus is the name of an application process that you create

    2. Add the necessary parameters

    helpText.addParam ("x 01', 'itemId')
    helpText.addParam ("x 02', 'P12_ITEM')

    This is to add temporary variables that can be reference via apex_application.g_f0x; the alternative is that you can add paremeters State session with

    helpText.add ('nom_element', 'ITEM_VALUE') and get sent when you call the object's get() function.

    3. get the JSON and parse
    obj = JSON.parse (helpText.get ());

    Then create the http://jqueryui.com/demos/dialog/ for the help dialog box

    ..

    Well I hope that gives you some ideas / a starting point.

  • JSP with AJAX

    Hi all

    I use a JSP page with ajax and why I use of invokeURL.
    I am able to call the method invokeURL throught BPM but I am not able to get inside the method obpm jsp input values.
    Could someone help me? I have to do to access the jsp input in a method called OBPM thought invokeURL values?
    Thank you very much.
    Marcos Chiodi

    Are you trying to pass parameters in your call invokeUrl or just act on data in variables associated with your BPM object?

    To pass the params in invokeUrl, you have to specify them in the query string attribute, as you would for an HTTP GET request:
    http://download.Oracle.com/docs/CD/E13154_01/BPM/docs65/taglib/f/invokeUrl.html

    BPM your call object method should take one argument of type entry Fuego.Net.HttpRequest. If you need to pass data in the response for use in the treatment of answer AJAX, specify an out parameter for the method of the type Fuego.net.HttpResponse.

    For example, if you were calling a method with a named application in argument and a named response output argument, you could do something like this:

    (in JSP)

    (in the BPM method)
    passedVar would contain '1 '.
    String passedVar = request.getParameter (string: "attr1");

    AJAX response contains the string "method worked!
    response.bodyTextContent (arg1: "method worked!");

  • Because of conversion of plain text HTML

    When I get a response as HTML mail, as in this example:

    text text

    2014-01-01 15:27 GMT + 00:00 < [email protected] >:
    > quoted text

    and he responds to plain text (I checked the settings to use plain text only), texts by email are duplicated.
    This is what it looks like then: e-mail < mailto: email >

    > 2014-01-01 15:27 GMT + 00:00 < [email protected]
    > <mailto:[email protected]> >:

    Is this a bug? Or can I fix this somehow return the correct format?

    > 2014-01-01 15:27 GMT + 00:00 < [email protected] >:

    Imagine what happens when you reply to this email 10 times,
    hundreds of email addresses appear in the body of the email.

    I see, it is already reported bug
    https://Bugzilla.Mozilla.org/show_bug.cgi?id=780365

  • Hide the list of pages html files

    I created html files that display data for the Web application in JSON format (I use them to extract the data from the webapp via AJAX front end Web site). I don't want these files don't appear in the list of pages. Is there a way to hide in this list, but let them be accessible for AJAX requests?

    Hello

    Since you can't put modules in .json files you'll have it made in the pages, and you can go to any page in the admin and under its options, check the box "hide search engines." Fact.

    As a note - since, as you know, form your own script of linline in JSON with web apps your last item will have a comma and you must do it in post somehow with javascript. AJAX in the HTML page, edit, convert it to json.

    If you have the new rendering engine on your website, on any page you can add the url with...? JSON = true and you will get a json output modules on this page. IF you get a blank page with no model and a single module - Total 500 items on this page.

  • How to add CSS to create an image responsive?

    This tutorial shows exactly what I would do with the images that I use on my site. How can I insert this code using Muse?

    http://coolestguidesontheplanet.com/make-images-scale-responsive-Web-design/

    Reactive Adobe Muse CC 2015 is now online. Please install the update of CC > Apps.

    What's new: news summary

    Release notes: https://helpx.adobe.com/muse/release-note/adobe-muse-release-notes.html

    Delicate design:

    Adobe help Muse | Create responsive Web sites

    Adobe help Muse | Responsive web design in Adobe Muse

    Adobe help Muse | Migrate existing Adobe Muse Web sites to answer

    Tutorials

    To get started with Adobe Muse (replaces how to make a website with Adobe Muse (coffee of Katie)):

    - https://helpx.adobe.com/muse/how-to/create-responsive-website.html

    Create a sensitive webpage with Adobe Muse:

    - https://helpx.adobe.com/muse/how-to/responsive-web-design.html (more detailed features RWD of Muse demo)

    Thank you

    Sanjit

  • Any way to cheat responsive design/implementation nationally?

    Hello

    I'm creating a portfolio site and I was wondering if anyone knows any tips or tricks that would help my site look better in a scale to the size of the browser.  Basically I have a vertical navigation bar has done the fell on the left side of the page, content in the space to the right.  Everything looks much seen on a standard-sized web page for my MBP, 13 ', but when the scale to be played on an iMac with a larger screen, for example, the navigation bar remains pinned to the left of the course and my content where stays she normally, leave a large space between the NAV bar. and my content.  I was wondering if there are ways to make the balance contained to fill at least a little more space if possible.

    Here is an overview of the site: website

    Hope that all made sense,

    Thank you!

    Reactive Adobe Muse CC 2015 is now online. Please install the update of CC > Apps.

    What's new: news summary

    Release notes: https://helpx.adobe.com/muse/release-note/adobe-muse-release-notes.html

    Delicate design:

    Adobe help Muse | Create responsive Web sites

    Adobe help Muse | Responsive web design in Adobe Muse

    Adobe help Muse | Migrate existing Adobe Muse Web sites to answer

    Tutorials

    To get started with Adobe Muse (replaces how to make a website with Adobe Muse (coffee of Katie)):

    - https://helpx.adobe.com/muse/how-to/create-responsive-website.html

    Create a sensitive webpage with Adobe Muse:

    - https://helpx.adobe.com/muse/how-to/responsive-web-design.html (more detailed features RWD of Muse demo)

    Thank you

    Sanjit

  • I use a model Adobe Muse called Dalton, and I wanted to know if they are also responsive email models made by the same Creator who are available for purchase?

    If it does not mail patterns e, is Muse license model flexible enough to allow custom design ADJUSTABLE?

    Reactive Adobe Muse CC 2015 is now online. Please install the update of CC > Apps.

    What's new: news summary

    Release notes: https://helpx.adobe.com/muse/release-note/adobe-muse-release-notes.html

    Delicate design:

    Adobe help Muse | Create responsive Web sites

    Adobe help Muse | Responsive web design in Adobe Muse

    Adobe help Muse | Migrate existing Adobe Muse Web sites to answer

    Tutorials

    To get started with Adobe Muse (replaces how to make a website with Adobe Muse (coffee of Katie)):

    - https://helpx.adobe.com/muse/how-to/create-responsive-website.html

    Create a sensitive webpage with Adobe Muse:

    - https://helpx.adobe.com/muse/how-to/responsive-web-design.html (more detailed features RWD of Muse demo)

    Thank you

    Sanjit

  • Is it possible to have a responsive slideshow?

    Hi the site I build (www.fawleyfalcons.com) has a slideshow at the top of the page I want to take over the entire screen. Whenever I lie down to match is scrollbars. Is there a way to get around this by having a reactive slideshow? as a full screen, slideshow takes up my whole page.

    Thank you Ryan

    Reactive Adobe Muse CC 2015 is now online. Please install the update of CC > Apps.

    What's new: news summary

    Release notes: https://helpx.adobe.com/muse/release-note/adobe-muse-release-notes.html

    Delicate design:

    Adobe help Muse | Create responsive Web sites

    Adobe help Muse | Responsive web design in Adobe Muse

    Adobe help Muse | Migrate existing Adobe Muse Web sites to answer

    Tutorials

    To get started with Adobe Muse (replaces how to make a website with Adobe Muse (coffee of Katie)):

    - https://helpx.adobe.com/muse/how-to/create-responsive-website.html

    Create a sensitive webpage with Adobe Muse:

    - https://helpx.adobe.com/muse/how-to/responsive-web-design.html (more detailed features RWD of Muse demo)

    Thank you

    Sanjit

  • HTML in LOV

    Hello

    If the values in DB (for example, the 'Name' column) contains HTML tags like ' < SUP > < / sub > ', is it possible to display the values in LOV (I use this column as a display value in LOV) correctly (do not escape HTML). If it is, how I realize this.

    Thank you.

    >

    Version of the APEX?

    If the values in DB (for example, the 'Name' column) contains HTML tags like ' < SUP > < / sub > ', is it possible to display the values in LOV (I use this column as a display value in LOV) correctly (do not escape HTML). If it is, how I realize this.

    How the LOV is rendered? According to the HTML specification Select options in the list can only contain the text, not other HTML elements. See the following threads for previous discussion of the present:

  • {: identifier of the thread = 898835}
  • {: identifier of the thread = 1338180}

    Some versions of the APEX renders HTML elements in a pop - up LOV.

  • HTML and flex

    I need to display the html page in flex

    display only in a small container

    I used < mx:html / > but some pages rendered terribly

    any solution available?

    Thank you

    " < mx:HTML id ="html"location = ' http://www.menlh.go.ID/home/index.php?lang=ID "="0.1"scaleX scaleY ="0.1"width ="20% "height="20%"/ > .

    Hello

    Assuming you're creating for Adobe Air (using the Air SDK/Flex development kit): most matured rendering is available since version Adobe Air 2.5 (speaking profile of 'office'), so if you do not use this version for tests/authoring consider you as an upgrade of the authoring tools, see:

    http://www.Adobe.com/devnet/air/AJAX/articles/air_and_webkit.html

    Thank you

    Kind regards

    Peter

  • Tip to avoid the keys during the page load?

    APEX: Request Express 4.2.6.00.03

    I have two or three "intentionally" pages slow and heavy and end-users fortunately repeatedly press buttons and harmless error messages.

    I would avoid the situation of "remail" and have the "error messages" in trying to repost.

    Good tips to do just that, I hope that Oracle Apex those compatible upwards?

    1.) page attribute, indicates 'small wheel' until this that totally made?

    I would avoid the 3331 error when the page is defined as "NO page to prevent it being published" or avoid the message concerning the violation of page protection then repost is allowed.

    For example show "spinning wheel" or "progress bar" which blocks of keys user?

    2.) or have this 'small wheel' specific to the region, as well as the region's "spinner" up to full charge.

    3.) or how to display the buttons placed on the page after the 'big jobs are done?

    4.) or some other method?

    rgrds Paavo

    Paavo wrote:

    Actually, it's the question - if we leave the decision of development which approach to take:

    -make all the shares of dynamics of buttons and everything for example plsql anonymous to be driven by the dynamic action procedures of instead of making procedures plsql after send this page

    - or do the submission page process (pre era dyn-action method apex) and no dynamic action with plsql code button

    The apex is basically PL/SQL.

    So in order to generate a page of Apex, PL/SQL code should be run. To update a report region, code PL/SQL must be executed. To deal with the elements on a web page to the update/insert/delete of data in the database, PL/SQL code must be executed. Etc.

    This code can be executed in 2 ways.

    Submit the entire page, the flow of the Apex engine. He built a whole new page. This page is sent to the browser to replace the content of the existing window and make any new content in this browser window.

    Use Ajax (Javascript calls) to call the flow of the Apex (aka action/process dynamics) engine. It creates a response (XML, HTML, JSON, etc.). This response is returned, and Javascript is used to treat this response and update objects (e.g. add/update / refresh in the DOM) of the page.

    The two ways are necessary as

    (a) we want to send a new page to the web browser sometimes

    (b) you want to update an existing web page in the web browser by moments

    So it is not a matter of choice in one direction. The two are concerned. Both are needed to create Web 2.0 with rich and interactive interfaces type applications.

    I'm just afraid after accidentally 2 similar submit deals plsql firing - dynamic action and one in present it after Treaty.

    It's a question of developer and development life cycle.

    It comes down to knowledge. Find out what are the differences between the page layouts and dynamic actions. And when to use one that to achieve the goal at hand.

    Lets say that we have to report slow query and report region which takes time to load. But this report is not required for the end user and it could continue by pressing the buttons during the loading of that specific region is always.

    Press the buttons to do what? And why the user would click the buttons when the report data are not yet ready for display?

    The Javascript engine doesn't have a thread model Posix/Windows type.  By default, its calls are non-blocking and use events. See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/EventLoop for more details.

    This isn't exactly a walk in the Park to treatment systems simultaneous good design. And it's true in Javascript too.

  • How to display a dynamic combobox?

    We had a requirement to display a combobox that is filled with some values on the Web page when someone checks the box that is located on the Web page.

    The approach we have taken is ajax. How we did it, it's when someone checks the check box on the Web page we begin the ajax call asking for a servlet. This servlet extracts data from the database, place the data in the request and forwards the request to a jsp page. In this jsp I am writing simple html combobox and filling of the values in the ComboBox of the query using JSTL and this jsp will be sent in response to the ajax call. Ajax Gets the HTML as a response that contains a combobox control and I just place HTML (complete response) in a div which is next to the check box.

    In this approach, there are a lot of pain. If I have to post 10 html dynamically components under certain conditions so I have 10 jsp for each component. I always feel that there is a wrong way of doing things. What is the best approach to deal with the dynamic controls on Web pages.

    Your problem here is the mix of data with the presentation. Your ajax calls should not return HTML. They must return data only as XML or JSON (JSON is almost always preferable).
    Conditionally display layout is then easily achievable using javascript as javascript can parse JSON or XML.

Maybe you are looking for