CF8 Tags Javascript Error

I just got my sites moved to CF8 from CF7.
I am starting to experiment with the new CF8 features and I
started with the most basic - simply adding a CFDIV or CFWINDOW tag
to an otherwise empty page.
It appears that the addition of this tag this causes CF to
add a bunch of Javascript to the page, including the line of code:
"ColdFusion.Ajax.importTag('CFDIV');".
That line of code is throwing a Javascript error of:
"ColdFusion is not defined".
I am unsure if this is an indication that I am doing
something wrong in my code or if I need to contact my server admins
because there might be something wrong with the CF settings or load
on the server. Has anyone else run into this sort of thing?

> It appears that the addition of this tag this causes CF
to add a bunch of
> Javascript to the page, including the line of code:
> "ColdFusion.Ajax.importTag('CFDIV');".
>
> That line of code is throwing a Javascript error of:
"ColdFusion is not
> defined".
>
> I am unsure if this is an indication that I am doing
something wrong in my
> code or if I need to contact my server admins because
there might be something
> wrong with the CF settings or load on the server. Has
anyone else run into
> this sort of thing?
I suspect you don't have a web mapping for the
[coldfusion]/CFIDE dir? You
either need to have that directory web-accessible, or use
<cfajaximport> to
tell CF to use a copy of the files from another directory.
See
http://livedocs.adobe.com/coldfusion/8/Tags_a-b_2.html
for more detail.
Adam

