Issues with scrollintoview javascript method in ie10.

Hi,
scollintoview(false) javascript method causing the entire web page to shift to the left side of the window in ie10. Where as it is working perfectly fine in ie9.
Thanks in Advance.
Regards,
GopiChand

function scrollView() {
var d, y;
d = document.createElement("div");
d.style.position = ("fixed");
d.style.height = ("100%");
d.style.margin = ("0");
d = document.body.appendChild( d );
y = Math.floor( d.getBoundingClientRect().height );
if (!y) {y=d.clientHeight}; // for IE8
document.body.removeChild( d );
d = inPut;
y = ( d.offsetTop + d.offsetHeight - y );
while (d = d.offsetParent) { y += d.offsetTop };
if (y>0) { window.scrollTo(0,Math.ceil(y+1)) }; // add an extra pixel for IE, which randomly is short by 1
scrollView();
Here's a snippet from some working code that positions an element (button) named inPut to the bottom of the viewport.  The bottom of the inPut (button) aligns directly on the bottom of the window.
The majority of the code just finds the viewport size, by temporarily creating a fixed div.  (then removes it).  Next, the document offset to the button bottom is calculated,
minus viewport height.  That's the y coordinate which we ultimately place in the viewport upper left corner.  The only tricky thing is in the while loop, where the pixel offset from the button's top to its parent container is added,
iteratively, for each containing box.
In this example, only vertical scrolling happens.  The element stays at its natural horizontal position.  In the case where you want to retain the present horizontal tree offset of your element, just capture the present x offset and replace "0"
in the scrollTo.  Pretty easy mod.
Here are some links that explain the properties and methods used.
https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement.offsetTop
https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement.offsetHeight
https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement.offsetParent
https://developer.mozilla.org/en-US/docs/Web/API/Window.scrollTo
https://developer.mozilla.org/en-US/docs/Web/API/Element.getBoundingClientRect
https://developer.mozilla.org/en-US/docs/Mozilla/Tech/XPCOM/Reference/Interface/nsIDOMClientRect
http://dev.w3.org/fxtf/geometry/#DOMRect
So, it's not pretty, but it's not so awful either.  Too bad, but the scrollIntoView() method is generally speaking useless due to its left-justification in the name of simplicity.

Similar Messages

  • Issues with Executing Javascript command in Captivate

    Hi,
    I am having issues with executing javascript for a button in adobe captivate 5.  Let me explain what I am trying to do.  I am working on a WBT that has three skill checks throught the course. These skill checks are not graded or tracked for completion.  I currently have an image button that has the command "Open another project" The first image button is pointed to SkillCheck1 and I have the html file and swf file in the published root folder.  This currently works fine.
    However I want to use javascript to open a new window 800X600 with not toolbars at the top.  I got this part working with the code below:
    window.open('http://www.adobe.com','mywin',
    'left=40,top=40,width=800,height=600,toolbar=1,resizable=0');
    My only problem is, once the popup opens, my WBT goes to a page that says [object] and thats it.  I am uploading two images to show what I have.  Can someone help resolve my issue of the WBT going to

    Ok so I took this link and viewed over it.  I am new to Javascript and know very little about it.  Therefore this script kind of makes no sense to me.
    <script language="JavaScript"><!--
    var windowHandle = '';
    function myOpen(url,name,attributes) {
        windowHandle = window.open(url,name,attributes);
    //--></script>
    <a href="javascript:myOpen('page.htm','windowName','height=100,width=100')">text link</a>
    I chose the option to exectute javascript.  Does captivate need all of this including <script language=JavaScript">  Here is how I edited the script.  Should I make any changes to what is in bold?
    var windowHandle = ''; 
    function myOpen(url,name,attributes) {
        windowHandle = window.open(url,name,attributes);
    <a href="javascript:myOpen('http://www.adobe.com','Adobe Website','height=600,width=800')">text link</a>

  • Weird Timing Issue with Custom Javascript Files

    I have attached a static javascript file to my application using the Shared Components...Static Files facility in APEX. This is working. I can call methods in my JavaScript file and they work as expected.
    The issue is that if I ever want to have JavaScript run when the page is loaded, it is as if the javascript is not in place yet when the method is called. For example, I want to set some some style characteristics of a few common fields that occur on more than one page, if I add a button to the page that I click to call the method (and don't select "Fire on Page Load"), this works fine. However, if I do select "Fire on Page Load", the javascript is invalid.
    I have tried After Refresh of the region which seems like it would work but, this event fires before* the javascript is available.
    How can I load the page, including the javascript reference, and then call the javascript method?
    -Joe
    Edited by: Joe Upshaw on Apr 3, 2012 12:49 PM

    WR,
    I think the latter, adding it to the template, sounds like the better solution. (I am using Application Express 4.1.1.00.23 BTW).
    Now for the newbie questions...
    I am trying to figure out exactly where to make this change. So, I had a couple of questions.
    1. I went into Shared Components>Templates. Then, I scrolled down to the section labelled Page. I see that the default checkmark is beside "No Tabs - Right Sidebar" so, I click this and I do indeed find a <HEAD> section defined. Is this where I need to add the reference to the javascript file?
    2. I assume I need to upload the static file to the server. Right now, I have uploaded it via the Shared Components>Static Files selection. When I add it now, I am doing this:
    var headElement = document.getElementsByTagName("head")[0];
    var currentCommonRiskPos = currentHeadHTML.indexOf( 'commonRisk.js', 0 );
    if ( currentCommonRiskPos == -1 )
       var jsRiskCommon = document.createElement( 'script' );
       jsRiskCommon.id = 'commonRisk.js';
       jsRiskCommon.setAttribute( "type","text/javascript" );
       jsRiskCommon.setAttribute("src", "#APP_IMAGES#commonRisk.js" );
       headElement.appendChild(jsRiskCommon);
    }See how I used "#APP_IMAGES#"? I am assuming that this would not work from the page template, correct? For example, in the template currently, I see:
    <script src="#IMAGE_PREFIX#themes/theme_24/js/4_1.js"></script>I am assuimng that I should upload my JS file somewhere in the images folder and reference it in the same way, right? For example:
    <script src="#IMAGE_PREFIX#JoesStuff/js/HellowWorld.js"></script>Does all of this sound correct?
    Thanks,
    -Joe

  • Issue with std GET method GET_PROPERTY_AS_VALUE

    Hi,
    We have created a Z field using AET in WebUI which is already moved to Production system. This field has a Get and Set method customized to populate its value.
    Now we have included  similar field with a similar logic. The issue is that now the earlier field is not able to read certain attribute values using the standard method IF_BOL_BO_PROPERTY_ACCESS~GET_PROPERTY_AS_VALUE
    Line......LV_PROPERTY_REF = GET_PROPERTY( IV_ATTR_NAME )
    We have not made any changes in the code, then why the system is unable to read the attribute value in our Test client.
    Any hints?
    Regards,
    PP

    Hi Pepe,
    Cant answer your question without debugging but below are few things you can try out:
    1. In case you are writing custom code, try to use other method like get_property_as_string or get_property and see if they    return a value.
    2. Check your design layer if both the fields are present there.
    I don't see any other reason. If no luck with above two then please raise an OSS.
    Regards,
    Bhushan

  • Issue with LSMW IDOC method

    Hello there,
             I am facing an issue while creating a LSMW using IDOC method. I am creating it for PROFIT CENTER upload. My file is having the data as, there can be multiple company codes for one profit center, so my file will have more than one record for single profit center. I have to create only one IDOC per profit center, so I have to create multiple segments in that IDOC for different company codes.
             I am not sure how to create multiple segments using LSMW. It will be very helpful, if anyone can tell me how to do it.
    Thanks,
    Ganesh Khumse

    Hello Ganesh,
    I assume that you are using the IDoc Type PRCMAS02 for the creation of Profit Centers along with Company Code assignment.
    In order to be able to extend the Profit Center for Multiple Company Codes, please segregate the source structures into Profit center general data and company code data...along with respective source fields.
    In the structure relations, assign the Profit Center General data to the Idoc segments E1KEPCM & E1KEPCT. Then assign the Company Code data to the segment E1KEPCB.
    The input file layout expected will be something similar to the below layout...
    PCHEAD1
    - CCODE1
    - CCODE2
    PCHEAD2
    - CCODE1
    - CCODE2
    Hope this info resolves your problem.
    Pls reward if this answers your query.
    With Regards
    Vijay Gajavalli

  • Issue with JSF action method and Popup

    All,
    I have command Button, which has an action method. And my onclick function opens new popup. Once I close the popup, it has to return some values to the parent page and then my action method has to be executed.
    Issue is if I close the popup, nothing is happening in parent page.
    In my JavaScript if I return true, popup is opening and my action method is executing. But my expected behavior is after closing popup then only my action has to be executed.
    Thanks,
    Dhana

    Hi all,
    I came back to this today (after almost 2 years)... the current version of facestrace doesn't require a taglib at all: http://code.google.com/p/primefaces/downloads/list
    Just drop it in WEB-INF/lib, add *.jsf to the url mappings for the faces servlet. Then whenever you add trace=true to your URL, you get a nice dump of information there.
    Best,
    John

  • Issue with invoking javascript during jspx page load

    Hi All,
    I am using Jdeveloper 11gR2.
    I have embedded a small javascript snippet in the adf page to invoke a managed bean method during page load.
    <af:serverListener type="onloadEvent" method="#{AMBean.click}"/>
                <af:clientListener method="onLoadClient" type="load"/>
                <af:resource type="javascript">function onLoadClient(event) {AdfCustomEvent.queue(event.getSource(),"onloadEvent",{},false); return true;}</af:resource>
    In the associated managed bean method, I want to change the setContentStyle of all the input text field found during run time -
            System.out.println("There control is inside the listeners");
            FacesContext facesContext = FacesContext.getCurrentInstance();
            System.out.println("facesContext"+facesContext);
            UIViewRoot root = facesContext.getViewRoot();
            System.out.println("root - " +root);
            RichPanelFormLayout formClass = (RichPanelFormLayout)root.findComponent("db");
            System.out.println("formClass - " + formClass);
            List<UIComponent> uiComponentList = formClass.getChildren();
                  for (UIComponent uiComponent : uiComponentList) {
                      if (uiComponent instanceof RichInputText) {
                          //((RichInputText)uiComponent).setDisabled(false);
                          //((RichInputText)uiComponent).setColumns(100);
                         ((RichInputText)uiComponent).setContentStyle("width:200px");
                          System.out.println("uiComponent - " +uiComponent);
    Currently the javascript function "queues" the setContentStyle action for an action event, i.e. during the initial page load, the properties of text fields are not changed, however as soon as i click any button on the page, the text field width is reset to what I have defined in setContentStyle property.
    Is there a way to execute setContentStyle action as soon as the page loads initially?
    Best Regards,
    Ankit Gupta

    Hi Arun,
    Many thanks for the revert.
    The exact Jdeveloper version is 11.1.2.4.39.64.36.1.
    I have a scenario where in the the user will be navigated to a page to display an input form, but the underlying VO will change during runtime which means depending on the value selected by the user, he will be shown an ADF form accordingly.
    Also during runtime, the number of input text fields will change according to the number of attributes in underlying VO.
    Kindly advise based on the use case explained above.
    Best Regards,
    Ankit Gupta

  • Issue with calling a  method activity before page render

    Hi All,
    I am using Jdeveloper 11.1.1.7.
    I am trying to achieve the approach defined in "1.b. Calling a Method in Backing Bean:" elaborated in the blog - https://blogs.oracle.com/adf/entry/an_epic_question_how_to
    As illustrated, I defined a default method activity (binding to a method in managed bean) and a view activity activity in a bounded task flow.
    When I launch the application (running the view activity), following error is encountered -
    oracle.adf.controller.metadata.ParsingException: ADFC-02020: Cannot find default activity 'check' in task flow definition '/WEB-INF/task-flow-definition.xml#task-flow-definition'.
        at oracle.adfinternal.controller.metadata.model.xml.XmlUtil.createAndLogParsingException(XmlUtil.java:474)
        at oracle.adfinternal.controller.metadata.model.xml.MetadataResourceXmlImpl.parseTaskFlowDefinition(MetadataResourceXmlImpl.java:507)
        at oracle.adfinternal.controller.metadata.model.xml.MetadataResourceXmlImpl.parse(MetadataResourceXmlImpl.java:361)
        at oracle.adfinternal.controller.metadata.provider.mds.MdsMetadataResourceProvider.parseResource(MdsMetadataResourceProvider.java:748)
        at oracle.adfinternal.controller.metadata.provider.mds.MdsMetadataResourceProvider.getMDSCachedResourceOrParse(MdsMetadataResourceProvider.java:732)
    Please advise.
    Best Regards,
    Ankit Gupta

    Hi Cvele, Timo,
    Many thanks for the suggestions.
    To avoid confusions, I have created a new application altogether. It seems that the method call is not being called when I run the page.
    For your reference I have attached the task flow definition and method code below -
    Task Flow Definition
    <?xml version="1.0" encoding="windows-1252" ?>
    <adfc-config xmlns="http://xmlns.oracle.com/adf/controller" version="1.2">
      <task-flow-definition id="task-flow-definition">
        <default-activity id="__1">methodCall1</default-activity>
        <managed-bean id="__11">
          <managed-bean-name id="__13">TestBean</managed-bean-name>
          <managed-bean-class id="__10">TestBean</managed-bean-class>
          <managed-bean-scope id="__12">request</managed-bean-scope>
        </managed-bean>
        <view id="view1">
          <page>/view1.jspx</page>
        </view>
        <view id="exception">
          <page>/exception.jspx</page>
        </view>
        <method-call id="methodCall1">
          <method>#{requestScope.TestBean.checkURL}</method>
          <return-value id="__15">#{TestBean.checkURL}</return-value>
          <outcome id="__14">
            <to-string/>
          </outcome>
        </method-call>
        <control-flow-rule id="__2">
          <from-activity-id id="__3">methodCall1</from-activity-id>
          <control-flow-case id="__5">
            <from-outcome id="__6">go</from-outcome>
            <to-activity-id id="__4">view1</to-activity-id>
          </control-flow-case>
          <control-flow-case id="__8">
            <from-outcome id="__9">error</from-outcome>
            <to-activity-id id="__7">exception</to-activity-id>
          </control-flow-case>
        </control-flow-rule>
      </task-flow-definition>
    </adfc-config>
    Method Code
    public String checkURL() {
    // Add event code here...
    System.out.println("method activity called");
    return "error";
    Best Regards,
    Ankit Gupta

  • Issue with WEBSERVICE- PROCESSDIALOG method

    Hi Guys,
                  I am calling WEBSERVICE->PROCESSDIALOG method in a task.
    This is listing a task in UWL in EP. When I open and process this task getting the following error.
    Page not found or Available.
    How to find out which view is called when I select the task in UWL.
    I think it will probably an WebDynpro iView.
    Cheers
    Senthil

    Hi,
         Its basically Page Not Found error in UWL.
    There are other process in the same workflow are working fine in UWL.
    I check the services in SICF, they are active.
    Is there anything I am missing in the task definition.
    Is it WebFlow Service Executed should be active at the task outcome tab.
    Cheers
    Senthil

  • Popupwindow issue with OAF avilable methods

    Hi
    the below code is working fine
    but my requirment is
    1.from the pop-upwindow if i Click yes button in popup window it shd got to a standard OAF page location(eg.a.jsp) in the basepage itself and the popup window shd be closed
    2.the a.jsp(OAF page) shd load with a popupwindow as of below code
    any one plzz tell me
    3. OAButtonBean bt1=(OAButtonBean)webBean.findChildRecursive("Yes");
    bt1.setDestination("OA.jsp?page=/oracle/apps/csd/ro/mgmt/webui/HvrRepairMainPG");
    does this work in PR the above code is from popupwindow
    System.out.println("Before...popupwindow");
    OALinkBean link = (OALinkBean)webBean.findChildRecursive("RoNumTblData");
    System.out.println("In Popupwindow");
    String page1 ="/oracle/apps/csd/ro/search/webui/Popupwindow&retainAM=Y";
    System.out.println("Still in Popupwindow");
    String destURL = APPS_HTML_DIRECTORY + OAWebBeanConstants.APPLICATION_JSP + "?"+ OAWebBeanConstants.JRAD_PAGE_URL_CONSTANT+ "=" + page1;
    OABoundValueEmbedURL jsBound = new OABoundValueEmbedURL(link,"openWindow(self, '", destURL, "' , 'longTipWin', {width:"+200+", height:"+200+"}, true); return false;");
    link.setAttributeValue(oracle.cabo.ui.UIConstants.ON_CLICK_ATTR, jsBound);
    System.out.println("After Popupwindow");

    Hi,
    Are you running the page from Jdev or in the server,
    If you are running the page from Jdev, use
    System.out.println("Your message here");
    If you are running from server,
    you can use
    IN CO: pageContext.writeDiagnostics(moduleName,diagMessage,OAWebBeanConstants.STATEMENT);
    IN AM: this.getOADBTransaction().writeDiagnostics("XXINV_AM",errorTxt.toString() ,OAWebBeanConstants.STATEMENT);
    And the enable diagnostics and use view log on screen option at your level (here STATEMENT)
    Number primaryKey = row.getSupplierId();
    //Print the values primaryKey and poToDelete
    if (primaryKey.compareTo(poToDelete) == 0)
    //Add a diag message here
    row.remove();
    getTransaction().commit();
    break; // only one possible selected row in this case
    If you run from JDEV it is easy to debug.
    Thanks.
    With Regards,
    Kali.
    OSSI.

  • Issue with amodal secondary method in workflow

    Hi,
    I'm using an amodal secondary method of a business object in my workflow activity step. But it is not triggering that method of the business object at runtime.
    Could someone tell me what might be the problem
    Regards,
    Vijay

    Any idea guys?

  • Issues with Creative Cloud payment - Problemas al intentar pagar el abono de Creative Cloud

    La primera vez que adquirí el producto se realizó el pago, el segundo mes me llegó una notificación que no se había podido efectuar el pago, así que revise mi tarjeta de crédito y había cupo disponible, sin embargo la fecha automática de cobro ya pasó, y continua en 31/07/2013. Mi abono de Creative Cloud pasó a versión de prueba y ahora solo me quedan unos cuantos días...qué puedo hacer? por qué no está funcionando el pago?
    Gracias
    The first time I bought Creative Cloud there were no issues with my payment method, but second month I recieved some notifications due to a transaction error.  I check my credit card and it has enough funds for paying Creative Cloud. During this period the automatic pay day, changed to 31/07/2013; now I'm trying to make again the payment but there is no way to do it manually, My Creative Cloud subscription is now in test mode, and I just have 3 days until the test mode period ends. How can I try to pay again manually? why is this not working?
    Best Regards

    It may not be possible to manually update your payment details.  Could you please place a new order and get back to us if you have further issues.
    Thanks
    Bev

  • Problem with accessing Signed Applet from javascript method

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

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

  • Issue with SharePoint foundation 2010 to use Claims Based Auth with Certificate authentication method with ADFS 2.0

    I would love some help with this issue.  I have configured my SharePoint foundation 2010 site to use Claims Based Auth with Certificate authentication method with ADFS 2.0  I have a test account set up with lab.acme.com to use the ACS.
    When I log into my site using Windows Auth, everything is great.  However when I log in and select my ACS token issuer, I get sent, to the logon page of the ADFS, after selected the ADFS method. My browser prompt me which Certificate identity I want
    to use to log in   and after 3-5 second
     and return me the logon page with error message “Authentication failed” 
    I base my setup on the technet article
    http://blogs.technet.com/b/speschka/archive/2010/07/30/configuring-sharepoint-2010-and-adfs-v2-end-to-end.aspx
    I validated than all my certificate are valid and able to retrieve the crl
    I got in eventlog id 300
    The Federation Service failed to issue a token as a result of an error during processing of the WS-Trust request.
    Request type: http://schemas.xmlsoap.org/ws/2005/02/trust/RST/Issue
    Additional Data
    Exception details:
    Microsoft.IdentityModel.SecurityTokenService.FailedAuthenticationException: MSIS3019: Authentication failed. ---> System.IdentityModel.Tokens.SecurityTokenValidationException:
    ID4070: The X.509 certificate 'CN=Me, OU=People, O=Acme., C=COM' chain building failed. The certificate that was used has a trust chain that cannot be verified. Replace the certificate or change the certificateValidationMode. 'A certification chain processed
    correctly, but one of the CA certificates is not trusted by the policy provider.
    at Microsoft.IdentityModel.X509CertificateChain.Build(X509Certificate2 certificate)
    at Microsoft.IdentityModel.Tokens.X509NTAuthChainTrustValidator.Validate(X509Certificate2 certificate)
    at Microsoft.IdentityModel.Tokens.X509SecurityTokenHandler.ValidateToken(SecurityToken token)
    at Microsoft.IdentityModel.Tokens.SecurityTokenElement.GetSubject()
    at Microsoft.IdentityServer.Service.SecurityTokenService.MSISSecurityTokenService.GetOnBehalfOfPrincipal(RequestSecurityToken request, IClaimsPrincipal callerPrincipal)
    --- End of inner exception stack trace ---
    at Microsoft.IdentityServer.Service.SecurityTokenService.MSISSecurityTokenService.GetOnBehalfOfPrincipal(RequestSecurityToken request, IClaimsPrincipal callerPrincipal)
    at Microsoft.IdentityServer.Service.SecurityTokenService.MSISSecurityTokenService.BeginGetScope(IClaimsPrincipal principal, RequestSecurityToken request, AsyncCallback callback, Object state)
    at Microsoft.IdentityModel.SecurityTokenService.SecurityTokenService.BeginIssue(IClaimsPrincipal principal, RequestSecurityToken request, AsyncCallback callback, Object state)
    at Microsoft.IdentityModel.Protocols.WSTrust.WSTrustServiceContract.DispatchRequestAsyncResult..ctor(DispatchContext dispatchContext, AsyncCallback asyncCallback, Object asyncState)
    at Microsoft.IdentityModel.Protocols.WSTrust.WSTrustServiceContract.BeginDispatchRequest(DispatchContext dispatchContext, AsyncCallback asyncCallback, Object asyncState)
    at Microsoft.IdentityModel.Protocols.WSTrust.WSTrustServiceContract.ProcessCoreAsyncResult..ctor(WSTrustServiceContract contract, DispatchContext dispatchContext, MessageVersion messageVersion, WSTrustResponseSerializer responseSerializer, WSTrustSerializationContext
    serializationContext, AsyncCallback asyncCallback, Object asyncState)
    at Microsoft.IdentityModel.Protocols.WSTrust.WSTrustServiceContract.BeginProcessCore(Message requestMessage, WSTrustRequestSerializer requestSerializer, WSTrustResponseSerializer responseSerializer, String requestAction, String responseAction, String
    trustNamespace, AsyncCallback callback, Object state)
    System.IdentityModel.Tokens.SecurityTokenValidationException: ID4070: The X.509 certificate 'CN=Me, OU=People, O=acme., C=com' chain building
    failed. The certificate that was used has a trust chain that cannot be verified. Replace the certificate or change the certificateValidationMode. 'A certification chain processed correctly, but one of the CA certificates is not trusted by the policy provider.
    at Microsoft.IdentityModel.X509CertificateChain.Build(X509Certificate2 certificate)
    at Microsoft.IdentityModel.Tokens.X509NTAuthChainTrustValidator.Validate(X509Certificate2 certificate)
    at Microsoft.IdentityModel.Tokens.X509SecurityTokenHandler.ValidateToken(SecurityToken token)
    at Microsoft.IdentityModel.Tokens.SecurityTokenElement.GetSubject()
    at Microsoft.IdentityServer.Service.SecurityTokenService.MSISSecurityTokenService.GetOnBehalfOfPrincipal(RequestSecurityToken request, IClaimsPrincipal callerPrincipal)
    thx
    Stef71

    This is perfectly correct on my case I was not adding the root properly you must add the CA and the ADFS as well, which is twice you can see below my results.
    on my case was :
    PS C:\Users\administrator.domain> $root = New-Object System.Security.Cryptography.X509Certificates.X509Certificate2("C:\
    cer\SP2K10\ad0001.cer")
    PS C:\Users\administrator.domain> New-SPTrustedRootAuthority -Name "domain.ad0001" -Certificate $root
    Certificate                 : [Subject]
                                    CN=domain.AD0001CA, DC=domain, DC=com
                                  [Issuer]
                                    CN=domain.AD0001CA, DC=portal, DC=com
                                  [Serial Number]
                                    blablabla
                                  [Not Before]
                                    22/07/2014 11:32:05
                                  [Not After]
                                    22/07/2024 11:42:00
                                  [Thumbprint]
                                    blablabla
    Name                        : domain.ad0001
    TypeName                    : Microsoft.SharePoint.Administration.SPTrustedRootAuthority
    DisplayName                 : domain.ad0001
    Id                          : blablabla
    Status                      : Online
    Parent                      : SPTrustedRootAuthorityManager
    Version                     : 17164
    Properties                  : {}
    Farm                        : SPFarm Name=SharePoint_Config
    UpgradedPersistedProperties : {}
    PS C:\Users\administrator.domain> $cert = New-Object System.Security.Cryptography.X509Certificates.X509Certificate2("C:\
    cer\SP2K10\ADFS_Signing.cer")
    PS C:\Users\administrator.domain> New-SPTrustedRootAuthority -Name "Token Signing Cert" -Certificate $cert
    Certificate                 : [Subject]
                                    CN=ADFS Signing - adfs.domain
                                  [Issuer]
                                    CN=ADFS Signing - adfs.domain
                                  [Serial Number]
                                    blablabla
                                  [Not Before]
                                    23/07/2014 07:14:03
                                  [Not After]
                                    23/07/2015 07:14:03
                                  [Thumbprint]
                                    blablabla
    Name                        : Token Signing Cert
    TypeName                    : Microsoft.SharePoint.Administration.SPTrustedRootAuthority
    DisplayName                 : Token Signing Cert
    Id                          : blablabla
    Status                      : Online
    Parent                      : SPTrustedRootAuthorityManager
    Version                     : 17184
    Properties                  : {}
    Farm                        : SPFarm Name=SharePoint_Config
    UpgradedPersistedProperties : {}
    PS C:\Users\administrator.PORTAL>

  • Javascript maildoc issue with Adobe Reader 9.5

    Good morning all,
    I am trying to find a possible answer to an issue I have been given regarding the maildoc javascript we are using in one of our forms.
    We are on Windows XP, Adobe Reader 9.5 and Outlook 2010.
    We generate purchase orders within SAP and forward to out vendors, they supply confirmation information and digitally sign the document.  The completed document should then be emailed as an attachment.
    Using Adobe Reader X this process runs very smoothly but in 9.5 the email is generated but without the PDF form as an attachment.
    Has anybody else had this issue or is this known and not available until X?  I have read on a number of posts that there are possible issues with Apple and such the like but wondered whether this was also an issue on the MS platform.
    Thanks in advance.
    Ashley

    Could I then ask another question regarding this?
    Was it possible to generate the email including the PDF from Adobe Reader in version 9.5 or was this facility only available in Adobe Acrobat until the introduction of Adobe Reader X?
    Hope this makes sense as I really need to get an answer back to my boss.
    Thanks for any information in advance.
    Ashley

Maybe you are looking for