Making Page tutorial attachedObjects problem
Try to do the tutorial welcome.
Already wrote this code:
import bb.cascades 1.2 Page { Container { id:rootContainer } titleBar: TitleBar { title: "Welcome tour" } actions: [ ActionItem { title: "Next Tip" ActionBar.placement: ActionBarPlacement.OnBar onTriggered: { loadNextPage() } } ] attachedObjects: [ ComponentDefinition { id:compDef source: "Welcome1.qml" }, ComponentDefinition { id:compDef1 source: "Welcome2.qml" }, ComponentDefinition { id:compDef2 source: "Welcome3.qml" }, ComponentDefinition { id:compDef3 source: "Welcome4.qml" }, ComponentDefinition { id:compDef4 source: "Welcome5.qml" } ] function loadNextPage(){ var componentDef = attachedObjects.shift() var createrdControl = componentDef.id.createObject(); rootContainer.add(createrdControl); } }
Failed with
Asset: / / / about. QML:44: TypeError: result of expression 'attachedObjects.shift' [undefined] is not a function.
can't understand why.
Any suggestions?
Ok. I tried another code.
Documentation of BB code
import bb.cascades 1.2 NavigationPane { id: navigationPane // The first page, which appears at startup Page { id: page1 ControlDelegate { id: controlDelegate1 source: "Welcome1.qml" delegateActive: true } // Once the first page is created, the second // and third pages are loaded asynchronously so that the // content is ready to be loaded right away. onCreationCompleted: { controlDelegate2.delegateActive = true controlDelegate3.delegateActive = true } actions: [ // Action that pushes page 2 onto the stack ActionItem { ActionBar.placement: ActionBarPlacement.OnBar title: "Next Tip" onTriggered: { navigationPane.push(page2); } } ] // A Back button that pops the pane off the stack paneProperties: NavigationPaneProperties { backButton: ActionItem { title: "Back" onTriggered: { navigationPane.pop(); } } } } attachedObjects: [ // The second page Page { id: page2 ControlDelegate { id: controlDelegate2 source: "Welcome2.qml" } actions: [ // Action that pushes page 3 onto the stack ActionItem { ActionBar.placement: ActionBarPlacement.OnBar title: "Page 3" onTriggered: { navigationPane.push(page3); } } ] // A Back button that pops the pane off the stack paneProperties: NavigationPaneProperties { backButton: ActionItem { title: "Back" onTriggered: { navigationPane.pop(); } } } }, // The third page Page { id: page3 ControlDelegate { id: controlDelegate3 source: "Welcome3.qml" } // A Back button that pops the pane off the stack paneProperties: NavigationPaneProperties { backButton: ActionItem { title: "Back" onTriggered: { navigationPane.pop(); } } } } ] }
User interface of this code is just that I need, but when this code is executed.
On pages 2 and 3 conent is empty.
Even if I change the source of page 2 and 3 for smthing super easy as: a single button {}
Tags: BlackBerry Developers
Similar Questions
-
I use 34.0.5 with Windows 7 and that you cannot print correctly. In print preview, it appears in a label size. I double checked all my settings in firefox and my preferences from the printer, I checked all the pages on firefox problems and still can not solve the problem.
I was able to finally solve the problem, but I had to do a complete reset of firefox. Thank you for your time.
-
When I click on the right botton I see a small copy of the browser page. This problem on the new version of mozilla. This problem is not presented on 15 version of mozilla.
I think that you run two versions;
The details of your system to watch;
Shockwave Flash 14.0 r0 * Shockwave Flash 13.0 r0
-
making Adobe flash in problems
making Adobe flash in problems
Use the installer of Flash Player 12.0.0.44 (Mac OS X) .
Follow the steps detailed here: How to perform a "clean installation" of Flash Player in Mac OS X
-
How can I stop firefox 29,0 start with the page tutorial every time I open it?
I get 2 tabs opening are the tutorial page and the other is my home page. Very annoying and me are gone through any step hoping this would complement something and had no chance to solve this issue.
Hello, this can happen when firefox is not able to correctly save preferences in the profile folder. Please try this: click the menu button
then click on help
> troubleshooting information > profile folder - 'display the folder '. then a new window will open. in this search on a file named user.js window (it can be used to overwrite your custom settings). where it is present, delete or rename this file and then restart firefox.
For more information and other steps, please also see: How to fix preferences that will not save
-
I am unable to access any internet site. I get a page that says Internet Explorer can not display the webpage with an option to diagnose connection problems button. When I run that a window is titled "for windows XP Network Diagnostics. He says that windows has detected a problem with the winsock provider catalog on this computer. It offers to reset the catalog to the default configuration and restart. When I do this it does not correct the problem. What other +.
Hello verncan,
Since you are getting the error Windows has detected a problem with the catalogue of the Winsock provider on your computer, follow the instructions below to reset the Winsock.
Click on "Start" and type "CMD" in the search box. Press the 'Ctrl', 'Shift', and 'Enter' keys simultaneously. This action opens a Windows command with administrative privileges prompt.
Click 'Yes' to dialogue permission screen and opens the Windows command prompt. You should also see 'Administrator' at the top of the window.
Type "netsh winsock reset" next "C:\Windows\System32" and press the Enter"" key.
Restart your computer after you see the message "Winsock catalog reset successfully."I hope this helps.
Sincerely,
Marilyn
Microsoft Answers Support Engineer
Visit our Microsoft answers feedback Forum and let us know what you think -
Hello.
I use a Toshiba laptop with Windows Vista Home Premium 64-bit.
I just have a modem and use a router. I have a network cable (cat 5) connected to my laptop and the modem. I have log-on internet and it connects. But when I open Google Chrome, IE9 or Firefox I can not load a web page. Google mentions something about the DNS cannot be found and DNS_Probe_Finished_No Internet.Frefox says server not found.
I click on the Menu start - Connect To - I am logged in. I already typed my password in the command prompt and appropriate the pppoe connection/address (I use ADSL).
I talked to my ISP and we tried to do certain things. But nothing works. On their end, it shows that I am connected. But I can't browse the internet. We tried to have the DNS and IP address for ipv4 set to obtain automatically and I put 2 numbers of DNS in manually once the settings have been changed to the favorite servers and DNS auxiliary, or worked.
Using command prompt, the DNS has been emptied. It did not help. The modem has been reset the ISP location. I also recreated and set up a new network connection.
My office is using the same pppoe information. I can freely browse the internet and I use Windows Vista Home Premium 32-bit. I was also shown to be connected simultaneously with both machines, but that the Office can go.
I do not have Windows Update the laptop since on April 2016. It has not been used and the battery was empty. I tried to turn off the laptop several times, but nothing works.
Y at - it suggestions to solve this problem? At that time perhaps a re - install will work.
System Restore worked. I will run the updates and see what happens.
I think it was a program that I uninstalled in programs and features.
It's also useful information for this post: https://answers.microsoft.com/en-us/windows/forum/windows_7-networking/unable-to-connect-internet-dns-error-windows-7/72040e27-7a87-4f6f-88d6-9d158da38de8
1.
Note
You must open a command with elevated privileges prompt to complete the following steps. For more information, see command prompt: frequently asked questions
Click the Start button.
In the search box, type command prompt.
In the list of results, right-click Guest, and then click Run as administrator. If you are prompted for an administrator password or a confirmation, type the password or provide confirmation.
At the command prompt, type ipconfig/flushdns.
2.
Start - Search programs and files
Type "Command Prompt".Right-click in the program file that appears above the run as administrator.
ipconfig/flushdns
ipconfig/registerdns
ipconfig/release
ipconfig / renew
-
Duplex page upside down problem
Hello
I recently bought a Photosmart 5515. I was very pleased with it but I can't seem to take full advantage of the automatic duplex function. I was able to turn it on, but the second page keeps printing backwards. I read on other topics on the 'compulsory' solution, but it does not work in my case.
As a temporary fixture, I flip all even pages in reverse, but which can be very annoying for longer documents. So I was wondering if there was a fast and automatic way to solve this problem.
My computer is running Mac OS x 10.8
Help please
Thanks in advance
Hello
I realized that there is a bug in OS 10.8 where it was only settled on the "binding short-faced." I thought that I had downloaded the latest update of Mac OS x, but above all I forgot to reboot my computer for the update could take place. In the end, it resolved my problem.
Thanks for the help
-
Hi guys,.
I began the steep learning curve of JDeveloper and OFA extensions in e-Business, and I'm having some trouble getting tutorials running.
I configured the only documented such JDeveloper environment / more what I found here and via Google. I assigned responsibilities to my applications user and I can navigate fine test pages of e-Business, but when I run the JDeveloper tutorial and the test_fwktutorial.jsp I am initially presented with a list of links to pages on the demo, however when I click on a link, for example the Hello World! I get the following:
500 internal Server Error
JSP error:
Request URI:/OA_HTML/OA.jsp
Exception:
OracleJSP:oracle.jsp.provider.JspCompileException:
Errors compiling:/home/glen/jdevhome/myclasses/.jsps//_OA.java
Here is also the log from the OC4J Server embedded in JDeveloper, I'm also under JDeveloper on a desktop Linux:
[Starting OC4J using the following ports: HTTP=8988, RMI=23891, JMS=9227.] /home/glen/jdevhome/system/oracle.j2ee.10.1.3.41.57/embedded-oc4j/config> /opt/sun-java6/bin/java -server -classpath /home/glen/jdev/jdevbin/j2ee/home/oc4j.jar:/home/glen/jdev/jdevbin/jdev/lib/jdev-oc4j-embedded.jar -DFND_JDBC_STMT_CACHE_SIZE=200 -DCACHENODBINIT=true -DRUN_FROM_JDEV=true -mx256m -XX:MaxPermSize=256M -Doracle.j2ee.dont.use.memory.archive=false -Xverify:none -DcheckForUpdates=adminClientOnly -Xrs -Doracle.application.environment=development -Doracle.j2ee.dont.use.memory.archive=true -Doracle.j2ee.http.socket.timeout=500 -Doc4j.jms.usePersistenceLockFiles=false oracle.oc4j.loader.boot.BootStrap -config /home/glen/jdevhome/system/oracle.j2ee.10.1.3.41.57/embedded-oc4j/config/server.xml [waiting for the server to complete its initialization...] 07-Oct-2014 14:54:27 com.evermind.server.jms.JMSMessages log INFO: JMSServer[]: OC4J JMS server recovering transactions (commit 0) (rollback 0) (prepared 0). 07-Oct-2014 14:54:27 com.evermind.server.jms.JMSMessages log INFO: JMSServer[]: OC4J JMS server recovering local transactions Queue[jms/Oc4jJmsExceptionQueue]. WARNING: Code-source /home/glen/jdev/jdevbin/jdev/appslibrt/xml.jar (from <library> in /home/glen/jdevhome/system/oracle.j2ee.10.1.3.41.57/embedded-oc4j/config/application.xml) has the same filename but is not identical to /home/glen/jdev/jdevbin/lib/xml.jar (from <code-source> (ignore manifest Class-Path) in META-INF/boot.xml in /home/glen/jdev/jdevbin/j2ee/home/oc4j.jar). If it contains different versions of the same classes, it will be masked as the latter is already visible in the search path of loader default.root:0.0.0. WARNING: Code-source /home/glen/jdev/jdevbin/jdev/appslibrt/jazn.jar (from <library> in /home/glen/jdevhome/system/oracle.j2ee.10.1.3.41.57/embedded-oc4j/config/application.xml) has the same filename but is not identical to /home/glen/jdev/jdevbin/j2ee/home/jazn.jar (from <code-source> in META-INF/boot.xml in /home/glen/jdev/jdevbin/j2ee/home/oc4j.jar). If it contains different versions of the same classes, it will be masked as the latter is already visible in the search path of loader default.root:0.0.0. WARNING: Code-source /home/glen/jdev/jdevbin/jdev/appslibrt/jazncore.jar (from manifest of /home/glen/jdev/jdevbin/jdev/appslibrt/jazn.jar) has the same filename but is not identical to /home/glen/jdev/jdevbin/j2ee/home/jazncore.jar (from <code-source> in META-INF/boot.xml in /home/glen/jdev/jdevbin/j2ee/home/oc4j.jar). If it contains different versions of the same classes, it will be masked as the latter is already visible in the search path of loader default.root:0.0.0. WARNING: Code-source /home/glen/jdevhome/system/oracle.j2ee.10.1.3.41.57/embedded-oc4j/applications/datatags/webapp/WEB-INF/lib/uix2.jar (from WEB-INF/lib/ directory in /home/glen/jdevhome/system/oracle.j2ee.10.1.3.41.57/embedded-oc4j/applications/datatags/webapp/WEB-INF/lib) has the same filename but is not identical to /home/glen/jdev/jdevbin/jdev/appslibrt/uix2.jar (from <library> in /home/glen/jdevhome/system/oracle.j2ee.10.1.3.41.57/embedded-oc4j/config/application.xml). If it contains different versions of the same classes, it will be masked as the latter is already visible in the search path of loader datatags.web.webapp:0.0.0. Ready message received from Oc4jNotifier. Embedded OC4J startup time: 4109 ms. Target URL -- http://localhost.localdomain:8988/OA_HTML/test_fwktutorial.jsp 14/10/07 14:54:29 Oracle Containers for J2EE 10g (10.1.3.3.0) initialized (process:12356): GLib-CRITICAL **: g_slice_set_config: assertion 'sys_page_size == 0' failed 07-Oct-2014 14:54:48 oracle.jsp.logger.JspMessages infoCannotDispatchJspPage INFO: Unable to dispatch JSP Page : oracle.jsp.provider.JspCompileException: <H3>Errors compiling:/home/glen/jdevhome/myclasses/.jsps//_OA.java</H3><pre></pre> at oracle.jsp.app.JspJavacCompiler.compile(JspJavacCompiler.java:304) at oracle.jsp.runtimev2.JspPageCompiler.attemptCompilePage(JspPageCompiler.java:731) at oracle.jsp.runtimev2.JspPageCompiler.compileBothModes(JspPageCompiler.java:456) at oracle.jsp.runtimev2.JspPageCompiler.compilePage(JspPageCompiler.java:413) at oracle.jsp.runtimev2.JspPageInfo.compileAndLoad(JspPageInfo.java:705) at oracle.jsp.runtimev2.JspPageTable.compileAndServe(JspPageTable.java:694) at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:414) at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594) at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518) at javax.servlet.http.HttpServlet.service(HttpServlet.java:856) at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:713) at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370) at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871) at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453) at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:221) at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:122) at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:111) at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260) at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:239) at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:34) at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:880) at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303) at java.lang.Thread.run(Thread.java:662)
Hoping that someone could see something obvious, thanks in advance
Glen -
"Page not found" problem only with firefox. Help, please
I get the error "page not found" only with firefox. Works fine on Chrome!
I don't really know what causes this problem.
Help, please.
My Web site address:
Thank you very much.
Please delete browser cookies, then check if still the same issue reset preferences.
The site works fine on my end with firefox and other bowers:
Thank you
Sanjit
-
I hope someone can help me with this mystery.
I've added a top-level page on my site and verified in preview mode. Looks like a lot. Everything works fine. But when I published, the menu bar leads me to a page not found error.
So I recorded the site in html format that downloaded on my server. Still the same problem. Then I created a page with a different name duplicate and returned through the whole process, but it is also not found.
I don't think it's a hosting issue because all my other changes are displayed instantaneously.
I've never had this problem before Muse. Can someone tell me how to get the new page is displayed online?
Hello
In Muse, under the site map to go to the page that displays this error, right-click on the thumbnail and if the option "Export Page" is checked or not. Otherwise, check, save and publish again, this will solve the problem.
-
Pages of weird problem moving around
Well, I'm completely stumped.
I have a 350 page book, divided into 12 documents. It is a recipe book, individual recipes are all one or two pages each. I needed to reorganize the revenues - move some around a document. others, that I needed to move from one document to another. A simple task, I thought.
Inside the document, I moved to pages using the method drag in the Pages window. Everything was going well. But when I tried to move a single recipe of two pages of a document to another by using the function "move page", things got very strange. The pages that I moved went straight into their new home. But when I tried to remove them from their original location, he scrambled all the pages that I had just reorganized. Some disappeared completely. The pages that I just tried to delete really just moved to a new location in the original random document and did not stay together.
I looked in the editor mode, I discovered that that the editor was concerned, the pages that I had moved by dragging had not REALLY moved. They were still in their original locations. But they HAD moved in all other ways - visually, paging-wise, etc.. I went back to a version recorded and tried to delete the recipe of thugs in the editor. Same effect of interference to other pages. I tried to delete a paragraph at a time and discovered that the recipe that it I had tried to remove had a very small code at the end of each of the pages that has proved to be the source of the problem. Remove this code and chaos ensues. I can't tell what the code is or does or if it's a bug or a feature or what.
I'm sure I must have done something wrong when I put it in place, but what the hell am I supposed to do now? Surely InDesign allows you to move pages.
Any ideas?
Rather than the script frame break, you can really use the SplitStory script, which will break all the frames on the threads.
-
Page auto numbering problem if I export to PDF
I use IDS 5.5 with all updates. I set up a book and when I export to PDF for print, fourth chapter numbering remains the same (namelly pages 56 and 57) although I have implemented correctly master pages with the special character of AutoNumber. If I export only this chapter as a document, it exports all right. No problem with the numbers of the pages (?). In ID, the numbers look ok. I have not tried to print directly fron ID, I guess it will print ok, but it's a very strange behavior... Thanks much for any thoughts.
It is unlikely, that there is a problem with Acrobat, try opening this chapter only and exportingit to idml, then resave as indd.
-
Making page extend down...
Hey all, this is probably an easy fix, but I thank you for taking the time to help me. I really appreciate it.
Then, go to this site:
http://www.brainstormstudios.com/HHA/HHAdotcom.htm
I need to get so that the site extends to the very bottom of the page, regardless of how the viewer will open it. (height = 100%)
I thought making a table and put at the bottom of the content than the bottom box and say things horizontally, but I tried before and it didn't work. What is the best way to do this? If I explained well enough, let me know. Thank you!
With CSS, use No.-repeat on the background property.
#div {}
Background: url (Images/some - BG.jpg) no-repeat;
}
Tutorials HTML & CSS - http://w3schools.com/
Nancy O.
ALT-Web Design & Publishing
Web | Graphics | Print | Media specialists
http://ALT-Web.com/
http://Twitter.com/ALTWEB
http://ALT-Web.blogspot.com -
Dynamic spacing of page XHTML PHP problem
This problem is driving me crazy, but I think I finally reduced him to the problem.
In this site, I am trying to integrate the image display program called "Gallery" which is an open source free PHP (xhtml) program/script-driven.
I got it incorporated and works very well, except for one annoying problem. As you will see, there is a problem with spacing between the table of the top banner and the td background image in FireFox only. Seen in IE6, the problem goes away. Because I know that IE is not as compatible as FF, the problem is most likely in the way that the strict XHTML page, required by the Gallery, shows something is not like in FF.
In any case, I stripped all the links in css gallery and the gallery itself off the page.
http://northwindcharters.NET/Gallery/main.php
If you go to the main site index, you will see how it should look in both browsers. Of course I would like help on this resolution in FF. I've exhausted my knowledge and worked literally hours on it using the plugin FF called "Web Developer Tool" live editing css and re-create the page with different options, you know the drill.
Thank you very much.I solved the problem. I used a div instead of a table for the top banner, and the problem disappeared.
Maybe you are looking for
-
HP G62-364DX laptop: need to unlock the Bios of HP G62-364
I need help unlocking a HP G62-364DX. From the start, I wonder of "administrator password:" after you have entered the incorrect password 3 times, I get the following code: 57677818.»» Please provide me the unlock key. Thank you.
-
How to enter BIOS in Windows 8
Hello I use T440. I have just upgraded the operating system windows 7 to windows 8 using the recovery disk. I'm updating according to the printed manual in the box. The question is, windows 8 is installed in my HARD drive with 500GB capacity and 16 G
-
I have trouble finding the disk space used by files and folders individually and when I try to know how much is consumed and free by right click on my computer. This was easy in XP, but I can't get the answers I need to analyze which uses space, whe
-
My wife can not access our photos in windows photo gallery
My wife and I just bought a new computer with an operating system Windows vista Home premium. We share this computer and we each have our own user account. I imported photos from our digital camera in windows photo gallery and I can access and wor
-
Internet does not work (2 years)
Ok. So my PC at home (Acer Aspire M5100) had no problem until about 2 years ago. One day, apparently out of no where, the internet just stopped working. There is no internet connection (VPN only), and when I click on the diagnosis he tells me to plug