Javascript problem with HTML embed

I'm migrating a large existing site from Sitegrinder to Muse after converting several smaller sites without problem. Unfortunately this site has a javascript button that doesn't work at all. The button was created with the Object/Embed HTML feature, just as coding for several ads was placed in the same way. All the elements displayed properly in the Muse layout and in the browser preview, so I assumed that the code was being read correctly.
Unfortunately when I click the button on the deployed site, the message "Run script "getPianoDeals()" appears at the bottom of the browser window but nothing else happens. A pop-up window with localized info is supposed to show up. This button appears at the top of every page on a website of hundreds of pages.
I don't know Javascript, simply place the line of code provided to me. The button has always worked in the past. There's a lot going on in the pages so I don't know if there's a conflict or what to do about it. The site is at www.pianobuyer.com; the white button labeled "view local offers" in the top right corner is the problem. For reference I've reloaded the main pages of the old site at www.pianobuyer.com/Julie/ where the button functions correctly.
Any suggestions are greatly appreciated.
Thanks.

I've tried several things to sort out the problem.
I isolated the button on a separate layer (helpful with problems between drop-down menu bar and other HTML objects on a page) but it made no difference.
I then edited the HTML file, moving the relative position of the Muse javascript entries and the problem button script. No matter where the lines were placed, when the button script follows the Muse scripts it works fine; when the button script precedes the Muse scripts it does nothing. Also when the Muse scripts follows the button script the normal actions on the site works fine (drop-down menu bar, slide show); when the Muse scripts precedes the button script none of them work. So the conflict definitely occurs between the scripts.
I found two discussions on the forum about similar problems. Both refer to a "require.js" file being added to the page. Unfortunately I don't understand what's being discussed.

