Do we have any method to input data and store it in a variable with Muse?

Hi, I know we can create contact forms, but I am not interested in that. Let's imagine I want to create an input for example:
What's your name? ________________
The user enter a reply: JOE
And then I grab that data from a variable and I write:
Nice to meet you JOE
Could we make this in Muse?
How?
Cheers

Hi Mr Mister,
I will recommend that you use JavaScript. In fact, the easiest way that I can think of achieving this is via AngularJS
I implemented the first basic example, which is what you requested, from the AngularJS's web site on this muse page - Demo - Angularjs, to demonstrate how it can be integrated with Muse.
Screen cast of the demo page(, in case I accidentally break the Demo page above in future) -->
This is how I implemented it. This code snippet goes into the 'Page Properties -> Metadata -> HTML for Head' -->
<script>
  window.onload = function() {
  document.getElementsByTagName("html")[0].setAttribute("ng-app","");
  var scr = document.createElement('script');
  scr.src = "https://ajax.googleapis.com/ajax/libs/angularjs/1.3.0/angular.min.js";
  document.getElementsByTagName('body')[0].appendChild(scr);
</script>
This is the code that you insert via 'Object -> Insert HTML' to place the input box on the page -->
Name here - <input type="text" ng-model="yourName" placeholder="Enter a name here"> will auto update :
And finally, this is the code that is repeated on the page to display the name, inserted via 'Object -> Insert HTML' -->
<h1>Here - {{yourName}}!</h1>
To explain this briefly, 'yourName' is the variable that you were talking about capturing via the input so that you can display that anywhere on the site. Let me know if you need more clarification on this.
Recommended Watching: This small video here demonstrate how this can be achieved using Jquery as well as AngularJS - AngularJS Hello World - YouTube
- Abhishek Maurya

Similar Messages

  • Do we have any method to list out the servers that are critical and the component/monitor causing the server to turn into critical state in SCOM 2012

    Hello Team,
    We are monitoring 1000 servers in our environment and out of 1000 servers, we have approximately 100 servers showing as critical state on the server state view.
    We can get the critical servers list from SCOM console, but we are not able to get the information about the component responsible for the server to be critical. Using Health explorer to find the root cause for 100 servers is really impossible and time consuming.
    Do we have any method to list out the servers that are critical and the component/monitor causing the server to turn into critical state?
    Advance thanks for your help.
    Regards,
    Dinesh
    Thanks &amp; Regards, Dinesh

    Hi,
    As far as I know alerts with severity as criticla may cause windows computer in a critical state, we can try below code to find all critical alerts:
    get-alert -criteria 'ResolutionState=0 AND Severity=2' | select Name,ResolutionState,TimeRaised | export-csv c:\Alerts.txt
    Criteria Syntax http://msdn.microsoft.com/en-us/library/bb437603.aspx
    Values to use.
    Resolution State 
    Severity Values for Alerts
    0       =   New
    0 = INFORMATIONAL
    255   =   Closed
    1 = WARNING
    2 = CRITICAL
    Hope this helps.
    Regards,
    Yan Li
    Regards, Yan Li

  • Working of serializable interface, when it doesn't have any methods

    Hi,
    I am curious about how the serializable interface is used in JVM.
    This is an empty interface. ie. it does not have any method signatures or any variables inside.
    How does java use this interface, for serializing purposes.
    Also, why should it be an interface, when its all empty.

    Such marker interfaces are just used to tell something about about a class, in this cases that the developer wants that instances of a class can be serialized. The code that handles the serialization just check s"instanceof Serializable". Of course Serializbale could look like this
    public interface Serializable
    public boolean isSerializable();
    But why make things more complicated than necessary?

  • I have a Macbook 2,1 and want to wipe it clean so as I can give it away.  I do not have any original start up disks and wondered how I can do this?

    I have a Macbook 2,1 and want to wipe it clean so as I can give it away.  I do not have any original start up disks and wondered how I can do this?

    If your Mac is running 10.6 like your signature says, then the 10.6.3 upgrade disks will work as they contain the full 10.6, you need to hold the option key down to select the disk to boot from.
    Once booted from the disk, Disk Utility is there to wipe the drive (use the Security Option > Zero) and then reinstall O S X 10.6.3 and then reboot, press the power button down to hard shutdown and the machine will stay like that to boot into the Welcome to Mac video for the next owner to setup.
    How to erase and install Snow Leopard 10.6
    How do I securely delete data from the machine?

  • I have checked the box "display date and time on the Menu Bar" and it does not work.  Using OS X Yosemite 10.10.2  Anybody have a fix?

    I have checked the box "display date and time on the Menu Bar" and it does not work.  Using OS X Yosemite 10.10.2  Anybody have a fix?

    Please read this whole message before doing anything.
    This procedure is a test, not a solution. Don’t be disappointed when you find that nothing has changed after you complete it.
    Step 1
    The purpose of this step is to determine whether the problem is localized to your user account.
    Enable guest logins* and log in as Guest. Don't use the Safari-only “Guest User” login created by “Find My Mac.”
    While logged in as Guest, you won’t have access to any of your documents or settings. Applications will behave as if you were running them for the first time. Don’t be alarmed by this behavior; it’s normal. If you need any passwords or other personal data in order to complete the test, memorize, print, or write them down before you begin.
    Test while logged in as Guest. Same problem?
    After testing, log out of the guest account and, in your own account, disable it if you wish. Any files you created in the guest account will be deleted automatically when you log out of it.
    *Note: If you’ve activated “Find My Mac” or FileVault, then you can’t enable the Guest account. The “Guest User” login created by “Find My Mac” is not the same. Create a new account in which to test, and delete it, including its home folder, after testing.
    Step 2
    The purpose of this step is to determine whether the problem is caused by third-party system modifications that load automatically at startup or login, by a peripheral device, by a font conflict, or by corruption of the file system or of certain system caches.
    Please take this step regardless of the results of Step 1.
    Disconnect all wired peripherals except those needed for the test, and remove all aftermarket expansion cards, if applicable. Start up in safe mode and log in to the account with the problem. You must hold down the shift key twice: once when you turn on the computer, and again when you log in.
    Note: If FileVault is enabled in OS X 10.9 or earlier, or if a firmware password is set, or if the startup volume is a software RAID, you can’t do this. Ask for further instructions.
    Safe mode is much slower to start up and run than normal, with limited graphics performance, and some things won’t work at all, including sound output and Wi-Fi on certain models. The next normal startup may also be somewhat slow.
    The login screen appears even if you usually log in automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin.
    Test while in safe mode. Same problem?
    After testing, restart as usual (not in safe mode) and verify that you still have the problem. Post the results of Steps 1 and 2.

  • I have a new Macbook pro and need to run some Windows software, it appears "Parallel" should work well from what I've have read. Will I have any issues or problems accessing and printing from various printers on my Windows 7 network within Parallel?

    I have a new Macbook pro and need to run some Windows software, it appears "Parallel" should work well from what I've have read. Will I have any issues or problems accessing and printing from various printers on my Windows 7 network within Parallel? Is Parallel in fact the best way to go?

    First, back up all data immediately, as your boot drive might be failing.
    There are a few other possible causes of generalized slow performance that you can rule out easily.
    Reset the System Management Controller.
    If you have many image or video files on the Desktop with preview icons, move them to another folder.
    If applicable, uncheck all boxes in the iCloud preference pane.
    Disconnect all non-essential wired peripherals and remove aftermarket expansion cards, if any.
    Check your keychains in Keychain Access for excessively duplicated items.
    If you have more than one user account, you must be logged in as an administrator to carry out this step.
    Launch the Console application in the same way you launched Activity Monitor. Make sure the title of the Console window is All Messages. If it isn't, select All Messages from the SYSTEM LOG QUERIES menu on the left. If you don't see that menu, select
    View ▹ Show Log List
    from the menu bar.
    Select the 50 or so most recent entries in the log. Copy them to the Clipboard (command-C). Paste into a reply to this message (command-V). You're looking for entries at the end of the log, not at the beginning.
    When posting a log extract, be selective. Don't post more than is requested.
    Please do not indiscriminately dump thousands of lines from the log into this discussion.
    Important: Some personal information, such as your name, may appear in the log. Anonymize before posting. That should be easy to do if your extract is not too long.

  • I have just purchased a new macbook and need to sync my iphone with itunes, i understand that you can only sync your phone with one itunes account. I do not want to wipe my iphone when syncing with this new itunes account. Any advice welcome

    I have just purchased a new macbook and need to sync my iphone with itunes, i understand that you can only sync your phone with one itunes account. I do not want to wipe my iphone when syncing with this new itunes account. Any advice welcome

    1) authorize iTunes on the new machine for your iTunes store account(s)
    2) connect your device and right-click or control-click it in the iTunes Source list, then choose transfer purchases from the shortcut menu that appears.
    3) sync the device
    iTunes will wipe the iPhone but, since you transferred your purchases in the previous step, your content will be in your library and you can re-populate the iPhone with it.

  • How do i keep only the name of a month in a cell in Numbers and not have it auto fill the date and time?

    how do i keep only the name of a month in a cell in Numbers and not have it auto fill the date and time?

    Hi JN and Barry,
    Barry wrote:
    The second case may not be included in the available D&T formats in Numbers 3
    For my region, the Date & Time data formats include month.
    The Date Pop-Up
    This may not be the case for all regions.
    Remember that the month is only the display, and the Full Date & Time is still there. If I change the format to reveal what is behind the curtain:
    Regards,
    Ian.

  • HT1937 I want to ask you question please i have free apple id because i am still a college boy who doesn't have any of credit visa card and i just want to download beautiful apps on my phone including whats app but they require payment information to comp

    I want to ask you question please i have free apple id because i am still a college boy who doesn't have any of credit visa card and i just want to download beautiful apps on my phone including whats app but they require payment information to complete my request so please help me and please find a solution for this problem because not everyone have credit or master card .

    Buy an iTunes gift card.
    http://www.apple.com/support/itunes/cards-codes/

  • I have tried to restore my old iPhone 3, but when i tried the itunes logo and a pic of a USB cable have come up on my phone and now i cant do anything with my phone.Any ideas how i can fix this? I can make/receive call. iPhone 3GS, iOS 3.1.2. Thanks

    I have tried to restore my old iPhone 3, but when i tried the itunes logo and a pic of a USB cable have come up on my phone and now i cant do anything with my phone.Any ideas how i can fix this? I can make/receive call. iPhone 3GS(Ireally don't remember if it's a 3G or 3GS), iOS 3.1.2. Thanks for your help

    please help me!!!

  • How to get the fixed result in a DES/CBC mode with fixed input data and fix

    How to get the fixed result in a DES/CBC mode with fixed input data and fixed key. Below is my program , I tried to get the checksum of the DESInputData with the DESKeyData, but each time the result is different.
    below is my code:
    byte[] DESKeyData = {(byte)0x01 ,(byte)0x01 ,(byte)0x01 ,(byte)0x01, (byte)0x01 ,(byte)0x01 ,(byte)0x01 ,(byte)0x01 };
    byte[] DESInputData = {(byte)0x31 ,(byte)0x31 ,(byte)0x31 ,(byte)0x31,(byte)0x31 ,(byte)0x31 ,(byte)0x31 ,(byte)0x31 };
    SecretKeySpec skey = new SecretKeySpec( DESKeyData, "DES" );
    Cipher cipher = Cipher.getInstance("DES/CBC/NoPadding");
    cipher.init( Cipher.ENCRYPT_MODE, skey );
    byte[] result = cipher.doFinal( DESInputData );

    Use class javax.crypto.spec.IvParameterSpec to specify IV for CBC mode cipher:
    // Create CBC-mode triple-DES cipher.
    Cipher c = Cipher.getInstance("DESede/CBC/PKCS5Padding");
    // Specify IV.
    IvParameterSpec iv = new IvParameterSpec(new byte[] { (byte)0x01, (byte)0x23, (byte)0x45, (byte)0x67, (byte)0x89, (byte)0xAB, (byte)0xCD, (byte)0xEF });
    // Initialize cipher with proper IV.
    c.init(Cipher.ENCRYPT_MODE, yourKey, iv);
    // Encrypt and decrypt should work ok now.
    For more info about cryptography, search the Internet for IntroToCrypto.pdf from mr. Phil Zimmerman. This document is also part of PGP (http://www.pgp.com).
    An excellent book is 'Applied Cryptography' from Bruce Schneier (http://www.counterpane.com/applied.html).
    Regards,
    Ronald Maas

  • The battery for my Macbook Pro 13 "has only 121 cycles and is not charging anymore, my Mac is telling me that it is necessary to exchange it. You have any tips for me to find out what might be happening with my battery?

    The battery for my Macbook Pro 13 "has only 121 cycles and is not charging anymore, my Mac is telling me that it is necessary to exchange it. You have any tips for me to find out what might be happening with my battery?

    Guys, i am actually trying using a solution provided by the article shared by dominic23,
    It says "Another option is to get an ionizer to help the atmosphere in the workplace be more conductive and pull charges away from contact surfaces, including yourself."
    So in my home, we have such device that could clean the air using ion, and i am using it in my room...
    Result: BANG!!! The electric shock on my macbook has gone!! I don't really care about physics but somehow it works! You guys should give it a try.
    Thanks again dominic23

  • I have upgraded to OS X mavericks and there is now a problem with my email. I have discovered several emails no longer contain the original message instead another completely different message is appearing but under the name of original sender. Any ideas?

    I have upgraded to OS X mavericks and there is now a problem with my email. I have discovered several emails no longer contain the original message instead another completely different message is appearing but under the name of original sender. Any ideas?

    With the account mailbox selected, Mailbox menu, Rebuild.

  • I have transefer function like (1/(s^2+s+​5)) and i have a square wave input , i want to use this transfer function with this input to see the output , how can i do that , with example please.

    i need to know also how to represent this transfer function in labview, try to send me example. answer me at my mail

    "st" wrote:
    > answer me at my mail
    give a valid e-mail first, and your name, we don't like to help anonymous
    people
    > try to send me example.
    how much do you pay ?
    > i have transefer function like (1/(s^2+s+5)) and i have a square wave
    > input , i want to use this transfer function with this input to see
    > the output , how can i do that
    First you have to know what you are doing, like an engineer : you have a
    Laplace, continuous time transfer function but LabView handles discrete
    signals only. Use matlab/simulink if you want to simulate continuous time
    systems easily...
    If you definitely want to use LabView, the first step is to discretize your
    continuous-time transfer function, i.e. decide a sampling rate and convert
    it to a "z transfor
    m". Then you can directly use the "IIR Filter.vi" as I
    said earlier.
    Philippe Guglielmetti - www.dynabits.com me at my mail

  • HT201441 I have bought an used Iphone from a shop. then i put my account id in it. then it goes perfectly. After awhile i have done a reset all data and sitting then i could not get the Iphone started because it have been asked to put another email starti

    I have bought an used Iphone from a shop. then i put my account id in it. then it goes perfectly. After awhile i have done a reset all data and sitting then i could not get the Iphone started because it have been asked to put another email starting with u
    For contact [email protected]

    Sounds like the Activation Lock is still set to the previous owner. If you are unable to get that Apple ID and password that iPhone is totally useless to you.
    Take it back to the shop and demand your money back because they sold it to under false pretenses.
    Allan

Maybe you are looking for

  • How to detect the two Enter in  HTTP Request Line"

    I'm writing a HTTP Server. I want to ask how can I detect the "two <Enter> press" when the client finishes his request. Suppose the client typed the following: GET /xxx/index.html<ENTER> <ENTER> (Response header and Entity body here) if the user type

  • Sap wms fixed bin replenishment

    hi experts, i am creating fixed bin replenishment the max bin qty  40,  min  10 and replenishment qty 50 and i try to create LP21   fil the fields the whno storage type and bin and executed but the replenishment is not happened  . the automatic TR al

  • "Click" sound when releasing a key

    when releasing a key on my midi keyboard i hear a "click" sound. how do i turn it off? thanks. Alon

  • I am unable to install firefox via Internet Explorer

    I had a problem when launching firefox this morning. I have now uninstalled it and am attempting to re-install via IE. When I click on the 'Download' button I get an error saying IE cannot find the site and to try later. This has been happening for s

  • Album Covers Disappearing When Syncing

    Recently I purchased a new Ipod Touch G4 & noticed something strange that hadn't occured with any of my previous Ipods (which are still in use & do not display this same issue). Basically, I have 3-4 computers/laptops I typically use with my Ipod: wh