Embedding Javascript and HTML nto Adobe Muse

I am trying to embed javascript for dynamic text into my Adobe Muse site but I can't seem to get it to work.
Here is my code:
HTML:
<span id="spanDate"></span>
Javascript:
   <script type="text/javascript">
   var months = ['January','February','March','April','May','June','July',
'August','September','October','November','December'];  
var tomorrow = new Date();
tomorrow.setTime(tomorrow.getTime() + (1000*3600*24));  
document.getElementById("spanDate").innerHTML = months[tomorrow.getMonth()] + " " + tomorrow.getDate()+ ", " + tomorrow.getFullYear();
   </script>
I am placing the Javascript under metadata in the page properties. I tried on the individual page and on the master page. And I am placing the HTML with the Insert HTML option.
I can't seem to get the code to populate properly though. I tried the same code on a test site and it worked just fine.
Any and all advice is greatly appreciated!

It seems you have some blank spaces at the end of each line in your javascript code. Try checking for that.
In an unrelated issue I found another error in your CSS file. In your moduleStyleSheets.css file on line 1253 you have an extra ; on the end.
border-bottom: 1px solid #eee;;
Should be:
border-bottom: 1px solid #eee;

Similar Messages

  • Embedded Javascript and CSS removed from mail

    Hey folks,
    I wrote a small app to send a html email to myself.
    When I sent it inline all the embedded javascript and css were removed.
    When sent as a .html page attachment and opened from within the browser (Gmail, Mozilla 2.0)
    all the embedded script and css were gone. However when downloaded to the machine, it was all there.
    Looks like this is a browser issue, would anyone know how to get around it?
    It's so that I can have collapsable headers in my email message.
    Thanks,
    Mark.

    Hi Tony.
    Yes, it's possible. Read [Wiki WPC FAQ|https://wiki.sdn.sap.com/wiki/display/KMC/WebPageComposer-FrequentlyAskedQuestions+%28FAQ%29#WebPageComposer-FrequentlyAskedQuestions%28FAQ%29-WhataboutusingstandardHTMLpagesinWPC%3F].
    KM supports relative links in HTML documents so it may be necessary include any dependent files in the same folder as the HTML document.
    In case of a web page and its dependent files are stored in different folders you need editing the source html code:
    1. use Portal Drive and any text editor (I prefer Notepad++. It has the feature "Search and Replace in files") to open the html source file.
    2. search for links to dependent files and add the following pattern: /irj/go/km/docs//<path to an dependent file>/ before a filename, for example:
    You have a web page with css file. The page is stored in documents repository under the folder with ID old_pages. The css is resides in css folder.
    So the existing code
    <LINK REL=STYLESHEET TYPE="text/css" HREF="css/style.css">
    should be replaced with the
    <LINK REL=STYLESHEET TYPE="text/css" HREF="/irj/go/km/docs//documents/old_pages/css/style.css">
    Best regards,
    Aliaksandr

  • Page-embedded Javascript and uploaded images are not cached.

    Hello All,
    I was reading in Wiki APEX and I found this line mentioned as cons: "Page-embedded Javascript and uploaded images are not cached".
    The question that I have posted many questions here how to enable the cache for Images and Javascripts but didn't get it right, is the wiki info right about the cache for images and JS?
    thanks,
    Fadi.

    Look at the bottom of this page as well [http://carlback.blogspot.com/2007/12/apex-and-3rd-party-js-libraries.html]
    Patrick Wolf
    Carl,
    the only drawback with #WORKSPACE_IMAGES# and #APP_IMAGES# is that it doesn't get cached by the browser. So each page request will transmit the hole file again. A caching option for the "Static Files" in the Shared Components would be nice :-)
    About lazy loading with the #WORKSPACE_IMAGES#. I could think about a mod_rewrite rule which translates the additional file request of the JS library into a valid request for APEX.
    Carl Backstrom
    In 3.1 we emit a last modified header now for uploaded files so that should help with browser caching.
    I wonder if anything's changed since then.
    Kofi

  • How to include javascript and HTML in analysis output?

    Is there any document for that? Currently I set Treat Text As HTML under Data Format tab and include some simple HTML in Column formula, but I doubt it is correct way to include javascript and HTML in ayalysis output. Can anybody provide any idea or sample?
    Thanks

    Hi,
    i am not sure about javascript but yes treat text as Html is used to utilize HTML power in OBIEE.There are many examples of this.Common uses are a href,GoNav and PortalPagenav fuction.These function are mix of HTML and OBIEE.We gebrally use this option when we want to carry out some HTML operation on data rendered by OBIEE.Common example is to make data values a hyperlink for which we use a href
    See the below links for GoNav and a href
    http://108obiee.blogspot.com/2009/09/go-url-request-navigation-between.html
    Creating Hierarchies on Direct Database Requests
    You can also write java scripts here.
    Regards,
    Sandeep

  • Export html from adobe muse to use in dreamweaver

    Is it possible to export html from adobe muse to use in dreamweaver?
    Example... I finished my website in Adobe Muse but want to trasnfer it all over to Dreamweaver when I'm finished.

    There is a Muse support forum here: http://muse.adobe.com
    The HTML generated by Muse is pretty messy so you should be pretty fluent in HTML/CSS to hack it up in DW.

  • A client is curious to see if I export HTML from Adobe Muse, will he be able to edit the HTML in another program?

    A client is curious to see if I export HTML from Adobe Muse, will he be able to edit the HTML in another program?

    Thank you. I thought so, but just wanted to confirm. I appreciate the feedback.
    -Joe

  • Detect iOs and Android in Adobe Muse

    Hi all,
    I have a website for downloading iPad and Android tablet Enterprise app. Now i have 2 buttons in it to download Android and Ios app and i need to change it to single button. Is there any way to do it using Adobe Muse.

    Currently you can use In-Payments on iOS using the Native Extensions feature available in AIR 3.
    I have written a native extension for In-App Purchases on iOS. You can give it a try http://code.google.com/p/in-app-purchase-air-ios/
    Please go throght the Wiki and links given on project homepage, also submit the issue if you face any
    BTW: You can use it with AIR 3 RC Release currently available on Labs and to be released soon...

  • Parallax Scrolling and HiDPI in Adobe MUSE

    Hi all,
    I have a small problem. I've upgraded to the latest version of Adobe Muse and enabled on my latest project the HiDPI feature. I've now found that when I replace the pictures linked to my parallax scrolling effect, the pictures are not the correct size anymore. They shrink in size and start to tile. I even tried to use a super-size the pictures and still nothing. Is this a known issue?? Is there are way around it or is there something I'm missing and need to change.
    Many thanks,
    Thomas

    Hi Zak, There is nothing on the page yet expect a small .svg logo, two 100% width rectangles beneath the browser bottom guide, two anchors and a widget from MuseResource.com for magnetic scrolling between anchors.

  • How to move pages of the site into folders and subfolders in adobe muse?

    is it possible?

    Hi,
    Some useful threads are given below
    Change the folder structure in Adobe Muse?
    How can I structure my muse cc site with folders
    Exporting a Muse site - need folder structure for images

  • HTML and JS in Adobe Muse is slow to load?

    Hi, I've embedded an Edge Animation into Muse by inserting the HTML and uploading the Javascript using a MuCow widget provided by Adobe. 'LoadJSAtBodyEnd.mucow'
    The animation takes a very long time to load? 11 seconds in Safari, 20 seconds in Firefox and 5 seconds in Chrome. I know the animation isn't to big as when i export it as a .oam into Muse the animation loads within a second. The reason it has to be in HTML and JS is because it includes a trigger that updates the windows URL to an anchor on the page. [ window.location.hash = "#about";] If the animation is a .oam file the trigger updates the URL inside the animations window not the website window. I could use  [ window.open("#about", "_parent");] with an .oam file however it just refreshes the page every 8 seconds as the animations
    Any ideas why the animation is taking so long to load? or is there an alternative code for the .oam?
    Thanks

    Hi Zak, There is nothing on the page yet expect a small .svg logo, two 100% width rectangles beneath the browser bottom guide, two anchors and a widget from MuseResource.com for magnetic scrolling between anchors.

  • How do I source an image with HTML in Adobe Muse?

    Hello, I am wanting a horizontal slideshow for images and I got the code to work nicely in my muse website and all I need to do now if populate it with images. I have looked into the syntax for placing an image and I am not too sure how to handle the sourcing (as I've never done code before).  It's to go something like this:
    <img src="url" alt="some_text">
    I have the images to place in the slideshow sized, cropped, and ready to go in, but I do not know how the input the syntax to "source" my images - they are just sitting in a folder in "my pictures" on my desktop. My workplace has a server where we all can access the same files...will that help?  I've seen where people reference images in their code simply by typing the web address of their website with the image name at the end....which confuses me! -> how do I upload an image to my Muse website without it being seen and then reference it in a slideshow?  That process doesn't seem to make sense. I'm lost! Help please!

    Here are a couple o links that will help in your quest and will answer 95% of your questions.
    http://www.w3schools.com/html/html_images.asp
    http://www.htmlgoodies.com/primers/html/article.php/3478181/Basic-HTML-Images.htm
    http://www.adobe.com/products/business-catalyst/faq.html
    http://www.w3schools.com/js/default.asp
    http://jquery.com/
    The other 5% is how well will Muse play with all that. To that I cannot  answer fully because I haven't tested every scenario. Again, the inherent nature of Muse is "designed" to stray away from custom coding. Also in your previous post it is a little unclear as to your where all your Muse folders/files are residing. IE: on your companies server or on BC or a bit of both. I know ultimately all your trying to do is point to something. Seems simple enough right? And there may in your developement come a time when you need the more advanced CMS features, which is why BC seems logical.
    What you find along the way is that it can get more involved then you anticipated. Certainly if you can make it work then go for it. The problem is at times, while things can seem simple in theory, without sufficient practice employing those theories (the coding/the syntax) then any # of errors can happen leaving you scratching your head and cursing why you bothered in the first place. Another option is to rethink your strategy. Is it really all that important to have the uber cool linear continuous scrolling effect? Will this define my site? Can I implore some imagination and thinking and make it easier on myself by using the tool at hand (Muse) to it's max to achieve the end goal?
    Just some food for thought but as previously stated if you can make it work then go for it. And if the mods or other users can be of more help than I, then that would be great as well!
    Happy Holidays, good luck, and please report your findings :-)
    Edit - With so much going on myself, I forgot to mention that (when you have all your  i's dotted and t's cossed) you could try inserting the script into the html for head feature via the metadata tab in your page properties.
    Message was edited by: GVD321

  • When exporting to HTML in Adobe Muse. It doesn't create a image/images folder when exporting.

    Hi
    PLEASE HELP!
    When I export to HTML to upload the site on FileZilla, it doesn't create an images folder.
    It did it before and thought it was just the 1 saved file, but then I tried the other websites I have done and it is doing the same thing.
    It creates everything from text and the widgets but everywhere where there are images, is just blank.
    Thanks to anyone who can help.
    P.S. I love this software and has shaped my design skills. Thank you Adobe!

    Don't be confused by the same names; there are 2 Justin's in this thread.
    I'm sorry you took my post as an attack on the Adobe staff.  I was not passing judgement on the questions the staff asked, or the lack of additional staff response when they went unanswered.
    Rather, I was expressing surprise/disappointment that the COMMUNITY did not provide any additional comments in a whole year.
    It turns out there a several other threads (which is where I got the clue about the issue that I was having).
    BTW, in my case I did move the images to the assets folder, and re-linked them.  However, I guess Muse keep track of the fact they were in the images folder originally and consequently did not subsequently export them.
    I would think an option for a fresh/full export (as is provided for the FTP) would be a good enhancement to Muse.

  • Javascript and html menu to be used with ADF/JSF using JDeveloper

    I have a menu for a webpage that was originally built using html and javascript. I need to convert it to be used with JSF and ADF. In the html, the menu items used an unordered list inside of a div tag.
    It looks something like this:
    <!--<div id="shademenu" class="shadetabs">
    <ul>
    <li>Item1</li>
    <li>Item2</li>
    <li>Item3</li>
    <li>Item4</li>
    <li>Item5</li>
    <li>Item 6</li>
    </ul>
    </div> -->
    AND
    the submenu(s) have links that look something like:
    <!--<div id="dropmenu0" class="dropmenudiv">
    Data
    Data
    Data
    </div>-->
    It is unclear to me how to work with my javascript menu to get the same look and feel with JSF or ADF as I did with html. Any insights would be great. Thanks.
    Daniel
    Message was edited by:
    dannyc

    Hello,
    If you do not find any existing JSF component (in ADF Faces/Trinidad, or any other JSF library) you can for sure extend/create your own component with specific renderer that will be the HTML/Javscript that you want.
    So here some interesting pointers about the subject:
    - Buildin Custom JSF component (Chris Schalk)
    - Build Custom JSF Components) (Jonas Jacobi
    - Extending Default Render (and lot of other JavaEE blueprints)
    These links will give you a starting point.
    Regards
    Tugdual Grall

  • Embedded Fonts and HTML Text

    I am attempting to use a non-standard font in an HTML dynamic textbox using the <font> tag.  I have embedded this font using the textbox properties box and the fonts appear in the library.  According to previous posts to this form, that should do it.  But, my fonts are not appearing correctly.  Any advice?

    OK,
    I have given up messing with stylesheets, trying display:
    block, inline, different ways of formatting the XML, messing with
    XML.ignoreWhiteSpace, and XML.prettyPrinting etc.
    I went down the route of encodeURI, using a RegExp to strip
    out all tabs, linefeeds and carriage returns. This now gives
    consistent results for all situations, even embedded and none
    embedded fonts.
    e.g.
    _text:String = TEXT FROM XML, HTML TEXT etc
    var st:String = encodeURI(_text);
    var pattern:RegExp = /(%09)+|(%0A)+|(%0D)+/g;
    st = st.replace(pattern, "");
    st = decodeURI(st);
    YOUTEXTFIELD.htmlText = st;
    The <p> tags still behave as a <br/> tag, but you
    can add an extra <br/> to simulate a paragraph.
    Here is the example again with the updates,
    Hope this helps someone

  • Hello. I am trying to self host Italia fonts (Book, Bold and Medium) on Adobe Muse. I purchased web fonts from Linotype that are "obfuscated" - which means the name is hidden. Apparently I also need to install system fonts. Can I install with code in muse

    Hello! I am trying to self host Italia fonts in muse. I purchased from Linotype the web fonts. But they sent obfuscated fonts and code. I need to also install as system fonts and those do not work for that. We already have different Italia fonts that we owned prior but they are not obfuscated... Is this a problem? Is there an easier way I can do this? TIA!

    Abhishek,
    Thank you for the reply. Wanted to comment on a few things.
    I reviewed the other post that you've referenced. Nothing unusual jumped out at me as something that I was not aware of. I'm running an older iMac that is in good working condition. 2.4 GHz Intel Core 2 Duo, 24" screen. I know this issue is fleeting, as I stated earlier typically can be corrected with a restart of the CC Desktop application (that I am always running at startup). I have not been able to determine that shutting down Muse corrects the issue. I would, at this time say it doesn't.
    I did open InDesign and see if the fonts in question, Open Sans and Open Sans Condensed, were present and usable. They were. The fonts are shown as being synched in my CC Desktop app window (even if they are not "installed" in Muse). That is expected but it may be a bug in how Muse brings in a font from those that are already synched to your CC account. I don't know enough about how that works to comment.
    And just to complicate matters, Muse seems to be working again, the fonts that is. I brought them back in and they are showing up in all locations (which there are actually three - see screen shots).
    First is primary text menu dropdown (to right of orange "Text").
    Second is if you click orange Text link. Another drop down menu appears.
    And lastly, the Text Panel to right of screen.
    I also wanted to add this extra bit of information, for what it is worth. When the issue arises and you do not get the sub-menu dropdown showing various styles of the font (italics, bold, etc.), one can use click on the missing font if you had used it previously and it is present in the "previously used font" list.
    Cheers!

Maybe you are looking for

  • How to schedule a job in DBA_JOBS

    Hi All, I have to schedule a job called dwsp_mig_purordssku(sysdate,null) on every sunday at 8.00 PM. This procedure must take two parameter one is sysdate and another can be null. How shouls I do it with dbms_job.sumbit? Thanks Sid

  • Formu;a column

    hai all I am developing a report. I am using UTL_FILE in that report in formula column. When i try simply i am getting the result. When i include the utl_file concepts in the formula column which will create a text file in the server path , it is com

  • B&W G3: Reset mobo/new batt. won't help - no chime, just fans/HD

    So I decide to give this old G3 I had one last boost from what was already a snappy machine. - Rev. 1 mobo - Powerlogix 800Mhz 750FX 512k L2 cache (G3) - 1 GB RAM - ATI 9200 128 MB PCI - SIIG ATA card - 2 HDs connected. - USB 2.0 4 port card - FW400

  • Korean language problem - stops mail sending

    Hey there. I have an unusual problem re mail from a Korean client. Some of the characters are cached when I reply to mail from them and it then won't send with any smtp server - i've tried many. Is there a way of turning off the Korean language suppo

  • WITH_ITEM table not updated properly thru BAPI_ACC_INVOICE_RECEIPT_POST

    Hi experts!! I am using BAPI_ACC_INVOICE_RECEIPT_POST to post a document. When I post a document through the t-code FB01 or F-43, it's being posted by even updating the table WITH_ITEM. When I post through BAPI_ACC_INVOICE_RECEIPT_POST, it's posting