Similar Messages

  • Problems with html content in box

    Hi! I have a problem with html content. For example photoswipe. If I import the folder with the index.html of photoswipe as an article all works fine. If I link it trough the folio overlay creator/webcontent) into a box in indesign dps, it stays empty. Seems like it doesnt find the images/paths??
    Klaus

    This sounds familiar. PhotoSwipe doesn't seem to like working in a web content overlay unless the JavaScript and other source files are uploaded within HTMLResources. This means editing your local HTML file so that paths to the JavaScript, images and CSS files begin by pointing to HTMLResources virtual folder (../../../HTMLResources/) before their subfolder and filenames. It's worth a try.

  • Problem with HTML viewer

    Dear All ,
    I am facing a problem with HTML Viewer . My senario is as follows :
    1. I have created one HTML page . On that page there are 4 Images
    2. I imported that HTML page in SAP with the help of transaction SMW0
    3. I Called that HTML page in my ABAP program using the method "load_html_document" of class cl_gui_html_viewer
    4. This is happening perfectly ok on the machine on which all this developement was done.
    But the issue is when I execute my ABAP program on a different machine , those Images on that HTML page are not displaying.
    Can you please guide me how to remove that machine dependancy?
    Regards,
    Nikhil

    Hi Nikhil,
    Please check if the image is properly imported properly. Also check if there is any option which you might have forgotten while imported like dependeency.
    Regards
    Abhii...

  • Javascript problem with Internet Explorer 6

    Hi together
    I have a problem with IE6 on a JSP page. I want to disable a HTML button calls
    'fehlerdetails' if one of radiobutton list has a value "FIID NOK".
    This Java script sample below is running with Netscape 7.0 but Internet Explorer get no objects back.
    Has everyone a idea how can I read a value from list:
    document.GetFailedPostingPositionListW3InBean.checked[i]
    with Internet Explorer 6??
    HTML Radiobutton (Struts):
    <html:radio styleClass="radioButton" name="GetFailedPostingPositionListW3InBean" onclick="checkAccountNr();" property="checked" value="<%= String.valueOf(j) %>">
    </html:radio>
    HTML Button:
    <td><input class='pushbuttonlarge' type="button" value="fehlerdetails" onClick="document.GetFailedPostingPositionListW3InBean.submit();" name="fehlerdetails"/></td>
    Javascript:
    function checkAccountNr() {
         document.GetFailedPostingPositionListW3InBean.fehlerdetails.disabled = false;
         var radioButtons = document.GetFailedPostingPositionListW3InBean.checked;     
         if(document.GetFailedPostingPositionListW3InBean.checked > 0) {     
              for(i=0; i < radioButtons.length; i++) {
                   if(radioButtons.checked) {
                        radioButtonAccountNr = radioButtons[i].AccountNr;
                        radioButtonFiidText     = radioButtons[i].FiidText;
                        if (radioButtonAccountNr == "ABACUS-NR NOK" || radioButtonFiidText == "FIID NOK") {
                             document.GetFailedPostingPositionListW3InBean.fehlerdetails.disabled = true;                                                  
    Thank you very much for you help.
    Cheers Robert

    first, this is a Java forum, not Javascript, and aside from the first 4 letters, the two have nothing in common.
    Second.. if there's more then 1 radio button named 'GetFailedPostingPositionListW3InBean', this:
    var radioButtons = document.GetFailedPostingPositionListW3InBean.checked;
    will be an error.
    var radioButtons = document.GetFailedPostingPositionListW3InBean;      
    for(x=0; x < radioButtons.length; x++) {
       if(radioButtons[x].checked) {
          ... check the value and disable
    }

  • Problem with HTML form on Android

    Hello,
    we are experiencing problems with quite simple HTML/Javascript form included in Adobe DPS publication on Android. It's working on iPad without problem, it's working on standard Android Chrome viewer, but when included in DPS publication, we can't write anything in the form.
    Does somebody encountered same problem and found solution? seems that this problem appeared on some newer version of Android, circa 4.3.
    Thanks
    Martin

    Hi, there, a couple of things to double check on your emulator settings:
    When configuring the Android emulator, please make sure the emulator emulates ARM Processor (armeabi - v7).  ADF Mobile only works with ARM processors - both device and emulator.
    Under Memory Options, please ensure RAM is at least 768 or greater.  This of course is also constraint by the amount of memory your development machine has, but generally you should have at least 768 MB allocated.  ADF Mobile app itself won't take up nearly that much RAM of course, but there are a lot of Android apps that are started in the background when Android emulator starts.
    Also, make sure there is 500 MB of internal storage configured - you can go as low as 200 MB but the space will quickly.
    Lastly, before you compile/deploy again, please go to JDeveloper menu item Build - Clean All to clean up any left over deployment artifacts.
    Thanks,
    Joe Huang

  • Problem with HTML in a read only textarea item

    I'm working on a messaging system for our site. For the body of the message, we use a standard textarea item. However, if we come to the messaging page from a certain page in our system, then we pre-load the textarea item, and make it read only. The only problem with this is that there are HTML tags in the body that we try to pre-load. This is causing problems because they aren't being interpreted as tags, but are being displayed as text. If I make the textarea editable, then everything looks fine, it's just when I set the area to be read only that it doesn't work. Any thoughts on how to fix this? Thanks!

    Not always. A user is allowed to edit that area in most circumstances except for when the user arrives at the page coming from 1 page in particular. In this case, then the field is read-only. At all other times though, it is editable.
    As a workaround, whenever I know I'm coming from this page, I set a variable, and if the variable is set, then I use a Display Only item and then hide the Textarea. If the variable is not set, then I hide my Display Only item and show the Textarea. Not very elegant, but it works.

  • Javascript problem with "opener" object

    Hello again,
    In my quest to reuse some automatic generated bsp code to my own advantage, i encounter a problem with the javascript "opener" object.
    I open a new window(win2) for a value help, this should return a value to the calling window(win1). It does so by calling a function in win1. My problem is that i get an error, stating that access to win1 is denied.
    opener.focus() works: it sets focus on win1
    so the opener object seems fine, pointing to the richt window
    opener.functionWin1() does not work:
    when i want to call a function from win1 i get the message "access denied", this also happens when i want for instance call a propertie of win1 with for example alert(opener.location);
    Does anybody know if there is a special parameter i should set, before i can call functions on the opener page? Or has anybody encountered the same pronlem?
    Kind regards,
    Martijn de Jong.

    If you want to set a input field value from a value help page you can write a JS function in the value help page itself, which will take of populating the field in the root page.
    See this example script:
    <head>
    <script language="JavaScript" type="text/javascript">
              function fun()
                   s=window.opener;     
                   txt=s.document.getElementById("<input filed id of the parent page>");
                   if ( document.form1.row_sel1.value )
                   txt.value = document.form1.row_sel1.value;
                   window.close();
        </script>
    </head>
    Refer this thread for further details:
    Re: F4 help using javascript
    Regards,
    Ravikiran.

  • Problem with HTML email formatting

    I'm using Firefox 4.0.1. I have a job function that requires me to use web page based email. When responding to emails, Firefox automatically places the cursor at the bottom of the chain as opposed to the top of the chain as in previous versions. I need for the response to start at the top of the page. This is the way it worked in my previous version of Firefox and no settings in the email program have been changed. In fact there is no setting in that program to specify where the response will go. I'm assuming the cursor placement is being determined by Firefox. Please help me change it.

    Oooops forgot the link
    http://www.adlerhealth.com/ad122607/ad122607.htm
    "Ken Binney" <[email protected]> wrote
    in message
    news:fljkp6$9kc$[email protected]..
    > Look at this HTML email.
    > The email message is only about 7.5kb because all it's
    images are on a
    > webserver.
    >
    >
    >
    >
    > "[email protected]" <[email protected]>
    wrote in message
    > news:flj9fg$qrg$[email protected]..
    >> I've made a few email newsletters, but the problem
    that I have is that I
    >> can't
    >> use a lot of images because when the email is sent
    it has a large file
    >> size.
    >> The images themselves are very big files, like under
    10 kb, is there
    >> anyway to
    >> add multiple images to an email while still keeping
    the file size down.
    >> Also I
    >> have a problem with the formatting of the email.
    When the html is placed
    >> into
    >> an email the spacing isn't right, it usually is the
    images that I have
    >> problems
    >> with. If this is any help I make the newsletters out
    of tables. I'd
    >> appreciate any tips you can think of.
    >>
    >
    >

  • Problems with HTML in 11g

    Got 11g up and running without too much difficulty (Win2003) but I'm having trouble getting HTML content to render. For example, create a simple analysis, add a narrative view, check the "Contains HTML Markup" button, and put HTML in there, but it comes out escaped anyway?
    I couldn't find much mention of this in the docs, other than the usual about XSS hardening. I verified that I have the "Save Actions containing embedded HTML" and "Save Content with HTML Markup" privileges - just to make sure, I even granted them to AuthenticatedUsers.
    Any ideas?

    Hi All,
    It seems like this problem is specific to the "Narrative View". If I try the following in the "Static View" it works like expected;
    <hr size="15" width="100%" shade align="right">
    In the "Narrative View" I did not get it to work yet.
    Cheers,
    Daan Bakboord
    http://obibb.wordpress.com

  • JavaHelp: problem with HTML size

    Hi guys,
    I converted a MS Word document to HTML and I'd like to display it using JavaHelp. The HTML file size is about 800k. It does work, but it takes a few minutes to be displayed!!!
    I tried with HTML files with size of about 100k and it works better (it takes a few seconds).
    Where is the problem? Is the HTML size? Or is MS Word that doesn't work so well?
    Thanks a lot for your answers!
    Paul.

    MS Word produces fat ugly HTML.

  • OBIEE10G - Javascript problems with graphs

    Hi,
    Is there any known problem with using javascript and the display of graphs? I have a report where i have a pivot table where i use some javascript to format that table. Below that table i have 2 graphs that are different reports from the one with the pivot table (see images below).
    Version working well
    http://imageshack.us/f/41/graphworkingok.jpg/
    Version with problems
    http://imageshack.us/f/220/graphwithproblems.jpg/
    I guess the problems may be related with javascript because when i remove the javascript from the pivot table (i have it in a static text view) the graphs seem to work ok.
    I'm not an expert (far from that) with javascript and i was playing around with it so i could format the pivot table the way i wanted but i don't have enough knowledge of it to understand what may be causing the problem.
    Thanks

    I didn't do that because the line i want to format is a "manually" built line. I want to format the last line (total line) but that line wasn't made using the total feature of OBIEE but built by myself. What i do in that line is changing the background color of all the cells in that last line and changing the font-size as well.
    Would i be able to do this just by using CSS? From what i read i think i can't that's why i used JS.
    Btw, what i did is related to this other thread i created where i explained my problem, this may help:
    OBI10G - Format a specific cell of a pivot table
    Edited by: Pedro F on 19/Mar/2012 4:15

  • Netflix having JavaScript problem with Firefox 7

    FireFox was working fine with 6 before the update to 7 with Netflix, and after the update Netflix no longer plays which Netflix tells me to enable JavaScript which it is with FireFox 7.

    Can you detect any pattern to it, whether related to messages with attachments, or particular advertising on the page, etc.?
    When you have a problem with one particular site, a good "first thing to try" is clearing your Firefox cache and deleting your saved cookies for the site.
    1. Clear Firefox's Cache
    orange Firefox button ''or'' Tools menu > Options > Advanced
    On the Network mini-tab > Offline Storage : "Clear Now"
    2. If needed, delete the site's cookies here
    While viewing a page on the site, right-click and choose View Page Info > Security > "View Cookies"
    (Usually the dialog will refer to live.com rather than hotmail.com, that's normal.)
    Then try reloading the page and logging in again. Does that help?

  • Are ther any Problems with HTML in iOS 6?

    We are having a problem with animated HTML-Objects in Adobe DPS. It's seems to be related with the iOS 6 update. We have two iPads, one with the updated software (iOS 6) and the other without it (iOS 5). Both of these have been updated with the new Adobe Content Viewer. The one with the old iOS works perfectly (HTML, Edge Animation, Videos) but the other with the most-up-to-date software does not. The HTML doesn't play and some times plays it once. We even tried by adding it to the HTMLResource folder to be trigger by a button to open a new window by itself, but no joy. Again we don’t have any of these problems on the iPad without the current software update. They all work perfectly

    All the HTML content on my iOS 6 devices renders fine.
    What does a web page from a non-Adobe DPS site look like?
    From your description, it's a problem with the Adobe software.
    Contact them.

  • Struts \ POI \ Javascript Problem with IE 7

    Alright folks, I'm having a problem migrating my application from IE 6 to IE 7. We have search functionality in the app that triggers off of javascript calls when a button is pressed in the search. Once the data is retrieved, an export button becomes enabled that allows the user to export those results to Excel using POI. On the back end, we're using struts running in WAS 6. When the results are exported, the action class manually writes the excel workbook to the output stream as below:
         protected void print(HSSFWorkbook a_wb, HttpServletResponse a_response)
              throws IOException, ServletException {
              // generate output
              a_response.setContentType("application/vnd.ms-excel");
              ServletOutputStream out = a_response.getOutputStream();
              a_wb.write(out);
    Then the action returns null to signify to struts that the response has already been handled manually.
    Everything works perfectly in IE 6. In IE 7, however, everything is not so great. The search works to retrieve the results and I can export them to Excel. The problem is that after I export them to Excel, all the Javascript on my page ceases to work. Basically, what I've been able to determine is that upon receiving the Excel document response something is causing the document Javascript variable to become undefined. This causes all my javascript -- things like:
    document.getElementById('actionIndicator').value ="Clear";
    to completely fail because document is undefined. Mind you, the page is still sitting there rendered in IE, and I can do things like window.frames and programmatically see a list of the frames defined on the page -- but the document variable is completely gone.
    At this point I'm kind of at a loss as to what to check or test next, so I'm open to any suggestions. Thanks!

    Hey Gina
    we have not seen broken images like you did, but have seen dramatic reduction in respose time with IE 7 (~20 times slower than normal). A bunch of IT folks tried various settings and configurations, with no success. Finally, we figured that different versions of IE 7 acd differently. Version 5700 was running fine. Version 5713 (or something like that, the latest one) was slooooow.
    Our Office of Information Resources does not "support" any other browser than IE. So, in addition to problems with Office 2007 I described previously, we may get a double whammy from Microsoft. Don't get me started.
    Vojin

  • Combining jsp getProperty with HTML EMBED

    Hi, Just a quick question, I have a couple of JSP/HTML books and I can't find a way of achieving this;
    basically I have a webpage that embeds a VRML file like so
    <EMBED SRC="/VRML/stair.WRL"
    TYPE="model/vrml"
    WIDTH="300"
    HEIGHT="300"
    VRML_SPLASHSCREEN="TRUE"
    VRML_DASHBOARD="TRUE"
    VRML_BACKGROUND_COLOR="#0066CC"
    CONTEXTMENU="TRUE"
    >
    This works fine, the problem is that I now have a servlet that dynamically generates the VRML file to be displayed, so I need a way of inserting this variable into the EMBED header, how do I do this?
    If it can't be done with JSP etc then how about a JavaScript solution?
    Anyway, ive tried a few things and Im out of ideas
    Cheers
    PS, the current JSP property finder;
    <jsp:useBean id="vrmlFileFinder"
         type="legato.VRMLBean"
         scope="request" />
    <jsp:getProperty name="vrmlFileFinder" property="fileName" />

    There are two issues here
    1 - generating the WRL file (from your servlet)
    2 - generating the EMBED tag in the HTML/JSP page
    These are two different requests to the web server.
    1- generating the WRL file:
    You say you have a servlet which generates the VRML code?
    Does it generate it to file, or output it directly?
    If it outputs it directly, just point the src of the tag to be your servlet
    ie
    <EMBED SRC= "/servlet/VRMLServlet"...
    This will invoke your servlet, and return the code to the browser. (ie as long as the servlet sends it a WRL text format, it can't tell the difference)
    2 - generating the EMBED tag:
    If you want to dynamically choose which file to include, then JSP would do it like this:
    <jsp:useBean id="vrmlFileFinder" type="legato.VRMLBean" scope="request" />
    <EMBED SRC="<jsp:getProperty name="vrmlFileFinder" property="fileName" />"...
    Remember that the JSP code gets executed first, so if the property evaluates to "/VRML/stair.WRL" all the browser will see is
    <EMBED SRC="/VRML/stair.WRL" - it doesn't see the JSP code at all.
    Hope this helps.
    Cheers,
    evnafets

Maybe you are looking for