ADC Adaptive Portlet PTHTTPPOSTRequest Javascript Error

I followed the inline post sample and it is giving me javascript error. PHTTPPostRequest function is undefined.
The error occurred on this line of code
var post = new PTHTTPPOSTRequest(postUrl, theForm, handleInlinePostResponse);
I traced back to the function declaration and it shows that I do have the JS file on my Plumtree server. .....imageserver\plumtree\common\private\js\jsxml\120930\PTXML.js
Any help would be appreciated.
Thanks
Steve

New Finding. I explicitly added the following line to the code to the portlet
<script type="text/javascript" src="pt://images/plumtree/common/private/js/jsxml/120930/PTXML.js"></script>
The portlet works fine on FireFox 0.9.3 and Mozilla .1.7.2 but not IE 6.0. The only error I could get out of IE was
Internet Explorer cannot open the Internet Site........
Operation aborted.
Mozilla works but gave me this error
Error: uncaught exception: Security Error: Content at http://company.com/portal/server.pt?space=MyPage&cached=true&parentname=CommunityPage&parentid=1&in_hi_userid=1&control=SetPage&PageID=214may not load data from http://plum-box-01/imageserver/plumtree/common/private/js/jsxml/jscomponent.xml.
What does this means? Should I remove the PTXML.js call and find the problem somewhere else?

