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..

Similar Messages

  • 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.

  • Make region/Task-Flow visible/invisible inside the page created in composer mode.

    Environent_
    JDeveloper 11.1.1.6.0
    Webcenter Sites version : 11g R1.
    Problem statement_
    Below example is to demonstrate the usecase to make region visible/invisible inside the page created in composer mode.
    The problem with this case is the 'Show Component' property does not automatically evaluate its expression even after using the contextual event.
    We want the region to be refreshed at run-time just like it works with design time pages using Refresh, RefreshCondition attributes in pageDef.
    My Usecase_
    I have two task flows dragged in Webcenter Customized Page.
    First contains Employee list and Second  contains selected employee's manager name.
    By default when page loads second task-flow/Dragged-Box  should be hidden.
    When I select employee from first box, then immediately second box should be appeared with manager name.
    In the case when If Employee does not have manager, second box should be disappeared. Whole page should not be refreshed only the second box should be refreshed and hide.
    Regards,
    Niraj

    Hi Jiri,
    Thanks for your prompt reply..
    While referencing the taskflow in any page will create a region and makes entry in pageDef for that page.
    In the PageDef of that page I am using Refresh and RefreshCondition attributes of the taskflow tag in order to refresh the taskflow based on certain condition or parameter change.
    I want to achieve the same in run-time environment using composer mode. where I have the control over page but do not have pageDef (visually where I can go and add the attributes Refresh and RefreshCondition manually)
    I would be obliged if someone can help on this.
    Thanks
    Regards,
    Niraj

  • "Do not include a break inside the TD tag" is ignored

    In Edit | Preferences | Code Format in DW CS5, the setting "Do not include a break inside the TD tag" is ticked but DW is still putting a line break in the tag like this...
    <td> </td>
    Any idea why the setting is being ignored?
    Malcolm

    Artisan Internet wrote:
    Both fair comments, many thanks. The reason I want to remove the space is because it's impossible to have an empty row with a height of less than about 6 pixels (used as a spacer or for coloured divider lines of different thicknesses) when there's a space within the TD tag. The space counts as a character which means that the row can't be less than the height of a character.
    I know I could make a transparent spacer GIF, and create custom styles for different horizontal rules in the stylesheet, but it's always been a lot quicker to simply use a table row with a height.
    Looks like I'll just have to carry on deleting the spaces from the code.
    Malcolm
    Your best solution is to insert a transparent spacer.gif and give it the dimensions you want. That will overrule all the 'empty' defaults. Please remember, the spacer need only be in one cell of the row. All other cells, unless they have larger content, will follow suit... applies to rows and columns.
    (The 'height' attribute by itself, as you've discovered, is kind of dicey. So is the width.)

  • I could not able to open a .doc,.xls,.ppt inside the iframe tag in IE7.

    Hi all,
    I could not able to open a .doc,.xls,.ppt inside the iframe tag in IE7.
    what should i do?

    Hi,
    Question is,: when ever i call the .doc,.ppt,.xls files are not coming inside the iframe tag in IE7
    I am keeping the all files in separate storage area lik d:/StorageLoc/Docs/Sample.doc
    when ever i am calling the sample.doc through web,
    http://localhost:8080/VContext/OpenFile
    i am accessing the word,ppt,xsl files inside iframe
    like
    var fils= "d:/StorageLoc/Docs/Sample.doc";
    <iframe src="/VContext/OpenFile?r2=fils"></iframe>
    OpenFile.java [servlet file]
    public void doPost(HttpServletRequest request, HttpServletResponse response)
    throws ServletException
    try
    String s2 = request.getParameter("r2");
    String s3 = null;
    String s4 = "txt";
    if(s3 != null && s3.equals("download"))
    response.setHeader("Content-disposition", "attachment;filename=output." + s4);
    if(s4 != null && s4.equals("pps"))
    response.setContentType("application/vnd.ms-powerpoint");
    if(s4 != null && s4.equals("doc"))
    response.setContentType("application/vnd.word");
    if(s4 != null && s4.equals("tif"))
    response.setContentType("image/tif");
    }else
    response.setHeader("Content-disposition", "inline;");
    if(s4 != null && s4.equals("pdf"))
    response.setContentType("application/pdf");
    else
    response.setContentType("application/octet-stream");
    try
    javax.servlet.ServletOutputStream servletoutputstream = response.getOutputStream();
    File fileFound = new File(s1 + s2);
    if(!fileFound.exists())
    s2 = "Photos/notfound.gif";
    FileInputStream fileinputstream = new FileInputStream(s1 + s2);
    ByteArrayOutputStream bytearrayoutputstream = new ByteArrayOutputStream();
    byte abyte0[] = new byte[0x500000];
    do
    int i = fileinputstream.read(abyte0);
    if(i != -1)
    bytearrayoutputstream.write(abyte0, 0, i);
    } else
    byte abyte1[] = bytearrayoutputstream.toByteArray();
    response.setContentLength(abyte1.length);
    servletoutputstream.write(abyte1, 0, abyte1.length);
    servletoutputstream.flush();
    servletoutputstream.close();
    return;
    } while(true);
    catch(Exception e)
    System.out.println("IGST-INFO:" + e.getMessage());
    e.printStackTrace();
    }

  • Javascript gives an error while added externally or within the script tag

    I have included a Javascript that will return the id of the current element that I am accessing , i am using this script along with the jsf tags.
    The code looks like this :
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
    <%@ taglib uri="http://myfaces.apache.org/tomahawk" prefix="t"%>
    <html>
    <head>
    <script language="Javascript">
    function focus_id()
    alert(this.id);
    </script>
    </head>
    <f:subview id="task-tree">
    <t:div style="width:170px; height:500px; overflow:auto;">
    <t:tree2
       ... >
       <f:facet name="root-facet">
          <h:panelGroup>
             <t:graphicImage alt="#{msgs.openFolderAlt}" value="/images/dtree/folderopen.gif" rendered="#{t.nodeExpanded}" border="0"/>
             <t:graphicImage alt="#{msgs.folderAlt}"value="/images/dtree/folder.gif" rendered="#{!t.nodeExpanded}" border="0"/>
             <h:outputText value="#{node.description}" styleClass="nodeFolder"/>
          </h:panelGroup>
       </f:facet>
       <f:facet name="node-facet">
          <h:panelGroup>
             <t:graphicImage alt="#{msgs.openFolderAlt}" value="/images/dtree/folderopen.gif" rendered="#{t.nodeExpanded}" border="0"/>
             <t:graphicImage alt="#{msgs.folderAlt}" value="/images/dtree/folder.gif" rendered="#{!t.nodeExpanded}" border="0"/>
             <h:outputText value="#{node.description}" styleClass="nodeFolder"/>
          </h:panelGroup>
       </f:facet>
       <f:facet name="node-with-action-facet">
          <h:panelGroup>
             <t:graphicImage alt="#{msgs.openFolderAlt}" value="/images/dtree/folderopen.gif" rendered="#{t.nodeExpanded}" border="0"/>
             <t:graphicImage alt="#{msgs.folderAlt}" value="/images/dtree/folder.gif" rendered="#{!t.nodeExpanded}" border="0"/>
             <h:commandLink
                immediate="true"
                actionListener="#{t.setNodeSelected}"
                action="#{node.doAction}"
                styleClass="#{t.nodeSelected ? 'rowHighlighted' : 'document'}"
                onclick="focus_id();" >
                <h:outputText value="#{node.label}"/>
             </h:commandLink>
          </h:panelGroup>
       </f:facet>
       <f:facet name="leaf-facet">
          <h:panelGroup>
             <h:commandLink
                immediate="true"
                actionListener="#{t.setNodeSelected}"
                action="#{node.doAction}"
                styleClass="#{t.nodeSelected ? 'rowHighlighted' : 'document'}"
                onclick="focus_id();" >
                <h:outputText value="#{node.label}"/>
             </h:commandLink>
          </h:panelGroup>
       </f:facet>
    </t:tree2>
    </t:div>
    </f:subview>
    </html>This code works fine and returns the element id if included inline but not
    otherwise .... Any clues that you can give me as to why this happens will be great ...

    Problem was solved.
    It was some of illegial symbols at the beginning of xml.

  • 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

  • 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.

  • Display problem: Hair INSIDE the LCD

    not exactly sure how this happened... or if my problem is actually a hair or an uncannily hairlike row of dead pixels, but there is a dark arc in the lower right hand corner of my screen, about 13mm from the right side that wasn't there yesterday.
    I have several questions:
    Is such a problem covered under the 1 year warranty of the powerbook?
    How does one go about making a warranty claim with apple? (i've never had a single problem with an apple product that i couldn't fix before this)
    What is the turnaround rate if apple can in fact fix my problem? (i'm a student and any time without my machine is bad)

    This will definitely be covered under warranty as the panel is supposed to be sealed.
    Apple can be pretty good about turn around time on these types of repairs. Plan to be without it for a week, including shipping time.

  • Problem in saving the applied Tag.

    Hi All,
          I created 4 tags manually in cs5. It named b, bi, i, sc for (bold, bolditalic, italic, small caps) already there's a tag default as root.
    I want to find bold, italic, bolditalic, small caps words in a document and applying appropriate tags.If I applied tags and then making another word in a document as bold and running this Jx file, It finding correctly. But not able to save the tag applied for new word which is created as bold.
    xmlObj[0].name=b;
    xmlObj[1].name=bi;
    xmlObj[2].name=i;
    xmlObj[3].name=root;
    xmlObj[4].name=sc;
    I also need to mention to apply tagname instead of specifying the above lines.
    My code is below. Please some one guide me...
    docObj=app.activeDocument;
    xmlObj = docObj.xmlTags;
    pageObj=docObj.pages.item(0);
    myTextFrame=pageObj.textFrames.item(0);
    myText=myTextFrame.parentStory.paragraphs.item(0);
    app.findTextPreferences = app.changeTextPreferences =  NothingEnum.nothing;
    app.findTextPreferences.fontStyle = "Bold";
    result = app.activeDocument.findText();
    boldlength=0;
    boldlength=result.length;
    alert(boldlength);
    for (i=0; i<boldlength;i++)
            var myElem=result[i].associatedXMLElements[0].markupTag.name;
            alert(myElem);
            if(myElem==xmlObj[0].name)
                alert("No need to apply");
            else
                myElem=xmlObj[0].name;
                //result[i].changeTextPreferences.markupTag=xmlObj[0].name;
                //app.changeTextPreferences.markupTag=xmlObj[0].name;
                alert("apply tag:" +myElem);
                app.changeTextPreferences.result[i].=myElem.changeText();
    //~ app.findTextPreferences = app.changeTextPreferences = NothingEnum.nothing;
    //~ app.findTextPreferences.fontStyle = "Bold Italic";
    //~ app.changeTextPreferences.markupTag=xmlObj[1].name;
    //~ alert(app.changeTextPreferences.markupTag);
    //~ app.activeDocument.changeText();
    //~ app.findTextPreferences = app.changeTextPreferences = NothingEnum.nothing;
    //~ app.findTextPreferences.fontStyle = "Italic";
    //~ app.changeTextPreferences.markupTag=xmlObj[2].name;
    //~ alert(app.changeTextPreferences.markupTag);
    //~ app.activeDocument.changeText();
    //~ app.findGrepPreferences = app.changeGrepPreferences = NothingEnum.nothing;
    //~ app.findGrepPreferences.capitalization = Capitalization.SMALL_CAPS;
    //~ app.changeGrepPreferences.markupTag=xmlObj[4].name;
    //~ alert(app.changeGrepPreferences.markupTag);
    //~ app.activeDocument.changeGrep();

    Correct Codes:
    docObj=app.activeDocument;
    xmlObj = docObj.xmlTags;
    pageObj=docObj.pages.item(0);
    myTextFrame=pageObj.textFrames.item(0);
    myText=myTextFrame.parentStory.paragraphs.item(0);
    app.findTextPreferences = app.changeTextPreferences =  NothingEnum.nothing;
    app.findTextPreferences.fontStyle = "Bold";
    result = app.activeDocument.findText();
    boldlength=0;
    boldlength=result.length;
    //alert(boldlength);
    for (i=0; i<boldlength;i++)
            var myElem=result[i].associatedXMLElements[0].markupTag.name;
            //alert(myElem);      
            if(myElem=="b")
            else
                app.select(result[i]);
                mySel=app.selection[0];
                docObj.xmlElements[0].xmlElements.add({markupTag:"b", xmlContent:mySel});           
    app.findTextPreferences = app.changeTextPreferences = NothingEnum.nothing;
    app.findTextPreferences.fontStyle = "Italic";
    result1 = app.activeDocument.findText();
    boldlength=0;
    boldlength=result1.length;
    for (i=0; i<boldlength;i++)
            var myElem=result1[i].associatedXMLElements[0].markupTag.name;
            if(myElem=="i")
            else
                app.select(result1[i]);
                mySel=app.selection[0];
                docObj.xmlElements[0].xmlElements.add({markupTag:"i", xmlContent:mySel});               
    app.findTextPreferences = app.changeTextPreferences = NothingEnum.nothing;
    app.findTextPreferences.fontStyle = "Bold Italic";
    result2 = app.activeDocument.findText();
    boldlength=0;
    boldlength=result2.length;
    for (i=0; i<boldlength;i++)
            var myElem=result2[i].associatedXMLElements[0].markupTag.name;
            if(myElem=="bi")
            else
                app.select(result2[i]);
                mySel=app.selection[0];
                docObj.xmlElements[0].xmlElements.add({markupTag:"bi", xmlContent:mySel});               
    app.findTextPreferences = app.changeTextPreferences = NothingEnum.nothing;
    app.findGrepPreferences = app.changeGrepPreferences = NothingEnum.nothing;
    app.findGrepPreferences.capitalization = Capitalization.SMALL_CAPS;
    result3 = app.activeDocument.findGrep();
    boldlength=0;
    boldlength=result3.length;
    for (i=0; i<boldlength;i++)
            var myElem=result3[i].associatedXMLElements[0].markupTag.name;
            if(myElem=="sc")
            else
                app.select(result3[i]);
                mySel=app.selection[0];
                docObj.xmlElements[0].xmlElements.add({markupTag:"sc", xmlContent:mySel});               
    Thanks and Regards,
    Vel...

  • I am having a problem purchasing inside the app candy crush. Has anyone else had this problem?

    I can not make a purchase inside candy crush.  It keeps directing me to www.apple.com/iTunes/support/ww.    Has anyone else experienced this??

    Other people have posted about the same message, but you will need to contact iTunes Support to resolve it : http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page, then Purchases, Billing & Redemption

  • 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

  • Ananomous block inside shell script problem

    I am having problem using / inside the anonymous block...
    I have a shell script which is somethinglike this.
    $ORACLE_HOME/bin/sqlplus -s << EOF
    --set head off;
    --set feedback off;
    set serverout on;
    Cursor c1 is
    select --------
    Begin
    for x in c1 loop
        Begin
          <do something>
        End;
    End Loop;
    End;
    End;
    EOF
    mail -s -----If i don't use / certian things are not executed.
    If i use exit instead of /, then it will not reach the end ie., the mail part.
    can somebody guide me ??

    sb92075 wrote:
    sunil_dba wrote:
    I am having problem using / inside the anonymous block...anonymous blocks begin with
    DECLARE
    which posted code seems to be lackingOr also a BEGIN if no variables, constants or user types are declared.

  • Can't get the [Inspectable] tag to work

    Hello there. I'm having a nightmare trying to get metadata
    tags to do what I expect them to. I've used the following code to
    define a variable in a custom MXML component, (in the proper place
    in the script tag of course)
    quote:
    [Inspectable(name="Test Value",defaultValue="false")]
    public var myValue:Boolean;
    Correct me if I'm wrong, but I'd expect to see an entry named
    "Test Value" in the flex builder property inspector with a default
    value of "false". This is not what I'm getting. On adding the
    custom component to my application the variable in question is
    listed as "myVar" in the property inspector and there is no value
    assigned to it at all.
    I'm having this problem even when cutting and pasting the
    example code for metatag usage from the help docs. I've tried
    downloading program updates with no luck. Am I missunderstanding
    what's happening here? Does the component need to be pre-compiled
    in some way before the metatags take effect? If so can you point me
    in the right direction in the documentation so I can do this?
    Any help would be greatly appreciated. This is one of those
    silly littly problems that's driving me round the bend.

    Password for what?

  • How disable JSF2 edit my script tag?

    I am using jsf2. Problem is the script tag being edited to append closing script tag. It cause the jquery not work(I also not sure why but it does not work when i come with closing tag). How to disable jsf to format my script tag?
    original
    <script src="/jquery/menu/demo/jquery.dimensions.min.js"/>
    output
    <script src="/jquery/menu/demo/jquery.dimensions.min.js"><!--
    //--></script>

    am not sure, try with this
    <script src="/jquery/menu/demo/jquery.dimensions.min.js" type="text/javascript" > </script>

Maybe you are looking for