Several roots of QML

What is the best approach for scenario where, since the launch of the application, I need to make a pre-treatment and display the user interface which is not at all linked with the user interface of the application.

Specifically, I need to make the database integrity checks (when the application is started) and view the user with the message / dialogues in case it came from the db.

I want to my C++ do this logic and if necessary creates QMLDocument root with a QML file specific and actionable in this QML file back to C++ and create another QMLDocument with a main application root and QML files.

So I would not complicate my QML mainshaft with QML unnecessary objects that only use at the start and a clear separation between the main application and the boot process.

One approach is to view a worksheet on the application startup, then reject and destroy the sheet when it is no longer necessary.

You can describe the entire sheet in qml or create a sheet of .cpp, and then load a page of qml using QmlDocument then add the page to the sheet and so on. Basically, all objects can be instantiated from qml and then destroyed when is no longer necessary.

It should also be possible to replace the scene of enforcement by another hierarchy of controls by calling request: instance()-> setScene() but there will be no transition animation in this case I think. It is possible to animate the transition manually, but it's going to require more work.

I hope that I understand the question.

Tags: BlackBerry Developers

Similar Questions

  • Read the XML response with several root elements

    Hello


    I am trying to reach the scenario below but unable to do so. Please help urgently.

    I get a response of service that has several roots elements.these root items may change during execution of... I need to read items different roots and extract data from its subelements.

    Kind regards...

    In the hope of an answer...

    I guess over time, the service returns just 1 rootnode, but this rootnode property can change

    You can use a switch after the invoke

    If $response/myroot1
    assign $ myroot/response to myroot1_var

    If $response/myroot2
    assign $ myroot/response to myroot2_var

    etc.

    in order to check what is in the node root before you assign it to your temp variable
    or if you have logic that is specific based on this root node, you can simply implement all these branches in the switch and run a logic there, based on the selected rootnode property

    several implementations are possible

  • Keeping a DataModel object through several pages of QML

    Hello

    I have a simple question, but so far I have not been able to grasp the exact application. So I have a DataModel.cpp object that loads data from a JSON data file.

    On my page main qml, the data model object is charged by attaching it with the following code...

          // The model itself is a QListDataModel defined in       // mydatamodel.h and registered as a type in the       // creation of the application.
          MyDataModel
          {
            id: dataModel
    
            // The path to the JSON file with initial data, this file         // will be moved to the data folder on the first launch         // of the application (in order to be able to get write access).
            jsonAssetPath: "app/native/assets/data/mydata.json"
          }
    

    Now, from the Main.qml page, I can launch methods, get / set properties, attached signals etc...  for the dataModel object. This is perfect, but in case my application consists of several pages... ie:

    Main.QML > AddNewItem.qml
               
    On the Add QML page, I add a new object to the object MyDataModel.

    > ViewItems.qml

    On the points of view, a ListView is bound to the MyDataModel object.

    > EditItem.qml

    The edit page is called, and the user to apply changes to the MyDataModel

    > ViewGraph.qml

    On the graphic page, the data is distributed to the MyDataModel to display a graph.

    I can re-gasket the MyDataModel on every pages, but this requires a complete reading of the JSON data set, but this isn't the right approach and leads in data refresh issue when adding, editing and deleting items.

    QML, how can an object RPC be passed from one page to another qml... I quickly tried to set a property on the ViewItems.qml variant, but it generates a qml error: the value of the property Type mismatch "dataModel". Expecting DataModel and found zero.

    Page
    {
      property variant data
    
      ...
    }
    

    A simpler solution might be creating the dataModel once in the C++ code and the injection of the instance (not type) as a context for QML property. It will be accessible from all pages.

    The above code, try to declare the property as regarding:

    property alias data : listViewId.dataModel
    

    then you can assign the qml outside:
    qmlpage. Data = dataModelId

  • Several roots of web in the developer version of CF?

    Due to the fact that our development server is three versions SEE behind our live server (6.0 vs 8.0), I decided to install the developer version of the CF8 locally.

    My only problem is that I need to have two distinct roots of web - one for our website and one for our Intranet pages.  On our development server we have/root/inter and root/staff with every being, it's own web root, but when I try to do on my CF local, all my includes fail because he believes that he:

    localhost:8500/inter/mydir

    When he must see:

    localhost:8500 / mydir

    Is it possible to have two separate webroots in the Dev of CF version?

    ColdFusion 'Application server' does not care to the roots of web, it uses some web root, the web server tell him to use.

    ColdFusion "Built in Web server" which can be used if you choose, is a very basic web server and does not allow for multiple web sites.

    There is nothing that prevents you from using another web server, that you care to install it on your development computer and use with the version of your ColdFusion Application Server Developer.  If you go for free, however, the only web server that allows several websites is Apache.  Also the IIS that you install on a Workstation version of Windows doesn't support multiple web sites.

    So, in other words, to do what you want either you need to install Apache, or have a workstation that is running a Windows operating system "Server" so that you can create several web sites.

  • Several roots

    Hello

    I like to keep the name of a PDM file, it is its root, when I drag in another. In other words, I would like to know how to get more than one root in the data portal. I read this already but who was related to Excel and the problem has been dodged by doing something else.

    Problem: I feel that it's impossible... otherwise methods such as RootPropValGet do not know what to return in case there are at least two roots share the same property name with different values inside.

    If I can't do it, I wonder to store instead, in properties, the name of the TDMS file that each channel comes. That sounds more feasible.

    Could you if you please confirm my impression or help me understand this?

    Thank you.

    Near Hi,.

    The data portal DIAdem 2012 indeed can only contain a single root.  You can easily choose to have your root of the properties automatically inherited at the group level, that I recommend in this case.  Go to the BROWSER menu "settings > Options > NAVIGATOR ' and in this dialog under the section 'Loading behavior' in the field 'Level of heritage property DataFinder', select 'pass at the wrong level.  If you want to than this setting to persist, you must then save the Desktop.DDD file by selecting the menu NAVIGATOR "settings > Options > save under...". »

    Brad Turpin

    Tiara Product Support Engineer

    National Instruments

  • connect by query, element need root for each line

    Hello

    I'm working on a hierarchical query using connection by front. Each node in the tree has two properties, a type and a sequence.

    The table that contains the hierarchy has 4 fields:
    element_type_from
    element_sequence_from
    element_type_to
    element_sequence_to

    Each child has a parent, a parent can have several childeren. For a map, the element_type_to and element_sequence_to fields are zero.

    To generate a tree, you can run:
    select element_type_to
    ,      element_sequence_to
    from   element_hierarchy
    start with element_type_from = [root_element_type]
           and element_sequence_from = [root_element_sequence]
    connect by prior element_type_to = element_type_from
           and prior element_sequence_to = element_sequence_from
    That works well... but... not only don't want child elements, I would like to return the sequence of element root for each child (in our table is a type of root element is always the same). There are several root elements and I want to create a list containing all the trees and each node in the tree must have its roots as well.

    There is the possibility to use sys_connect_by_path. This returns the root, but also the full path to the current child. It also returns a varchar2, requiring to be substr-ed and to_number-ed to get the sequence... not nice.

    warning, extremely ugly (but functional) code:
    select element_type_to
    ,      element_sequence_to
    ,      to_number(substr(sys_connect_by_path(element_sequence_from ,','),2,instr(sys_connect_by_path(element_sequence_from ,',') ||',',',',2)-2)) root_sequence
    from   element_hierarchy
    start with element_type_from = [root_element_type]
           and element_sequence_from = ( select [root_element_sequence] from all_root_elements )
    connect by prior element_type_to = element_type_from
           and prior element_sequence_to = element_sequence_from
    There must be something simple I'm missing here! Can you help me?

    Edit: Oops, the database version is 10.2.0.4.0

    CONNECT_BY_ROOT maybe?

  • Fans of fast and slow mail after upgrade of Sierra

    So I too just upgraded to Sierra, and I have two problems.  The first I noticed almost immediately after a reboot is something is causing fans to run almost non-stop.  I looked at the level of the console and I see that several root applications use more than 100% of the time CPU.  What the hell is happening here?

    Second, Mail has now slowed down to the point that it is almost unusable.  I click on an email and it will literally be anywhere from 15 to 20 seconds for the mail to open.  Not a complex HTML with email of old thing plain video simple.  What the hell is happening here?  It's maddening.

    John W

    After installation of a new OS, there is a lot of cleaning up to do, just wait until she finishes

  • First HP, equations Solver

    Hello

    I'm having some difficulties with my first HP Calculator. I received early in the week. I use it with my TI - 89 Titanium to see how to compare the different functions. The problem lies in when I tried to use the Solver of equations to solve for a variable uknown. I know that this must back me two responses, one around of 383 and the other around 1410, both of my 89 coming back from these responses, and the solution for my problem is in the back of my book and it lists both here. Does anyone know how to solve this? I think that such a "beast" than the first must be able to do something so simple.

    Thank you

    Hello

    Please try to use nSolve(YourEquation,a=1..nn), while being in CAS mode. (nSolve since looking digital answers)

    Using a = 1.2000 gives a list of {387.092637878, 1410.5095324}. If you think several roots, it's pretty cool to use a range as a guess.

    Make sure that you use lowercase 'a' in the equation in order to avoid the "Bad Argument value", also make sure that the CASE is set to degrees.

    You can also connect to hpmuseum.org where the calculator is at length.

    Hope this helps

  • Windows Vista will not wake up, tried Standard corrections

    NOW SOLVED

    {

    The problem is if the disk cleanup is performed, it can spoil wake up permanently.

    There is a difficulty of MS 50078.

    http://support.Microsoft.com/kb/928897

    However this LOSES all your so previous restore points before you run it, make sure that you got your pc to a stable configuration fully updated after checking all malware (go to malwarebytes.org), then after running manually to create a few new ones.

    You should always ensure that you have the right to "allow this device to wake up your pc" in any power tabs management for keyboard, mouse, and human interface devices.

    If you use a wireless mouse, you may need to go to network adapters and uncheck

    «allow to turn off this device to save energy»

    You can also enable "turn off this device to save power" for other devices that should not be used to wake up your computer, but first you need to read up on cases where it matters or not.

    Google vs sleep extended etc.}

    earlier posts below...

    I read a similar discussion asked by Lucas v21 who seemed to not have a confirmed solution.

    I also have Vista failed to wake up.

    Currently has active power to close screen = 10 min and sleep management = never. If I use the pop - up starting to enter the mode 'sleep', and then I either use the mouse, keyboard or power, the system is unable to wake up.

    It fails also to wake-up if I set the power plan to go to sleep 20 minutes.

    I tried everything that was referenced in the other discussion and several sequences without positive result.

    Here is a brief history.

    Until only March no problems with sleep. PC, a desktop studio Dell 540 with Vista service pack 2 and Radeon 3450 graphics card, logitech wireless mouse and keyboard Dell cable had entered sleep as requires it (display off 10, sleep to 20) for a long time and to wake up so I waved the mouse around or if she replied quickly, I would press the power button. BIOS has S3 STR.

    Towards end of March / beginning of April, I plugged a Tablet samsung 3 to transfer files. Shortly after there are 3 optional updates in windows updates to drivers. 2 succeeded, failed one of the PSG. However, I transferred the files ok because Vista was able to 'see' the data on the Tablet

    Around the same time, I installed an add-on for Excel and ntvdm has stopped working, but then I only restarted, no problem with this software.

    Google Update Wizard has also had an installation failed, but he then installed ok.

    Meanwhile, I have re-arranged the USB connections which included using a hub.

    In early April, I started meeting with failure of Vista to wake up, a couple of times. Then, there were one dozen or more windows (+ C++, VB, VS etc.) and other updates (JAVA, Apple iTunes..) which required restarts so I couldn't go back to early March using the restore. (I have all my files on an external hard drive backup).

    I used restore to exclude drivers Samsung Tablet, but do not remember when I did. Recently, I uninstalled the add-in Excel and other software. The MS software is still there.

    I use Norton Internet Security. I have run msconfig to exclude all services at startup, but service NIS does not seem to find his way back.

    I just disabled and disconnected from the logitech mouse and installed a cable plugged in the mouse.

    What is interesting, is that if I click on the mouse to wake up, I noticed that the laser does not receive power. You will see print screen images depending on whether there are several root showing hubs. There is merely a physical device and direct plugs of the pc. What has not appeared in the previous discussion, is that if the HID devices need to have power management allows device wake. I sent them to do.

    The watch button power management facility works / stop = stop. I tried 'sleep' and ' do nothing ' without effect.

    The screen has buttons which during awakening abortive effort, show "auto-detection" and then say press a key or move the mouse or press the power button.

    I think that's the problem, it's that it is not enough power to the alarm of devices to do their job because of the history of the drivers installed / hubs and that some need to be uninstalled, however when I try that, they are re-loads.

    So are there new ideas on how to wake up for work with power plan settings that put the system to sleep (if not, I'll just have to have sleep = never, or manually stop)?

    The screens soon

    In the meantime thanks for any help.

    OK, now solved.

    The problem is if the disk cleanup is performed, it can spoil wake up permanently.

    There is a difficulty of MS 50078.

    http://support.Microsoft.com/kb/928897

    However this LOSES all your so previous restore points before you run it, make sure that you got your pc to a stable configuration fully updated after checking all malware (go to malwarebytes.org), then after running manually to create a few new ones.

    You should always ensure that you have the right to "allow this device to wake up your pc" in any power tabs management for keyboard, mouse, and human interface devices.

    If you use a wireless mouse, you may need to go to network adapters and uncheck

    «allow to turn off this device to save energy»

    You can also enable "turn off this device to save power" for other devices that should not be used to wake up your computer, but first you need to read up on cases where it matters or not.

    Google vs sleep extended etc.

  • Navigate from a to an other navigation pane navigation pane

    Hi all

    In the navigation pane, we can spread one component to the next.

    But what happens if I want to navigate from a navigation to another part of the navigation pane.

    for example: -.

    hand. QML: -.

     ActionItem {
                    title: qsTr ("ReadFromSD")
                    imageSource: "asset:///images/action_addcontact.png"
                    ActionBar.placement: ActionBarPlacement.OnBar
    
                    onTriggered: {
                        if (_addressBook.detectSD()) {
                            var page = secondPageDefinition.createObject();
                            navigationPane.push(page);
                        }
                    }
                }
    

    and the second page definition is like: -.

     ComponentDefinition {
                id: secondPageDefinition
                source: "filePicker.qml"
                Page {
                    Container {
    
                    }
                            paneProperties: NavigationPaneProperties {
                                backButton: ActionItem {
                                    title: "Back"
                                    onTriggered: {
                                        /*username.text = "";
                                        password.text = "";*/
                                        navigationPane.pop();
                                    }
                                }
                            }
                        }
            }
    

    The problem that is happening, is that the flow is not the trigger from one component to the other:

    NavigationPane {
        id: navigationPaneFilePicker
    
        onPopTransitionEnded: page.destroy()
    
        Page {
            titleBar: TitleBar {
                title: qsTr ("Select contacts File")
            }
    
            Container {
                layout: DockLayout {}
    
                // The background image
                ImageView {
                    horizontalAlignment: HorizontalAlignment.Fill
                    verticalAlignment: VerticalAlignment.Fill
    
                    imageSource: "asset:///images/background.png"
                }
                FilepickerScrollView {
    
                    Container {
                        horizontalAlignment: HorizontalAlignment.Fill
                        verticalAlignment: VerticalAlignment.Fill
    
    ................................................
    ...............................................
    

    When I click the first page its not sailing does not to the second. When the second does not have the navigation pane it worked correctly, but as soon as I added the tag in navigation pane to it it stopped working

    Please suggest

    The element root firstPage.qml and secondPage.qml doesn't have to be a NavigationPane but a page element. You already have a navigationPane in your hierarchy of context and as a result, you can refer to your main QML file NavigationPane directly.

    For example:

    hand. QML:

    include bb.cascades 1.3
    
    NavigationPane {
      id: root
      Container {
        Button {
          text: "Push the first pane"
          onClicked: {
        var first = firstPane.createObject();
        root.push(first);
          }
        }
      }
      attachedObjects: ComponentDefinition {
        id: firstPane
        source: "firstPage.qml"
      }
    }
    

    firstPage.qml

       include bb.cascades 1.3
    
        id: navigationPane
    
        // The initial page
        Page {
            content: Container {
                Button {
                    text: "Display First Page"
    
                    onClicked: {
                        var second= secondPage.createObject();
                // Use the navigationPane defined in main.qml
                        root.push(second); //pushes the defined component definition (first)
                    }
                }
            } // end of Container
    
          attachedObjects: [
            ComponentDefinition {
                id: secondPage
                source: "place the asset filepath to your secondPageQML here"
            }
        ] // end of attachedObjects list
       } // end of Page
    
  • How to get the vertical alignment of a container property?

    Hi all

    I have a container in QML, I put his property in qml. And get anything by comparing the property in the CPP, the application crashed.

    I know what I'm doing wrong. This is the line where it crashes.

    if(detailContainer->verticalAlignment() == VerticalAlignment::Bottom){
    ..
    ..
    }
    

    It was the container root in QML.
    I was able to check alignment in QML but not in the PRC.
    As a child container I can acess it.

  • WebView with NavigationPane

    I ran into a problem using WebView with of NavigationPane and reduced to a simple example that illustrates the problem.

    Basically, if I push a Page containing a WebView on a NavigationPane, when I close my App, the application does not close correctly. On the device, it closes, even if it sometimes delays. On the Simulator, I have to restart the simulator that I can run my app again.

    I reduced to this simple demonstration:

    1. I start a new empty project Cascades, let's call it NavEg2, and I put my "main.qml" to this:

    import bb.cascades 1.0
    NavigationPane {}
    {Page}
    {Of container
    layout: {DockLayout}
    Button {}
    objectName: "button click.
    text: 'news.ycombinator.com.
    }
    }
    }
    }

    2. I create a 'webpane.qml' in my 'active' folder that looks like this:

    import bb.cascades 1.0
    {Page}
    {Of container
    WebView {}
    URL: 'http://news.ycombinator.com'.
    }
    }
    }

    3. I have change my NavEg2.hpp to:

    #ifndef NavEg2_HPP_
    #define NavEg2_HPP_

    #include
    #include

    bb namespace {namespace stunts {class Application ;}}}

    Class NavEg2: public QObject
    {
    Q_OBJECT
    BB::Cascades:NavigationPane * root;
    public:
    NavEg2 (bb::cascades:Application * app);
    Virtual ~ NavEg2() {}
    Q_SLOT Sub buttonClicked();
    };

    #endif / * NavEg2_HPP_ * /.

    3. and I put my NavEg2.cpp on:

    #include "NavEg2.hpp".

    #include
    #include
    #include

    using namespace bb::cascades;

    NavEg2::NavEg2 (bb::cascades:Application * app)
    : QObject (app)
    {
    QmlDocument * qml = QmlDocument::create("asset:///main.qml").parent(this);
    root = qml-> createRootObject();
    Button * btn = root->findChild button ("click");
    Connect (btn, SIGNAL (clicked ()), this, SLOT (buttonClicked ()));
    App-> setScene (root);
    }

    Sub
    {NavEg2::buttonClicked()}
    QmlDocument * qml = QmlDocument::create("asset:///webpane.qml").parent(this);
    root-> push (qml->()) createRootObject;
    }

    Then I have my setup to build the Simulator-Debug value, build the project and create a run Configuration to run on the Simulator.

    When it runs on the Simulator, it works as expected, but when I close the application, it does not close. The icon will "grey" and I can not run the application again without having to restart the Simulator. If I click on the button - that is, if I do not open the WebView - then it closes very well. So I somehow does not use the WebView properly within the NavigationPane.

    When I run the present on the device Dev Alpha, it takes time for the App close (about 5 seconds), but it ends by closes. It reminds me to some WebView discussions there do something, or the device is just much more cruel to kill apps...

    Someone at - it ideas?

    Help much appreciated,
    Craig

    Hi Brian,.

    This is great news - had been worried I did something wrong. Thank you very much

    C

  • very simple custom DataModel derived from bb::cascades:DataModel will not display data in ListView

    Hello

    A model of custom data in C++, I did nothing appears in a ListView

    It seems that the link

    listView.dataModel = _dataModel

    on QML side don't ask the DataModel data. I'm not really sure what I'm doing wrong.

    PS. Place the CustomDataModel in QML as an attachedObject and insert data it works, but I have a specific need to keep the DataModel in C++.

    Below the example of code reduced to the simplest case which cause me problem:

    //customdatamodel.h
    
    #include 
    #include 
    #include 
    
    class CustomDataModel : public bb::cascades::DataModel
    {
    Q_OBJECT
      public:
        CustomDataModel(QObject * parent=0) : bb::cascades::DataModel(parent)
        {
        }
        virtual void ~CustomDataModel()
        {
        } 
    
        virtual int CustomDataModel::childCount(const QVariantList& indexPath)
        {   //just one level deep
            return 0;
        }
    
        virtual bool CustomDataModel::hasChildren(const QVariantList& indexPath)
        {
            return childCount(indexPath) > 0;
        }
    
        virtual QVariant CustomDataModel::data(const QVariantList& indexPath)
        {
            if (indexPath.count() == 1)
            {
                return m_values[indexPath[0].toInt()];
            }
            return QVariant();
        }
    
        void CustomDataModel::insert(const QVariantMap &item)
        {
             m_values.append(item);
             emit itemAdded(QVariantList() << m_values.count()-1);
        }
    
        private:
          QVariantList m_values;
    }
    
    //application.cpp
    
    ApplicationUI::ApplicationUI(bb::cascades::Application *app)
    : QObject(app)
    {
        qmlRegisterType("app.datamodels", 1,0, "CustomDataModel");
        QmlDocument *qml = QmlDocument::create("asset:///main.qml").parent(this);
    
        CustomDataModel *dataModel = new CustomDataModel(this);
    
        QVariantMap map;
        map["field"] = "value1";
        dataModel->insert(map);
    
        map = QVariantMap();
            map["field"] = "value2";
        dataModel->insert(map);
    
        map = QVariantMap();
        map["field"] = "value3";
        dataModel->insert(map);
    
        qml->setContextProperty("_dataModel", dataModel);
    
        AbstractPane *root = qml->createRootObject();
        app->setScene(root);
    }
    
    //main.qml
    
        Page {
            Container {
                layout: DockLayout {
                }
    
                ListView {
                    id:listView
                    dataModel: _dataModel
    
                    function itemType(data, indexPath)
                    {
                        if (indexPath.length == 1)
                        {
                            return "item";
                        }
                    }
    
                    listItemComponents: [
    
                        ListItemComponent {
                            type: "item"
                            StandardListItem {
                                title: ListItemData.field
                            }
                        }
                    ]
                }
            }
        }
    

    Hello
    You always return a zero childCount, so he thinks that the template is empty.

  • How to make XML appear automatically every day

    I am creating a view for a Web site and want to have a daily pill box of history on the homepage like this. "

    beatlesbible.com

    You will notice the "today in history".  I created an XML file you can see the below basic.  First of all, I hope I got this set up and is that OK?  Can someone explain how I add a simple style to the data and then get the data of change inside a box to 0 hours each day and then stay there until the next day where he would change?

    Thank you.

    <? XML version = "1.0" encoding = "utf-8"? >

    < January >

    < day > 1 < / day >

    < year > 1939 < / year >

    Parade of < description > the first Rose Bowl was held in Pasadena, California, < / description >

    " < link > < a href =" http://www.CNN.com/ "target ="_blank"> page < /a > < / link > "

    < year > 1940 < / year >

    < description > Adolph Hitler declares war on the Poland < / description >

    " < link > < a href =" http://www.CNN.com/ "target ="_blank"> page < /a > < / link > "

    < / day >

    < day > 12 < / day >

    < year > 1899 < / year >

    < description > JP Morgan was born in New York City < / description >

    " < link > < a href =" http://www.CNN.com/ "target ="_blank"> page < /a > < / link > "

    < year > 1966 < / year >

    < description > Neil Armstrong test bed room < / description >

    " < link > < a href =" http://www.CNN.com/ "target ="_blank"> page < /a > < / link > "

    < / day >

    < / January >

    < February >

    < day > 1 < / day >

    < year > 1939 < / year >

    Parade of < description > the first Rose Bowl was held in Pasadena, California, < / description >

    " < link > < a href =" http://www.CNN.com/ "target ="_blank"> page < /a > < / link > "

    < year > 1940 < / year >

    < description > Adolph Hitler declares war on the Poland < / description >

    " < link > < a href =" http://www.CNN.com/ "target ="_blank"> page < /a > < / link > "

    < / day >

    < day > 12 < / day >

    < year > 1899 < / year >

    < description > JP Morgan was born in New York City < / description >

    " < link > < a href =" http://www.CNN.com/ "target ="_blank"> page < /a > < / link > "

    < year > 1966 < / year >

    < description > Neil Armstrong test bed room < / description >

    " < link > < a href =" http://www.CNN.com/ "target ="_blank"> page < /a > < / link > "

    < / day >

    < / February >

    First things first. Your XML file is not valid, because you have several root elements ( and ). You must encapsulate everthing after the XML prologue in a single root element:

    >

    Data from January here

    Data of February here

    A more important question is why you plan to do with XML? To select the correct data, you will need to set up a model using XSLT, which is not the most user-friendly language, neither is he supported by older browsers.

    A better solution would be to store the data in a database and a language such as PHP server-side allows you to select the correct data for the current day.

  • What is the correct way or better to manage your site files according to the folder of your site?

    I apologize if this seems to be a silly question but I'm still having trouble getting my head around the management of files when using dreamweaver. I know that I am supposed to create a root folder that I created on my desktop. All of my sites that I have here in create in dreamweaver go to sub files in this main file or am I supposed to have several root file?

    Ive assumed I create a single up to that point. However I have other questions... for example when I create a fluid grid site I go through the steps of creating first my folder under this new site in my account from the main root for dreamweaver, save my css inside file when asked, and then I save the html file main Sub ' save under ' as well... However, as you know, creates then two files separate, 'catch-all' and 'response' but instead of placing them in my folder of pennies for this site, he places them in the root file instead of in the subfolder that is located in the file root (if necessary). If I manually move them to the sub folder to keep things tidy this will mess up my files? Dreamweaver will be able to go to search folder under rather than the file root where he keeps putting automatically their?

    Or I have the complete wrong end of the stick to understand how to make the management of the work all together?

    Any help greatly appreciated

    Ed

    OK so just to clarify. Each site actually has its own root folder and simply for the love of the organizations you place all of your files to the root of each site in a larger folder which in your case is called 'sites '.

    Exactly that.

    My confusion is that dreamweaver seems to have everything automatically create new site, I try to go in a root folder, I created a site earlier. That's why I guess you don't have that one folder root and all of your different sites exist within of the it.

    Ignore this. I see sometimes that happens as well. But because you browse to find the folder new root of the site in any case, it is imminent can be ignored!

    -I created a new folder outside of dreamweaver on my desk first who must accommodate all that documents sites. I was the creation of each new folder in what I thought, it's the main single root for dreamweaver folder that was on my desktop up to this point.

    There is no "single root for dreamweaver folder. As you might have guessed, each site has its own root folder and root each folder contains * all * files that make up this particular site. ***

    -J' then I open dreamweaver and will create a new site layout fluid grid

    -He asks me to save my css somwhere... I save in my new site folder (I now know what will be the root folder of my sites that each website has its own root folder)

    All my sites have a "_css" at the root folder. I precede these files with an underscore so that this and other like him (for example '_img', "_scripts", etc.) will sort together, and at the top of the list of files. This issue of _css in the root of this site, this is where I would put the stylesheet quote you. ***

    -When he opens all I go to 'file' and ' save under ' so that I can put the HTML in the document in my root folder as well. (don't forget this root folder is sitting in another folder called "root folder" but you assume I simply call 'sites' in this example.)

    So. ***

    -When I do this the html records in the folder root of the site as I hope.

    -However, dreamweaver application also my permission to create two new documents as mentioned (boilerlate and respond). Despite me trying to click the folder root of sites and it saves the documents it contains, like the rest, he saves instead what is in your folder "websites" in this example... next to the folder root of sites that i would have it should be in (not... correct me if I'm wrong)

    Well, this suggests that you have not set the root folder properly. These two files must be saved in the root of the site. If this location is not what you are talking about as the root of the site, then something is wrong.

    Why do you think that what is happening? or is it supposed to? I would have thought not myself.

    as I side question while I'm here... when I see that my css or js documents have been saved in the wrong place, as I assume they were in the example above... How can I change the location of their in dreamweaver so that dreamweaver knows where they have been moved to? I know not how to do for the HTML document main because its easily done using "save under" on the file menu, but I'm not sure how do for the other document that dreamweaver creates something like a checkerboard to fluid.

    Sorry... I'm sure it's painful for those who know how... but I'd love to get my head around things like basic

    The best way to change the location of all files used in a DW site is to use the DW files Panel to drag - move these files to the desired location. Management of DW links will kick when you do this and adjust all the existing links to these files to accommodate your move. ***

    Here is a series of images that show the process to create a new site-

    THE NEW PROCESS OF SITE

    NAME of THE SITE, THEN BROWSE to THE NEW LOCATION for THE ROOT (this image shows the starting state of those that have been done before)

    NAVIGATE TO THE FOLDER OF YOUR NEW SITE WILL BE CREATED IN WHICH

    BY CLICKING THE NEW FOLDER OPTION, YOU CREATE THE NEW SITE ROOT FOLDER AND THEN CHOOSE IT

    I CREATED TWO NEW FILES IN THE ROOT FOLDER THAT WILL HOST MY CSS AND IMAGES RESPECTIVELY

    After SELECTING THE NEW ROOT FOLDER of the SITE AND clicking 'Choose' I SEE THE DIALOGUE START WITH THE path box to ACCESS CORRECT WORMS CE FOLDER ROOT IN THE FIELD RECORD of SITE LOCAL

    I hope that helps!

Maybe you are looking for

  • Safari crashing when uploading attachments

    Hello world I get the following error message every time I try to download from any Web site. Hope someone out there has a useful solution for it too. TIA Ms. ferg Process: Safari [687] Path: /Applications/Safari.app/Contents/MacOS/Safari Identifier:

  • My HP Pavilion g6 fan does not work.

    I bought a HP Pavilion g6 2230tx a few months back and its cooling fan has stopped working.It was working fine, but the problem started when I played Euro Truck Simulator 2 full settings. The cooling fan has been throwing a large amount of heat and t

  • IdeaPad y560 radeon 5730 black screen, older version of the driver needed

    Hi all I got an ideapad y560 0646 with i7 and radeon 5730 without switchable graphics. After startup, the windows logo appears and then only a black screen. no windows logon. It is possible to start with the standard vga drivers. im running windows 7

  • 6.10 Access not opening connections window not

    Hello! For some time, I had the problem that the configuration of dial-up Connections window does not open. The icon in the toolbar does not work as expected, it displays the configured profiles and I can switch between them. But I can not edit them

  • Background Intelligent Transfer Service is listed a @%SystemRoot%\System32\qmgr.dll,-1000

    I am running Windows XP SP3 on a desktop computer. I have a problem with windows update does not, I think the problem is the BITS service.In the Services list, Windows Update is listed and put on the market but (BITS) Background Intelligent Transfer