W3C validator and scripts inside body

Hi all
I'm just wondering if placing <script ...
></script>
inside the body tag is considered invalid html (transitional
4.01) ?
I tried to validate a page and got dozens of errors that all
point to things like:
Line 37, Column 83: end tag for element "I" which is not
open:
... your extension is</i> '+ext+'</p>';
the html supposedly invalid is actually part of a javascript
string in a js function. I don't
understand how the validator thinks I am closing tags that I
did not open. It's open somwehere else
in the javascript function... And why does the validator try
to validate html that's inside
javascript functions?
The validator however does NOT mention anything about the
javascript being inside the body tag and
not in the head.
So I'm wondering what is going on.
seb (@webtrans1.com)
high-end web design:
http://webtrans1.com
Sign-up for a free beta test of SiteLander, an ingenious
website-builder:
http://webtrans1.com/sitelander/
music:
http://myspace.com/popmodelberlin

Change this -
var newHtml = '<p style="color:red"><i>Sorry,
this file type is not
supported:</i> '+ext+'</p>';
to this -
var newHtml = '<p style="color:red"><i>Sorry,
this file type is not
supported:<' + '/i> '+ext+'<' + '/p>';
so that the closing tags are broken apart.
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
==================
"(_seb_)" <[email protected]> wrote in message
news:[email protected]...
> Murray *ACE* wrote:
>>> I'm just wondering if placing <script ...
></script>
>>> inside the body tag is considered invalid html
(transitional 4.01) ?
>>
>> It's not.
>>
>>> Line 37, Column 83: end tag for element "I"
which is not open:
>>> ... your extension is</i>
'+ext+'</p>';
>>
>> You have to be devious. Can you show us the whole
function?
>>
>
> here's the whole function -but I don't see how html
inside javascript can
> be relevant to the validator!
>
> <script type="text/javascript">
> function updateGall(){// UPDATE IMAGE, CAPTION, AND
NAVIGATION, DEPENDING
> ON filenum
> var extar=files[filenum].split(".");
> var ext=extar[extar.length-1];
> if(/^(jpe?g|gif|png)$/i.test(ext)){
> var newHtml = '<img src="'+files[filenum]+'" alt=""
id="mainImg">';
> }else if(/^(mov|mpe?g|avi)$/i.test(ext)){
> var newHtml = '<OBJECT
> CLASSID="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B"
WIDTH="320"
> HEIGHT="256" CODEBASE="
http://www.apple.com/qtactivex/qtplugin.cab"><PARAM
> name="SRC" VALUE="'+files[filenum]+'"><PARAM
name="SCALE"
> VALUE="aspect"><embed src="'+files[filenum]+'"
width="320" height="256"
> scale="aspect"></embed></OBJECT>';
> }else{
> var newHtml = '<p
style="color:red"><i>Sorry, this file type is not
> supported:</i> '+ext+'</p>';
> }
> getId("fileDisplay").innerHTML=newHtml;
> var o=getId("gallNav").getElementsByTagName("a");
> for(var
> i=0;i<o.length;i++){if(i==filenum){o
.className="selected";}else{o.className="bla";}}
> // image file without extension:
> getId("caption").innerHTML=captions[filenum];
> }
> </script>
>
> The validator chokes on all the closing html tags
> (</object>,</embed>,</p>,</i>)
in this function, because these tags were
> supposeldy never opened.
>
> ?...
>
> the actual page is here:
>
http://www.webtrans1.com/downloads/demos/image_gallery.php
>
> --
> seb (@webtrans1.com)
>
> high-end web design:
http://webtrans1.com
>
> Sign-up for a free beta test of SiteLander, an ingenious
website-builder:
>
http://webtrans1.com/sitelander/
>
> music:
http://myspace.com/popmodelberlin

