- Code Rewriting (closing IMG tags)

Under "Code Rewriting" in the preferences, I have "fix
unclosed tags"
checked... however, everytime I open a document, DW warns me
that all my IMG
tags are unclosed.
Why isn't it closing them? I keep formatting the page but
nothing's
changing, and those popup warnings are really annoying.

I was typing waaay to fast.
Why would XHTML page in DW NOT automatically close the image
tags?
"Murray *ACE*" <[email protected]> wrote
in message
news:[email protected]...
>> join
>
> Thank you, no....
>
>> Why would XHTML automatically close the image tags?
>
> XHTML requires that <img> be written as
<img/> or more commonly, <img />
> On an XHTML doctype page that contains <img> tags,
you will get that
> warning.
>
> --
> Murray --- ICQ 71997575
> Adobe Community Expert
> (If you *MUST* email me, don't LAUGH when you do so!)
> ==================
>
http://www.dreamweavermx-templates.com
- Template Triage!
>
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
>
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
>
http://www.macromedia.com/support/search/
- Macromedia (MM) Technotes
> ==================
>
>
> "crash" <[email protected]> wrote in message
> news:[email protected]...
>> Murray-
>>
>> Why would XHTML automatically close the image tags?
>>
>> join
>>
>> "Murray *ACE*"
<[email protected]> wrote in message
>> news:[email protected]...
>>> You are using an XHTML doctype. Try changing to
HTML 4.01 transitional.
>>>
>>> --
>>> Murray --- ICQ 71997575
>>> Adobe Community Expert
>>> (If you *MUST* email me, don't LAUGH when you do
so!)
>>> ==================
>>>
http://www.dreamweavermx-templates.com
- Template Triage!
>>>
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
>>>
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
>>>
http://www.macromedia.com/support/search/
- Macromedia (MM) Technotes
>>> ==================
>>>
>>>
>>> "Reese" <[email protected]> wrote in message
>>> news:[email protected]...
>>>> Under "Code Rewriting" in the preferences, I
have "fix unclosed tags"
>>>> checked... however, everytime I open a
document, DW warns me that all
>>>> my IMG tags are unclosed.
>>>>
>>>> Why isn't it closing them? I keep formatting
the page but nothing's
>>>> changing, and those popup warnings are
really annoying.
>>>>
>>>
>>>
>>
>>
>
>

Similar Messages

  • Help! BC-Muse : Custom Code before closing Body tag

    I have a  project that is ongoing am constantly updating and publishing from Muse. I also have a custom code that is inserted before the closing body tag that I can't place in Muse (Because the feature is not supported). Every time I publish in Muse I lose this code because Muse will override the page always. So I have to go the code section in BC for the page and reinsert the code. This is giving me headache and stress on my back and sight.
    How can I permanently place  this code before the closing body tag once without the stress mentioned earlier and without Muse re-writing the code for that specific page (I used to think Muse publish edited pages and not the entire site, even when the option to publish 'only modified pages is selected'). Please HELP!

    Thanks Zak, this is the code:
      <script>
    $('#pdropdown').change( function() {
    $('#pdetails>*:not(.hide)').toggleClass('hide');
    var optionVal = $(this).val();
    $('#'+optionVal+'.hide').toggleClass('hide');
    </script>
    I have a web app that loads product list into a dropdown list. (How I wish we had a dropdown list form in Muse that can work with BC web app or a drop down list that can be use to target a specific  widget ID.) Maybe its time Muse widgets have ID so we can target them to appear by fading in, sliding in, etc.)

  • Code above closing body tag.

    Hi,
    How do I add a code in Muse that should be placed directly above the closing <body> tag?

    You can insert your custom HTML through Object -> Insert HTML option, then once it populates, drag it to the bottom corner in Design mode. The code may not place exactly above the closing body tag but above "JS includes" and shouldn't really affect the functionality of your custom HTML. Can you try it out?
    Thanks,
    Vinayak

  • Img tag in TextField : a nightmare ?

    After reading of the documentation about Flash TextField
    class (used by Label and Text), I was expected a lot of this
    component, especially about the
    img tag.
    I spent a lot of hours trying to make it working as the doc
    says. Each time I have runtime errors.
    Using link to jpeg or png files I have Error #1034 (I comment
    a "resolve" bug in the JIRA adobe bug system).
    Then I try to embed images with a link identifier to a
    movieclip symbol (seams to be the only way to use embedded images).
    After spending a long time to understand what that was meaning
    (just ONE example should have save half day of work !!! may be the
    Adobe guy should be advised that not all the Flex developpers comes
    from Flash !), I was abled to use a swf file made with fresh
    downloaded Flash CS3.
    But that time if the first assignment to htmlText property is
    ok, when I change the value I have error #2025 (DisplayObject must
    be a child of the caller - translate from french).
    So I am quite disappointed about Flex choice today...
    I was abled to add a support for the missing <table>
    tag but I don't know how to easily rewrite a complete TextField
    which can insert images (embedded in swf).
    If anybody has success with images in TextField, let me know
    Thanks.

    I've had the same problem. Using an img tag in a dynamically
    generated text field does not work the same published for AIR as it
    does published for Flash Player. If I use a relative path for the
    image or the class name of a symbol in the library in Flash it
    works perfectly, but neither work if the same code is published for
    AIR. Is there a solution to this that anyone knows of?
    Here's an example:
    var optionFont:Font = new UniversBold();
    var optionFormat = new TextFormat();
    optionFormat.color = 0x27318b;
    optionFormat.bold = true;
    optionFormat.size = 38;
    optionFormat.font = optionFont.fontName;
    var field:TextField = new TextField();
    field.embedFonts = true;
    field.autoSize = TextFieldAutoSize.LEFT;
    field.defaultTextFormat = optionFormat;
    field.selectable = false;
    field.htmlText = "Hi There <img src='GTE38'> Hi There";
    field.wordWrap = true;
    field.width = 200;
    addChild( field );
    UniversBold and GTE38 are classes in the library. This works
    when published for Flash, but if republished for AIR, the image
    does not show up.

  • IMG tag and XML syntax

    Hi,
    I want to dynamically embed image url into the IMG tag as follows:
    <jsp:useBean id="image" scope="request" class="mybeans.ImageBean" type="mybeans.ImageBean" />
    <img src='<jsp:getProperty name="image" property="imagePath"/>'    />The problem arises because of confusion with closing/opening tags getting mixed up.. How do I get this code to work if i'm using xml syntax in my jsp pages? Any solutions?
    P.

    It would be complaining about using a tag as an attribute to another tag.
    ie nesting a tag within the tag, rather than between open/close tags for it.
    Solution? Don't nest tags like this. I'm figuring you have to use an expression of some sort.
    either <img src='<%= image.getImagePath %>'/>
    or using EL in a JSP2.0 container:
    <img src='${image.imagePath}'/>
    I can't say I have done strict xml stuff, so I might be a little off, but thats the general idea.
    Hope this helps,
    evnafets

  • DOM parser Detecting Closing Element Tag

    hi all,
    Is it possible to detect the closing element tag for following XML code.
    <seq>
    <par>
    <img...>
    <img..>
    </par>
    <img ...>
    </seq>
    I want to detect closing </seq> & </par> elements Nodes.
    Thanks in advance,
    Regards,
    -Harshad

    No, DOM parsers deal with elements and not "tags". It's much easier to do what you ask with a SAX parser. See Chapter 6 of the tutorial:
    http://java.sun.com/webservices/docs/1.1/tutorial/doc/index.html

  • XSLT problem with img tag in Saxon

    Hi,
    Iam getting a problem with <img> tag when transforming a document using Saxon transformer. In the input XSLT I have proper closing tag for <img>, but the output of the transformation is not well formed as the closing tag for <img> does not appear. I need to feed the output to a FO object to generate a print preview, but the output is not well-formed.
    Kindly help to resolve the issue.
    Kind Regards,
    Abhinandan

    Perhaps that is because you are generating HTML as your output? As I recall, <img> tags don't have to be closed in HTML. So try generating XML instead if you need XML.

  • IE problem with img tag calling stored procedure

    I have an img tag in my JSP which looks like this (it has a very long src value):
    <img src="http://www.enetrix.com/cores/net_charts.display_temp_chart?vChartDef_in=ChartType%20=%20DIALCHART;Chart
    . . . and so on and so on . . .
    26,%2075.0);&vChartType_in=PNG&vChartURL_in=http://333.333.33.333/j2ee/servlet/chart"/>
    In short, the img calls a stored procedure and passes it a servlet among many other things. The procedure passes back an image to the browser.
    The image shows up in Firefox but not IE 7. I don't think its an issue with the stored procedure but I can't understand why IE doesn't show the image. Is there something I'm missing? I've tried both jpeg and png.
    Thanks
    Eric

    As the related posts suggest, you will need to use direct JDBC code for this.
    Also I'm not sure JDBC supports the RECORD type, so you may need to wrap your stored functions with ones that either flatten the record out, or take OBJECT types.

  • Generate image with CFIMAGE - but need to use img tag to serve the content

    I create a new image with cfimage, that already works without
    any problems.
    But instead of using the action="writetobrowser" I need to be
    able to use the script inside a img tag:
    Example: <img
    src="myscript.cfm?somedata=iwanttheimagetocreate>
    I found one webpage that deals with that problem (
    http://www.webdevelopernews.com/2007/09/14/serving-up-cfimages-via-image-tags/)
    but the image served to the browser, when using the code below, is
    of a very low quality and another point is that you can't serve
    .gif's to the browser.
    <cfcontent type="image/jpg"
    variable="#ImageGetBlob(backgroundimage)#">
    Any suggestions/solutions?
    Thanks,
    Phil

    In that entry Raymond mentions:
    "The WriteToBrowser action actually generates HTML that points
    to a ‘magic’ URL to serve the image.". ie <img
    src="/CFFileServlet/_cf_image/_cfimg-12345036853711072.PNG" alt=""
    />
    Perhaps you could create a function that captures the
    generated html by using <cfsavecontent>.
    <cfsavecontent variable="imageTagHTML">
    <cfimage action="writeToBrower" ..>
    </cfsavecontent>
    Then uses a regular expression to extract and return the url
    portion only. ie
    "/CFFileServlet/_cf_image/_cfimg-12345036853711072.PNG"
    <cfset ExtractedURLHere = SomeFunction(arguments...)>
    <cfoutput><img
    src="#ExtractedURLHere#"></cfoutput>
    Though you could also use the entire html string directly
    <cfoutput>#imageTagHTML#</cfoutput>

  • Img Tag in textfield adobe air problem help :(

    Hi there,
    i ve got a textfield on the stage and wanted to give it a img
    tag.
    If i am using flash 9 in publishing, it is no problem.
    if i change to adobe air. There is no img in the textfield.
    Is this a bug???

    I've had the same problem. Using an img tag in a dynamically
    generated text field does not work the same published for AIR as it
    does published for Flash Player. If I use a relative path for the
    image or the class name of a symbol in the library in Flash it
    works perfectly, but neither work if the same code is published for
    AIR. Is there a solution to this that anyone knows of?
    Here's an example:
    var optionFont:Font = new UniversBold();
    var optionFormat = new TextFormat();
    optionFormat.color = 0x27318b;
    optionFormat.bold = true;
    optionFormat.size = 38;
    optionFormat.font = optionFont.fontName;
    var field:TextField = new TextField();
    field.embedFonts = true;
    field.autoSize = TextFieldAutoSize.LEFT;
    field.defaultTextFormat = optionFormat;
    field.selectable = false;
    field.htmlText = "Hi There <img src='GTE38'> Hi There";
    field.wordWrap = true;
    field.width = 200;
    addChild( field );
    UniversBold and GTE38 are classes in the library. This works
    when published for Flash, but if republished for AIR, the image
    does not show up.

  • Missing closing paragraph tags

    Well this is a conundrum. The closing paragraph tag (i.e.
    </p>) which is considered optional and which Dreamweaver does
    not automatically insert at the end of a paragraph makes a
    difference to Internet Explorer (at least version 7.0 which I
    previewed the page in). Without the closing tag, IE does not add
    space btw paragraphs. I created many web pages recently and
    previewed everything in Firefox. I wasn't sure what the client was
    talking about when they complained that I was removing spaces btw
    paragraphs. I had to go back by hand and insert the missing tags.
    Has anyone else run into this problem? Why would a tag that
    is so essential be considered optional? Any way just make sure that
    you close your paragraphs!
    Tom

    > Here is the doctype code from one of the problem
    documents
    > <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01
    Transitional//EN"
    > "
    http://www.w3.org/TR/html4/loose.dtd">
    >
    > (Is there a recommendation for which doctype to use?)
    You should choose a doctype that's consistent with your
    coding ability.
    This one is fine unless you are an advanced coder.
    > This seems like a loophole that Dreamweaver should try
    to fix. I only say
    > this
    > after having spent several hours having to fix this.
    Normally it wouldn't
    > bother me.
    I have confirmed your finding. I'll submit it. Wouldn't hurt
    if you did
    too!
    http://www.adobe.com/cfusion/mmform/index.cfm?name=wishform
    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
    ==================
    "TSemmes" <[email protected]> wrote in
    message
    news:gqr5lv$5s6$[email protected]..
    > Here is the doctype code from one of the problem
    documents
    > <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01
    Transitional//EN"
    > "
    http://www.w3.org/TR/html4/loose.dtd">
    >
    > (Is there a recommendation for which doctype to use?)
    >
    > Actually I did a test with Dreamweaver to see if it
    would automatically
    > add
    > the closing tag.
    > This is what I found.
    > If the text that is being editing does not have a
    paragraph closing tag,
    > when
    > that text is broken into paragraphs, each paragraph does
    not have a
    > closing
    > tag. It seems that Dreamweaver picks up its decision to
    include a closing
    > tag
    > or not, by the paragraph that is already there.
    >
    > This seems like a loophole that Dreamweaver should try
    to fix. I only say
    > this
    > after having spent several hours having to fix this.
    Normally it wouldn't
    > bother me.
    >
    > Tom
    >

  • Title in img tag

    I wish there was a field for title in the img tag like there
    is for the alt. As it is, when I want to put a title on an image, I
    have to do it in the code view.
    For those who don't know, the title tag will create a
    "tooltip" when someone hovers over an image, either in IE or
    FireFox. Works well, and better than using the "alt" for a tooltip.
    I'd rather use "alt" for a description of the image for screen
    readers.

    Tag inspector panel has it.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "Malcolm N_" <[email protected]> wrote in message
    news:[email protected]..
    > On Thu, 19 Jul 2007 18:20:30 +0000 (UTC), "typist"
    > <[email protected]> wrote:
    >
    >>Well, I have to admit I hand code quite a bit,
    Michael. But I insert
    >>pictures
    >>using design view because it will include the height
    and width for me.
    >>
    >
    >
    > Well if you hand code the
    > img src="/img/test.jpg" alt="test" />
    > that's fine
    >
    > If you then select the above code in code view - go to
    the properties
    > panel - click on the W ( width ) and H ( height )
    letters - DW puts in
    > the width and height info for you :-)
    >
    > I only discovered this by accident after using DW for
    about 6 years !
    >
    > Not sure how to add the title in a similar way - I agree
    the
    > properties panel should have it.
    >
    >
    >
    > --
    >
    > ~Malcolm N....
    > ~

  • Using img tag with htmlText

    I'm trying to display images within mx:Text components using htmlText.  However, no matter what I try, I can't get an image to display.  The application just displays whitespace where the <img> tag is.  My current code looks something like:
                <mx:Text id="test_html" width="100%" height="100%">
                    <mx:htmlText>
                        <![CDATA[
                            <p>Why can't I include an image =(</p><img src='assets/add_icon.gif' width='20' height='20' align='left' hspace='10' vspace='10' />
                        ]]>
                    </mx:htmlText>
                </mx:Text>
    What I get displayed when I view this is:
    I've tried essentially every permutation that I can think of -- setting the htmlText in actionScript, using all different paths (app:/assets/add_icon.gif, ../assets/add_icon.gif, add_icon.gif, embedding the image and using {<classname>.addIcon}).  I have other images embedded in the application using the path "../assets/<image file>" and they work fine (they're not being used in htmlText).
    Has anyone had this kind of trouble before?  Any idea what might be going wrong?

    does anybody know anything? how long do i need to wait to see
    if someone replies? I just need to know if it is possible or not.

  • How to pass src value into img tag in ADF

    Hi,
    My Dev : 11.1.2.3.0
    How to pass row values into <img> tag.,I used the below code but it's taking empty.,
    I tried both ways like #{row.CdFilePath}   and   ${row.CdFilePath}
    <af:iterator var="row"
                      value="#{bindings.xxx.collectionModel}"
                     id="i2">
         <img src='/ShowImage?src=#{row.CdFilePath}' border='0' style="width:100px; height:100px; margin:5px;"/>
    </af:iterator>
    Please tell me any other option is there..
    Thanks

    This works if you use a normal table so I guess it should work here too.
    Are you sure the el #{row.CdFilePath} return something?
    Why don't you use the adf image tag <af:image source="/ShowImage?src=#{row.CdFilePath}".../> instead of the html img tag?
    Should the src property not be enclosed with " instead of your '?
    Timo

  • Non-closing PHP tags in includes?

    Hi,
    This post is directly targetted at David Powers, who is often here (but, of course, could interest others)...
    I'm currently reading the book "Adobe Dreamweaver CS5 with PHP Training From The Source" and I just came accross a strange affirmation:
    on page 184, in the "Why the Next Page Doesn't Always Load" sidebar, in the third bullet you state: "If the include file contains only PHP code, remove the closing PHP tag. This is not only legitimate, it's the recommended best practice."... jaw dropping... I've never seen that...
    I need more explanations... Why would it be recommended? Wouldn't it break the code (particularly PHP) since there's an opening tag but not a closing one? That means that we could have a lot of opening tags without closing tags? Why would it be different from the code that is "inside" the page, for as far as I know it, includes "include" the code into the page "before running it"? So, doesn't PHP "sees" the same thing whether the code is "embed" in the page or included via the include statement?
    Lot of questions, but I need more details, 'cause I'm not sure a Google research on that topic would give me any results...
    Nelson

    Nate has already given you the explanation. If you want the chapter and verse, take a look at the following page in the PHP Manual: http://docs.php.net/manual/en/language.basic-syntax.instruction-separation.php. It says in part:
    "The closing tag of a PHP block at the end of a file is optional,  and in some cases omitting it is helpful when using include() or require(), so unwanted whitespace will  not occur at the end of files, and you will still be able to add  headers to the response later. It is also handy if you use output buffering, and would not like to see added unwanted whitespace  at the end of the parts generated by the included files."
    The Zend Framework Coding Standard for PHP goes much further on the the following page: http://framework.zend.com/manual/en/coding-standard.php-file-formatting.html
    "For files that contain only PHP code, the closing tag ("?>") is  never permitted. It is not required by PHP and omitting it  prevents the accidental injection of trailing white space into the response."
    The "never permitted" applies only to files being submitted to the Zend Framework.
    If anything comes after the PHP code in a file, you must use the closing tag. It's only when the file ends with PHP that you can omit it.

