Live Support, Chat, Upload Control and Rich Text Editor
Welcome to Support forums Sign in | Join | Help |Client Center
in Search

Strange behaviour with Java script

Last post 01-28-2006, 11:05 PM by Adam. 31 replies.
Page 1 of 2 (32 items)   1 2 Next >
Sort Posts: Previous Next
  •  10-28-2005, 6:26 AM 12072

    Strange behaviour with Java script

    If I enter the following:
     
    <script type="text/javascript"><!--
    google_ad_client = "pub-8037121247057075";
    google_ad_width = 468;
    google_ad_height = 60;
    google_ad_format = "468x60_as";
    google_ad_type = "text_image";
    google_ad_channel ="";
    google_color_border = "F7E2C7";
    google_color_bg = "F7E2C7";
    google_color_link = "663300";
    google_color_url = "CC9900";
    google_color_text = "000000";
    //--></script>
      <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
      
    </script>
     
    I get this as the result when I check HTML:
     
    <iframe name=google_ads_frame marginWidth=0 marginHeight=0 src="http://pagead2.googlesyndication.com/pagead/ads?client=ca-pub-8037121247057075&amp;dt=1130494979288&amp;lmt=1130494979&amp;format=468x60_as&amp;output=html&amp;url=http%3A%2F%2Fdevelopment.smallbizserver.net%2FDefault.aspx%3Ftabid%3D53%26forumid%3D1%26view%3Dpost&amp;color_bg=F7E2C7&amp;color_text=000000&amp;color_link=663300&amp;color_url=CC9900&amp;color_border=F7E2C7&amp;ad_type=text_image&amp;u_h=1050&amp;u_w=1400&amp;u_ah=1022&amp;u_aw=1400&amp;u_cd=32&amp;u_tz=120&amp;u_his=4&amp;u_java=true" frameBorder=0 width=468 scrolling=no height=60 allowTransparency></iframe>
     
    Why is that?
     
  •  10-31-2005, 2:18 PM 12135 in reply to 12072

    Re: Strange behaviour with Java script

    Mariette ,
     
    I've worked on this problem in the weekend.
     
    The following function in the show_ads.js cause the problem.
     
    function google_write_iframe(w, d, ad_url) {
      ad_url = ad_url.substring(0, 1000);
      ad_url = ad_url.replace(/%\w?$/, '');
      if (w.google_ad_output == 'js' &&
          (w.google_ad_request_done || w.google_radlink_request_done)) {
        d.write('<script language="JavaScript1.1"' +
                ' src=' + quoted(ad_url) + '></' + 'script>');
      } else if (w.google_ad_output == 'html') {
        if (w.name == 'google_ads_frame') {
          google_write_tracker(d, ad_url, 'reboundredirect');
        } else {
          d.write('<iframe' +
                  ' name="google_ads_frame"' +
                  ' width=' + quoted(w.google_ad_width) +
                  ' height=' + quoted(w.google_ad_height) +
                  ' frameborder=' + quoted(w.google_ad_frameborder) +
                  ' src=' + quoted(ad_url) +
                  ' marginwidth="0"' +
                  ' marginheight="0"' +
                  ' vspace="0"' +
                  ' hspace="0"' +
                  ' allowtransparency="true"' +
                  ' scrolling="no">');
          google_write_tracker(d, ad_url, 'noiframe');
          d.write('</iframe>');
        }
      }
    }

    Unfortunely I am not able to find a solution to this issue.

    I will continue investigating this issue and will get back to you if I find a solution.

     
     

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

  •  10-31-2005, 2:54 PM 12137 in reply to 12135

    Re: Strange behaviour with Java script

    Thanks Adam. I really hope you have a solution for this because it makes it impossible for me to use Google ads.
  •  11-07-2005, 3:17 AM 12305 in reply to 12137

    Re: Strange behaviour with Java script

    Mariette,

    Yes, we found the solution.

    This issue has been resolved in the latest build (11/07/2005).

    Demo:

    http://cutesoft.net/example/EnableStripScriptTags.aspx

    Download:

    http://cutesoft.net/Downloads/default.aspx

    keep me posted.
     

     

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

  •  11-07-2005, 8:21 AM 12315 in reply to 12305

    Re: Strange behaviour with Java script

    Now when I switch from html view to normal and back again to html view the Java code is changed to:
     
    ><!--{cps..0}--><!--{cps..1}-->
    Any ideas?
  •  11-07-2005, 9:00 AM 12317 in reply to 12315

    Re: Strange behaviour with Java script

    try this:

    ConvertHTMLTagstoLowercase =
    false
  •  11-07-2005, 9:06 AM 12318 in reply to 12317

    Re: Strange behaviour with Java script

    Where do I set on a DNN installation?
  •  11-07-2005, 10:09 AM 12319 in reply to 12318

    Re: Strange behaviour with Java script

    Sorry, I don't know the DNN installation...
     
    This property can be add in the CuteEditor tag like this:
     
    <CE:Editor id="Editor1" EditorWysiwygModeCss="SeaEditor.css" runat="server" ConvertHTMLTagstoLowercase="false"/>
     
    or used in the code like this (in C#):

    Editor1.ConvertHTMLTagstoLowercase = false;
     
    if that does not help you, it is necessary to await an answer of the team of development... sorry ;-)
  •  11-07-2005, 10:33 AM 12320 in reply to 12319

    Re: Strange behaviour with Java script

    I don't see it in the DNN provider so I think we need Adams help :-)
  •  11-07-2005, 2:15 PM 12325 in reply to 12320

    Re: Strange behaviour with Java script

    The providers for DNN have been updated.
     
    Please download the control again.
     
    Please note that you only need to replace the winIE.js and DotNetNuke.CEHtmlEditorProvider.dll file.
     
    Keep me posted
     
     

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

  •  11-07-2005, 2:50 PM 12330 in reply to 12325

    Re: Strange behaviour with Java script

    Oh boy, you guys are making a mess of this. When I insert this code in html mode:
     
    <script type="text/javascript"><!--
    google_ad_client = "pub-8037121247057075";
    google_ad_width = 728;
    google_ad_height = 90;
    google_ad_format = "728x90_as";
    google_ad_type = "text_image";
    google_ad_channel ="";
    //--></script>
    <script type="text/javascript"
      src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
    </script>
     
    click on Normal mode and go back to HTML mode there is nothing, empty.
  •  11-07-2005, 3:00 PM 12333 in reply to 12330

    Re: Strange behaviour with Java script

    Mariette,
     
    Are you sure you set  EnableStripScriptTags="false" in your DNN web.config file??

    Demo is here:

    http://cutesoft.net/example/EnableStripScriptTags.aspx
     
     

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

  •  11-07-2005, 3:10 PM 12336 in reply to 12333

    Re: Strange behaviour with Java script

    I logged in as Forum Admin and as Administrator, no difference at all

                           
    <add name="CEHtmlEditorProvider" type="DotNetNuke.HtmlEditor.CEHtmlEditorProvider, DotNetNuke.CEHtmlEditorProvider"
                                  providerPath="~\Providers\HtmlEditorProviders\CEHtmlEditorProvider\CuteSoft_Client\CuteEditor\"
                                  UseDNNRootImageDirectory="true"
                                  RemoveServerNamesFromUrl="true"
                                  UseRelativeLinks="false"
                                  RenderRichDropDown="true"
                                  UseSimpleAmpersand="false"
                                  CustomCulture=""
                                  ThemeType="Office2003"
                                  DisableAutoFormatting="false"
                                  BreakElement="div"
                                  EditorBodyStyle=""
                                 
                                  Admin_AutoConfigure="Full"
                                  Admin_SecurityPolicyFile="admin.config"
                                  Admin_TemplateItemList=""
                                  Admin_DisableItemList=""
                                  Admin_AllowPasteHtml="true"
                                  Admin_EditorOnPaste="default"
                                  Admin_ReadOnly="false"
                                  Admin_ShowBottomBar="true"
                                  Admin_ShowHtmlMode="true"
                                  Admin_ShowPreviewMode="true"
                                  Admin_EnableStripScriptTags="false"
                                  Admin_EnableBrowserContextMenu="true"
                                  Admin_EnableContextMenu="true"
                                  Admin_EnableContextMenuEditing="true"
                                  Admin_EnableContextMenuFormat="true"
                                  Admin_EnableContextMenuInsert="true"
                                  Admin_EnableContextMenuInsertAdvanced="true"
                                  Admin_EnableContextMenuInsertFiles="true"
                                  Admin_EnableContextMenuInsertForms="true"
                                  Admin_EnableContextMenuRelative="true"
                                  Admin_EnableContextMenuTags="true"
                                  Admin_EnableContextMenuVerbs="true"
                                                               
                                  Forum_Admins_AutoConfigure="Full_noform"
                                  Forum_Admins_SecurityPolicyFile="admin.config"
                                  Forum_Admins_TemplateItemList=""
                                  Forum_Admins_DisableItemList=""
                                  Forum_Admins_AllowPasteHtml="true"
                                  Forum_Admins_EditorOnPaste="default"
                                  Forum_Admins_ReadOnly="false"
                                  Forum_Admins_ShowBottomBar="true"
                                  Forum_Admins_ShowHtmlMode="true"
                                  Forum_Admins_ShowPreviewMode="true"
                                  Forum_Admins_EnableStripScriptTags="false"
                                  Forum_Admins_EnableContextMenuEditing="true"
                                  Forum_Admins_EnableContextMenuFormat="true"
                                  Forum_Admins_EnableContextMenuInsert="true"
                                  Forum_Admins_EnableContextMenuInsertAdvanced="true"
                                  Forum_Admins_EnableContextMenuInsertFiles="true"
                                  Forum_Admins_EnableContextMenuInsertForms="true"
                                  Forum_Admins_EnableContextMenuRelative="true"
                                  Forum_Admins_EnableContextMenuTags="true"
                                  Forum_Admins_EnableContextMenuVerbs="true"
                                 
                                  Registered_AutoConfigure="Simple"
                                  Registered_SecurityPolicyFile="guest.config"
                                  Registered_TemplateItemList=""
                                  Registered_DisableItemList=""
                                  Registered_AllowPasteHtml="false"
                                  Registered_EditorOnPaste="text"
                                  Registered_ReadOnly="false"
                                  Registered_ShowBottomBar="true"
                                  Registered_ShowHtmlMode="false"
                                  Registered_ShowPreviewMode="true"
                                  Registered_EnableStripScriptTags="true"
                                  Registered_EnableContextMenuEditing="False"
                                  Registered_EnableContextMenuFormat="False"
                                  Registered_EnableContextMenuInsert="False"
                                  Registered_EnableContextMenuInsertAdvanced="False"
                                  Registered_EnableContextMenuInsertFiles="False"
                                  Registered_EnableContextMenuInsertForms="False"
                                  Registered_EnableContextMenuRelative="False"
                                  Registered_EnableContextMenuTags="False"
                                  Registered_EnableContextMenuVerbs="False"
                                 
                                  Guest_AutoConfigure="Minimal"
                                  Guest_SecurityPolicyFile="guest.config"
                                  Guest_TemplateItemList=""
                                  Guest_DisableItemList=""
                                  Guest_AllowPasteHtml="true"
                                  Guest_EditorOnPaste="default"
                                  Guest_ReadOnly="false"
                                  Guest_ShowBottomBar="true"
                                  Guest_ShowHtmlMode="true"
                                  Guest_ShowPreviewMode="true"
                                  Guest_EnableStripScriptTags="false"
                            />
                      </providers>
  •  11-07-2005, 3:34 PM 12338 in reply to 12336

    Re: Strange behaviour with Java script

    Are you using the DNN 3.1?
     
    if so, please change your web.config to
     
     
    <add name="CEHtmlEditorProvider" type="DotNetNuke.HtmlEditor.CEHtmlEditorProvider, DotNetNuke.CEHtmlEditorProvider"
                                  providerPath="~\Providers\HtmlEditorProviders\CEHtmlEditorProvider\CuteSoft_Client\CuteEditor\"
                                  UseDNNRootImageDirectory="true"
                                  RemoveServerNamesFromUrl="true"
                                EnableStripScriptTags="true"
                                  UseRelativeLinks="false"
                                  RenderRichDropDown="true"
                                  UseSimpleAmpersand="false"
                                  CustomCulture=""
                                  ThemeType="Office2003"
                                  DisableAutoFormatting="false"
                                  BreakElement="div"
                                  EditorBodyStyle=""
                                 
                                  Admin_AutoConfigure="Full"
                                  Admin_SecurityPolicyFile="admin.config"
                                  Admin_TemplateItemList=""
                                  Admin_DisableItemList=""
                                  Admin_AllowPasteHtml="true"
                                  Admin_EditorOnPaste="default"
                                  Admin_ReadOnly="false"
                                  Admin_ShowBottomBar="true"
                                  Admin_ShowHtmlMode="true"
                                  Admin_ShowPreviewMode="true"
                                  Admin_EnableStripScriptTags="false"
                                  Admin_EnableBrowserContextMenu="true"
                                  Admin_EnableContextMenu="true"
                                  Admin_EnableContextMenuEditing="true"
                                  Admin_EnableContextMenuFormat="true"
                                  Admin_EnableContextMenuInsert="true"
                                  Admin_EnableContextMenuInsertAdvanced="true"
                                  Admin_EnableContextMenuInsertFiles="true"
                                  Admin_EnableContextMenuInsertForms="true"
                                  Admin_EnableContextMenuRelative="true"
                                  Admin_EnableContextMenuTags="true"
                                  Admin_EnableContextMenuVerbs="true"
                                                               
                                  Forum_Admins_AutoConfigure="Full_noform"
                                  Forum_Admins_SecurityPolicyFile="admin.config"
                                  Forum_Admins_TemplateItemList=""
                                  Forum_Admins_DisableItemList=""
                                  Forum_Admins_AllowPasteHtml="true"
                                  Forum_Admins_EditorOnPaste="default"
                                  Forum_Admins_ReadOnly="false"
                                  Forum_Admins_ShowBottomBar="true"
                                  Forum_Admins_ShowHtmlMode="true"
                                  Forum_Admins_ShowPreviewMode="true"
                                  Forum_Admins_EnableStripScriptTags="false"
                                  Forum_Admins_EnableContextMenuEditing="true"
                                  Forum_Admins_EnableContextMenuFormat="true"
                                  Forum_Admins_EnableContextMenuInsert="true"
                                  Forum_Admins_EnableContextMenuInsertAdvanced="true"
                                  Forum_Admins_EnableContextMenuInsertFiles="true"
                                  Forum_Admins_EnableContextMenuInsertForms="true"
                                  Forum_Admins_EnableContextMenuRelative="true"
                                  Forum_Admins_EnableContextMenuTags="true"
                                  Forum_Admins_EnableContextMenuVerbs="true"
                                 
                                  Registered_AutoConfigure="Simple"
                                  Registered_SecurityPolicyFile="guest.config"
                                  Registered_TemplateItemList=""
                                  Registered_DisableItemList=""
                                  Registered_AllowPasteHtml="false"
                                  Registered_EditorOnPaste="text"
                                  Registered_ReadOnly="false"
                                  Registered_ShowBottomBar="true"
                                  Registered_ShowHtmlMode="false"
                                  Registered_ShowPreviewMode="true"
                                  Registered_EnableStripScriptTags="true"
                                  Registered_EnableContextMenuEditing="False"
                                  Registered_EnableContextMenuFormat="False"
                                  Registered_EnableContextMenuInsert="False"
                                  Registered_EnableContextMenuInsertAdvanced="False"
                                  Registered_EnableContextMenuInsertFiles="False"
                                  Registered_EnableContextMenuInsertForms="False"
                                  Registered_EnableContextMenuRelative="False"
                                  Registered_EnableContextMenuTags="False"
                                  Registered_EnableContextMenuVerbs="False"
                                 
                                  Guest_AutoConfigure="Minimal"
                                  Guest_SecurityPolicyFile="guest.config"
                                  Guest_TemplateItemList=""
                                  Guest_DisableItemList=""
                                  Guest_AllowPasteHtml="true"
                                  Guest_EditorOnPaste="default"
                                  Guest_ReadOnly="false"
                                  Guest_ShowBottomBar="true"
                                  Guest_ShowHtmlMode="true"
                                  Guest_ShowPreviewMode="true"
                                  Guest_EnableStripScriptTags="false"
                            />
                      </providers>

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

  •  11-07-2005, 3:48 PM 12339 in reply to 12338

    Re: Strange behaviour with Java script

    Copied the EnableStripScriptTags="true" into the webconfig, clear the cache of my browser, deleted all cached files on the server, recycled the application pool and reset IIS....does not work.
  •  11-07-2005, 3:57 PM 12340 in reply to 12339

    Re: Strange behaviour with Java script

  •  11-07-2005, 5:10 PM 12345 in reply to 12339

    Re: Strange behaviour with Java script

    I did a clean install for DNN 3.1.1. Installed CuteEditor and it still does not work. After I insert the Java script I get:
     
    nullnull
  •  11-07-2005, 5:15 PM 12347 in reply to 12345

    Re: Strange behaviour with Java script

    It's very strange.
     
    Have you updated the CuteEditor.dll and all the client files?
     
    If so, can you send your FTP access to me through the PM?
     
     

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

  •  11-07-2005, 5:37 PM 12349 in reply to 12347

    Re: Strange behaviour with Java script

    Adam, I did a clean install. I made a new web for a clean DNN 3.1.1 and copied and installed CuteEditor as instructed. This is all brand new. I even downloaded CuteEditor 10 minutes ago to be 100% sure that I have the latest version.
  •  11-07-2005, 5:41 PM 12350 in reply to 12349

    Re: Strange behaviour with Java script

    I cannot give you ftp access to my server because I don't have that running.
Page 1 of 2 (32 items)   1 2 Next >
View as RSS news feed in XML
Powered by ASP.Net
Copyright 2003 - 2017 CuteSoft Components Inc.. All rights reserved.