Dreamweaver, php-xml bug

I have a simple php file that generates an xml file. When I
save this file and close it, dreamweaver changes some of the
formatting when I reopen the file. Specifically, dreamweaver
de-capitalizes some of the text in the document.
Example:
The code:
$this->xml_request = '
<PickupType>
<Code>01</Code>
</PickupType>';
is converted to
$this->xml_request = '
<PickupType>
<code>01</code>
</PickupType>';
after the file is saved, closed, and reopened. Note the Code
tag has been chanced to code, which breaks the API I'm working
with. This xml is always within php code as above as I've been
using it..
This happens on several fields, Code and Address so far, and
happens to the same fields every time, no matter the document, or
how many times they appear in the document. No other tag names are
affected as far as I've found. I've tried completely uninstalling,
removing all configuration files, and re-installing Dreamweaver and
get the exact same affect every time.
I really need to get this bug / mis-configuration fixed. Any
suggestions would be greatly appreciated.
This is CS3 (DW9) running on XP Pro.

jestep,
In Preferences > Code Format, make sure that the "Override
case of"
settings for "Tags" is turned off.
HTH,
Randy
> I have a simple php file that generates an xml file.
When I save this file and
> close it, dreamweaver changes some of the formatting
when I reopen the file.
> Specifically, dreamweaver de-capitalizes some of the
text in the document.
>
> Example:
>
> The code:
> $this->xml_request = '
> <PickupType>
> <Code>01</Code>
> </PickupType>';
>
> is converted to
>
> $this->xml_request = '
> <PickupType>
> <code>01</code>
> </PickupType>';
>
> after the file is saved, closed, and reopened. Note the
Code tag has been
> chanced to code, which breaks the API I'm working with.
This xml is always
> within php code as above as I've been using it..
>
> This happens on several fields, Code and Address so far,
and happens to the
> same fields every time, no matter the document, or how
many times they appear
> in the document. No other tag names are affected as far
as I've found. I've
> tried completely uninstalling, removing all
configuration files, and
> re-installing Dreamweaver and get the exact same effect
every time.
>
> I really need to get this bug / mis-configuration fixed.
Any suggestions would
> be greatly appreciated.
>