Maybe you are looking for

  • Unable to open Web analysis

    We recently installed Web Analysis 9.3.1 and have not been able to successfully open it. When we select the Web Analysis URL the initial Web analysis Studio appears with a "session in progress" message. Shortly thereafter a new window opens and it is

  • Dump at RFC Call - CALL_FUNCTION_SIGNON_INCOMPL

    Hello Guru's, after a system copy we have the following issue. At every RFC connection in SM95 we get a dump with error CALL_FUNCTION_SIGNON_INCOMPL. The error in dev_wXX are N  RSEC: The entry with identifier /HMAC_INDEP/RFC_EXTERNAL_TICKET_4_TRUSTE

  • SAP CPS Agentless Implementation

    Dear All, we're analysing the possibility to extend our CPS implementation to other servers in our environment. We have CPS licensed for 1 process server managing SAP only processes on several SAP instances. In order not to manage agent installation

  • Delte the complete registry entries from roaming profile

    Hi, how can i delete the complete registry settings from a roaming profile user? I've got a problem with the Adobe Reader plugin, wich isn't available in the IE for this specific user. Other users are able to open PDFs within the IE 9. I've already d

  • 3 facebook in bb hub

    every since the second lat update my phone has been acting up. i now have 3 facebook in the bb hub. how do i only have one in there. i have a q10