Must be script tag inside head ?

Must be <script> tag inside <head> ? Or is possible have <script> tag inside <body> before element with banner? This may cause a malfunction of the banner?

Hi Jaroslav,
The script tags have to go inside the head tags.
Thanks,
Preran

Similar Messages

  • Problem: ()[]{} invisible inside the script-tag

    Hi there,
    This morning I realised I had some strange problem with my Dreamweaver CS4. The brackets ()[]{} are somehow invisible inside the script-tag. I know they are still there, because they execute correctly and when I copy a codefragment with some (of the now invisible) brackets to another text-editor, they are there again.
    Let me give a short example:
    // Brackets are visible in DW   ()[]{} These are visible, tooI can see the "bla", but NOT the brackets before and after it. ()[]{} These here are visible again. 
    So you see, brackets are somehow made invisible inside the script-tag, and I'd like to know how to make them visible again.
    Here's what I tried so far (everything without success):
    - restart Dreamweaver
    - restart PC
    - check the options menu (didn't find anything for this problem)
    - hide/show the script-tag using dreaweaver's feature for this.
      Intresting point here: when the part where the brackets are, are collapsed it shows me "()[]{}[..." as a preview. So even Dreamweaver "knows" the brackets are there, but still refuses to show them -_-
    - set the gui setting from "coder" to "classic" and back.
    Any help is appreciated!
    Thanks in advance, really need to solve this, since I am using alot of hardcoded 2-dimensional javascript arrays and therefore alot of []
    Best regards
    Michael

    Sorry for doubleposting, I should have read the manual for posting code :|
    here's the code I was giving as an example:
    <title>brackets work fine here: ()[]{}</title>
    <style type="text/css">
    .someclass {background:url(theseBracketsAreVisible.png)}
    </style>
    </head>
    <body>
    <div>()[]{} these are visible as well</div>
    <script language="javascript">()[]{}[bla]</script> I can see the "bla", but NOT the brackets before and after it.
    ()[]{} These here are visible again.
    </body>
    Sorry again..
    edit:
    I realised it hides words like "function" aswell o_O
    <script language="javascript">
    function test() {ar = new Array;ar = ["a","b","c"];alert(ar);};
    </script>
    The code above is visible for me in Dreamweaver like this:
    <script language="javascript">
    test ar =  Array;ar = "a","b","c";alertar;;
    </script>
    really strange..

  • Why would someone use the meta utf-8 tag inside the script tag?

    I have run into a number of sites that use the <meta utf-8> tag inside the <script> tag what is the use of it.
    How dose one write the utf-8 inside the script tag?

    csteinola wrote:
    > If I CFINCLUDE that cache file, the characters come out
    munged (non-utf-8
    > encoded).
    try prepending a <cfprocessingdirective
    pageencoding="utf-8"> to the file.

  • Xml literals inside ms:Script tag ?

    I am trying to define a javascript inside an xml literal
    inside a <mx:Script> tag but the nested CDATA within another
    CDATA is canceling itself out.
    so what is the correct way of this:
    Thanks!

    try escaping the inner cdata tags.
    Ries

  • SCRIPT calls inside a template - these won't update

    OK, no more \\ talk... Please!  you say...  and I agree!
    Well I may have committed another faux pas, this time in a .dwt.  The following code is found inside my "master template" for this bike shop.
    <html>
    <head>
      <meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
      <!-- TemplateBeginEditable name="doctitle" -->
      <title>Exeter Cycles, Exeter New Hampshire - Specializing in NH Seacoast Cycling!</title>
      <!-- TemplateEndEditable -->
      <META NAME="keywords" CONTENT="new hampshire, exeter, cycles, cycling, bicycle, shop, new, hampshire, seacoast, mountain, road, bmx, kids, kid's, bike, bikes, riding, rides, tires, chains, cogs, wheels, handlebars, tubes, brakes, pedals, pedalling">
    <SCRIPT LANGUAGE = "JavaScript" type="text/javascript" src="../mouse_over1.js"></SCRIPT>
    <!-- removed embedded styles completely 5/12/11 - HS -->
    <!-- removed table based constructs top six pgs HS 4/28/11-->
    <!-- Used Absolute positioning for Right Nav sections HS 4/3/11 -->
    <!-- Created EC page master template for ease of management HS 4/27/11-->
    <link href="../css/site_wide.css" rel="stylesheet" type="text/css">
    </head>
    <body>
    Note the 8th text line where I use src="../mouse_over1.js" and in the .js we change colors on some click buttons as the person rolls over.  This is inherited code and I take no credit for having created it - but now I'm dealing with it and trying to learn a little about what this does and how it does it.  However, if I look in, say index.html (which is built and updated on this template) this is what I get after an Update as well as after a File >Save All:
    <SCRIPT LANGUAGE = "JavaScript" type="text/javascript" src="mouse_over1.js"></SCRIPT>
    No ../mouse_over1.js and so the mouse_over feature fails when index.html is first called to a browser.  The result is the infamous "red-X" syndrome - the graphic is not being found.  I think it's because the template has ../ but somehow is not applying it to index.html.  Strangely, when updated, all other pages (except this one) get template changes applied and any of the other buttons are clicked the links work and the color changes also work.  It's only when the page (index.html) is first called.
    Now as an experiment, I commened out the above line in the .dwt to see what the results were.  And in index.html this is what I see in idex.html:
    <!--<SCRIPT LANGUAGE = "JavaScript" type="text/javascript" src="../mouse_over1.js"></SCRIPT>-->
    Note that in the commented section here, the template imposed ../.  I then go back, un-comment the template at that line and I get:
    <SCRIPT LANGUAGE = "JavaScript" type="text/javascript" src="mouse_over1.js"></SCRIPT>
    No dot-dot-slash again!  So, what do I have?  Maybe I don't know that a <SCRIPT> item should not be included in a template and maybe this should not be included in a template.  Or maybe it positioned incorrectly in the template.
    What do you good folks think?
    H

    OK, I am still having trouble with this.  I have tried everything - honestly have - to get the proper code set up in the Template so that it propagates correctly out to my pages.  I've put in the "../" in the Template - updated.  I've left off the "../" in front of each "src=".  That completely fails.  I've moved everything to the root of my C drive (I was desperate!).  The graphic elements (clickable button box links) appear when index.html is called from "Preview in Browser" but as soon as you rollover any other button, that button goes to "red-X" meaning that the reference is bad.  Clicking on the "red-X" button brings you to the proper page so the links work.  But when "About Us" for example is called or clicked, they all work ("rollover effect") fine.
    I must have some sort of structural defect or there must be a setting inside DW that I don't know about that makes this happen.  I have a tendency to think it's a basic structural fault:
    File/Folder
    Location in Tree
    index.html
    C:\My Documents\EC\TodayWork\
    Templates (folder)
    C:\My Documents\EC\TodayWork\
    EC_Master_Template
    C:\My Documents\EC\TodayWork\Templates
    about_us.html
    C:\My Documents\EC\TodayWork\AboutUs\
    services.html
    C:\My Documents\EC\TodayWork\Service\
    15 jpgs for rollovers (varying colors for effects)
    C:\My Documents\EC\TodayWork\graphics\
    mouseover1.js
    C:\My Documents\EC\TodayWork\
    more files with the same basic structure
    Here is a chunk of code from my Template:
    <a HREF="../index.html" onMouseOver="imgOn('holder')" onMouseOut="imgOff('holder')">
    <img name="holder" src="../graphics/home.jpg" alt="" width="100" height="90" border="0">
    <br />
    </a>
    <a HREF="../services/services.html" onMouseOver="imgOn('img3')" onMouseOut="imgOff('img3')">
    <img name="img3" src="../graphics/work_gray.jpg" alt="Services" width="100" height="90" border="0"></a>
    <br />
    Here is the resultant code in index.html:
    <a HREF="index.html" onMouseOver="imgOn('holder')" onMouseOut="imgOff('holder')">
    <img name="holder" src="graphics/home.jpg" alt="" width="100" height="90" border="0">
    <br />
    </a>
    <a HREF="services/services.html" onMouseOver="imgOn('img3')" onMouseOut="imgOff('img3')">
    <img name="img3" src="graphics/work_gray.jpg" alt="Services" width="100" height="90" border="0"></a>
    <br />
    And here a chunk from services.html:
    <a HREF="../index.html" onMouseOver="imgOn('holder')" onMouseOut="imgOff('holder')">
    <img name="holder" src="../graphics/home.jpg" alt="" width="100" height="90" border="0">
    <br />
    </a>
    <a HREF="services.html" onMouseOver="imgOn('img3')" onMouseOut="imgOff('img3')">
    <img name="img3" src="../graphics/work_gray.jpg" alt="Services" width="100" height="90" border="0"></a>
    <br />
    I've looked over the javascript.  I've not touched it in any way from the original because I don't know much about java so I've left it intact.
    if (document.images) {       //if image object is available    
    img1on = new Image();  // MouseOver Images
    img1on.src = "../graphics/product_color.jpg";
    img2on = new Image();
    img2on.src = "../graphics/racing_color.jpg";
    img3on = new Image();
    img3on.src = "../graphics/work_color.jpg";
    Again, this has similarities to the case I brought up a couple of weeks ago.  I apparently didn't learn enough from that experience.  Do the inidiv pages have to come out of their folders and be on a peer level with index.html?   I don't understand where I could be wrong with this structure.  DW is doing what it's designed to do.  I'm setting up "Document Root" in the initialization screen.  I just ran into a buzzsaw on this one.
    What should I be looking for to get this done.  Everything else on the site is working fine "locally".
    I don't expect someone else to build this.  If I don't do this on my own, I don't learn.  But here all my self study has left me without a clue.
    H

  • TemplateBeginEditable tag inside editable region

    A weird issue...
    I created a template for my asp files.. All goes fine until I
    try to add a specific editable region in my code. I just do not see
    why I get the error "TemplateBeginEditable tag inside editable
    region" on this when I add this on line 6 ("PANA")...
    Anyone an idea why I get this error?

    Yes. Your coding is completely wrong.
    This markup -
    <!-- TemplateBeginEditable name="PANA" -->
    and this markup -
    <!-- TemplateEndEditable -->
    CANNOT go above the doctype.
    Why is it there at all?
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "worldofrugs" <[email protected]> wrote in
    message
    news:g11cad$8fq$[email protected]..
    >A weird issue...
    > I created a template for my asp files.. All goes fine
    until I try to add a
    > specific editable region in my code. I just do not see
    why I get the error
    > "TemplateBeginEditable tag inside editable region" on
    this when I add this
    > on
    > line 6 ("PANA")...
    >
    > Anyone an idea why I get this error?
    >
    >
    > <% response.Buffer=true %>
    > <!--#include file="A.asp"-->
    > <!--#include file="B.asp"-->
    > <!--#include file="C.asp"-->
    > <!--#include file="D.asp" -->
    > <!-- TemplateBeginEditable name="PANA" -->
    > <%
    > on error resume next
    > '*******************************
    > ' Page Name
    > '*******************************
    > Dim StrPageName
    > StrPageName = "test.asp"
    > %>
    > <!-- TemplateEndEditable -->
    >
    >
    > <!--#include file="StartSession.asp"-->
    > <%
    > Dim query, conntemp, rs, rstemp
    > call openDb()
    > %>
    > <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01
    Transitional//EN"
    > "
    http://www.w3.org/TR/html4/loose.dtd">
    > <html>
    > <head>
    >

  • "instancebegineditable tag inside editable region"

    i've tried to update my site and it wont let me. i keep getting this error "instancebegineditable tag inside editable region" im not sure how to fix it..

    Here is my code.....
    <!doctype html>
    <html><head>
    <meta charset="utf-8">
    <!-- TemplateBeginEditable name="doctitle" -->
    <title>My Portfolio - Add Title Here</title>
    <!-- TemplateEndEditable -->
    <style type="text/css">
    body {
      background-color: #CCCCCC;
      color: #000;
      height: 100%;
      margin: 0px;
      padding: 0;
      font-family: "Arial Rounded MT Bold", Arial, Helvetica, sans-serif;
      font-size: 100%;
    ul, ol, dl {
      padding: 0;
      margin: 0;
    h1, h2, h3, h4, h5, h6, p {
      text-align: left;
      margin-left: 7px;
    a img {
    a:link {
      text-decoration: none;
    a:hover, a:active, a:focus {
      text-decoration: none;
    .container {
      width: 1000px;
      background-color: #CCCCCC;
      margin: auto;
      height: 100%;
    header {
      background-color: #999999;
      height: 150px;
      background-image: url(../images/plaid_banner.png);
      clear: inherit;
    nav p a{
      color: #FFF;
        display: inline-block;
        -webkit-transition: 0.5s;
        -moz-transition: 0.5s;
        -o-transition: 0.5s;
        -ms-transition: 0.5s;
        transition: 0.5s;
    nav p a:hover {
      -webkit-transform: scale(1.125,1.125);
      -moz-transform: scale(1.125,1.125);
      -o-transform: scale(1.125,1.125);
      -ms-transform: scale(1.125,1.125);
      transform: scale(1.125,1.125);
      font-size: 100%;
    .sidebar1 {
      width: 187px;
      background-color: #333;
      padding-bottom: 10px;
      height: 100%;
      background-image: url(../images/sidebar1.png);
      background-repeat: repeat-y;
      position: absolute;
      display: marker;
    .sidebar1 a {
      color: #FFF;
      -webkit-transition: 0.3s;
        -moz-transition: 0.s;
      -o-transition: 0.3s;
      -ms-transition: 0.3s;
      transition: 0.3s;
    .sidebar1 a:hover {
      -webkit-transform: scale(1,1.3);
      -moz-transform: scale(1,1.3);
      -o-transform: scale(1,1.3);
      -ms-transform: scale(1,1.3);
      transform: scale(1,1.3);
      font-size: 120%;
      transition: 0.1s;
    nav p {
      /* [disabled]padding-top: 5px; */
      padding-bottom: 13px;
      font-weight: normal;
      height: 40px;
    .container nav p {
      background-color: #666;
      text-align: right;
      width: auto;
      font-weight: normal;
      color: #fff;
      background-image: url(../images/plaid_banner.png);
      font-size: 120%;
    .button {
      background-color: #666666;
      border: 2px solid #0CF;
      border-radius: 8px;
      width: 180px;
      font-size: 120%;
      margin-bottom: 5px;
      text-align: left;
    .aboutme {
      background-color: #666666;
      text-align: center;
      border: 2px solid #0CF;
      border-radius: 8px;
      padding: 3px 12px;
      margin: 0 15px 0 0;
    .home {
      background-color: #666666;
      text-align: center;
      border: 2px solid #0CF;
      border-radius: 8px;
      padding: 3px 28px;
      margin: 0 15px 0 0;
    .content {
      padding: 10px 0;
      width: auto;
      margin-left: 186px;
      height: 100%;
      background-color: #FFF;
    .content ul, .content ol {
      padding: 0 15px 15px 40px;
      height: 100%;
    ul.nav {
      margin: 10px 0 5px 0;
    ul.nav li {
    ul.nav a, ul.nav a:visited {
      padding: 6px 0px 6px;
      display: block;
      width: 160px;
      text-decoration: none;
      background-color: #CCCCCC;
      color: #FFFFFF;
    ul.nav a:hover, ul.nav a:active, ul.nav a:focus {
      background-color: #666666;
      color: #FFF
    footer {
      position: relative;
      font-size: 90%;
      width: 1000px;
      font-weight: normal;
      font-weight: normal;
      bottom: 0px;
    footer p  {
      float: none;
    .socialnetwork {
      float: right;
    .container .socialnetwork {
      margin-right: 7px;
      margin-top: -5px;
    .container footer p {
      font-size: 90%;
      background-image: url(../images/Untitled-1.png);
      text-align: left;
      width: auto;
      color: #0CF;
      padding-top: 10px;
      padding-bottom: 10px;
      padding-left: 10px;
    .container footer nav p {
      background-color: #666;
      text-align: right;
      width: auto;
      font-weight: normal;
      color: #fff;
      background-image: url(../images/Untitled-1.png);
      font-size: 120%;
    header, section, footer, aside, article, figure {
      display: block;
    <!--Gallery CSS Here-->
    @import url('http://fonts.googleapis.com/css?family=Lato');
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    .gallery {
      width: 795px;
      margin: 0 auto;
      padding: 5px 0px 5px 5px;
      background: #333;
    .gallery > div {
      position: relative;
      float: left;
      padding: 5px;
    .gallery > div > img {
      width: 250px;
      transition: .1s transform;
      transform: translateZ(0); /* hack */
    .gallery > div:hover {
      z-index: 1;
    .gallery > div:hover > img {
      transform: scale(1.5,1.5);
      transition: .3s transform;
    .cf:before, .cf:after {
        display: table;
        content: "";
        line-height: 0;
    .cf:after {
        clear: both;
    h1 {
      font-size: 24px;
      font-family: "Arial Rounded MT Bold", Arial, Helvetica, sans-serif;
      float: none;
      color: #000;
      text-align: center;
    <!--End Gallery CSS-->
    </style>
    <link href="../SpryAssets/SpryMenuBarVertical.css" rel="stylesheet" type="text/css">
    <!-- TemplateBeginEditable name="head" -->
    <script src="../SpryAssets/SpryMenuBar.js" type="text/javascript"></script>
    </head>
    <body class="container">
        <header>
          <h3><img src="../images/GP_3.png" alt="" name="Logo" width="950" height="140"></h3>
    </header>
      <nav>
        <p class="container"><a href="#" class="home">Home</a> <a href="#" class="aboutme"> About Me</a> <a href="#" class="aboutme">Contact Me</a></p>
      </nav>
    <aside>
        <div class="sidebar1"><!-- TemplateBeginEditable name="Sidebar"-->
        <ul id="MenuBar1" class="MenuBarVertical">
            <li><a href="#">Home</a></li>
            <li><a href="#">Gallery</a>        </li>
            <li><a href="#">Websites</a></li>
            <li><a class="MenuBarItemSubmenu" href="#">R&eacute;sum&eacute;</a>
        <ul>
        <li><a href="#">R&eacute;sum&eacute;</a></li>
            <li><a href="#">Cerifications</a></li>
        </ul>
            </li>
            <li><a href="#" class="MenuBarItemSubmenu">About Me</a>
         <ul>
            <li><a href="#">About Me</a></li>
            <li><a href="#">Contact</a></li>
         </ul>
            </li>
        </ul>
        <!-- TemplateEndEditable -->
          <aside> </aside>
          <p style="font-size:90%"></p>
        </div>
    </aside>
      <!-- TemplateBeginEditable name="Main" -->
      <article class="content">
        <h1 class="stars">Add heading here</h1>
        <section>
          <h2>Add subheading here</h2>
          <p>Add content here</p>
        </section>
        <section></section>
      </article>
      <!-- TemplateEndEditable -->
      <footer>
        <p class="container">Copyright 2014 G.Powell.Portfolio. All rights reserved.<a href="../www.facebook.com"><img src="../images/Social Site Logos/Facebook_Logo.png" alt="Facebook" name="Sidebar" width="25" height="25" class="socialnetwork"></a>
        <a href="../www.twitter.com"><img src="../images/Social Site Logos/twitter_logo.png" alt="Twitter" name="Sidebar" width="25" height="25" class="socialnetwork"></a>
        <a href="../www.instagram.com"><img src="../images/Social Site Logos/Instagram_logo.png" alt="Instagram" name="Sidebar" width="25" height="25" class="socialnetwork"></a>
        <a href="../www.plus.google.com"><img src="../images/Social Site Logos/Google_Plus_Logo.png" alt="Google Plus" name="Sidebar" width="25" height="25" class="socialnetwork"></a></p>
      </footer>
    </div>
              <script type="text/javascript">
    var MenuBar1 = new Spry.Widget.MenuBar("MenuBar1", {imgRight:"../SpryAssets/SpryMenuBarRightHover.gif"});
    </script>
    </body>
    </html>

  • Design view of jspx not rendering : Error exercising tag : afh:head

    I'm using JDeveloper 10.1.3.4 and I have an intermittent problem where by the jspx does not render correctly in design view - it just shows a whole load of nested boxes.
    By following a suggestion from another website I turned on "Design time messages in log" in jdeveloper JSP visual editor preferences.
    The error messages being sent to the log window are :
    Error exercising tag : afh:head
    java.lang.NullPointerException
         at oracle.adfinternal.view.faces.renderkit.AdfRenderingContext.getTranslatedString(AdfRenderingContext.java:70)
         at oracle.adfinternal.view.faces.renderkit.core.xhtml.jsLibs.GlobalVariablesScriptlet.outputScriptletContent(GlobalVariablesScriptlet.java:49)
         at oracle.adfinternal.view.faces.renderkit.core.xhtml.jsLibs.Scriptlet.outputScriptletImpl(Scriptlet.java:111)
    Error exercising tag : af:forEach
    javax.servlet.jsp.JspTagException: 'begin' and 'end' should be specified if 'items' is not specified
         at oracle.adfinternal.view.faces.taglib.ForEachTag._validateAttributes(ForEachTag.java:320)
         at oracle.adfinternal.view.faces.taglib.ForEachTag.doStartTag(ForEachTag.java:93)
    Error exercising tag : afh:body
    java.lang.NullPointerException
         at oracle.adfinternal.view.faces.renderkit.core.CoreAdfRenderingContext.getStyleClass(CoreAdfRenderingContext.java:211)
         at oracle.adfinternal.view.faces.renderkit.core.xhtml.XhtmlRenderer.renderStyleClass(XhtmlRenderer.java:338)
         at oracle.adfinternal.view.faces.renderkit.core.xhtml.PanelPartialRootRenderer._renderLibraryDownloadElement(PanelPartialRootRenderer.java:480)
         at oracle.adfinternal.view.faces.renderkit.core.xhtml.PanelPartialRootRenderer.renderPPRSupport(PanelPartialRootRenderer.java:340)
    How can I fix this ?
    Cheers,
    Brent

    Hi Didier,
    Sorry, intermittent problem is not very descriptive ! What I actually meant is that some of my applications have the problem while others dont. Once the problem exists, it always does regardless of restarting JDeveloper.
    Starting JDeveloper using the console provided similar error message to outputting the JSP visual editor to the log file :
    SEVERE: Element End name:head does not match start name:script
    04-Dec-2009 17:28:38 oracle.adfinternal.view.faces.io.HtmlResponseWriter endElem
    ent
    SEVERE: Element End name:html does not match start name:div
    Reading other posts, problems seemed to stem from errors within the faces-config or web.xml files so I compared them between apps displaying pages correctly and ones that weren't. I found a difference in the filter-mapping section of the web.xml. Changing the entries to match the applications that displayed correctly has worked !!
    The entries for the apps that didn't display correctly :
        <filter-mapping>
            <filter-name>adfFaces</filter-name>
            <servlet-name>Faces Servlet</servlet-name>
            <dispatcher>FORWARD</dispatcher>
            <dispatcher>REQUEST</dispatcher>
        </filter-mapping>
        <filter-mapping>
            <filter-name>adfBindings</filter-name>
            <url-pattern>*.jsp</url-pattern>
        </filter-mapping>
        <filter-mapping>
            <filter-name>adfBindings</filter-name>
            <url-pattern>*.jspx</url-pattern>
        </filter-mapping> 
      <filter-mapping>
        <filter-name>adfBindings</filter-name>
        <servlet-name>ordDeliverMedia</servlet-name>
      </filter-mapping>
      <filter-mapping>
        <filter-name>jhsAuthenticationFilter</filter-name>
        <url-pattern>*.jsp</url-pattern>
      </filter-mapping>
      <filter-mapping>
        <filter-name>jhsAuthenticationFilter</filter-name>
        <url-pattern>*.jspx</url-pattern>
      </filter-mapping>... and the entries for the apps that did display correctly :
        <filter-mapping>
            <filter-name>adfFaces</filter-name>
            <url-pattern>*.jsp</url-pattern>
        </filter-mapping>
        <filter-mapping>
            <filter-name>adfFaces</filter-name>
            <url-pattern>*.jspx</url-pattern>
            <dispatcher>REQUEST</dispatcher>
            <dispatcher>FORWARD</dispatcher>
        </filter-mapping>
        <filter-mapping>
            <filter-name>adfBindings</filter-name>
            <url-pattern>*.jsp</url-pattern>
        </filter-mapping>
        <filter-mapping>
            <filter-name>adfBindings</filter-name>
            <url-pattern>*.jspx</url-pattern>
            <dispatcher>REQUEST</dispatcher>
            <dispatcher>FORWARD</dispatcher>
        </filter-mapping>
        <filter-mapping>
            <filter-name>adfBindings</filter-name>
            <servlet-name>ordDeliverMedia</servlet-name>
        </filter-mapping>
        <filter-mapping>
            <filter-name>jhsAuthenticationFilter</filter-name>
            <url-pattern>*.jsp</url-pattern>
        </filter-mapping>
        <filter-mapping>
            <filter-name>jhsAuthenticationFilter</filter-name>
            <url-pattern>*.jspx</url-pattern>
        </filter-mapping>Somehow the filter-mapping entries for the adfFaces and adfBindings filter got all screwed ? Strange as the application has always worked fine, the only (obvious) problem has been the jspx pages not rendering properly in design view.
    Once updating the web.xml with the correct value for these two entries, the pages are displayed correctly :)
    While I don't like blindly making changes like this to the web.xml - the application still seems to function !
    Cheers,
    Brent

  • JRE1.5 swing.html parser fails to parse data between script tags

    Hi all...
    I've written a class that extends the java-provided default HTML parser to parse for text inside a table. In JRE1.4.* the parser works fine and extracts data between <script> tags as text. However now that I've upgraded to 1.5, the data between <script> tags are no longer parsed. Any suggestion anyone?
    Steve

    According to the API docs, the 1.5 parser supports HTML 3.2, for which the spec states that the content of SCRIPT and STYLE tags should not be rendered. I assume it doesn't have a scripting engine, so it won't get executed either.

  • How to add raw HTML tags inside JSF tags...

    Hi
    I would like to use <input type = text > inside my project in some area..The following code hides the input = type html tag and forwards the click event to jsf command button...After selecting the file,it should forward the value to jsf textfield....
    My code seems as below.
    <h:form id="detailForm" onsubmit="printElements(detailForm,this)">
    <f:verbatim>
    <input id="uploadFile" type="file" style ="dispaly:none"size="100" />
    </f:verbatim>
    <h:inputText id="docName" style="width:650px;" maxlength="100"/>
    <h:commandButton id="visibleBrowseButton" value="Select File..." onclick="'detailForm:uploadFile'.click();callClick();">
    </h:commandButton>
    </h:form>
    <script type="text/Javascript">
    function callClick()
    var val = document.detailForm.uploadFile.value;
    document.getElementById('detailForm:docName').value = val;
    </script>
    While running this page it works fine in IE but in Mozilla firefox it troubles me during detailForm:uploadFile'.click().
    I suspect the jsf page cannot able to detect the raw html tag inside jsf tags...Eventhough i tried using inside<f:verbatim> it wont works..
    I would like to know
    1.Whether the code is right,,if the code goes wrong why it got runned in IE not in firefox....
    2.How can raw html tags can be integrated inside JSF tags....

    First of all, why are you ignoring valuable answers about a JSF fileupload component in your previous topic?
    Second, you can just nest raw HTML anywhere in your JSF page. Your problem is rather related to JavaScript. It has completely nothing to do with Java nor JSF. Learn JavaScript -there is a nice tut at w3schools.com- and look for a JavaScript forum if you still stucks. There are ones at webdeveloper.com and dynamicdrive.com.
    The f:verbatim is only required if you was using JSF 1.1 or older, which is not the case. You would have occurred completely different problems.

  • MDS, Script Editor WebPart does not load javascript files with script tag

    Hello everyone,
    I have MDS and I would like to use some custom Javascript inside of a script editor web part in a page of my site.
    When I add the references to the libraries I need in the Script Editor Web Part SharePoint is smart enough to disable MDS on that page.
    I would like to be able to load external libraries inside of my Script Editor Web Part (without using ScriptLink or anything that would require the edition of the masterpage) but still using the added value of MDS.
    Can I use SOD for that? What would be the best pattern? Could you provide a simple example?
    Thanks in advance for your help!

    Hi,
    Per my knowledge, including CSS and JavaScript files using HTML style and script tags is not supported in MDS(Minimal Download Strategy).
    We can refer the custom JavaScript file in the .aspx page or master page using ScriptLink control.
    <SharePoint:ScriptLink language="javascript" name="custom_javascript.js" runat="server" />
    The following articles for your reference:
    http://sharepointsnacks.blogspot.com/2014/02/sharepoint-2013-minimal-download.html
    http://tech.bool.se/make-javascript-code-work-with-minimal-download-strategy-part-2/
    Thanks,
    Dennis Guo
    TechNet Community Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Dennis Guo
    TechNet Community Support

  • Cftextarea with script tags

    I posted this question on the FCKeditor forum and got no reply. Hoping someone here in the CFusion forum may have insight!
    We have used the FCKeditor in our CMS for years and now that CF 8 includes this as its rich text editor, we are using the version that came with CF 8 (v2.5 build 17352) instead of a separate instance.
    We are having problems when including any script tags within the text area.
    After content is saved to the dbase and the page reloads, the editor is no longer visible and the content that *should* display within the editor area displays at the top of the page.
    Also, when content is saved, all special character encoding (e.g., ™) is lost and is replaced with question marks.
    We did not have this same problem using previous versions of FCKeditor.
    Is there a setting we have incorrect? Or does FCKeditor not support script tags within the cftextarea?
    Thanks in advance for insight!
    jLynn

    Thanks for the reply Craig!
    Of note: Firebug tells me the error is an 'unterminated string literal'
    Following is what ColdFusion automatically generates in the head portion of the document when rendering the page. Looks like the error is in the intialization but I can't see what the error is.
    <script type="text/javascript">
    _cf_richtext_init_1245775594721=function()
    ColdFusion.RichText.initialize('cf_textarea1245775594720', 'body', '<script type="text/javascript"><br> alert("hello world");<br></script>
    ', '/CFIDE/scripts/ajax/FCKeditor/', null, 400, null, null, null, null, false, 'articleBody', null, null, 'en');
    };ColdFusion.Event.registerOnLoad(_cf_richtext_init_1245775594721);
    </script>
    ===================
    And this is the form generated:
    <form name="articleEdit" id="articleEdit" action="index.cfm?" method="post" onsubmit="return _CF_checkarticleEdit(this)">
    <textarea name="body"  id="cf_textarea1245775594720" cols="100" rows="5" ><script type="text/javascript">
    alert("hello world");
    </script>
    </textarea>
    </form>
    ===============

  • Sql Plus  Setting where It must  searching Scripts

    Hi
    How can I to define inside Sql Plus with command , where It must search scripts
    Why when I put :
    @myscript.sqland inside there is other scripts, It not found
    unable to open file "CONTIG_PS_LOC_ITM_TYPE.SQL"CONTIG_PS_LOC_ITM_TYPE.SQL is in same directory myscript.sql

    Hey
    inside the your first script you can execute the second one as "@@CONTIG_PS_LOC_ITM_TYPE.SQL"
    for the first script you can give the absolut path or the default path is $ORACLE_HOME/rdbms...
    Regards

  • How to using the script tag in uix/jsp?

    Do i have to write in uix/jsp:
    <uix:rawText>
    <script type="text/javascript">
    function doCheckForm()
    </script>
    </uix:rawText>
    Or exists another tag that handles the javascripts without the "rawText" script?
    Marc

    If you are declaring a function, you dont need to add it under the rawText tag. It can be added with a simple script tag at the top of the page.

  • Deprecated "Language" attribute in Script Tag

    Using Dreamweaver 8.0.2, it appears to me that the deprecated
    attribute "language" is inserted into the Script tag by default
    when I insert javascript. Is there a workaround for this? Or do I
    need to manually delete the attribute each time?
    I have the Preference for New Document set to XHTML 1.0
    Strict so I thought that should take care of initiating the tag
    correctly.

    tregarva wrote:
    > Using Dreamweaver 8.0.2, it appears to me that the
    deprecated attribute
    > "language" is inserted into the Script tag by default
    when I insert javascript.
    > Is there a workaround for this? Or do I need to manually
    delete the attribute
    > each time?
    The workaround is to upgrade to CS3.
    David Powers, Adobe Community Expert
    Author, "The Essential Guide to Dreamweaver CS3" (friends of
    ED)
    Author, "PHP Solutions" (friends of ED)
    http://foundationphp.com/

Maybe you are looking for

  • WaitFor() doesn't wait for my process to complete?

    Hi all, I'm launching a browser from my java program to display a text file, and when this is done i want to delete that text file from the server, so i tell the process that launches the browser to wait, then i make a call to delete the file from th

  • Safari suddenly stopped Mail Link to this Page in gmail

    Up until last night safari would open my gmail composer when I hit Mail Link to this Page. I do not use Mail on this computer. It opens correctly on firefox but since the firefox upgrades my laptop runs too hot with it. The new safari was working fab

  • Subscript & SuperScript in Crystal Report

    hi , I m developing application which contain information about chemical compound. all formula of chemical compound contains superscript & subscript. I store value in database using sub & sup Tag .but crystal report does not support these tag how can

  • Add-on blank agrement wrong executable digital signature for add-on

    hai, when we trying to install the sample add-on called balnked agrement in sdk help file we are getting the follwing error. add-on blank agrement wrong executable digital signature for add-on. how do recftify this error. thanking nagababu

  • Bold the text font in SSPR Portal -"You must answer at least {0} questions to register. "

    The self service password reset portal contains the text : "You must answer at least {0} questions to register. " I would like to make it appear bold. I  tried using tags like <b> , <strong> but with no effect. Please post suitable solution for this.