Similar Messages

  • Issue with parameter passing in ie7 to php xml

    Hi
    I wondered if anyone could offer a little advice what the issue is here.
    I have a page with xml generated from php in a separte file and presented by a dataset in spry.
    The xml is OK and in firefox it all works but ie seems to barf on it.
    The situation is this:
    I have a jump menu on a front page that provides a url with anumeric parameter passed like this
    platforms.php?platform_id=1
    This parameter is picked up by php on the platforms.php page using the $_GET Array and is passed into the code in my Spry dataset to the file that runs my query and returns my xml- so basically the page displays a dataset filtered on this parameter id.
    It works perfectly in FF.
    In IE if I link straight to the page without a parameter at all- so platforms.php the page loads OK using the default parameter I have set up in the top of this page to send the default id of 1 to the code page so the spry query says platform_sql.php?platform_id=1 and the xml generator is fine with thisiel. ie I do a
    if(isset($_GET['platform_id'])){
                                                                     $platform=$_GET['platform_id'];
    }else{
    $platform=1;
    The dataset loads Ok in IE but when I pass a parameter in the url from my jump menu IE gives a blank SPRY table i- it momentarily appears with just the placeholders for my dataset elements then vanishes. The source code of the page shows the correct id was set in the spry data going to my query file.
    There is an error in ie saying there is a javascript error but its not any help- in ie fashion- FF shown no such errors.
    I thought this might be a data type thing again in the dataset but its not - I have set the elements returned to simple strings but it still does not work.
    Is there a problem passing in a parameter like this to a spry dataset?

    After about half a day of mucking round I found the problem and a solution to this problem.
    What appeared to have happened was that some of the older content in my database used html originally encoded using a WYSWYG editor called ktml.
    Later data uses Tiny MCE. It looks like the character set of the two formats is slightly different and as a result some characters rendered incorrectly when passed through XML parsing where it specifies the character set as utf-8.
    Firefox on the whole seems to ignore the issue though looking at the raw xml output of my php-xml code- where "-" characters were (dashes) there was a question mark character shown. None the less in actual use on my page the xml was produced and the dataset worked out.
    In IE, it barfed at these same characters and failed to return the xml dataset.
    What confused the issue more was some of my smaller datasets if they by chance never had a "-" character in rendered OK in IE- hence my default dataset (platform_id=1) worked in IE. After much experimenting I noticed other ids worked too if there was never such a character.
    How I got round it was to wrap my server side data in the utf8_encode() function, and now all my xml is clean.
    The javascript error being thrown was a red herring though I could not tell until I managed to run my page in ie7 with Visual Studio Express error console running- I had this on a spare machine at work so could debug with it.
    All sorted now- now just need to find away to wrap all my datasets in collapsible panels that work.
    K

  • Make Checboxes In To Array In Dreamweaver (PHP)

    Hi guys, am designing a seat reservation system. i want the check boxes to represent the seats
    I want to know how to make each check boxes into array and how to group all the check boxes in a single canvas so that it will store multiple values in one single variable in the database column. there are other texboxes that i want to insert in the same form to get the use booking details.
    If am gona store multiple value in one column how do i identify the check box group?
    Dreamweaver PHP
    <form id="Bookings" name="Bookings" method="post" action="">
      <p>
        <input type="checkbox" name="A1[]" value="1" id="A1[]" />
        <input type="checkbox" name="A2[]" value="2" id="A2[]" />
        <input type="checkbox" name="Ab[]" value="3" id="Ab[]" />
        <input type="checkbox" name="A4[]" value="4" id="A4[]" />
      </p>
      <p>
        <label for="name"></label>
        <input type="text" name="name" id="name" />
      </p>
      <p>
        <label for="Phone_Number"></label>
        <input type="text" name="Phone_Number" id="Phone_Number" />
      </p>
      <p>
        <label for="E_Mail"></label>
        <input type="text" name="E_Mail" id="E_Mail" />

    Hi,
    I would look for a existing script like this:
    http://sourceforge.net/projects/freeseat/
    and implement it in your site, because it takes years of experience to develop something like that.
    These are only a examples I don't know the scripts, but you can look at Github and do a search:
    Example Github:
    https://github.com/fnazmul/Cinema_Seats_Booking_System
    David

  • Can someone please help me on basic info of PHP&XML&Flash

    i want to go into displaying information from the MySQL
    database into Flash Grid.... How can I do that and what tutorials
    will guide me through to be able to that....?
    Ayo

    For starters, read the Help Docs in Flash on Data
    Integration. There's even a tutorial in Flash 8 called "Flash and
    PHP Integration." Then you might want to Google "flash php xml
    tutorial" which returns plenty of stuff to keep you reading for a
    while.
    Good luck!

  • Php include bug

    I don't know where to post bugs that I find in Dreamweaver 8,
    so I will write it here.
    I have a header.php file with document type and encoding
    declaration.
    I include it in my index.php file using
    include('header.php');
    What should happen is that when I open index.php the doctype
    from header will automatically load and display after the filename
    on Dreamweaver title bar. So it should be "index.php (XHTML)".
    For some strange reason it only happens if I include header
    like this:
    <? include('header.php'); ?>
    When instead of that the beginning of index.php file looks
    like that:
    <? include('header.php');
    include('another_file.php'); ?>
    which actually means any php command instead of ?> after
    the first include. Doctype detecting does not work.
    This is very strange and I cannot see any explanation for
    this except that it have to be a bug. And bugs should be
    fixed.

    Hi,
    Your database is corrupted, hence there is no surprise you cannot retrieve successfully from it:
    # db_verify -o cf_classes.db.duff
    db_verify: Page 4: btree or recno page is of inappropriate type 0
    db_verify: Page 4: totally zeroed page
    db_verify: Page 4: Btree level incorrect: got 0, expected 1
    db_verify: Page 3: unterminated leaf chain
    db_verify: cf_classes.db.duff: DB_VERIFY_BAD: Database verification failed
    Verification of cf_classes.db.duff failed.
    Dumping the database with db_dump -da shows the following where page 4 should have been:
    page 0: invalid: LSN [0][0]: level 0
         prev: 0 next: 0 entries: 0 offset: 0
    and a verification with a hex editor over the 4KB's of page 4, shows that this page is all 0s (zeros).
    You need to run recovery over this database. For backup and recovery procedures review the followings:
    - chapter 11 in the Berkeley DB Reference Guide, Berkeley DB Transactional Data Store Applications;
    - in the Getting Started with Berkeley DB Transaction Processing, the sections on Backup Procedures and Recovery Procedures.
    If your application is not using transactions (it is not set up as TDS, Transactional Data Store), you should review the section on Handling failure in Data Store and Concurrent Data Store applications.
    Regards,
    Andrei

  • Dreamweaver/PHP newbie needs help

    I have bought a price comparison script. Unfortunately the
    script is coded in PHP and I do not know PHP.
    Over the last couple of years I taught myself HTML and the
    tools necessary to developed a number of simple shopping sites for
    my businesses using Dreamweaver; Fireworks; & Flash. – I
    know these tools reasonably well.
    So far I have installed WampServer 2.0f [12/16/08]
    Includes : Apache 2.2.11; MySQL 5.1.30; PHP 5.2.8
    Wamp installs in c > wamp
    All features up and running and tested using simple test
    files such as time display – all installed in c > wamp
    > www
    I then did a ‘Get’ and placed the local version
    of the script to c > wamp > www
    Setup a test server in Dreamweaver:
    Local Root folder and testing Server Folder:
    C:\wamp\www\lowprice\
    Http Address:
    http://www.lowprice.co.za/
    URL Prefix:
    http://localhost/lowprice/
    I started all services on the wampserver
    and opened the main file: index.tpl.php in Dreamweaver.
    I was hoping for a beautiful display of the home page, but
    only get dotted lines & php tags - no graphical display at all.
    What I need to know at this stage:
    1) Did I do anything wrong while setting up the test server
    above
    2) Do you think I’m nearly there and if so do you have
    any advice as to how to get there.
    3) If I’m still miles away I’ll keep on slogging
    through the training and support sites and even buy a book if need
    be. If you have any advice – please tell me.
    Just a short summary or a couple of hints as to what
    direction to go. I know you cannot teach me PHP.
    Thanx you

    biltong08 wrote:
    > I have bought a price comparison script. Unfortunately
    the script is coded in
    > PHP and I do not know PHP.
    Buying scripts is not necessarily a bad thing, but buying one
    written in
    a language you don't understand puts you at risk. First, you
    can't adapt
    it if it doesn't do what you want. More important, you're
    entirely in
    the hands of the developer if it turns out there's a security
    bug in the
    script. If you want to use PHP, you should at least learn the
    basics.
    > I was hoping for a beautiful display of the home page,
    but only get dotted
    > lines & php tags - no graphical display at all.
    You wouldn't. Dreamweaver is a development environment, where
    you write
    and edit code. However, if you have set up a testing server,
    you can
    view the output (but not edit it) in Live View. Just click
    the Live View
    button in the Document toolbar. Live View is available in
    Dreamweaver
    CS4 only. In earlier versions, use the Live Data view button
    in the
    Document toolbar.
    > What I need to know at this stage:
    > 1) Did I do anything wrong while setting up the test
    server above
    Your testing server definition looks OK.
    > 2) Do you think I?m nearly there and if so do you have
    any advice as to how to
    > get there.
    Try Live View or Live Data view.
    > 3) If I?m still miles away I?ll keep on slogging through
    the training and
    > support sites and even buy a book if need be. If you
    have any advice ? please
    > tell me.
    You can start with the PHP online documentation:
    http://docs.php.net/manual/en/getting-started.php
    The documentation is very useful, but it can be overwhelming
    if you
    don't know what you're looking for (it's rather like trying
    to learn a
    foreign language from a dictionary). I have written several
    books about
    PHP, details of which you can find on my website (see link in
    my
    signature). The Dreamweaver-related ones have a short crash
    course in
    PHP syntax, and then concentrate on using the PHP server
    behaviors built
    into Dreamweaver. "PHP Solutions" teaches PHP through a
    series of
    practical exercises and projects. However, I have no idea if
    my books
    would be of practical help to you in deciphering the script
    you have bought.
    I noticed that the filename you gave contained "tpl". That
    usually
    suggests that the file is written in a PHP templating
    language called
    Smarty. If so, you need Smarty installed (
    http://www.smarty.net/).
    Although I have used Smarty, I don't like it because it adds
    an extra
    level of complexity. It's intended to make it easier for
    non-programmers
    to edit pages without touching the underlying PHP. However,
    if you're
    the only person working on the project, it means you need to
    learn two
    languages instead of one. To my mind, it adds an unnecessary
    burden.
    Good luck.
    David Powers, Adobe Community Expert
    Author, "The Essential Guide to Dreamweaver CS4",
    "PHP Solutions" & "PHP Object-Oriented Solutions"
    http://foundationphp.com/

  • Communication problem MYSQL PHP XML Flash.

    I have driven myself into a corner with this so I hope someone here knows a solution.
    I am building a photogallery with a simple html layout but with a flash slideshow.
    The data for each album and photo are stored in a mysql database. Each photo-image is in one big folder on the server. With PHP I sort out which photo belongs to what album and display them accordingly. To start the slideshow people can click on a link near the album, this link will send a < href> with the album ID to an PHP file (xml.php) that will generated an XML output created from the MYSQL server. Here comes my problem:
    Loading XML into flash is no problem BUT I only know how to do this with a static or self supporting XML output. (xml.php needs the input of the album ID else it will not get the correct data). For now I have a temporary solution where I write the XML output from xml.php to a txt file and let Flash read from there, but is there a way where I can read directly from xml.php?

    Echo your formatted xml out as a string in xml.php, Flash will then read your dynamically generated XML.

  • Issue in Dreamweaver PHP pages from the PHP template

    I am learning to develop and publish a web catalog with a shopping cart feature attached. I am using PHP and MySQL as the tools to build this data driven website. However after creating the catalog list within the PHP template and needing the list as the menu within the sidebar of the webpages, the catalog list shows in the PHP template in Dreamweaver. But once I try to create a sub page from the PHP template, the list and all the contents does not show in the preview. After much checks, there is a issue with the sidebar class of the div, the issue is that a message shows that "Any content that does not fit in a fixed-width or -height box causes the box to expand to fit the content rather than letting the content overflow." I have tried to put the overflow:auto or overflow:hidden but to no success. How can get the catalog list to show without manually entering the over 50 categories that is already entered in the MySQL database? The template uses the 2 column fixed, sidebar, header and footer layout.

    It's a little hard to understand your question and its context. Can you please upload this page and give us a link so we can see what you are describing?

  • Setting up MAMP and Dreamweaver - PHP - URL Not Found

    Hello,
    I'm running into a seemly simple problem, but I just can't figure out the cause. I wanted to test a php file. I installed MAMP on my Mac 10.6.8 with all the default settings...Apache port 8888, MySQL port 8889 and document root /Applications/MAMP/htdocs.
    In Dreamweaver CS5.5, the settings are: Site Name: PHP Testing; Local Site Folder: /Applications/MAMP/htdocs; Server Name: Local Testing; Connect using: Local/Network; Server Folder: /Applications/MAMP/htdocs; Web URL: http://localhost:8888/. Testing server model is selected as PHP MySQL.
    In the htdocs folder, I have a simple timetest.php with php echoing the system time. When I preview in a browser or even do Live View in Dreamweaver, the URL is "http://localhost:8888/timetest.php", it's giving me the error "Not Found. The requested URL/timetest.php was not found on this server".
    Am I missing something simple?
    Thank you!

    Oops, I guess the images didn't show.

  • Css Tabs in Dreamweaver CS4 Workspace bug?/annoyance

    Css Tabs in Dreamweaver CS4 Workspace. This is probably more
    of an
    annoyance than a bug.
    When working with CSS, I use multiple CSS files and when I
    make a change
    to one, I hit save (CTRL S)but it doesn't save the CSS file I
    was just
    working on. In order to make it save that CSS file, I have to
    click on
    one of the others and then back to the one I was just working
    on and
    then hit save.
    Kind of annoying, right?
    I demand this to be fixed! ;)

    Art,
    I guess you didn't understand what I meant by "focus". Let me
    try to
    explain in terms of your recipe -- all you need is a slight
    change in
    workflow:
    > 1. Open page with multiple style sheets applied
    > 2. Have split screen
    > 3. click on one style sheet and edit it anywhere. After
    editing, the
    > rounded box will be black and have an asterisk applied
    At this point, the style sheet has "focus", so click Ctrl+S
    now, before
    you click back in Design View (which changes the "focus" back
    to the
    main document).
    FYI, if you're clicking in Design View to update the
    rendering, you can
    hit F5 to update the main document rendering without giving
    it "focus".
    > 4. Click back to page in design view.
    > 5. Click control save. It doesn't save the style sheet
    that is
    > highlighted and has an asterisk.
    > 6. In order to save you must "save all" or click off
    and then on
    > to the style sheet.
    Hope this helps,
    Randy
    Art wrote:
    > Let me restate the problem so it's clear what is
    happening.
    >
    > 1. Open page with multiple style sheets applied
    > 2. Have split screen
    > 3. click on one style sheet and edit it anywhere. After
    editing, the
    > rounded box will be black and have an asterisk applied
    > 4. Click back to page in design view.
    > 5. Click control save. It doesn't save the style sheet
    that is
    > highlighted and has an asterisk.
    > 6. In order to save you must "save all" or click off and
    then on to the
    > style sheet.
    >
    > Perhaps this is more an issue of focus rather than a
    function of the
    > save command.
    >
    > Since it's not saving, perhaps Dreamweaver shouldn't be
    displaying the
    > black rounded box as it is no longer selected when you
    click back into
    > Design view.
    >
    > Of course there are ways around this; it's just a little
    annoying that
    > it's displaying "active" yet it's not.

  • Sax parse xml bug , I can't figure it out!

    (1) orginal xml file as followings:
    <row>
    <field name="productBundleId">22456</field>
    <field name="localPath">/products/01092008/RealArcade/STD_StonesOfKhufu_NOK6030_EN_v1_0_12.jar</field>
    <field name="description">/products/01092008/RealArcade/STD_StonesOfKhufu_NOK6030_EN_v1_0_12.jad</field>
    </row>
    (2) task parsing the above and and retrieve the value and set it to a javabean:
    (3) Using the SAX as the xml file is very big , about 1M
    * @author mertef
    public class XerseHandlerImp extends DefaultHandler implements MF_CONSTANTS
         List                              m_data               = new ArrayList();
         private CompareSimpleBean     m_csb               = null;
         private String                    m_tmpVal          = "";
         private boolean                    m_id               = false;
         private boolean                    m_jar               = false;
         private boolean                    m_jad               = false;
         private String                    m_whitespace     = "";
         private boolean                    m_character          = false;
         @Override
         public void characters(char[] ch, int start, int length) throws SAXException
    *          // System.out.println(new String(ch,start,length));*
              m_tmpVal = new String(ch, start, length);*
    if (jad) System.out.println(tmpVal);*
         @Override
         public void endElement(String uri, String localName, String name) throws SAXException
              m_character = false;
              if (name.equals(MOVAYA_ROW))
                   m_data.add(m_csb);
              if (name.equals(MOVAYA_FIELD))
                   if (m_id)
                        m_csb.setId(m_tmpVal);
                        m_id = false;
                        m_jar = false;
                        m_jad = false;
                   else if (m_jar)
                        m_csb.setJarPath(m_tmpVal);
                        m_id = false;
                        m_jar = false;
                        m_jad = false;
                   else if (m_jad)
                        m_csb.setJadPath(m_tmpVal);
                        m_id = false;
                        m_jar = false;
                        m_jad = false;
         @Override
         public void ignorableWhitespace(char[] ch, int start, int length) throws SAXException
              m_whitespace = new String(ch, start, length);
    (4) please pay attention to the bold area , the method:
    character()
    I declare a variable "m_character" to decide if the parser don't read content of
    an item in above xml file ,such as
    /products/01092008/RealArcade/STD_StonesOfKhufu_NOK6030_EN_v1_0_12.jar
    (5)error:
    but some time it only reads part of the character contents:
    eg:
    /products/01092008/RealAr
    cade/STD_StonesOfKhufu_UnitedStates_LGCU515_EN_v1_0_12.jad
    It means that they parser comes across some character when parsing,
    but in fact it doesn't.
    You can use println() to monitor the outputs.
    So I need to declare some boolean variable to decide whether all the content of one item has read fully.
    (6)
    May be its a bug, my xml file don't include any special charactor.

    The problem is that the character data might be delivered in multiple chunks, this means that the characters method might be called more than once for the same element.
    One way around this is to create a StringBuilder or something similar in the startElement() method, and fill it with the characters in the characters() method and read it in the endElement() method.
    For more information: http://forum.java.sun.com/thread.jspa?threadID=5255925

  • "Adobe Dreamweaver PHP Training from David Powers

    “Adobe® Dreamweaver® CS5 with PHP Training from the Source  David Powers
    Lesson 7 Validating Input on the Server
    I have reached page 445, and become completely stuck - I've been about three weeks trying to sort the problem but cant get anywhere.  Not sure what to do from here so any advice would be really appreciated.  The problem:
    I have completed the script exactly as instructed, when I go live (local sever), I get a blank screen, OK, does not display.  I am sure this is something simple but I have done all the fault finding and am out foxed.  I know the local server works OK - I completed chapter 6 successfully - I can also run a php test page from the local folder that the file is stored in. i.e provictis/phpcs5.  I have saved my ZendFraework in a separate location as advised. i.e. User/SPENNY/...    
    This is the basic code:
    <?php
    $library='/Users/SPENNY/ZendFramework/library';
    set_include_path(get_include_path() . PATH_SEPARATOR .
    $library);
    require_once('Zend/Loader/Autoloader.php');
    $loader=Zend_Loader_Autoloader::getInstance();
    if ($loader) {
              echo 'ok';
    } else {
              echo 'Huston we have a blinkin problem, but do not panic we will get things sorted';
    Gareth

    FIXED!!
    1)
    i finally did get the message problem was with:
    $mailhost='ssl://mail.domain.com';
    ssl:// was just nonsense and been removed
    2)
    'auth' => 'true' was changed to 'auth' => 'login'
    3)
    for bluehost i got information that it was tls secure connection protocol not ssl
    'ssl' => 'tls'
    4)
    port used '25' not 465.
    Didnt still tried 26 and 465 maybe they would work too.

  • SQL - PHP - XML - Flex 2

    Howdy everyone!
    I've only been playing with Flex for about 6 weeks or so and
    I've figured out lots and lots from the online tutorials and help
    system. However the project that I'm trying to put together
    requires that I can pass data back and forth to Db's. I haven't
    even tried to write into a database yet because for the last 3
    weeks I've been trying every combination (except the working one's)
    to write my Db data into XML and use an HTTPService tag to retrieve
    it for use as dataProviders. I've tried everything remotely related
    on this site. Several others I've found online and modified the
    resultFormat and my variable types in every combination
    (resultFormat = "[' ', Object, xml, e4x, text, array]" &
    myDP:[ArrayCollection, Array, XML, XMLList, XMLListCollection]) and
    have received as many errors & nonworking results for my
    efforts. I'm not sure if perhaps there's a PHP/MySQL setting on my
    server that's not set how it should be? or if I just have failed to
    notice some simple detail.
    Here's the PHP version I currently believe most promising:
    quote:
    <?php
    require_once('Connections/peaceheartconnection.php');
    header("Content-type: text/xml");
    mysql_select_db($database_peaceheartconnection,
    $peaceheartconnection);
    $query_topics = "SELECT * FROM p_insight_topics";
    $topics = mysql_query($query_topics, $peaceheartconnection)
    or die(mysql_error());
    $row_topics = mysql_fetch_assoc($topics);
    $totalRows_topics = mysql_num_rows($topics);
    mysql_select_db($database_peaceheartconnection,
    $peaceheartconnection);
    $query_categories = "SELECT * FROM p_insight_types";
    $categories = mysql_query($query_categories,
    $peaceheartconnection) or die(mysql_error());
    $row_categories = mysql_fetch_assoc($categories);
    $totalRows_categories = mysql_num_rows($categories);
    print("<?xml version=\"1.0\" encoding=\"utf-8\"?>");
    $dataXML = '';
    $dataXML .= "<data><categories>";
    while($cat = mysql_fetch_object($categories))
    $dataXML .= "<category>$cat->type</category>"
    $dataXML .= "</categories>";
    $dataXML .= "<topics>";
    while($topic = mysql_fetch_object($topics))
    $dataXML .="<topic>$topic->topic</topic>";
    $dataXML .= "</topics></data>";
    ?>
    <?php
    echo $dataXML;
    ?>
    <?php
    mysql_free_result($topics);
    mysql_free_result($categories);
    ?>
    This gives me results that show up in the browser identical
    to
    An XML file from
    "Flex 2 Training from the Source" (I event get the "no
    associated style information ... document tree is shown" message
    from Firefox).
    Here are the relevant parts of the Flex app:
    quote:
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    xmlns:ns1="Components.*" layout="absolute" autoLayout="true"
    horizontalScrollPolicy="off" verticalScrollPolicy="off"
    creationComplete=" getData()" >
    <!-- Service Definitions -->
    <mx:HTTPService id="getTypesNTopics" url="../../data.xml"
    method="POST" useProxy="false"
    result="showData(event)" fault="handleFault(event);" />
    <mx:HTTPService id="getTypesNTopics2"
    url="../../topicsNcategories5.php" method="POST" useProxy="false"
    result="showData2(event)" fault="handleFault2(event);" />
    <!-- End Service Definitions-->
    <mx:Script>
    <![CDATA[
    import mx.collections.XMLListCollection;
    import mx.effects.*;
    import mx.effects.easing.*;
    import mx.containers.*;
    import mx.core.*;
    import mx.rpc.events.ResultEvent;
    import mx.rpc.events.FaultEvent;
    import mx.events.FlexEvent;
    import mx.controls.Alert;
    import flash.events.*;
    import mx.managers.DragManager;
    import mx.events.DragEvent;
    import mx.collections.ArrayCollection;
    import mx.rpc.events.ResultEvent;
    import mx.rpc.events.FaultEvent;
    [Bindable] private var topicsAC:ArrayCollection = new
    ArrayCollection();
    [Bindable] private var categoryAC:ArrayCollection = new
    ArrayCollection();
    [Bindable] private var topics2AC:XMLListCollection = new
    XMLListCollection();
    public function getData():void
    getTypesNTopics.send();
    getTypesNTopics2.send();
    private function showData2(event:ResultEvent):void
    //topics2AC = event.result.data.topics.topic;
    lastResultValue2.text = "Event, Categories:"
    +event.result.data.categories.category
    + "Event, Topics:" + event.result.data.topics.topic;
    scrollMenu.dataProvider = event.result.data.topics.topic;
    lastResultValue2.text = "Result: " +
    String(event.result.data.topics.topic);
    private function handleFault2(event:FaultEvent):void
    lastResultValue2.text = "Error: " + event.fault;
    (Keep in mind that the function & service tag contents
    are just the latest version as of 20 mins ago.)
    Any help would be greatly appreciated. There are still dozens
    of other things I want to get working on but there's no point until
    I can get my app. to talk with mySQL (databases). I'm begging
    PLEASE after weeks of wasting time trying to get my <topic>
    & <category> nodes to populate two ComboBoxes I just
    wrote a static XML file last night--just so I could feel like I had
    accomplished something (that's what the first Service tag does).
    Thanks 2^65536 times!
    Todd

    As it is posted right now (resultFormat (rF) = default object
    with the result assigned directly), I don't receive an error but
    lastResultValue.text & scrollMenu (a comboBox) both read
    "$topic->topic."
    With rF = default (object) & topics2AC:ArrayCollection
    (assigned to the text & CB) I get: "Type Coercion failed:
    cannot convert "$topic->topic" to
    mx.collections.ArrayCollection. ..."
    With rF = e4x, data type (dT) = arrayCollection I get:
    "Error: [RPC Fault faultString="Error #1088: The markup in the
    document following the root element must be well-formed."
    faultCode="Client.CouldNotDecode" faultDetail="null"] "
    (e4x is the format that I WANT to use, but anything working
    will suffice for now)
    rF = xml, dT = AC: "Property data not found on
    flash.xml.XMLDocument and there is no default value."
    With the "xml version" tag removed rF = e4x, dT =
    XMLListCollection I get " Error #1034: Type Coercion failed: cannot
    convert "$topic->topic" to mx.collections.XMLListCollection."
    Likewise with dT=arrayCollection: "Error #1034: Type Coercion
    failed: cannot convert "$topic->topic" to
    mx.collections.ArrayCollection." (Same with dT=XMLList)
    The underlying code(source) of the PHP page's output is:
    "<data><categories><category>Poem</category>
    ...</categories><topics><topic>Teaching</topic>...<topic>Kids</topic></topics></data>"
    There's an empty line above the source. The <?xml version="1.0"
    encoding="utf-8"?> tag is/isn't there depending on whether I
    leave it in or not. I don't know how/why the empty line is there.
    The general result seems to be that I get either "cannot
    decode" using e4x, "cannot convert $topic->topic" using anything
    else. Perhaps the problem is still in the PHP, but Firefox
    recognizes & treats it as valid XML giving me the "
    This XML file does not appear to have any style information
    associated with it. The document tree is shown below.

    <data>

    <categories>
    <category>Poem</category>
    <category>Song</category>
    <category>Prayer</category>
    <category>Idea</category>
    <category>Whim</category>
    <category>Enlightenment</category>
    <category>Quote</category>
    <category>Answers</category> ..." when I call the
    page. So I'm at a loss as to what to even try anymore.
    Thanks again anyone, everyone
    Merry Christmas, Happy Hannukah, Happy Holidays, etc.
    Todd

  • Dreamweaver/PHP/MySQL

    I am so far out on the limb of my techno capability that if I
    even think of leaning forward I will fall into the abyss.
    Am using Dreamweaver MX 2004 to create PHP
    view/add/update/delete forms to connect to a MySQL 5.0 database
    hosted by HotZona.com. Use PhpMyAdmin to set up and define the
    tables (about 20 tables). All of the work I have done so far has
    been done inside of Dreamweaver MX 2004. Have not modified or
    inserted any original code in any of the Php files generated so
    far.
    Have been able to setup view/add/update/delete forms for each
    table. That took me some time and a major learning curve. Oh, and
    that was after spending a month figuring out what happened to the
    DW connection to the MySQL database.
    Some of the tables are lists to be used as lists in other
    tables. That is where I am now stumped.
    I can set up (useing DW) an add form for a table that uses
    another table for a list in one field. It shows properly in the add
    form. But, when you look in the table using PhpMyAdmin, the field
    in the table does not contain the value of the list item selected.
    I've made a couple more changes so I may have licked this one.
    But, I cannot figure out how to use DW to pull up the
    sub-list value in vew, update or delete forms. Any suggestions on
    how to do this in DW or do I have to write the code independent of
    DW?
    Any suggestions?
    Thanks
    Mike Garey

    hi ,
    you can always try the macromedia devnet sites , they have
    ongoing tutorials and discussions on all areas, including php with
    dreamweaver8.
    http://www.adobe.com/devnet/topics/php.html
    be aware though that some of the tutorials require the use of
    third party php extensions, like interakt products, which is a
    shame because most of them are expensive to buy. But they are still
    worth a read.
    hope this is some help.
    ted.

  • Dreamweaver PHP/mySQL poll problem?

    Hi,
    I'm a PHP/mySQL noob who's using some of Dreamweaver's 8
    (8.2) out-of-box Update server behaviors to update a database of
    results for a poll. I know there's a lot of free polling apps out
    there but I need to have the poll show up in another page as
    opposed to being refreshed/displayed in the same page/content area.
    I've successfully built the backend in phpMyAdmin and I'm
    able to list the database contents and do basic updates to the poll
    questions and answers. However, I've been unable to pass an
    incremented result value via a Dreamweaver radio button group
    (which is the normal poll format) without previous unselected
    results being overwritten.
    When an answer is selected the result is indeed incremented
    and is displayed in the Result Listing but unfortunately it also
    overwrites any preexisting data for that poll and replaces it with
    zero. For example:
    Question:
    Answer a) 0
    Answer b) 0
    Answer c) 1 (this would be the value that was selected)
    Answer d) 0
    If c is selected again the value is stored and incremented
    and the value is now 2. However, if that value is not selected,
    then another value is incremented and c would be wiped. I've even
    resorted to trying to use javascript to maintain the original state
    but to no avail I was just previously incrementing the inline php
    radio button value and/or assigning different names to each of the
    radio buttons. This, of course, allows people to select multiple
    values which runs contrary to the whole idea behind radio buttons,
    but I thought I'd see if that worked . Anyway, when the radio group
    is assigned the same value it merely increments everything.
    example:
    http://www.dailydatum.com/funFacts/funFactsListingSingleUpdate15.php
    As you can see, i'm up to version 15 and gritting me teeth,
    lol. Any help would be mighty appreciated.
    Mario

    hi ,
    you can always try the macromedia devnet sites , they have
    ongoing tutorials and discussions on all areas, including php with
    dreamweaver8.
    http://www.adobe.com/devnet/topics/php.html
    be aware though that some of the tutorials require the use of
    third party php extensions, like interakt products, which is a
    shame because most of them are expensive to buy. But they are still
    worth a read.
    hope this is some help.
    ted.