Similar Messages

  • BEA 8.1 SP3 / Java Portlets replaceDynamicMarkup() Javascript error

    Hi
    I have been using BEA Portal SP2 for a while and have swapped over to SP3 but I am now seeing a Javascript error in the BEA portal page within a javascript method replaceDynamicMarkup(). This occurs when I have multiple Java Portlets on a page (can be the same portlet multiple times) and you maximise the portlet either programmatically or via the maximise button.
    The problem appears to be that when you maximise the portlet, the contents of the replaceDynamicMarkup do not change and try to access html associated with portlets not being displayed on the page. For example, the method with one portlet maximized and with 2+ portlets in normal mode is the same.
    With one portlet maximised, so only one visible:
    function replaceDynamicMarkup()
    {  var elem = document.getElementById("0_32");
    elem.innerHTML = "<span id='0_32'>SP3Test</span>";
    var elem = document.getElementById("0_38");
    elem.innerHTML = "<span id='0_38'>SP3Test</span>";
    because the other portlet isnt present both netscape 7 and IE 6 throw a "null" Javascript errors. As there is no check to ensure that the element is actually retrieved from the dom. Is there a workaround / fix for this?
    Thanks
    Andrew.

    Hi,
    I am not sure whether i am identifying the problem correctly or not, but we have seen this behavior with the portlets, as when we have two instances of a portlet on the same page and both are using same JavaScript function ,since all the portles are included in the same page we need to use Encode namespace for the java script functions so that a portlet Instance can identify its Java script function correctly
    While writing javascript function use
    function <portlet:nameSpace/>doSubmit()
    alert("good Morning ");
    While calling Javascript function use
    <input type=button value="Sumbit" onClick="javascript:<portlet:nameSpace/>doSubmit()"/>
    See if this can solve your Java Script problem.
    Thanks
    Milind

  • DotNet Web Controls 3.0 Auto-refresh Adaptive portlet javascript error

    Hi-
    I am getting this javascript error: "A Runtime Error has occurred. Error: 'PTLoader' is undefined", when trying to run a Auto-refresh portlet in Plumtree 6 with DotNet Web Controls 3.0
    Thanks,-Raj

    PTLoader is a separate JS library; not part of the .NET Web Controls. I expect that you are using this JS object but have not put the required JS file on the imageserver.

  • 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?

  • Adaptive Portlet Security....cross site scripting error

    Ok, I'm using Adaptive Portlets to access portlet data that resides on a different machine than my portal server. Everytime I try and perform a PTHTTPGET, I get a javascript security error. At first I was able to get around this by storing my portlets on the same machine as the server, however, in production this will not work because our portal is installed among 5 different boxes.
    Does anyone know how I can get around this?
    Dana

    The way to work around this is to make sure that any URLs you GET from are gatewayed. That way, as far as the browser is concerned, they're from the same host.
    ...stephan

  • Portlet editor's rich text editor gives javascript error 'access denied'

    I created a header portlet using the Publisher's published content portlet template. When I try to edit the portlet content using the rich text editor in the portlet editor window, I get a javascript error in the status bar stating 'access denied'. I can't even type into the rich text editor window, it's totally disabled. Not that I see anything in there anyway. I'm logged in as admin. I've gone into the publisher explorer admin portlet and even 'published' the portlet's content, but to no avail. When I try to 'add header portlet' in my experience definition and try to use this portlet, nothing shows up, where the header portlet should be is just collapsed so my banner is just the top bar view bumped right on top of the nav view. (p.s. does anyone know how to take the alui doc's suggestion of 'disabling the topbar view and nav view' so that I can construct what I want entirely in a header portlet? Anyway, first things first, how do I get that access denied message to disappear in my header portlet's rich text editor and how the heck do I get it show up? Help.

    There's probably not a developer in the forum that doesn't uncheck that box the moment they rebuild their machine/ennvironment. Changing the format of error messaging is hardly a fix for the error itself. Personally, I'm uploading 'file content items' now. I create the content in notepad and then upload > file content item. Then create a portlet that uses the pre-existing (was installed w/ publisher using their pte) 'published content item' web service. Go into the portlet's settings and associate the portlet w/ the content item you uploaded. Voila.
    As far as using their rich text editor to create new content, I personally have no need anymore. However I'm sure our content managers will probably have to soon so I hope our latest installation will accommodate them w/o error, because I've never been aware of an actual fix to this problem.

  • Adaptive portlet solution- Inline-post

    I have a search screen (portlet) and when the user submits I want to display the results in another portlet.I am planning to implement the inline-post in .net. Are there any examples of how to implement this in .net. PTHTTPPostrequest has a URL argument, should this be set to javascript or can this be a url to a remote service.

    Generally if you are using ASP.NET, you should install the Plumtree EDK .NET Web Controls. These will provide you with adaptive portlet features, without you having to code the adaptive portlet javascript yourself.

  • Javascript error when creating a new OC4J instance?

    Hi
    Im trying to deploy the documentum portlet, and a requirement was to install Ant, Java SDK....and i did
    after that...on my Application server machine (the portal), when i login to the enterprise manager to start a new OC4j instance, my browser shows a script error in the status bar in IE 6.0.
    it says: Object expected, ....and whenever i click "Create OC4j instance" the page is scrolled up to the top part of the page. so there is some kind of javascript error. how can i fix this? its stopping me from my development process.
    Your help is appreciated. thanks
    Faisal[b]

    On Windows this is caused most often by the temporary directory setting.
    Change the temporary directory to some fixed directory writable by anybody, e.g. "C:\temp".
    Change this in:
    Registry entry: hkey_local_machine\software\oracle\key_<oashome>\REPORTS_TMP
    <oashome>\opmn\conf\opmn.xml: search for environment variable TEMP (under ias-instance)
    Good luck!

  • Javascript error on file download

    I have a file browsing portlet (5.0.3 .NET) that allows users to download files. I link the displayed files to a download aspx page that just uses the C# Response.WriteFile(filepath); action. The only problem is that when the browser Save/Open dialog pops up, I get a javascript error as well on line 473. Now my page has no javascript so I think the page is getting gatewayed and causing it to error. So is there a way to prevent this one page from getting gatewayed.

    Here is the code for the Page_Load event. The filepath var is grabbed from the URL. I set the ContentType, so I wouldn't think it would see it as HTML. I'm not using any web controls on the download page, just this code-behind:
    String FileName = Path.GetFileName(filepath);
    Response.Clear();
    Response.ContentType = "application/octet-stream";
    String Header = "attachment; filename=" + FileName;
    Response.AddHeader("Content-Disposition", Header);
    Response.Flush();
    Response.WriteFile(filepath);

  • Problem with Adaptive Portlets

    Hi,
    We used the adaptive portlets example and developed a master and details kind of portlets in asp.net. After deploying on portal everything works fine If I run the portlets from the portal server. If I move to a different system to test we are getting the javascript problem saying PTHTTPGETRequest is undefined.
    Does any one ran into this problem and any idea.
    Thanks,
    Ramesh

    What are you using to include the necessary javascript (i.e. the PTHTTPGetRequest)? If it's the PTLoader then I expect you don't have any pt xml libraries installed (you'd need to install collab or EDK .NET Web Controls), if you're referencing them directly make sure you have the correct (latest) version and the URL resolves.

  • Refresh adaptive portlet

    I have 2 different adaptive portlets on a page. The first portlet raises a PCC event that is registered on the second portlet. I need to refresh (not postback) the second portlet when it receives the event. I have accomplished this with PTHTTPGETRequest following master-detail pattern. My issue is there doesn't seem to be a safe way to get the div id generated by the .net web controls that wraps my portlet. I have hardcoded PTPortletDIV_$$TOKEN$$ as the div id, but according to Plumtree, this id might change. Is there a better way to get this div id?
    Thanks,
    Tanner

    You say that you need to refresh the portlet - but not postback? Why not? Why can't you simply have the javascript function call __doPostback('','')? This will postback with no args so should not perform any logic on the server, just refresh.
    Jonathan

  • JavaScript error:Timeout

    Hello,
    I am calculating the value for the barcode (3 of 9) using JavaScript to generate a non-interactive PDF. On the Adobe Sever (ES LC 8.2), after running for 5 hours, I am experiencing script timeout error while calculating the barcode on the first page of every document that is getting processed. If I restart the Adobe server every thing is fine until the server hits the threashold of 5 hours.
    This only happens for the first page of every document, so if there are 10 pages then barcode gets calculated correctly from the second page. Very unusual behavior.
    Below is the exception,
    [5/25/10 20:30:25:976 EDT] 00000036 XMLFormServic W com.adobe.service.ProcessResource$ManagerImpl log ALC-XTG-102-001: [340010] Error: Timeout
    [5/25/10 20:30:25:987 EDT] 00000036 XMLFormServic W com.adobe.service.ProcessResource$ManagerImpl log ALC-XTG-102-001: [340010] Script failed (language is javascript; context is xfa[0].form[0].rcx[0].#pageSet[0].pageMain1[4].Code3of9BarCode1[0])
    Appreciate your help on this.
    Thanks,
    Laxman.

    Both are valid behaviors unfortunately.
    1) login portlet is showing up in specific portlet b/c inline navigation allows for you to create and load pages without affecting the overall portal.
    This happens when you use iframes (which behave in a similar fashion).
    - your only workaround is really to write some javascript function to "listen" to the portal login page getting loaded and then throwing the session into the parent browser (which is Portal). At least this is the only solution that I ever came up with when using Iframes.
    2) Don't know about out of memory error actually, but getting the "gatewy was not able to access requested content" is valid b/c the session died.
    - javascript errors require javascript solutions. Sorry I couldn't be more helpful than that.
    Maybe someone else will have better suggestions.
    The other suggestion is to use your app server to listen to the logout event and redirect appropriately to somewhere else, or have it do what you want it to do in situations as this.

  • Basic Search Item javascript error

    When I use the Basic Search Item to submit a search, I get a Javascript error:
    Error: 'document.mysearchform.p_looplink' is null or not an object
    Examining the page HTML shows that submitting the serach runs this function
    function fetch() {
    var purl;
    purl = location.href;
    document.mysearchform.p_looplink.value = purl;
    document.mysearchform.submit;
    but the form mysearchform doesn't have a field called p_looplink
    The form fields are
    INPUT TYPE="text" NAME="ms" SIZE="15" MAXLENGTH="30"
    INPUT TYPE="submit" VALUE="Go"
    INPUT TYPE="hidden" NAME="pg" VALUE="33"
    INPUT TYPE="hidden" NAME="search_type" VALUE="Simple"
    INPUT TYPE="hidden" NAME="ll" VALUE=""
    INPUT TYPE="hidden" NAME="p_action" VALUE="SUBMIT"
    INPUT TYPE="hidden" NAME="_dad" VALUE="portal"
    INPUT TYPE="hidden" NAME="_schema" VALUE="PORTAL"
    This bug only appears when you have your browser set to report all Javascript errors - it doesn't prevent the search from working.
    Any ideas about what's going on here?
    Does the basic Search Item (not the portlet) work properly for anyone else?
    Rob

    hi rob,
    this problem is reported in bug 3801639. it is fixed in portal 10.1.2.
    regards,
    christian

  • Submit button on Adaptive Portlet Launches into new Browser

    Here we go again... I'm using the PTW version 2.2 with an Adaptive Portlet. When I click on the Submit button, It launches a new instance it the Browser which is outside of the portal. Anyone else encounter this?
    Paul

    I had the same problum but mine was when i triggered an onclick event for the button. I resolved it by add the code below to call my javascript function if key 13 (Enter on keyboard) was stroked. __returnUser(); is the javascript function I am calling if the Enter key is hit. Hope this helps you.
    function keyHandler() {  if (event.keyCode == 13 )  {   __returnUser();   event.cancelBubble = true;   event.returnValue = false;     } }
    document.onkeypress = keyHandler;
    Nick Simpson
    (e)[email protected]

  • Adaptive portlet solution

    Are there any examples of using .net and adaptive portlet solution?

    Generally if you are using ASP.NET, you should install the Plumtree EDK .NET Web Controls. These will provide you with adaptive portlet features, without you having to code the adaptive portlet javascript yourself.

Maybe you are looking for

  • Lost all my links in graphic

    Something really weird happened, I finally had to just give up for the day. I had image map. I moved that down the page a bit. AOK. all link out still working fine. But then when I went to add alt attributes, then suddenly all the links out on this g

  • Changes to Integration Process not reflected at runtime.

    I have changed an Integration Process (eg removed a loop) and then activated this in IR and ensured that RunTime Cache is refreshed - I even forced another Run Time Cache refresh via SXI_CACHE. however the Process is still running under the old versi

  • How to import photos from Mail to iPhoto and preserve the date created?

    I have several photos sent to me via email attachments in Mail which I want to "add to iphoto."  When I do this, the original date of the photo changes to "today's date."  When I drag the photo to the desk top, the file (photo) properties change and

  • T440p, WIndows 7: Fingerprint Reader Fails on First Attempt to Log In, Works on Second After Delay

    I have a T440p with Windows 7 Pro.  Except on rare occasions, I am unable to log into Windows with my first swipe across the fingerprint reader.   The green light is on when I do the first swipe and it immediately goes off and stays off for around 15

  • Unmountable external hard drive

    I have a Hitachi 1TB external drive that suddenly is unmountable - disk utility says that it's fine, repair disk says it's fine, but it won't mount - any ideas? The files are extremely important (aren't they always???) and I really need to get it fix