Meteora Javascript Widgets http://meteora.astrata.com.mx/ Meteora Javascript Widgets Meteora Javascript Widgets Tue, 27 Sep 2011 18:53:41 -0700 http://www.textmotion.org New topic "Selection - database" by setht http://meteora.astrata.com.mx/forum/view/widgets-and-scripts/help-with-widgets/selection-database http://meteora.astrata.com.mx/forum/view/widgets-and-scripts/help-with-widgets/selection-database Can Selection be used to display items from a database and then based on the selections in the box areas, store these selections in the database? arhollander@gmail.com (Unknown) Tue, 27 Sep 2011 18:53:41 -0700 New topic "Just Hosed" by getburl http://meteora.astrata.com.mx/forum/view/general/help-for-beginners/just-hosed http://meteora.astrata.com.mx/forum/view/general/help-for-beginners/just-hosed I have been trying to get Meteora to work with Mootools. I think there is something missing from the documentation about when and how you can use Mootools methods. By adding Meteora to my page it is immediately broken and also breaks my other commonly used Mootools widgets. The first thing I found is that the logging mechanism is looking for Meteora.options by default and Meteora.options at that point does not exist. So, Meteora by default is broken. That is not the only part that is broken or breaks other scripts that are properly namespaced. But, I don't have time to debug the issues so I need to move on to another solution for my interface needs. adam@adambragg.com (Unknown) Sat, 26 Jun 2010 10:53:52 -0700 New topic "Dialog.prompt return 'undefined' value" by gespert http://meteora.astrata.com.mx/forum/view/widgets-and-scripts/help-with-widgets/dialog-prompt-return-undefined-value http://meteora.astrata.com.mx/forum/view/widgets-and-scripts/help-with-widgets/dialog-prompt-return-undefined-value That's it, dialog.prompt return a 'undefined' value. Is correct to access form filled data use this.value? I'm testing documentation examples. Code: <script type="text/javascript"> Meteora.uses('Meteora.Form'); Meteora.uses('Meteora.Dialog'); function novaLlicenciaPrompt() { Dialog.prompt( '{$npr_denominacio_nva_llicencia}', { 'title': '{$npr_titol_nova_llicencia}', 'onOk': function(dialog) { if (this.value != "") { Dialog.alert('Your password was: '+this.value); dialog.close(); } else { Dialog.alert('Please fill the blank'); } } } ); } </script> In the html page <input type="button" value="{$npr_nou_tipus_llicencia}" onClick="novaLlicenciaPrompt();" /> The '{$npr_titol_nova_llicencia}' and '{$npr_denominacio_nva_llicencia}' are Smarty tags for internalization. I parse javascript templates as separate html templates. The prompt is a option if in a <select> in the form is not present an <option> right for the user. In this case, user press a button that shows the prompt. In this prompt, user fill the desired data and this data is used in the main form. gespert@yahoo.es (Unknown) Fri, 14 May 2010 13:43:50 -0700 New topic "The Array is messed up" by shlomoaran http://meteora.astrata.com.mx/forum/view/general/help-for-beginners/the-array-is-messed-up http://meteora.astrata.com.mx/forum/view/general/help-for-beginners/the-array-is-messed-up I see that after I added the meteora to my code, the Arrays are messed up and looks (in the debuggers) with $methods and $family. When I do: for (i in list) i get wiered values (such as $family and $foreach...). shlomo@vapisoft.com (Unknown) Mon, 03 May 2010 12:16:28 -0700 New topic "How to create the json string from array" by shlomoaran http://meteora.astrata.com.mx/forum/view/general/help-for-beginners/how-to-create-the-json-string-from-array http://meteora.astrata.com.mx/forum/view/general/help-for-beginners/how-to-create-the-json-string-from-array Hi, I have an array of strings and I have a json encoder (array to json string). But how do I create a json string with all the "lable:" and items: and the { } that the TreeView expects? shlomo@vapisoft.com (Unknown) Fri, 30 Apr 2010 04:08:21 -0700 New topic "How to begin" by shlomoaran http://meteora.astrata.com.mx/forum/view/general/help-for-beginners/how-to-begin http://meteora.astrata.com.mx/forum/view/general/help-for-beginners/how-to-begin I am just beginning to use meteora so I copied the demo to my js file but it doesn't work The page is not loaded and there is an error. In the html page (before the </head> I add the following line: <script type="text/javascript" src="meteora/src/meteora.js"></script> In the body I add a 'comments_tree' div. I the js file I have an onLoad function (that is called when the page is loaded). In the onLoad function I added the following: Meteora.uses('Meteora.Treeview'); Meteora.onStart( function() { new MeteoraControl( new Treeview( // ELEMENT // ID or object reference to a container element. 'comments_tree', // NODE TREE [ { 'label': 'First level node i', 'items': [ { 'label': 'Second level node', 'items': [ { 'label': 'Third level node i' }, { 'label': 'Third level node ii' } ] } ] }, { 'label': 'AJAX node', 'items': '/path/to/json/node' } ] ); } ); shlomo@vapisoft.com (Unknown) Thu, 29 Apr 2010 16:41:31 -0700 New topic "Problem with FileBrowser " by pedro62 http://meteora.astrata.com.mx/forum/view/general/help-for-beginners/problem-with-filebrowser http://meteora.astrata.com.mx/forum/view/general/help-for-beginners/problem-with-filebrowser Hi everyone, I successfully installed the FileBrowser widget on my website, and now I'd like to turn it into a portal (iGoogle like) widget but I encounter some issues. Here's the html I use for my portal widget: <head> <!-- meteora --> <script src="http://myremoteserver.org/meteora/src/meteora.js" type="text/javascript"></script> <!-- meteora --> </head> <body> <div id="filebrowser-div" ></div> <script type="text/javascript"> Meteora.uses('Meteora.Filebrowser'); Meteora.showDebug(true); Meteora.onStart( function() { new Filebrowser( 'filebrowser-div', 'filebrowser.php', { 'path': '/' } ); } ); </script> </body> Firebug gives me 2 errors: "Meteora.options is undefined" in Meteora.js at line 376 --> " if (Meteora.options.debug.startOpened) { " And the second one: Meteora.uses is not a function in the html code above at line 20 --> " Meteora.uses('Meteora.Filebrowser'); " It may be worth to mention that the server-side script "filebrowser.php" is basically the script that is given in the test folder, and that the portal and the meteora library are hosted on 2 different servers. Thanks a lot for your help! trainee.pduplo10@oxylane.com (Unknown) Thu, 15 Apr 2010 09:38:53 -0700 New topic "bug in Calendar" by inetd http://meteora.astrata.com.mx/forum/view/general/bug-reports/bug-in-calendar http://meteora.astrata.com.mx/forum/view/general/bug-reports/bug-in-calendar value="08/05/2010" and value="9/05/2010" both give 00/05/2010 obviously a bug (my format is %d/%m/%Y) inetd@mailinator.com (Unknown) Fri, 09 Apr 2010 16:33:38 -0700