Maybe you are looking for

  • Is it possible to install ODSI 10.3g as a web application via a WAR or EAR?

    I only know how to install it from the single .exe that installs WebLogic and ODSI in one shot. My customer has an automated process for rolling out WebLogic servers and would like to know if ODSI can be installed from an EAR or WAR. Does anyone here

  • IOException in BASE64DecoderStream, help!!!

    While I try to parse a mail, I got this error. Has anyone solve the problem? Please help me! Thanks I have retreive the raw mail content: Return-Path: <[email protected]> Delivered-To: [email protected] Received: (qmail 3237 invoked from network); 7

  • Problem with Inserting Background

    Hi there, when I'm trying to insert a background movie or picture, LiveType crashes and gives me this error message: (-NSProTextFieldCell setNode:displayState:: unrecognized selector sent to instance 0x1a5031b0) Can someone help me out? Thanks

  • Change column display name

    Hi, How can one change the display name of a column. For example I have columns C_ProjectID which when display in view should appear "Project ID". I tried to play with FieldRef but somehow it doesn't reflect the change on page. What I am missing here

  • How to know file names & version on EBS 12.1.1

    Hi guys Please help I work with EBS 12..1.1 on HP-UX When apply patch no. 8429053 to support financial consultant ,I read the patch read me and as required I must know the file name and version as following . *3. Fixed File Names and versions* *$xla/