Problem with Contribute URL decoding a javascript

Hi,
On all pages of our website we have a Google Analytics script:
<script type="text/javascript">
     var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl" : "http://www");
     document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
But every time someone makes a change to one of the pages with Contribute, the script is automatically altered to this:
<script type="text/javascript">
     var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl" : "http://www");
     document.write(unescape("<script src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'></script>"));
</script>
The difference is that Contribute has decided to automatically URL decode the first of the two closing </script> tags, which breaks the script; it's URL encoded for a reason: so that the browser doesn't end the script prematurely on parsing the first of the </script> tags. Is there some setting within Contribute that will allow us to stop this from happening? We just want Contribute to leave the Javascript alone.
Many thanks,
Mark

I was able to solve this by including the google code in an external PHP file as well. However if my template has a repeating region in it, and my contribute user adds a region from it, it breaks the code again :/
Are there any other suggestions out there??

Similar Messages

  • Problem with image url

    Hello,
    today I have a problem with image url. I wanted Image to change when mouse dragged over it. But nothing happened. Any ideas?
    def maxIco: ImageView = ImageView{
    image: Image{
    url: "{__DIR__}ikony/max.png"
    onMouseDragged: function(event: MouseEvent){
    maxIco.image = Image{
    url: "{__DIR__}ikony/max2.png"
    }

    This is working for me:
    src/main/Main.fx
    src/main/icon/image1.bmp
    src/main/icon/image2.bmp
    //Main.fx
    package main;
    import javafx.stage.Stage;
    import javafx.scene.Scene;
    import javafx.scene.image.Image;
    import javafx.scene.image.ImageView;
    import javafx.scene.input.MouseEvent;
    var changed = false;
    def imgView: ImageView = ImageView {
        image: Image {
            url: "{__DIR__}icon/image1.bmp"
        onMouseDragged: function (e: MouseEvent): Void {
            if (not changed) {
                imgView.image = Image {
                    url: "{__DIR__}icon/image2.bmp"
                changed = true;
                println(imgView.image.url);
        onMouseReleased: function (e: MouseEvent): Void {
            imgView.image = Image {
                url: "{__DIR__}icon/image1.bmp"
            changed = false;
            println(imgView.image.url);
    Stage {
        title: "ImageTest"
        scene: Scene {
            width: 700
            height: 600
            content: [
                imgView
    }I've changed few things to switch image only one time on mouseDragged event.
    It print the image URL.

  • Strange problem with Contribute 3

    I have a strange problem with Contribute 3. One of my page
    editors changed a single page on my web site and submitted it for
    review. When I go to review the page, 75 pages show up to be
    reviewed. If I try to edit the actual page that was changed, it
    tells me I can't approve the changes until I accept the changes on
    the other pages and each of those pages gives the same message...an
    infinite loop. The only way to get around this is to reject each
    page individually and this took several hours. She tried again and
    the same thing happened. How can I fix this problem. I think it is
    a bug in Contribute because 74 of these pages had no changes to
    them.

    Still haven't solved this, even the backup no longer works...Would anyone be interested in helping me by letting me send them a project, making one simple change for me, then saving the project, returning it to me and exporting it as wav?
    this would help me tremendously...
    let
    me
    know
    if
    u
    can
    help
    anyone be interested in helping Mr

  • Problem with entering URL

    Ever since the last update or two I seem to have an irritating problem with entering URLs. If I'm navigating a site and modify the URL manually in the address field and hit enter, the URL reverts back automatically to the previous one instead of accepting the new modified entry.
    For example if I'm on www.site.com/path/path and go to the URL bar and remove the last '/path' and hit enter, the browser seems to 'remember' and take me to the previous URL path, i.e. www.site.com/path/path. It doesn't matter whether the deleted text forms part of the URL path or whether its parameters after the path, or even if I modify the URL to something like www.site.com/path/anotherpath.
    Once it starts 'remembering' there seems to be no way of getting around this except to close the browser down and start again. I've noticed this behavior on FF20.0.1 and also on FF21. It happens on all 3 of the PCs I use (2 at home, one at work). I'n not sure if its being caused directly by FF or the NoScript plugin (the latter seems unlikely).
    Is there a setting somewhere to modify this behavior, or is it a bug?

    i couldn't find any documentation for it either, however after testing it, it appears that when browser.urlbar.autoFill.typed is set to '''true''' it means that only addresses you've once typed into the url-bar manually get autofilled, when browser.urlbar.autoFill.typed is set to '''false''' then all addresses that are stored in your history no matter if you have typed them in once manually or visited them through a link on a website.
    browser.urlbar.autoFill will generally switch the autocomplete feature in the address bar on or off.

  • Problem with opendoc url.

    hi experts,
    i am having a problem with opendoc url in my dashboard.my url is to open a webi report depends on two prompts given by the user.
    i am using the following url and it is working fine.
    http://sysname:port/OpenDocument/opendoc/openDocument.jsp?sType=wid&sRefresh=Y&iDocID=123456&mode=full&nbPrompts=2&lsSEnter Year=Prompt1&lsSEnter Dealer=prompt2.
    when i am entering a value for prompt2 like "krishna distributors" its working fine.but the problem here is whenever i am entering a value for the second prompt with a value like (ex:) "ravi & ravi distributors" its giving an message "NO DATA TO RETRIEVE"  because it is considering the & symbol in my prompt2 as another parameter as shown below.
    http://sysname:port/OpenDocument/opendoc/openDocument.jsp?sType=wid&sRefresh=Y&iDocID=123456&mode=full&nbPrompts=2&lsSEnter Year=Prompt1&lsSEnter Dealer=ravi & ravi distributor
    can anyone help me on this.
    thanks in advance,
    ravi kishore yarramsetti.

    Hi Ravi,
    In Excel , & considers as "Concatenation. So it will not work properly. To make this work, use Dealer Number instead of Dealer name in ur example.
    Eg:
    Dealer Name                           Dealer Number
    ravi & ravi distributors            D10001
    krishna distributors                 D10002
    If you use Dealer Number "D10001" you can get "ravi & ravi distributors " Information. In ur Dashboard Design, if the user clicks "ravi & ravi distributors" then pass "D10001" to the Opendoc and generate the report.
    Try to not use which has special characters as the prompt in Xcelsius.
    Thanks,
    Muthukumar A.S.

  • Problem with an Url

    Hello, I have a problem with the Url in the HTTP Service
    <mx:HTTPService id="userRequest" url="http://ispedd.redios.it/iSchoolPDFManagerPortlet/imagepdf.do?idPdf=1&i dPage=0" useProxy="false" method="GET"/>
    The service should open a PNG image and the error bring back is:  The reference to entity "idPage" must end with the ';' delimiter. 
    Can you help me? Thank you.

    Hi,
    The url is OK, the problem is that properties for MXML cannot have included some characters. So you need to escape entities in your url and it will be ok, for example:
    url="http://ispedd.redios.it/iSchoolPDFManagerPortlet/imagepdf.do?idPdf=1&idPage=0"
    But it would be better if you do not hardcode params in URL. If you need you could hardcode them in Mxml itself like below:
    <mx:HTTPService
         url="http://ispedd.redios.it/iSchoolPDFManagerPortlet/imagepdf.do"
         method="GET"
         id="userRequest">
         <mx:request>
              <idPdf>1</idPdf>
              <idPage>0</idPage>
         </mx:request>
    </mx:HTTPService>
    or (which is more flexible) use parameters as argument when invoking service:
    userRequest.send({idPdf:1, idPage:0});
    You could read more on that in section about data integration in Flex in online or offline documentation:
    http://livedocs.adobe.com/flex/3/html/help.html?content=Part4_data_access_1.html
    hth,
    regards,
    Peter

  • Problem with pdf chrome viewer and javascript

    I have a problem with chrome pdf viewer. We have created a form with acrobat 9 pro, this form contains a javascript. When the form is printed or saved the javascript checks that all the mandatiry fields are completed and displays a message if some fields are uncompleted. The chrome pdf viewer doesn't display the warning message when the form is saved, and doesn't display the check box included in the warning message pop up to confirm that the user accepts to print the form. The control is correct with FF et IE
    Thanks for your help

    There are many PDF viewers. Adobe's, third party downloads, things that come with systems (Apple Preview, Microsoft 8 Reader), things built into browsers (Chrome, Firefox...) Adobe's software understands the full set of JavaScript. Some ignoresJavaScript altogether. Some do selected JavaScript. This is a bit of a mess, but nothing can be done about it EXCEPT that you can demand your users use Adobe Reader. Whether they actually will depends on how important your needs are to them.

  • Problem with contribute 3.11/flashpaper 2 printer driver

    I have problem with the contribute 3.11 and flashpaper 2
    printer driver. When I try to install it to my lab under domain
    enviroment, that mean multi user will use the same computer with
    differ user right. The problem is, when user with admin right log
    into the domain and left click on any file the first time,
    contribute install a new flahspaper driver, eg. macromedia
    flashpaper, macromedia flashpaper (copy 1), macromedia flashpaper
    (copy 2) etc...another problem is, when the user with domain user
    right login the computer, when they left click on any file the
    first time, contribute try to install the flashpaper printer driver
    for them, but since they are not allow to install any printer
    driver, the message," you do not have primission to install the
    printer driver etc" pop up and it only pop up once.
    Are there anyone have the same problem? Anyone know how to
    fix it? Thank you for the help in advance.
    Darksolo

    Hi,
    Please check with in your environmental variable whether JDK is 32 bit or shifted to 64 bit.
    It seems even though you have 64 bit still it is taking 32 bit only.
    Regards,
    Kal

  • Problem with c:url

    I am having problems with the c:url tag.
    When I load a page with a c:url tag (see end of message for page specification), when I click on the link that references the c:url, the system tries to load the page named $url instead of loading page /somepage.jsp. It looks like the resulting code does not replace the ${url} variable with the value of the variable. If I add the following statement:
    <c:out value="${url}"/>
    after the definition of the c:url tag, I can see that variable url is set to /somepage.jsp.
    Is there some configuration I must do to fix this problem or should I use some more recent libraries? I am using jstl.jar and standard.jar that came with JWSDP 1.3. I am using Tomcat 5.0.19.
    <%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
    <html><body>
    <c:url var="url" value="/somepage.jsp"/>
    <p>Go to some page.</p>
    </body></html>

    Replace the "<web-app>" tag for this in the your web.xml file,
      <web-app xmlns="http://java.sun.com/xml/ns/j2ee"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee  http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
        version="2.4">

  • Problem with adding url

    Okay to start with I'm not a flash programmer but this guy
    left me in a lurch and I had to add the url's to the links myself,
    the problem is that it messes up the rollover action.
    Here is the original:
    http://www.cecvp.com/header5.swf
    Here is the version with the urls put on the links:
    http://www.cecvp.com/header5_mod.swf
    There are other things I changed but ignore that, just focus
    on the behavious of the navigation links (home, about us, etc). In
    the second version the rollover stopped working.
    The process i used to add the url was to double click until i
    got to symbol 18 at which point i would double click on each link
    the select it then enter the url where the link symbol is in the
    properties window. It should also be noted that i got this error
    when publishing:
    **Error** Symbol=Symbol 18, layer=Layer 1, frame=1:Line 1:
    Wrong number of parameters; getURL requires between 1 and 3.
    getURL();
    Total ActionScript Errors: 1 Reported Errors: 1

    I fixed the geturl error so ignore that.
    This forum is pretty slow....

  • What's the problem with the URL

    Someday when I entered an URL into IE browser, I typed like http://greatsite./greatday. Unfortunately, after that, every time when I enter a URL into IE like http://greatsite/someday, it will change to http://greatsite./someday automatically, then the error page below is followed. What's the problem?
    The web server is IBM HTTP Server or Apache web server. Not just with my box, any other machines have the same problem with http://greatsite. How can I correct this problem?
    Any help would be great!
    The error page:
    11001 Host was not found
    The host specified in your URL could not be found.
    This error could have been caused by:
    Bad / misspelled URL
    Following an invalid link
    Your network connection and/or transient conditions on the Internet

    There are other browsers you could use.

  • Problem with accessing Signed Applet from javascript method

    Hi,
    I am facing the following problem while accessing Signed Applet from javascript method.
    java.security.AccessControlException: access denied (java.io.FilePermission c:/temp.txt read)
         at java.security.AccessControlContext.checkPermission(Unknown Source)
         at java.security.AccessController.checkPermission(Unknown Source)
         at FileTest.testPerm(FileTest.java:19)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at sun.plugin.javascript.invoke.JSInvoke.invoke(Unknown Source)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at sun.plugin.javascript.JSClassLoader.invoke(Unknown Source)
         at sun.plugin.com.MethodDispatcher.invoke(Unknown Source)
         at sun.plugin.com.DispatchImpl.invokeImpl(Unknown Source)
         at sun.plugin.com.DispatchImpl$1.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         at sun.plugin.com.DispatchImpl.invoke(Unknown Source)
    I am using jdk1.5 for my development...
    Can anyone help to resolve this security issue. Urgent...
    Thanks in advance.

    Hey thanks. I wasn't able to get it to work with that sample but I did find this very similar code that does allow javascript to call JFileChooser in an applets public method.
    java.security.AccessController.doPrivileged(
    new java.security.PrivilegedAction()
    public Object run(){                           
    //do your special code here
    return null; //return whatever you want
    It seems a bit tempermental in that if you don't select a file quickly, it will hang the browser....no perfect solution but I'm going in the right direction.
    Thanks,
    Scott

  • Problem with file:/// URLs in Safari 2

    I am seeing some confusing behaviour with file:/// URLs: a very simple HTML file with that type of link works as expected (opens the nominated folder) when loading it as a local file from my disk, but when I put it on our web server and retrieve it from there, nothing happens when I click on the file:/// link.
    This is happening under Safari 2.0 on OS X 10.4.2 (cross-tested on a brand-new iMac), but by comparison does not happen under Safari 1.2.4 under OS X 10.3.8 on an old eMac.
    The HTML source as viewed in the browser when loading it each way is identical:
    Go here: link
    Has anyone else seen -- and hopefully resolved -- this?
    Thanks,
    Robert

    I tried clicking on the link and nothing whatsoever happened. So I tried a control click and selected "Open Link in new window" and a new window opened, followed by the Utilities folder opening. I made a test.html file with the link in it, put it on my startup drive and it worked as expected, and ditto for putting it on a second internal drive. I then put it on my iDisk and navigated to it thru its web site address of
    http://homepage.mac.com/francines/testlinks.html
    and discovered that the two other "local" operation links (to launch ScriptEditor) both worked, but the open folder link no longer did, except by using control click and choosing either "Open link in new window" or new tab. A new Safari window or tab opens, then the Utilities folder opens.
    I then tried the page in Firefox, and it didn't work AT ALL, not even with new window or tab. I then tried Mozilla and Netscape. Same deal. The ancient Internet Explorer opened the Utilities folder inside a new browser window rather than the Finder. This might be a clue as to why the link doesn't work as expected, but unfortunately I don't know what it means.
    Francine

  • Problem with + in url

    I used to be able to launch a page whose URL having '+' embedded in it under the JRun context root directory, such as test+test.htm.  However, I was unable to do so for JRun4 updaters 5-7  unless I manually typed in or encoded the url by using a Javascript method: encodeURIComponent("test%2Btest.htm") - which converted the URL to 'test%252Btest.htm'.  Is there any JRun setting  I can modify (or other ways) so that I don't need to encode the URL?  Because in some situations, I was unable to encode the URLs if pages were generated by a 3rd party software. for example,
    mytest+report.htm (three html files were generated by a 3rd party software)
    <html>
    <head>
    </head>
    <body>
    <a href="subfolder/mytest+report_sheet1.htm">click tab 1</a>
    <a href="subfolder/mytest+report_sheet2.htm> chick tab 2</a>
    </body>
    </html>

    I think that I can work around this problem by catching all the html files (generated by a 3rd partysoftware) with matching patterns and encoding the URLs.  However, I still hope that there is an easier way to solve this problem.

  • Strange problem with JDBC URL

    Hi All,
    I don't know whether this is a known issue which has a workaround or I am doing something wrong. But this is the problem.
    I have a nice GUI application which takes the JDBC URL, Driver, User name and password and then takes the input and tries to establish a connection with the Database. I was trying it on MySQL and I encountered a problem.
    The general format of the JDBC URL for MySQL is "jdbc:mysql://<ip_address>:<port>/<db_name> and if I have MySQL running on 3306 and if I give the URL as:
    "jdbc:mysql://localhost:9001" (where my HSQL is running), then, it never gets the connection and the application stays there forever (the call never returns after the DriverManager.getConnection() statement). And if I give the port as something else (say 9898) where nothing is running, then the getConnection() doesn't send me a SQLException.
    What could be the problem?

    Are you saying that you're connecting using the
    MySQL driver to an HSQL database, and
    that this results in a hang (rather than a timeout)?
    Just to clarify that I've understood the problem.
    If so, it should be fairly easy to get a simple test
    scenario up and running independent from your "real"
    application. Have you tried this, and could you post
    the code if so?
    Dave.Hi Dave,
    Thank you very much trying,
    Sorry if my English was poor. I am not trying to connect to HSQLDB using the MySQL Driver.
    Actually, I am trying to connect to MySQL db using the MySQL driver, but the DriverManager.getConnection() method hangs when I...
    1. Give a wrong URL e.g(jdbc:mysql://localhost:9001/")
    2. Run my MySQL on default port (3306)
    3. And If I have HSQL or any other program that is listening at port 9001.
    The problem seems to be very strange. here's the code below, you can try out yourself...
    import java.sql.DriverManager;
    import java.sql.SQLException;
    public class Demo {
         public static void main(String[] args) {
              try {
                   Class.forName("com.mysql.jdbc.Driver");
                   DriverManager.getConnection("jdbc:mysql://localhost:9001/", "user", "password"); // <-- The call hangs here
              } catch (SQLException e) {
                   e.printStackTrace();
              } catch (ClassNotFoundException e) {
                   e.printStackTrace();
    }Remember to have your mysql*.jar file in your classpath while running. :)
    Thank you....

Maybe you are looking for

  • Yosemite won't burn CD

    I have a Mac Pro (Early 2009) power house. Since I upgraded to Yosemite (10.10) it now won't burn CDs – instead the program hangs. I load the CD, it recognises it's a blank CD, drag and drop the files, hit burn then nothing! I can't eject CDs in the

  • Often when I send a job to the printer, it either sits idle in the queue, or says **bleep** is printing.

    The jobs queue up but won't print. Deleting does not work nor does "restart.". However, when I restart my computer, when it reboots, the print jobs then print. Not very efficient. Printing from my iPad works fine.

  • Ipod 1st gen. shuffle. Error -31 when using reset utility

    I get the -50 error "cannot read from or write to" error when trying to update my ipod, and when i use the reset utility it comes up with "error: -31" anybody else have this problem? what should I do?

  • Using an alternate security realm

    Hi, I'm trying to configure the Weblogic Personalization & Personalization Server v3.5 to use NT or LDAP as a security realm. With LDAP, the server reboots properly but when I try to goto http://localhost:7501/tools, it prompts me for password/userid

  • Photoshop CC Updates screen is all greyed out!

    Hi, I bought Photoshop and Lightroom CC in the adobe offer last month. But I dont see the updates happening. When I goto photoshop and click on UDPATES, its all greyed out. See this screenshot, https://www.dropbox.com/s/pwtsr2drjqwvti9/Screen%20Shot%