Similar Messages

  • XML Validation using java for SQL Injection and script validation

    I have an input coming from xml file.
    I have to read that input and validate the input against sql injections and scripts.
    I require help now how to read this xml data and validate against the above two options.
    I am a java developer.
    in this context what is marshelling?

    http://www.ibm.com/developerworks/library/x-javaxmlvalidapi.html?ca=dgr-lnxw07Java-XML-Val
    http://java.sun.com/j2se/1.5.0/docs/api/javax/xml/validation/package-summary.html
    The following code validates the xml against a xml schema
    // define the type of schema - we use W3C:
    String schemaLang = "http://www.w3.org/2001/XMLSchema";
    SchemaFactory factory = SchemaFactory.newInstance(schemaLang);
    Schema schema = factory.newSchema(new StreamSource("sample.xsd"));
    Validator validator = schema.newValidator();
    // at last perform validation:
    validator.validate(new StreamSource("sample.xml"));Message was edited by:
    haishai

  • W3C CSS and Markup Validation Service

    I just finished my first CSS Web site using PhotoShop, Fireworks, Flash and Dreamweaver.  I did the site from the ground up, the visual way according to some tutorials I found that are uploaded at the Adobe Media Player server.  The site checks out with zero errors using the CSS and Markup W3C Validation Services. The design holds together at http://browsershots.org/ in 75+ different browsers.
    Just for fun, I checked out Adobe's, Apple's, Maximum PC's and Tom's Hardware Guide's homepages using W3C's Validation Services.  All of these sites had between 80 and 339 errors per page tested.
    Question:
    Are these errors reported because of some proprietary coding used on the pages that the W3C Page Validator is not equipped to evaluate?
    Or, are these reported errors accurate, because the pages get messed up over time because multitudes of folks are constantly making changes, and introducing errors?

    Are these errors reported because of some proprietary coding used on the pages that the W3C Page Validator is not equipped to evaluate?
    Or, are these reported errors accurate, because the pages get messed up over time because multitudes of folks are constantly making changes, and introducing errors?
    It's a little of both. It's also the result of a cost/benefit analysis by the producing bean counters, I think.  If the page will display OK without taking the extra time to code properly then why do it?  I would also imagine that there is quite a bit of legacy code involved. 
    The websites to look at are those of the folks who talk the talk....
    My personal ethic and workflow prevent me from taking such a cavalier approach.

  • EBS validation and healthcheck scripts

    I'm needing to perform validation and health check on an eBS environment (both tiers)
    I was thinking about this one :
    bde_chk_cbo.sql - EBS initialization parameters - Healthcheck (Doc ID 174605.1)
    But I know there are other ones, like patchsets.sh (now via OAM), and that one report that lists details on gathering of statistics on objects.
    That one, I can't recall the name, and I would like to get the name again. It's a non-eBS exclusive one, I thought.
    But if there are other ones, can you let me know which ones I'm missing ?
    Thanks,
    Tony

    Tony,
    Please search the forum and you should get many hits -- https://community.oracle.com/search.jspa?q=Health+Check+E-Business+Suite
    https://community.oracle.com/message/10991273
    https://community.oracle.com/message/4392384
    https://community.oracle.com/message/3499002
    There are many health check tests/scripts available in (Diagnostic Test Catalog for 12.1.3 and Above (Doc ID 1083807.1)).
    Thanks,
    Hussein

  • W3c valid site, initially no error reported by developer toolbar. But upon right click (giving the validation menue), the the toolbar reports two errors: width and height. Despite the fact that every page is validated! On the forum for the toolbar, this i

    w3c valid site, initially no error reported by developer toolbar. But upon right click (giving the validation menue), the the toolbar reports two errors: width and height. Despite the fact that every page is validated! On the forum for the toolbar, this is said to be a Browser error. So, how can this be fixed? I'm using FF 3.6.6
    == This happened ==
    Every time Firefox opened
    == after update from 3.5?

    Hi Sara,
    Can you give us the URL of the page you're having problems with and of the forum thread you mentioned?
    Thanks!

  • XHTML Validation and Accessibility

    We've recently completed developing some Application Express systems for a customer, and they were disappointed the pages did not pass W3C XHTML validation to meet their accessibility targets.
    I've had the chance to do a bit of a post-mortem and nailed some issues that were down to our templates. I've also noted some previous threads here (notably Re: Validation!!! and Re: HTML DB and Accessibility (AA-Compliance) and look forward to resolution of markup validation issues in future releases. In the meantime, here are the most frequent problems we encountered. I'd appreciate any explanations, and any suggestions on how to improve matters in the short term.
    INVALID ENTITIES
    The majority of the validation errors are like:
    Cannot generate system identifier for general entity "p_fname"
    General entity "p_fname" not defined and no default entity
    Reference not terminated by REFC delimiter
    Reference to external entity in attribute value
    Reference to entity "p_fname" for which no system identifier could be generated
    Entity was defined here
    Where the App Ex engine is generating internal URLs and not escaping ampersands, that are then interpreted by the validator as forming part of an entity. This isn't disastrous, but an early fix in a future release would be welcome as it would reduce the number of errors and make it easier to spot any arising from invalid template code.
    Am I right in thinking that storing CSS, images and scripts externally to App Ex would eliminate this?
    STANDARD HTML BUTTONS
    All "HTML Buttons" result in:
    Value of attribute "type" cannot be "BUTTON"; must be one of "text", "password", "checkbox", "radio", "submit", "reset", "file", "hidden", "image", "button"                    
    There is no attribute "onClick"                         
    End tag for "input" omitted, but OMITTAG NO was specified
    Where the engine is generating an attribute value in uppercase and attribute names in camel-hump case instead of all lowercase. We can work round this by creating an "HTML Button" template with valid attributes and values.
    ITEM LABEL
    Reference to non-existent ID "P1_DATASET_CATEGORIES"
    Where the label is the overall label for a checkbox item with multiple checkboxes, all of which have their own valid label. Should the engine include the checkbox item as a hidden item? Can we work round this by doing that manually, e.g. in Post Element Text?
    HEADERS
    Reference to non-existent ID "GV_VALUE"
    Where a report has report has Headings Type "None" and hence no &lt;th&gt;s for headers attributes to refer to. Is there a workaround for this?
    REPORT BREAK FORMATTING
    End tag for "br" omitted, but OMITTAG NO was specified
    &lt;br&gt; tags inserted by break processing within the engine are not terminated " /&gt;". This is not controllable by any template (that I am aware of) - anything that can be done?
    TEXT FIELDS
    This is rather puzzling, as it seems to be random: items on some pages are affected, those on others are not. Anyone have an explanation?
    There is no attribute "TYPE"
    There is no attribute "NAME"
    There is no attribute "SIZE"
    There is no attribute "MAXLENGTH"
    There is no attribute "VALUE"
    There is no attribute "id"
    Element "INPUT" undefined
    End tag for "INPUT" omitted, but OMITTAG NO was specified
    Reference to non-existent ID "P5_ENTRIES_DISPLAYED"
    Where the engine is generating an element and attribute names in uppercase instead of all lowercase. From earlier threads, I'm presuming nothing can be done at present.
    HYPERLINK
    There is no attribute "HREF"
    Element "A" undefined
    As above: element and attribute names in uppercase instead of all lowercase.
    TABLE HEADING/DATA ALIGNMENT
    Value of attribute "align" cannot be "LEFT"; must be one of "left", "center", "right", "justify", "char"
    Attribute value generated in uppercase. Any workaround?
    REPORT SORT ARROW
    End tag for "img" omitted, but OMITTAG NO was specified
    Sort arrow &lt;img&gt; element not terminated " /&gt;". Any workaround? (Or can this be suppressed completely/replaced?)

    Hello,
    Most of your issues are things we are aware of and hope to get fixed in 3.0 as they are produced from an engine specifically using htf package to render elements which we will be changing. Unfortunatly with most of those issues I see there I don't think you can do much.
    I doubt the html the engines produce will pass xhtml strict in 3.0 but we will pass xhtml transitional (other than maybe urls in links) with a custom DTD that takes into account things we output in our namespace.
    Carl

  • Problems producing W3C-valid template-built pages

    Folks:
    DW CS3 on Intel Mac
    CMX Design-Time Extension
    I would like my site to pass the W3C markup validator,
    http://validator.w3.org/.
    My site design is straightforward: I've got a single
    custom-built template page, "index.php" for the layout of my site.
    There's no content in this file. The header of this file contains a
    link to my site's single master CSS style-sheet.
    All content comes from one of over 100 html "contact-chunk"
    files, each of which contains only "bare" HTML, no header or
    trailer material at all, no <!DOCTYPE...> nor <html>
    ... <head> ... </head> ... <body> ..
    </body> stuff at all. One of these contact-chunk files is
    included at each page-load. The details are not important.
    Wait, I lied: Each of those contact-chunk files contains a
    bare link to the site's master CSS style-sheet, like this:
    <link href="/TheMasterStyleSheet.css" rel="stylesheet"
    type="text/css">
    "Bare", meaning NOT enclosed by <head> ...
    </head> or anything else. DW requires just the link so it can
    detect the site-wide style-sheet and let me apply styles from it to
    the "content-chunk" files.
    When complete pages are served to clients, that extra link
    would ordinarily mean the browser would see two different external
    style-sheet links from the composite page at load-time, which is is
    not allowed. This is in fact flagged as an error by W3C validator.
    There is no sense in giving browsers known-invalid code! It
    makes total sense to me that links to external styles-sheets need
    to occur just once,in the header of such composites as they are
    seen by browsers. It also makes sense to me that the contact chunk
    files could not contain <html> ... <head> ...
    </head> ... <body> .. </body> tags because these
    would be nested within the <body>... </body? structure in
    the template page. Confusion!
    Thanks to the DW designers, there's a way to avoid sending
    the second style-sheet link: DW's Design-Time Style-Sheet mechanism
    allows me declare specific style-sheet links as Design-Time ONLY;
    the specified links are stripped before the files are uploaded. DW
    CS3 supports only page-by-page declarations, But with the
    minimal-cost "CMX Design-time" extension (
    http://www.communitymx.com/abstract.cfm?CID=61265)
    added, I can make these declarations on a site-wide basis. Cool!
    All the above seems quite reasonable and how-it-must-be for
    template-include designs. However,I have found two problems:
    1. The Design-Time Style Sheet Mechanism works unpredictably
    When I tell the CMX Design-time Extension to exclude my
    master CSS style-sheet link from all .html files, site-wide, it
    apparently does what it is required to make this happen: it creates
    .mno files in _notes folders corresponding to all .html files in
    the source tree. (The only files with .html extensions in my source
    tree are such content-chunk files.) Without the extension, I'd end
    up with identical files after manually applying Text--> CSS
    Styles -->Design-Time individually to all the content-chunk
    files.
    I did have some successful test runs on individual content
    chunk files, so I know the Design-Time Mechanism is fundamentally
    sound.
    Yes, I am certain I re-PUT all the .html files to the server
    to allow the specified CSS link in each to be stripped. There is
    only one external style-sheet, and I'm certain I specified that
    one. Yes, I looked in the DW and extension documentation for
    additional information.
    2. This Design-Time Style Sheet mechanism is completely
    ineffective for embedded styles in content-chunk files..
    I think embedded styles are completely legal, and make
    perfect sense when particular styles are needed only for one source
    file. A few of my contact-chunk files contain these.
    My questions:
    Question 1: How to assure that the DW Design-Time mechanism
    is activated and works consistently? Or how to debug it? What
    exactly should appear in the _notes/*.mno files?
    Question 2: Assuming both my development machine and the
    server are running Unix, is there any downside to picking a
    distinctive extension for content-chunk files? Any standard? How
    about ".ihtml" e.g., "foo.ihtml"?
    Question 3: Is there any alternative that preserves embedded
    styles in my design? (I think it is inevitable that I'll need to
    move my local styles to the master CSS style-sheet or use in-line
    styles. I'm just checking in case I've missed a clever
    alternative.)
    Question 4: I'm doing a lot of work to make this design work
    with site-wide CSS, and each time I solve one issue, another one
    pops up. In my experience, that pattern either means I'm trying to
    use a subtle, complex mechanism, which simply takes a while to get
    right. Or that I've committed a fundamental design error, and
    there's possibly a much easier way to accomplish the same result.
    Which?
    TIA,
    Henry
    TIA,
    Henry

    > "Bare", meaning NOT enclosed by <head> ...
    </head> or anything else.
    > DW
    > requires just the link so it can detect the site-wide
    style-sheet and let
    > me
    > apply styles from it to the "content-chunk" files.
    Won't work. The chunks are going in the body. Links to
    stylesheets in the
    body are invalid HTML and ignored by the browsers.
    > When complete pages are served to clients, that extra
    link would
    > ordinarily
    > mean the browser would see two different external
    style-sheet links from
    > the
    > composite page at load-time, which is is not allowed.
    This is in fact
    > flagged
    > as an error by W3C validator.
    This makes no sense. A page can have oodles of links to
    external
    stylesheets, but they must all be in the head of the page.
    > 1. The Design-Time Style Sheet Mechanism works
    unpredictably
    Perhaps it's more accurate to say that the CMX extension
    works unpredictably
    with DT Stylesheets. I've never seen an instance of DT
    stylesheets failing,
    either in my hands or in anyone else's. Your report is the
    first. I think
    CMX will have to help you with this one.
    > 2. This Design-Time Style Sheet mechanism is completely
    ineffective for
    > embedded styles in content-chunk files..
    >
    > I think embedded styles are completely legal, and make
    perfect sense when
    > particular styles are needed only for one source file. A
    few of my
    > contact-chunk files contain these.
    Nope - embedded styles are illegal in this sense.
    > Question 2: Assuming both my development machine and the
    server are
    > running
    > Unix, is there any downside to picking a distinctive
    extension for
    > content-chunk files? Any standard? How about ".ihtml"
    e.g.,
    > "foo.ihtml"?
    Nope. You could use 'monkeybutt' if you wanted. However, if
    you want DW
    to recognize that extension as containing HTML code you would
    need to
    'register' it with DW -
    http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_16410&sliceId=1
    > Question 3: Is there any alternative that preserves
    embedded styles in my
    > design? (I think it is inevitable that I'll need to move
    my local styles
    > to
    > the master CSS style-sheet or use in-line styles. I'm
    just checking in
    > case
    > I've missed a clever alternative.)
    Yes, you can give each "chunk" chunk-specific container
    names, and place the
    desired chunk-specific CSS selectors in the parent CSS.
    > Question 4: I'm doing a lot of work to make this design
    work with
    > site-wide
    > CSS, and each time I solve one issue, another one pops
    up. In my
    > experience,
    > that pattern either means I'm trying to use a subtle,
    complex mechanism,
    > which
    > simply takes a while to get right. Or that I've
    committed a fundamental
    > design
    > error, and there's possibly a much easier way to
    accomplish the same
    > result.
    > Which?
    The latter, I believe.
    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
    ==================
    "hen3ry" <[email protected]> wrote in
    message
    news:[email protected]...
    > Folks:
    >
    > DW CS3 on Intel Mac
    > CMX Design-Time Extension
    >
    > I would like my site to pass the W3C markup validator,
    >
    http://validator.w3.org/.
    >
    > My site design is straightforward: I've got a single
    custom-built
    > template
    > page, "index.php" for the layout of my site. There's no
    content in this
    > file.
    > The header of this file contains a link to my site's
    single master CSS
    > style-sheet.
    >
    > All content comes from one of over 100 html
    "contact-chunk" files, each of
    > which contains only "bare" HTML, no header or trailer
    material at all, no
    > <!DOCTYPE...> nor <html> ... <head>
    ... </head> ... <body> .. </body>
    > stuff
    > at all. One of these contact-chunk files is included at
    each page-load.
    > The
    > details are not important.
    >
    > Wait, I lied: Each of those contact-chunk files contains
    a bare link to
    > the
    > site's master CSS style-sheet, like this:
    >
    > <link href="/TheMasterStyleSheet.css"
    rel="stylesheet"
    > type="text/css">
    >
    > "Bare", meaning NOT enclosed by <head> ...
    </head> or anything else.
    > DW
    > requires just the link so it can detect the site-wide
    style-sheet and let
    > me
    > apply styles from it to the "content-chunk" files.
    >
    > When complete pages are served to clients, that extra
    link would
    > ordinarily
    > mean the browser would see two different external
    style-sheet links from
    > the
    > composite page at load-time, which is is not allowed.
    This is in fact
    > flagged
    > as an error by W3C validator.
    >
    > There is no sense in giving browsers known-invalid code!
    It makes total
    > sense to me that links to external styles-sheets need to
    occur just
    > once,in the
    > header of such composites as they are seen by browsers.
    It also makes
    > sense
    > to me that the contact chunk files could not contain
    <html> ... <head> ...
    > </head> ... <body> .. </body> tags
    because these would be nested within
    > the
    > <body>... </body? structure in the template
    page. Confusion!
    >
    > Thanks to the DW designers, there's a way to avoid
    sending the second
    > style-sheet link: DW's Design-Time Style-Sheet mechanism
    allows me
    > declare
    > specific style-sheet links as Design-Time ONLY; the
    specified links are
    > stripped before the files are uploaded. DW CS3 supports
    only page-by-page
    > declarations, But with the minimal-cost "CMX
    Design-time" extension
    > (
    http://www.communitymx.com/abstract.cfm?CID=61265)
    added, I can make
    > these
    > declarations on a site-wide basis. Cool!
    >
    > All the above seems quite reasonable and how-it-must-be
    for
    > template-include
    > designs. However,I have found two problems:
    >
    > 1. The Design-Time Style Sheet Mechanism works
    unpredictably
    >
    > When I tell the CMX Design-time Extension to exclude my
    master CSS
    > style-sheet link from all .html files, site-wide, it
    apparently does what
    > it is
    > required to make this happen: it creates .mno files in
    _notes folders
    > corresponding to all .html files in the source tree.
    (The only files with
    > .html extensions in my source tree are such
    content-chunk files.) Without
    > the
    > extension, I'd end up with identical files after
    manually applying Text-->
    > CSS
    > Styles -->Design-Time individually to all the
    content-chunk files.
    >
    > I did have some successful test runs on individual
    content chunk files, so
    > I
    > know the Design-Time Mechanism is fundamentally sound.
    >
    > Yes, I am certain I re-PUT all the .html files to the
    server to allow the
    > specified CSS link in each to be stripped. There is only
    one external
    > style-sheet, and I'm certain I specified that one. Yes,
    I looked in the DW
    > and
    > extension documentation for additional information.
    >
    >
    > 2. This Design-Time Style Sheet mechanism is completely
    ineffective for
    > embedded styles in content-chunk files..
    >
    > I think embedded styles are completely legal, and make
    perfect sense when
    > particular styles are needed only for one source file. A
    few of my
    > contact-chunk files contain these.
    >
    > My questions:
    >
    > Question 1: How to assure that the DW Design-Time
    mechanism is activated
    > and
    > works consistently? Or how to debug it? What exactly
    should appear in
    > the
    > _notes/*.mno files?
    >
    > Question 2: Assuming both my development machine and the
    server are
    > running
    > Unix, is there any downside to picking a distinctive
    extension for
    > content-chunk files? Any standard? How about ".ihtml"
    e.g.,
    > "foo.ihtml"?
    >
    > Question 3: Is there any alternative that preserves
    embedded styles in my
    > design? (I think it is inevitable that I'll need to move
    my local styles
    > to
    > the master CSS style-sheet or use in-line styles. I'm
    just checking in
    > case
    > I've missed a clever alternative.)
    >
    > Question 4: I'm doing a lot of work to make this design
    work with
    > site-wide
    > CSS, and each time I solve one issue, another one pops
    up. In my
    > experience,
    > that pattern either means I'm trying to use a subtle,
    complex mechanism,
    > which
    > simply takes a while to get right. Or that I've
    committed a fundamental
    > design
    > error, and there's possibly a much easier way to
    accomplish the same
    > result.
    > Which?
    >
    > TIA,
    >
    > Henry
    >
    > TIA,
    >
    > Henry
    >
    >

  • Why do I keep getting an error message that reads "The URL is not valid and cannot be loaded."

    Whenever I click on a link that opens a new tab using "about:tab", an error pops up. The error box is titled "Alert" and the message reads "The URL is not valid and cannot be loaded."
    However, once I click OK, the page loads just fine. At first, I thought it might be one of my add-ons (Iuse a bunch), but it still occurs after restarting in Safe Mode. Any thoughts?
    I can even create the problem without clicking on a link inside a page if I simply type about:tab in the address bar.
    I am using Firefox 12.0

    Wow! I actually solved this on my own. I didn't find any thread that helped, but after reading a few, I figured poking around in about.config would help... and it did!
    Here is how I solved the problem:
    # Typed '''about:config''' in address bar.
    # When I got to the warning about voiding the warranty, clicked '''I'll be careful, I promise!'''
    # I found the setting entitled '''browser.newtabl.url''' (use the '''Search:''' box).
    # I double-clicked on the entry entitled '''browser.newtabl.url''' and deleted the info in the value portion.
    # Clicked '''OK'''.
    # Closed the tab.
    # Restarted Firefox and problem was solved.

  • Menu problem with w3c validator

    DW CS5.5
    When I test a php page with a select menu in the w3c validator, I get the following error message on each element within it:
    The select element cannot have more than one selected option descendant unless the multiple attribute is specified. [HTML5]
    Whether selected as a menu or a list, it still appears. I was under the impression that you only select one item from a list unless you check "allow multiple" and I only need one item to be selected.
    The list or menu displays and works properly, selecting one item as required.
    Is this a validator error or is there something wrong with my DW generated code? - shown as a list in this case:

    Most containers have their own XML parsing JAR's. You do not want to normally remove these (as they parse XML deployment and configuration files). However, you can add your own XML parsing JAR files to WEB-INF/lib.
    - Saish

  • Include python script inside an app

    Hi all, I'm writing an applescript app which should use a python script.
    how can I include the script inside the apple and have it called by the applescript?
    Thank you!

    Now, is there a way to let the user choose both the output file directory and the output file name (out.iso)?
    To get the filename, add this after the code to select the directory:
    <pre style="
    font-family: Monaco, 'Courier New', Courier, monospace;
    font-size: 10px;
    font-weight: normal;
    margin: 0px;
    padding: 5px;
    border: 1px solid #000000;
    width: 720px;
    color: #000000;
    background-color: #E6E6EE;
    overflow: auto;">
    set outPutName to text returned of (display dialog "Now, please enter a filename:" default answer "out" with title "Enter Filename") & ".iso"</pre>
    But you need to remove "quoted form of the" from dirOutput.
    Also, "set dirOutput to POSIX path of the dirOut" is not needed.
    so, this should work:
    <pre style="
    font-family: Monaco, 'Courier New', Courier, monospace;
    font-size: 10px;
    font-weight: normal;
    margin: 0px;
    padding: 5px;
    border: 1px solid #000000;
    width: 720px;
    color: #000000;
    background-color: #E6E6EE;
    overflow: auto;">
    set dirOut to (POSIX path of (choose folder with prompt "Scegli la posizione in cui salvare il file convertito"))
    set outPutName to text returned of (display dialog "Now, please enter a filename:" default answer "out" with title "Enter Filename") & ".iso"
    if outPutName is ".iso" then set outPutName to "out.iso" -- simple error check for blank name
    if outPutName contains "/" then set outPutName to "out.iso" -- simple error check for bad charater in name
    set fullPathOut to quoted form of (dirOut & outPutName)
    </pre>
    Tony

  • Regular expression and Script component in SSIS 2008

    Could you please help me to write regular expression so that it can be used in script component to fetch the data from fixed width file so that the file format can be validated and loaded accordingly.
      IR-TYPE                        PIC X.
     IR-JOB                         PIC X(4).
     IR-PHASE                       PIC X(2).
     IR-CO-ID.
     IR-LVL1                        PIC X(2).
     IR-LVL2                        PIC X(2).
     IR-EMP-NBR                     PIC X(10).
     IR-CK-NBR                      PIC 9(9).
     IR-CK-DATE                     PIC X(6).
     IR-CK-AMT                      PIC S9(7)V99.
     FILLER                         PIC X(35).
    The above schema definition will be stored in regualar expression and through script component each column will be fetched and validate to verify the file format.

    I am quiet new I can provide the file layout .
    1819001HB01002582016 03009291810050200013399I
    1712001HB01004688418 03009007210050200021143I
    1712001HB01004688418 03009007310050200005950{
    Schema definition of the file
    IR-TYPE                        PIC X.
    IR-JOB                          PIC X(4).
    IR-PHASE                      PIC X(2).
    IR-CO-ID.
    IR-LVL1                        PIC X(2).
    IR-LVL2                        PIC X(2).
    IR-EMP-NBR                  PIC X(10).
    IR-CK-NBR                    PIC 9(9).
    IR-CK-DATE                  PIC X(6).
    IR-CK-AMT                   PIC S9(7)V99.
    FILLER                         PIC X(35).

  • Occurred while executing line 5 of valid BeanShell script

    Hello Everyone,
    I am a newbie to Endeca Guided Search. I had created a new Developer project.
    I updated its input source, Properties and Dimension. after doing this when i go to my application directory
    C:\apps\TestApp\control> and try to execute initialize_services.batb
    I am getting the following error.
    [06.20.12 12:15:57] SEVERE: Utility 'emgr_update_update_mgr_settings' failed. Re
    fer to utility logs in [ENDECA_CONF]/logs/shell on host ITLHost.
    Occurred while executing line 5 of valid BeanShell script:
    2|
    3| if (ConfigManager.isWebStudioEnabled()) {
    4| log.info("Updating Oracle Endeca Workbench configuration...");
    5| ConfigManager.updateWsConfig();
    6| log.info("Finished updating Oracle Endeca Workbench.");
    7| }
    8|
    [06.20.12 12:15:57] SEVERE: Caught an exception while invoking method 'run' on o
    bject 'InitialSetup'. Releasing locks.
    some one please help me solve this.
    following is the Dgraph1's configuration from AppConfig.xml
    <dgraph id="Dgraph1" host-id="MDEXHost" port="15000">
    <properties>
    <property name="restartGroup" value="A" />
    <property name="updateGroup" value="a" />
    </properties>
    <log-dir>./logs/dgraphs/Dgraph1</log-dir>
    <input-dir>./data/dgraphs/Dgraph1/dgraph_input</input-dir>
    <!-- <update-dir>./data/dgraphs/Dgraph1/dgraph_input/updates</update-dir> -->
    </dgraph>
    some one please help me solve this.

    Usually this happens when a under privileged user tries to access particular service, or folders.
    Please try
    1) Grant user access to the service account (since it is windows) if current user is not local administrator.
    2) Check out folder permissions
    3) Check your system path
    We had faced similar problems of ‘Releasing locks’ where some changes were made by "root" user and the service was expecting "endeca" user(On Linux system). The solution that worked for us was to taking ownership of the entire endeca installation directory to "endeca" user.

  • W3c validator: looking for suggestions

    Hi all,
    can anybody help me with this?
    I tried to validate the following page:
    www.giuseppeguzzardi.com
    I did this because the page was not correctly visible in
    Netscape. I solved the incompatibility problems and now it is
    visible.
    The point is that now the validator shows the following
    errors:
    http://validator.w3.org/check?uri=http%3A%2F%2Fwww.giuseppeguzzardi.com%2F&charset=%28dete ct+automatically%29&doctype=Inline&verbose=1
    Honestly I doubt that all these errors really need to be
    solved, for example the tag alt that is indicated as an error is
    related to immages that are only decorative.
    The height of the table are necessary for the visualization
    of the background immages and the same background images are
    necessary also for layout reasons.
    The thing that I really don' t know anything about is the
    doctype declaration at the very beginning of the page code.
    But the only thing I know is that if I write this
    declaration, Netscape screws up all the tables.
    Has anyone of you encountered similar problems? In how far is
    it recomendable to really consider all errors indicated by the w3c
    validator?
    Thanks a lot for any helpful suggestions,
    SuperGuz

    On 08 Mar 2007 in macromedia.dreamweaver, SuperGuz wrote:
    > Hi all,
    >
    > can anybody help me with this?
    > I tried to validate the following page:
    > www.giuseppeguzzardi.com
    >
    > I did this because the page was not correctly visible in
    Netscape. I
    > solved the incompatibility problems and now it is
    visible.
    > The point is that now the validator shows the following
    errors:
    >
    >
    http://validator.w3.org/check?uri=http%3A%2F%2Fwww.giuseppeguzzardi.c
    > om%2F&chars
    et=%28detect+automatically%29&doctype=Inline&verbose=1
    >
    > Honestly I doubt that all these errors really need to be
    solved, for
    > example the tag alt that is indicated as an error is
    related to
    > immages that are only decorative.
    Those are small, but they're easily corrected, and the alt
    attribute is
    an accessibility issue. Alt attributes are used by screen
    readers to
    help describe the page.
    > The height of the table are necessary for the
    visualization of the
    > background immages and the same background images are
    necessary also
    > for layout reasons.
    >
    > The thing that I really don' t know anything about is
    the doctype
    > declaration at the very beginning of the page code.
    http://alistapart.com/stories/doctype/
    The big deal is that if you don't have a doctype, it's
    unpredictable
    how browsers will display a page. With a doctype, browsers go
    into
    standards mode and it's fairly predictable.
    > But the only thing I know is that if I write this
    declaration,
    > Netscape screws up all the tables.
    Truth be told, Netscape is not a big consideration; I rarely
    see it in
    website stats. The browsers you should consider:
    - Internet Explorer 6
    - Firefox; I don't see much difference in page rendering
    between FF1.5
    and FF2
    - IE7
    - Safari
    Also, the rule of thumb to make your life easier is to design
    to
    FireFox, then correct any problems you see in IE.
    > Has anyone of you encountered similar problems? In how
    far is it
    > recomendable to really consider all errors indicated by
    the w3c
    > validator?
    If you understand the error and its implications, then by all
    means,
    ignore them. I personally find that correcting validation
    errors makes
    code easier to understand, debug and maintain.
    Joe Makowiec
    http://makowiec.net/
    Email:
    http://makowiec.net/email.php

  • Formguide and javascript inside a pdf

    Hello,
    I´m trying FormGuide. I realize that the behavior of the script inside an event in a pdf/template is different when the pdf is opened directly in acrobat reader or when is opened using a formguide (preview pdf).
    For instance, if I have 2 javascript alerts on the change event of a field, only the first one will be shown when the value of that field is changed in formguide.
    Another example: if at the same event I have a javascript replace funcion, when I change the field in the guideform, the event is fire as expected, but I will get an xfaxm error message...
    I thought formguide would only make a mapping between the field in the flash screen with the field on the form, but that everything else would run inside the form. However, it seems formguide is "capturing" the events and script and is running them...
    If this is true, how can I define something like a replace function?Also, How can I use floating fields in a pdf, that will be changed as some field in formguide changes?
    Thank you

    You have a number of issues that you have brought up here. This are difficult without looking at exactly what you aer doing and what script you are running. Can you post your form to [email protected]?
    I will try and answer your questions:
    The replace() is supported in Form Guides
    All script will run in the Form Guide unless you call into the PDF directly (liek when you click the buttons to email, or print)
    Floating fields are resolved at runtime and are turned into Text. They are not inetractive.
    If you are trying to get script to execute in only your guide you can use:
    if ( xfa.host.name == Flash ) {
    script to execute.
    And of course you can do the not (!=) to only execute in Reader/Acrobat.

  • h:form with W3C validation failure

    Hi gurus,
    I tried to validate my JSF page against W3C validation rules. However, each <h:form> in my page creates a hidden field as:
    "+<input type="hidden" name="javax.faces.ViewState" id="javax.faces.ViewState" value="j_id14:j_id15" />+"
    with same id and value, so as a result, i can't pass the validation.
    So could anyone has a suggestion on this problem?
    BTW, i found some threads suggest to use a "giant" h:form for the entire page, and clearly this is not the answer i am looking for.
    Thanks in advance!

    Yep, it's a known issue.
    I've attempted fixes in the RI in the past, however due to potential reliance on the presence of both
    fields for AJAX libraries+JSF, it's left as is.

Maybe you are looking for

  • Youtube videos quit buffering - hang.

    Firefox 25.0.1 Windows 7 64 bit latest and greatest Flash 11.9.900.152 I have tried everything I can think of. HTML5 videos do just fine. Flash videos do okay on Chrome. Under Firefox, sometimes the videos play okay. When they do hang, which is often

  • Searching metadata added in a Custom Panel

    Hello, I have created a Custom Panel. Only problem is that when I try to do a search through the File Browser, it does not seem to search any of the data I entered into the custom fields. Any thoughts? thanks! -Alicia

  • Some Good Links on Oracle - XML

    Friends, can any of you help to work with some full Oracle XML Links, full reference I want having different flavours of DML's also please let me know how to work when struck up with some errors having DBMS_XML package, I have also tried so many link

  • How to deactivate the Most Recently Used List in Adobe Reader?

    Hello, how can I deactivate the "feature" of last used file list. In our firm it is not alowd to see which document was used last time on a computer/login. A sheduled erase at the registry is not a functional way to deal with the problem. s. Peter

  • Is it possible to store all my itunes music in the cloud and retrieve as needed from my iphone

    Bought my wife an 16G Iphone 5 for Christmas. She went to upgrade to 32G the day after Christmas and was told she'd have to pay a $35 restocking fee? She needs the extra storage for music thus my question: is it possible to store all my itunes music