Similar Messages

  • Javascript error when opening Tag editor

    I have been using dreamweaver 8 for the last month or so. all
    of a sudden a couple of days a go it started to give me the same
    error every time i right clicked an input element and clicked the
    'Tag Edit <Input>'.
    The error reads
    "While executing onLoad in input.htm, a JavaScript error
    occurred."
    Any ideas?
    I have already tried the repair option in Add/Remove
    Programs, and that didnt work
    I then tried the Remove option, and then completely
    reinstalled it to no prevail
    Thankyou for any suggestions you may have

    See if this helps:
    Troubleshooting JavaScript errors in Dreamweaver
    http://www.adobe.com/go/19105
    Nadia
    Adobe® Community Expert : Dreamweaver
    CSS Templates |Tutorials |SEO Articles
    http://www.DreamweaverResources.com
    ~ Customisation Service Available ~
    http://www.csstemplates.com.au
    CSS Tutorials for Dreamweaver
    http://www.adobe.com/devnet/dreamweaver/css.html
    "Jay6390" <[email protected]> wrote in
    message
    news:esqm83$if1$[email protected]..
    >I have been using dreamweaver 8 for the last month or so.
    all of a sudden a
    > couple of days a go it started to give me the same error
    every time i
    > right
    > clicked an input element and clicked the 'Tag Edit
    <Input>'.
    >
    > The error reads
    > "While executing onLoad in input.htm, a JavaScript error
    occurred."
    >
    > Any ideas?
    > I have already tried the repair option in Add/Remove
    Programs, and that
    > didnt
    > work
    > I then tried the Remove option, and then completely
    reinstalled it to no
    > prevail
    >
    > Thankyou for any suggestions you may have
    >

  • JavaScript error in keywords.js?

    When entering or modifying 'keywords' in an html-file in Dreamweaver I seem to get the following error when switching applications and returning to DW:
    While executing onBlur in keywords.htm, the following JavaScript error(s) occurred:
    At line 66 of file "...:Adobe Dreamweaver CS5:Configuration:Inspectors:keywords.js": dw.getDocumentDOM().setAttribute is not a function

    Do you get this error in any page, or just this one?
    And you are only changing keywords in a meta keyword tag?  You do know that that tag is not used by the major search engines, right?

  • While executing applyServerBehavior in kd_RestrictAccessPage.htm, a javascript error occurred

    .. Getting random javascript errors and pages that were working fine, in which i have done no manual editing get a red exclamation mark by themselves.
    especially the list recordset.. get a red "!"
    The loop parameters bla bla bla..
    Exact Error message below.
    "Error processing insertText tag: 'loop' parameter arrays must be the same length. The 'loop' parameter 'tableCSSWidth' does not have the same length as the previous 'loop' parameter(s)."
    and so on.. I simply cannot apply any server behaviors or edit them.
    mohnkhan
    http://www.mohitech.com

    Hi,
    Reinstalling helped me with that issue ..
    to avoid such issues whenever i used dreamweaver i do it in a vmware box...
    regards
    mohnkhan
    http://www.mohtiech.com

  • While executing ObjectTag in flash.htm, a javascript error occurred

    I'm attempting to place a SWF file in an editable region on a page created from a template.  I get the error: While executing ObjectTag in flash.htm, a javascript error occurred.  I saw on another sight that someone found the problem which was editable regions remove the head tag information.  But I do not know how to enter this info.  I tried just putting  a </head> and a head and body tag in code view inside the name region but this did not work. Any help would be appreciated.

    Main.dwt
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Untitled Document</title>
    <style type="text/css">
    <!--
    body {
    background-color: #00C;
    margin-left: 0px;
    margin-top: 0px;
    margin-right: 0px;
    margin-bottom: 0px;
    #container {
    background-color: #FFF;
    width: 900px;
    margin-right: auto;
    margin-left: auto;
    #flashbanner {
    background-color: #FFF;
    height: 350px;
    width: 900px;
    #title {
    background-color: #FFF;
    height: 35px;
    width: 900px;
    #navtop {
    background-color: #FFF;
    height: 100px;
    width: 900px;
    #spacer1 {
    background-color: #00C;
    height: 20px;
    width: 900px;
    #navleft {
    background-color: #FFF;
    float: left;
    height: 1200px;
    width: 250px;
    border-right-width: medium;
    border-right-style: solid;
    border-right-color: #00C;
    #mainbody {
    background-color: #FFF;
    height: 1200px;
    width: 646px;
    float: left;
    #spacer2 {
    background-color: #00C;
    height: 20px;
    width: 900px;
    clear: both;
    #navbottom {
    background-color: #FFF;
    height: 100px;
    width: 900px;
    #spacer3 {
    background-color: #00C;
    height: 20px;
    width: 900px;
    -->
    </style></head>
    <body>
    <div id="container"><!-- TemplateBeginEditable name="flashbanner" -->
      <div id="flashbanner">flashbanner</div>
    <!-- TemplateEndEditable --><!-- TemplateBeginEditable name="title" -->
    <div id="title">title</div>
    <!-- TemplateEndEditable -->
    <div id="navtop">nav top</div>
      <div id="spacer1"></div>
      <div id="navleft">nav left</div>
      <!-- TemplateBeginEditable name="mainbody" -->
      <div id="mainbody">mainbody</div>
      <!-- TemplateEndEditable -->
      <div id="spacer2"></div>
      <div id="navbottom">nav bottom</div>
      <div id="spacer3"></div>
    container</div>
    </body>
    </html>
    Index.htm
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml"><!-- InstanceBegin template="/Templates/main.dwt" codeOutsideHTMLIsLocked="false" -->
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Untitled Document</title>
    <style type="text/css">
    <!--
    body {
    background-color: #00C;
    margin-left: 0px;
    margin-top: 0px;
    margin-right: 0px;
    margin-bottom: 0px;
    #container {
    background-color: #FFF;
    width: 900px;
    margin-right: auto;
    margin-left: auto;
    #flashbanner {
    background-color: #FFF;
    height: 350px;
    width: 900px;
    #title {
    background-color: #FFF;
    height: 35px;
    width: 900px;
    #navtop {
    background-color: #FFF;
    height: 100px;
    width: 900px;
    #spacer1 {
    background-color: #00C;
    height: 20px;
    width: 900px;
    #navleft {
    background-color: #FFF;
    float: left;
    height: 1200px;
    width: 250px;
    border-right-width: medium;
    border-right-style: solid;
    border-right-color: #00C;
    #mainbody {
    background-color: #FFF;
    height: 1200px;
    width: 646px;
    float: left;
    #spacer2 {
    background-color: #00C;
    height: 20px;
    width: 900px;
    clear: both;
    #navbottom {
    background-color: #FFF;
    height: 100px;
    width: 900px;
    #spacer3 {
    background-color: #00C;
    height: 20px;
    width: 900px;
    -->
    </style></head>
    <body>
    <div id="container"><!-- InstanceBeginEditable name="flashbanner" -->
      <div id="flashbanner">flashbanner</div>
    <!-- InstanceEndEditable --><!-- InstanceBeginEditable name="title" -->
    <div id="title">title</div>
    <!-- InstanceEndEditable -->
    <div id="navtop">nav top</div>
      <div id="spacer1"></div>
      <div id="navleft">nav left</div>
      <!-- InstanceBeginEditable name="mainbody" -->
      <div id="mainbody">mainbody</div>
      <!-- InstanceEndEditable -->
      <div id="spacer2"></div>
      <div id="navbottom">nav bottom</div>
      <div id="spacer3"></div>
    container</div>
    </body>
    <!-- InstanceEnd --></html>

  • CommandLink Javascript Error

    Hi,
    In my JSF form, I'm trying to pass param value using <f:param> tag. However, when I click on the link after the form is rendered, it gives me following javascript error. I'm using Struts-Faces library so my form tag is <s:form styleClass="form" id="form1" action="/CertificationCreate">
    Javascript Error: 'document.forms.form1._LINK_TARGET__' is null or not an object
    Here is my JSF tag:
    <h:commandLink value="Approve" type="submit" id="cmdLink_Approve">
    <f:param id="param1" name="action" value="approve"></f:param>
    <h:outputText value="Approve"></h:outputText>
    </h:commandLink>
    Converted HTML:
    <a id="form1:cmdLink_Approve" href="#" onclick="document.forms['form1']['__LINK_TARGET__'].value='form1:cmdLink_Approve';document.forms['form1']['action'].value='approve'; document.forms['form1'].submit(); return false;">Approve</a>
    Any Ideas?
    Thanks,
    S Shah

    i have the same problem
    what is the difference between <s:commandlink> and <h:commandlink>
    Do you using MyFaces RI or Sun's RI?

  • Javascript error in event handler! edge 4.0.0.js, what to do about it?

    Site
    Hello everyone. I get an error in my chrome cosole, what can I do about this?
    I dont have this problem in all browsers, just in chrome, and in some versions of Firefox.
    The problem occurs when I click any label in the iframe (see website, speaks for itself).
    line 5838      window.console.log("Javascript error in event handler! Event Type = " + eventType);
    does anyone know how to fix this?
    And why do I only have this problem in some browsers?

    I basically want the labels in the Iframe to make the parent page animate to a specific anchor tag.
    ps. This is what I posted on the jquery forum as well:
    I tried to do this by letting the iframe .trigger a .click to a button on the .parent page.
    I did this in two ways.
    one: the click is triggerd in (/by) the iframe
    two: the click is triggerd by a script in the parent window, that script is launched by the iframe
    Here's the thing:
    this is what one of the <a>'s that the iframe will click looks like:
    <a class="nonblock nontext anim_swing" id="u185" href="index.html#contact"><!-- simple frame --></a>
    The code is generated by adobe muse which has a function to smoothly scroll to a location on the page, and I am guessing the "anim_swing" class takes care of that.
    I would like the colorful labels in the iframe to do the same thing as the <a> above.
    and it works in some browsers on some computers but somehow not on all of them (with method two the adblocker doesn't seem to be an issue ).
    I also tried to let the parent page scroll directly with the jquery .scrollto function. That did not work either (see the jquery forum).

  • Getting javascript error in jsf portlet

    Hi,
    I wrote a jsf page with command links calling an action in ManagedBean. Its works fine if run as jsf page. But when I associate the jsf page with a portlet and run the page, I am getting javascript error when clicked on the command links.
    Please help me to resolve this problem.
    The jsf page
    <%@ page language="java" contentType="text/html;charset=UTF-8"%>
    <%@ taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
    <%@ taglib prefix="h" uri="http://java.sun.com/jsf/html"%>
    <%@ taglib uri="http://www.bea.com/servers/portal/groupspace/tags/activemenus" prefix="activemenus" %>
    <%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>
    <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
    <%@ taglib uri="http://bea.com/faces/adapter/tags-naming" prefix="netuix" %>
    <html>
    <head></head>
         <body>
    <f:view>
         <netuix:namingContainer id="facesContent">
              <h:form>
    <f:verbatim>
         <table border="0" width="100%">
              <tr>
                   <td>
                        <h:outputLabel value="Notifications" for="heading"/>
                   </td>
                   <td>
                        (<h:outputText value="#{notificationsBean.notificationsSize}" escape="true"/>)
                   </td>
                   <td>
                             <h:commandLink action="#{notificationsBean.showInWorkList}" immediate="true">
                                  <h:outputText value="Show in Worklist"/>
                             </h:commandLink>
                   </td>
                   <td>
                        <h:outputText value="hai"/>
                   </td>
              </tr>
         </table>
    </f:verbatim>     
              <div style="overflow: auto; width: 100%; height: 200px">
              <h:dataTable value="#{notificationsBean.userNotifs.notificationsList}" var="notification">
                   <h:column>
                        <f:facet name="header">
                             <h:commandLink action="#{notificationsBean.sort}">
                                  <f:param name="column" value="caseNB"/>
                                  <f:param name="sortDirection" value="#{notificationsBean.sortDirection}"/>
                                  <f:param name="pattern" value="####"/>
                                  <h:outputText value="Case ID"/>
                             </h:commandLink>
                        </f:facet>
                        <h:outputText value="#{notification.caseNB}"/>
                   </h:column>
                   <h:column>
                        <f:facet name="header">
                             <h:commandLink action="#{notificationsBean.sort}" immediate="true">
                                  <h:outputText value="From"/>
                                  <f:param name="column" value="senderNM"/>
                                  <f:param name="pattern" value=""/>
                                  <f:param name="sortDirection" value="#{notificationsBean.sortDirection}"/>
                             </h:commandLink>
                        </f:facet>
                        <h:outputText value="#{notification.senderNM}"/>
                   </h:column>
                   <h:column>
                        <f:facet name="header">
                             <h:commandLink action="#{notificationsBean.sort}">
                                  <f:param name="column" value="priorityCD"/>
                                  <f:param name="sortDirection" value="#{notificationsBean.sortDirection}"/>
                                  <f:param name="pattern" value=""/>
                                  <h:outputText value="Priority"/>
                             </h:commandLink>
                        </f:facet>
                        <h:outputText value="#{notification.priorityCD}"/>
                   </h:column>
                   <h:column>
                        <f:facet name="header">
                             <h:commandLink action="#{notificationsBean.sort}">
                                  <f:param name="column" value="subjectTX"/>
                                  <f:param name="sortDirection" value="#{notificationsBean.sortDirection}"/>
                                  <f:param name="pattern" value=""/>
                                  <h:outputText value="Subject"/>
                             </h:commandLink>
                        </f:facet>
                        <h:outputText value="#{notification.subjectTX}"/>
                   </h:column>
                   <h:column>
                        <f:facet name="header">
                             <h:commandLink action="#{notificationsBean.sort}">
                                  <f:param name="column" value="createDT"/>
                                  <f:param name="sortDirection" value="#{notificationsBean.sortDirection}"/>
                                  <f:param name="pattern" value="dd-MM-yyyy"/>
                                  <h:outputText value="Created(ET)"/>
                             </h:commandLink>
                        </f:facet>
                        <h:outputText value="#{notification.createDT}"/>
                   </h:column>
              </h:dataTable>
              </div>
                   </h:form>
    </netuix:namingContainer>
    </f:view>
    </body>
    </html>
    The Managed Bean:
    public class NotificationsManagedBean {
         private UserNotifications userNotifs=new UserNotifications();
         private int notificationsSize;
         private String column;
         private String sortDirection = "asc";
         private String pattern;
         public UserNotifications getUserNotifs() {
              getUserNotificationsList();
              return userNotifs;
         public void setUserNotifs(UserNotifications userNotifs) {
              this.userNotifs = userNotifs;
         public int getNotificationsSize() {
              getUserNotificationsList();
              return notificationsSize;
         public void setNotificationsSize(int notificationsSize) {
              this.notificationsSize = notificationsSize;
         public String getColumn() {
              return column;
         public void setColumn(String column) {
              this.column = column;
         public String getSortDirection() {
              return sortDirection;
         public void setSortDirection(String sortDirection) {
              if(sortDirection != null && sortDirection.trim().length()!=0)
                   this.sortDirection = sortDirection;
         public String getPattern() {
              return pattern;
         public void setPattern(String pattern) {
              this.pattern = pattern;
         public String showInWorkList() {
              System.err.println("test");
              return "success1";
              //TODO Auto-generated method stub
         public String sort(){
              sort(column, sortDirection);
              return "success";
         @SuppressWarnings("unchecked")
         private void getUserNotificationsList()
              ArrayList<Notification> notificationsList = new ArrayList<Notification>();
              for(int i=0;i<20;i++)
                   Notification notif = new Notification();
                   notif.setCaseNB("122"+i);
                   notif.setCreateDT("12-12-2002");
                   notif.setSenderNM("testing1"+(i%3));
                   System.out.println(notif.getSenderNM());
                   notif.setSubjectTX("testing2"+(i%4));
                   System.out.println(notif.getSubjectTX());
                   notif.setPriorityCD("High");
                   notificationsList.add(notif);
    userNotifs.setNotificationsList(notificationsList);
              if(userNotifs.getNotificationsList()!=null)
                   this.setNotificationsSize(userNotifs.getNotificationsList().size());
    * <p>Return the <code>FacesContext</code> instance for the
    * current request.
    protected FacesContext context() {
    return (FacesContext.getCurrentInstance());
    protected void sort(final String column, final String direction) {
              java.util.Comparator comparator = new SortComparator(userNotifs.getNotificationsList(),column,direction,pattern);
              java.util.Collections.sort(userNotifs.getNotificationsList(), comparator);     
              if(direction.equalsIgnoreCase("asc"))
                   setSortDirection("desc");
              else
                   setSortDirection("asc");
    }

    Too less relevant information and too much irrelevant code.
    First of all, which JS error exactly are you getting? You as developer should know better that you shouldn't ignore errors. They contain helpful information about the cause of the problem and thus also how to solve it. Where exactly does the error come from? (view the generated HTML source). Which JSF implementation and version exactly are you using? Which webbrowser exactly are you using? Does it work in/with other/newer versions?

  • Javascript error in Portal

    Hello All,
    I am facing two issues. One is sometimes when I login to Portal with admin id, it prevents me from displaying contents under the content administration. The reason being a Javascript error at the left bottom of the browser page access denied. However, I am logging in with administrator id.
    However, this error doesnt comes always. It comes randomly.
    I am getting this error even while executing a portal application that links directly to iviews by
    *<a href= ""> </a> tag*
    It again sayins javascript error: access denied.
    Any idea why this error is coming? How Should i resolve this error?
    Kindly advise.
    Thanks,
    Ameya Pimpalgaonkar
    Edited by: Ameya Pimpalgaonkar on Nov 12, 2009 7:01 AM

    Amey,
    Please install fire bug along with Mozilla and try to login to the application. This will help you to find from where the error is coming exactly.
    Also, clear your browser cache and try to login and check.
    Ram

  • JavaScript error when a link is clicked

    Hello,
    I have a commandLink in my screen (JSF application). When I click on the link I am getting a javaScript error saying (in Firefox browser)
    clear_header_3Abanner_3ApasswordChange is not defined
    So when i checked the page source i could see that its generating the clear_header_3Abanner_3ApasswordChange(); tag extra as below
    span class="username">Joe McUser</span> | <a href="# onclick="[bclear_header_3Abanner_3ApasswordChange();document.forms['header:banner:passwordChange'].elements['header:banner:passwordChange:_link_hidden_'].value='header:banner:passwordChange:passwordLink';if(document. ...................
    I don't have a subview or form named "clear" and I am not sure where the _3A is coming from.
    My JSF looks like this
    <f:subview id="banner">
              <h:panelGrid styleClass="accentBar">
                   <h:panelGroup />
              </h:panelGrid>
              <h:panelGrid styleClass="headerBar">
                   <h:panelGrid styleClass="headerBanner" columns="3" columnClasses="logo,title,options">
                        <h:panelGroup>
                             <h:outputText styleClass="title" value="text" />
                             <h:outputText value=" " />
                             <h:outputText styleClass="subtitle" value="text" />
                        </h:panelGroup>
                        <h:form id="passwordChange" >
                        <h:panelGroup>
                             <h:outputText styleClass="username" value="Joe McUser" />
                             <h:outputText value=" | " />                         
                             <t:commandLink id="passwordLink" value="Change Password" action="#{bannerOptionDto.doUpdateChangePassword}" />
                             <h:outputText value=" | " />
                             <h:outputText value="Logout" />
                        </h:panelGroup>
                        </h:form>
                   </h:panelGrid>
              </h:panelGrid>
         </f:subview>
    Could somebody please help me with this problem.
    Thanks!

    I had problems with t:commandLink too. Try to switch it with h:commandLink

  • Dreamweaver/Fireworks javascript error

    I've been using Fireworks and Dreamweaver for a while.
    I'm rebuilding our website, and made my navigation
    bar/buttons in Fireworks just like I did on the previous page.
    exported as html.
    then I went to dreamweaver and inserted fireworks html... The
    buttons worked for a while. one day when I was home I thought I'd
    work on it some more, and ever since, whenever I insert the button,
    i get this error...
    "while executing object tag in fireworks html a javascript
    error occured"
    i can even start with a blank html file and insert any
    fireworks file, even the one that works on the current site, and I
    get that error.
    I created a new simple button, and still get that error...
    The only thing I can think of that's might could have caused
    this... at work I have the newer CS3 suite and Dreamweaver 4, and
    at home I just have Dreamweaver 4.
    Could something have caused this by using both versions when
    working on this new site?

    > it leaves some javascript code in there...
    Oh. I see.
    > thanks i will check them out...
    Way better than the FW menus.
    Good luck.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "lucyo" <[email protected]> wrote in message
    news:[email protected]...
    >
    quote:
    Originally posted by:
    Newsgroup User
    > >> somewhere while i was searching for an answer,
    i read when a fireworks
    > >> html
    > >> file is removed, it leaves remnants of the
    original file, so that when
    > >> you
    > >> reinsert it, there are problems...
    >
    > >Huh? You mean when you delete an image from a page?
    Baloney.
    >
    > it leaves some javascript code in there... when i went
    into code view and
    > deleted all of that, and reinserted the edited fireworks
    html, it worked
    > fine.
    >
    > >> i do wish you could just higlight the gif to
    remove it and it was all
    > >> gone,
    >
    > >You certainly can do this.
    >
    > i'm not sure if its not working because i'm using a
    newer
    > fireworks/dreamweaver or why it isn't working now but it
    did before.
    >
    > >> and if i could find a better way to make my
    navigation bar, i'd do it.
    >
    > >Check the uberlink and MacFly tutorials at PVII -
    > >
    http://www.projectseven.com/
    >
    > >and the Navbar tutorial/articles at Thierry's place
    > >
    http://tjkdesign.com/articles/dropdown/
    >
    > >Or this one (more recent article):
    > >
    http://tjkdesign.com/articles/Pure_CSS_Dropdown_Menus.asp
    >
    > >Or to get it done fast, go here -
    >
    > >
    http://www.projectseven.com/tutorials/navigation/auto_hide/index.htm
    >
    > thanks i will check them out...
    >
    > >> never had this problem for the past few years
    til now.
    >
    > >You always had problems, you just didn't know about
    them. But your
    > >visitors
    > >and search engines did....
    >
    > well at least i have this page w3c validated... even
    with the fireworks
    > html
    > navigation bar.
    > when i was building the original website, i didn't have
    a clue about how
    > to do
    > that even, so i've learned a little and its from having
    problems like this
    > and
    > searching for answers.
    >
    > maybe if someone else has this problem they will realize
    to look at the
    > code
    > and see where it leaves some of the javascript or
    fireworks html even
    > after the
    > image is removed... and when they remove that code and
    reinsert the
    > fireworks
    > html it doesn't give an error or lock up fireworks...
    >
    >

  • Javascript errors when formating text and images in Contribute CS3

    I'm using Contribute CS3 on Vista, I insert an image inside a
    paragraph tag with text then align the image
    ie the source code looks like this:
    <p><img src="..." alt="" align="left"/>some
    text</p>
    I change the text in the paragraph to bold
    Source code example: <p><img src="..." alt=""
    align="left"/><strong>some text</strong></p>
    I will get the following error messages:
    1 This error appears 2 times:
    "While executing DW_Text_CSS_Style canAcceptCommand in
    ccText_Styles.htm, a JavaScript error occurred."
    2 This error appears 2 times:
    "While executing DW_Text_Bold canAcceptCommand in
    Text_Style.htm, a JavaScript error occurred."
    3 This error appears 3 times:
    "While executing DW_Text_Italic canAcceptCommand in
    Text_Style.htm, a JavaScript error occurred."
    4 Next all the styles and formatting options are greyed out
    but I can still publish or discard.
    To be able to apply the styles and formatting in Contribute
    CS3 I now need to close the application and reopen it again and be
    careful not to reproduce the error.
    I've also tried renaming the Configuration folder under
    c:\Users\myusername\appData\Local\Adobe\Contribute CS3\ but it
    hasn't worked.
    We've reproduced this error on 3 similar machines in our
    office all running cs3 but the bug doesn't occur when performing
    the same steps in Contribute 3 or dreamweaver CS3 which is running
    side by side on these machines.

    It might be trying to pull the image from a different
    location than the image is currently stored in. Try to move the
    image file to a different folder and then load.

  • Javascript Error after insert a Webpart into Page

    Hi everone, have you ever experienced getting error just after inserting a Webpart into page? I'm using Sharepoint Server 2013. These steps what I did:
    1. Create new page
    2. Click 'Add Webpart'
    3. Choose the webpart and click OK
    4. Webpart showed on page (simple table form)
    5. All ribbon controls are disable and there is javascript error on browser's console with message:
    SCRIPT1004: Expected ';' 
    Picture: http://i(dot)imgur(dot)com/UBM91b3(dot)png
    That line is not from my codes, it's automatically added by sharepoint after inserting webpart. Thanks for anyone who has workaround for this..
    <%@ Assembly Name="$SharePoint.Project.AssemblyFullName$" %>
    <%@ Assembly Name="Microsoft.Web.CommandUI, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
    <%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
    <%@ Register Tagprefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
    <%@ Register Tagprefix="asp" Namespace="System.Web.UI" Assembly="System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" %>
    <%@ Import Namespace="Microsoft.SharePoint" %>
    <%@ Register Tagprefix="WebPartPages" Namespace="Microsoft.SharePoint.WebPartPages" Assembly="Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
    <%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ContractReviewWP.ascx.cs" Inherits="Mitrais.SP2013.ContractManagement.WebParts.ContractReviewWP.ContractReviewWP" %>
    <script type="text/javascript">
    $(function () {
    Sys.WebForms.PageRequestManager.getInstance().add_pageLoaded(function (evt, args) {
    //datepicker
    $(".datePicker").datepicker();
    </script>
    <div id="divMain">
    <asp:UpdatePanel ID="upContract" runat="server" UpdateMode="Conditional">
    <ContentTemplate>
    <asp:HiddenField ID="currentStage" runat="server" />
    <h1>
    <asp:Label ID="lblFormTitle" runat="server" Text="Request"></asp:Label>
    Contract Review/Approval
    </h1>
    <div class="divControl">
    <table>
    <tr>
    <td>
    <asp:Label ID="lblTitle" runat="server" Text="Title"></asp:Label>
    </td>
    <td>:</td>
    <td>
    <asp:TextBox ID="txtTitle" runat="server"></asp:TextBox>
    <asp:RequiredFieldValidator ID="requiredValidatorTitle" runat="server" ErrorMessage="*" ControlToValidate="txtTitle" ValidationGroup="SubmitValidation"></asp:RequiredFieldValidator>
    </td>
    </tr>
    <tr>
    <td>
    <asp:Label ID="lblRequestType" runat="server" Text="Request Type"></asp:Label>
    </td>
    <td>:</td>
    <td>
    <asp:DropDownList ID="ddlRequestType" runat="server" CssClass="dropdownRequestType" OnSelectedIndexChanged="ddlRequestType_SelectedIndexChanged" AutoPostBack="true">
    </asp:DropDownList>
    </td>
    </tr>
    <tr>
    <td>
    <asp:Label ID="lblDocumentType" runat="server" Text="Document Type"></asp:Label>
    </td>
    <td>:</td>
    <td>
    <asp:DropDownList ID="ddlDocumentType" runat="server">
    </asp:DropDownList>
    </td>
    </tr>
    <tr>
    <td>
    <asp:Label ID="lblRequestedBy" runat="server" Text="Requested By"></asp:Label>
    </td>
    <td>:</td>
    <td class="tdPeoplePick">
    <SharePoint:PeopleEditor Enabled="false" ID="pplRequestedBy" runat="server" AllowEmpty="false" MultiSelect="false" SelectionSet="User" />
    </td>
    </tr>
    <tr>
    <td>
    <asp:Label ID="lblRequiredDate" runat="server" Text="Required Date"></asp:Label>
    </td>
    <td>:</td>
    <td>
    <asp:TextBox ID="dtRequiredDate" runat="server" CssClass="datePicker"></asp:TextBox>
    <asp:RequiredFieldValidator ID="requiredValidatorRequiredDate" runat="server" ControlToValidate="dtRequiredDate" ErrorMessage="*" ValidationGroup="SubmitValidation"></asp:RequiredFieldValidator>
    </td>
    </tr>
    <asp:Panel ID="pnlRequestedDate" runat="server">
    <tr>
    <td>
    <asp:Label ID="lblRequestedDate" runat="server" Text="Requested Date"></asp:Label>
    </td>
    <td>:</td>
    <td>
    <asp:TextBox ID="dtRequestedDate" runat="server" CssClass="datePicker"></asp:TextBox>
    </td>
    </tr>
    </asp:Panel>
    <tr>
    <td>
    <asp:Label ID="lblDescription" runat="server" Text="Description"></asp:Label>
    </td>
    <td>:</td>
    <td>
    <asp:TextBox ID="txtDescription" runat="server"></asp:TextBox>
    <asp:RequiredFieldValidator ID="RequiredValidatorDescription" runat="server" ControlToValidate="txtDescription" ErrorMessage="*" ValidationGroup="SubmitValidation"></asp:RequiredFieldValidator>
    </td>
    </tr>
    <tr>
    <td>
    <asp:Label ID="lblClientCode" runat="server" Text="Client Code"></asp:Label>
    </td>
    <td>:</td>
    <td>
    <asp:TextBox ID="txtClientCode" runat="server"></asp:TextBox>
    <asp:RequiredFieldValidator ID="requiredValidatorClientCode" runat="server" ControlToValidate="txtClientCode" ErrorMessage="*" ValidationGroup="SubmitValidation"></asp:RequiredFieldValidator>
    </td>
    </tr>
    <tr>
    <td>
    <asp:Label ID="lblSSOCode" runat="server" Text="SSO Code"></asp:Label>
    </td>
    <td>:</td>
    <td>
    <asp:TextBox ID="txtSSOCode" runat="server"></asp:TextBox>
    <asp:RequiredFieldValidator ID="requiredValidatorSSOCode" runat="server" ControlToValidate="txtSSOCode" ErrorMessage="*" ValidationGroup="SubmitValidation"></asp:RequiredFieldValidator>
    </td>
    </tr>
    <asp:Panel ID="panelCPC" runat="server">
    <tr>
    <td>
    <asp:Label ID="lblCPC" runat="server" Text="CPC"></asp:Label></td>
    <td>:</td>
    <td><asp:TextBox ID="txtCPC" runat="server"></asp:TextBox></td>
    <asp:CustomValidator ID="customValidatorCPC" runat="server" ControlToValidate="txtCPC" ErrorMessage="*" ValidationGroup="SubmitValidation"></asp:CustomValidator>
    </tr>
    </asp:Panel>
    <tr>
    <td>
    <asp:Label ID="lblValue" runat="server" Text="Value (US$)"></asp:Label>
    </td>
    <td>:</td>
    <td>
    <asp:DropDownList ID="ddlValue" runat="server"></asp:DropDownList>
    </td>
    </tr>
    <asp:Panel ID="panelCRM" runat="server">
    <tr>
    <td><asp:Label ID="lblCRMUpdated" runat="server" Text="CRM Updated"></asp:Label></td>
    <td>:</td>
    <td>
    <asp:CheckBox ID="checkBoxCRMUpdated" runat="server" />
    </td>
    </tr>
    </asp:Panel>
    <tr>
    <td>
    <asp:Label ID="lblAgreement" runat="server" Text="Agreement Authorisation Level"></asp:Label>
    </td>
    <td>:</td>
    <td>
    <asp:DropDownList ID="ddlAgreement" runat="server"></asp:DropDownList>
    </td>
    </tr>
    <tr>
    <td>
    <asp:Label ID="lblAssignedTo" runat="server" Text="Assigned To"></asp:Label>
    </td>
    <td>:</td>
    <td class="tdPeoplePick">
    <SharePoint:PeopleEditor ID="pplAssignedTo" runat="server" AllowEmpty="true" MultiSelect="false" SelectionSet="User" />
    </td>
    </tr>
    <tr>
    <td>
    <asp:Label ID="lblStatus" runat="server" Text="Status"></asp:Label>
    </td>
    <td>:</td>
    <td>
    <asp:DropDownList ID="ddlStatus" runat="server" CssClass="dropdownStatus"></asp:DropDownList>
    </td>
    </tr>
    <asp:Panel ID="panelStartDate" runat="server">
    <tr>
    <td>
    <asp:Label ID="lblStartDate" runat="server" Text="Start Date"></asp:Label>
    </td>
    <td>:</td>
    <td>
    <asp:TextBox ID="txtStartDate" runat="server" CssClass="datePicker"></asp:TextBox>
    </td>
    </tr>
    </asp:Panel>
    <asp:Panel ID="panelEndDate" runat="server">
    <tr>
    <td>
    <asp:Label ID="lblEndDate" runat="server" Text="End Date"></asp:Label>
    </td>
    <td>:</td>
    <td>
    <asp:TextBox ID="txtEndDate" runat="server" CssClass="datePicker"></asp:TextBox>
    </td>
    </tr>
    </asp:Panel>
    <asp:Panel ID="pnlTemplate" runat="server">
    <tr id="rowTemplate">
    <td>Selected Template</td>
    <td>:</td>
    <td>
    <span id="selectedTemplateSpan"></span>
    <asp:HiddenField ID="hdnSelectedTemplate" runat="server" />
    <asp:Button ID="buttonLookupTemplate" runat="server" Text="Choose Template" CssClass="buttonTemplate" /></td>
    </tr>
    </asp:Panel>
    <tr>
    <td>
    <asp:Label ID="lblLatestDocument" runat="server" Text="Latest Document"></asp:Label>
    </td>
    <td>:</td>
    <td>
    <asp:HyperLink ID="linkLatestDocument" runat="server"></asp:HyperLink>
    <asp:FileUpload ID="fuLatestDocument" runat="server" />
    <asp:CustomValidator ControlToValidate="fuLatestDocument" OnServerValidate="LatestDocument_ServerValidate"
    ErrorMessage="The document with same name already exist, please use different name." SetFocusOnError="true" runat="server" ForeColor="Red" />
    </td>
    </tr>
    <tr>
    <td>
    <asp:Label ID="lblTaggedPerson" runat="server" Text="Person Tagged">
    </asp:Label>
    </td>
    <td>:</td>
    <td class="tdPeoplePick">
    <SharePoint:PeopleEditor ID="peopleTaggedPerson" runat="server" MultiSelect="true" AllowEmpty="true" SelectionSet="User" />
    </td>
    </tr>
    </table>
    </div>
    <div>
    <table class="tbButton">
    <tr>
    <td></td>
    <td>
    <asp:Button ID="btnSubmit" runat="server" Text="Submit" OnClick="btnSubmit_Click" OnClientClick="PreSubmit();" ValidationGroup="SubmitValidation"/>
    </td>
    <td>
    <asp:Button ID="btnCancel" runat="server" Text="Cancel" OnClick="btnCancel_Click"/>
    </td>
    <asp:TextBox ID="txtCheck" runat="server" Text="Add" Visible="false"></asp:TextBox>
    <asp:TextBox ID="txtTempID" runat="server" Style="visibility: hidden;"></asp:TextBox>
    <asp:TextBox ID="txtIsAddNew" runat="server" Text="true" Visible="false"></asp:TextBox>
    </tr>
    </table>
    </div>
    <div id="tabContainer">
    <div class="tabs">
    <ul>
    <li id="tabHeader_1">Comment</li>
    <li id="tabHeader_2">Document Template History</li>
    </ul>
    </div>
    <div class="tabscontent">
    <div class="tabpage" id="tabpage_1">
    <div id="phComment" runat="server"></div>
    </div>
    <div class="tabpage" id="tabpage_2">
    <div id="phDocHistory" runat="server" />
    </div>
    </div>
    </div>
    </ContentTemplate>
    <Triggers>
    <asp:PostBackTrigger ControlID="btnSubmit" />
    </Triggers>
    </asp:UpdatePanel>
    <asp:HiddenField ID="hfComment" runat="server" />
    </div>
    <script type="text/javascript">
    $("#<%= upContract.ClientID %>").ready(function () {
    setTimeout(MitraisCM.contract(), 5000);
    </script>

    Hi,                                                             
    Per my knowledge, such error might occurred when we modify the HTML code of the page, through SharePoint Designer or Content Editor Web Part.
    What web part you added into the page?
    What if you create another new page and insert a list into it, will the error occurs?
    Feel free to reply with the test result if the issue still exists.
    Best regards
    Patrick Liang
    TechNet Community Support

  • Javascript errors after ecc upgrade

    Hi,
    At customer site an ECC 4.7 -> 6.0 upgrade has been performed. The BSPs from the old portal server are moved to the ECC6 backend system (ABAP stack installed only).
    Now the BSPs are returning javascript errors when pressing buttons, tabstripitems etc. The error is 'object expected'. These BSPs are using htlmb tags. I made a simple test BSP with a click button and that one is also returning the javascript error.
    When checking the generated code, I see a lot of javascript methods being called, but I dont see them declared.
    Can anyone help me out?
    With regards,
    Mike

    js definitions would be as a separate file in the mime repository.
    couple of things to check
    1. check in SICF whether sap/public/bc and sap/public/bsp nodes are active
    2. invalidate the server cache from transaction SMICM->goto
    and search for possible oss notes

  • Netui javascript errors in portal

    The following code works in a webapp. It generates javascript errors in portal
    <%@ page language="java" contentType="text/html;charset=UTF-8"%>
    <%@taglib uri="http://beehive.apache.org/netui/tags-html-1.0" prefix="netui"%>
    <%@taglib uri="http://beehive.apache.org/netui/tags-databinding-1.0" prefix="netui-data"%>
    <%@taglib uri="http://beehive.apache.org/netui/tags-template-1.0" prefix="netui-template"%>
    <%@taglib tagdir="/WEB-INF/tags" prefix="dst" %>
    <%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
    <netui:html>
    <head>
    <netui:base/>
    <script language="JavaScript" type="text/JavaScript">
    function dstcheck(tagname)
    alert(document[lookupIdByTagId("sampleForm", this)][lookupIdByTagId("textID", this)].value);
    </script>
    </head>
    <netui:body>
    <netui:form action="begin" tagId="sampleForm">
              <netui:textBox dataSource="pageFlow.textValue" tagId="textID" onBlur="dstcheck('textID')"></netui:textBox>
              <netui:anchor action="begin" formSubmit="true">first link</netui:anchor>
    <dst:sample/>
         </netui:form>
    </netui:body>
    </netui:html>

    Can you attach the javascript errors you were getting?
    Thanks
    Subbu
    Srinivas Surapaneni wrote:
    The following code works in a webapp. It generates javascript errors in portal
    <%@ page language="java" contentType="text/html;charset=UTF-8"%>
    <%@taglib uri="http://beehive.apache.org/netui/tags-html-1.0" prefix="netui"%>
    <%@taglib uri="http://beehive.apache.org/netui/tags-databinding-1.0" prefix="netui-data"%>
    <%@taglib uri="http://beehive.apache.org/netui/tags-template-1.0" prefix="netui-template"%>
    <%@taglib tagdir="/WEB-INF/tags" prefix="dst" %>
    <%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
    <netui:html>
    <head>
    <netui:base/>
    <script language="JavaScript" type="text/JavaScript">
    function dstcheck(tagname)
    alert(document[lookupIdByTagId("sampleForm", this)][lookupIdByTagId("textID", this)].value);
    </script>
    </head>
    <netui:body>
    <netui:form action="begin" tagId="sampleForm">
              <netui:textBox dataSource="pageFlow.textValue" tagId="textID" onBlur="dstcheck('textID')"></netui:textBox>
              <netui:anchor action="begin" formSubmit="true">first link</netui:anchor>
    <dst:sample/>
         </netui:form>
    </netui:body>
    </netui:html>

Maybe you are looking for