Stalling a form from loading until the initial javascript arrays are loaded

I am looking for a way to get a form to be hidden based on the onload event. I would like to call a javascript function to initially populate some select boxes based on javascript arrays, but I would like this to happen before the page loads or at least stall displaying the select boxes until they are populated.
The way it is setup now, when the page loads, the select boxes try to load first and then the rest of the form loads. I would like to know if there is a way to load the select boxes from the javascript arrays, then have the select boxes and other form elements show up at the same time. I have tried putting a <div> around the entire form and within the javascript populate function I first use "document.formname.div_id.style.visibility=hidden" then at the end of the select box population within the function, I use "document.formname.div_id.style.visiblity=visible". I tried this and the select boxes appear blank; it is as if the populate function doesn't work at all.
I realize this is a very long question, but I will award you Duke Dollars if you help me out!!!

right now, I have it set up where I click on a link which is a jsp page which forwards me to the jsp page that has all the html in it. That page is where I initially try to populate the select boxes with the javscript arrays...I also have a number of javascript functions which change the contents of the select boxes based on another select box in the form. Will i have access to those "java" arrays, [instead of using the javascript arrays], that you are suggesting in the javascript code? I do need to use whatever arrays I create in javascript functions.

Similar Messages

  • Prevent Startup Form from Loading using Command Line Arguments

    Hi there
    I'm developing a VB.NET windows forms application in VS2013.
    The application will have 2 ways of being executed, one being by the user manually and the other being automated by the task scheduler.
    When executed by the task scheduler, command line arguments will be used so that the application is aware that it is being run automatically and not by a user.
    My problem is that I want the startup form to load when run by a user but I don't want it to load when it is run automatically, I just want to execute code.
    Is it possible to prevent the startup form from loading by using the commandline arguments from the MyApplication_Startup event?
    Cheers

    Hi Aureuz,
    >>Is it possible to prevent the startup form from loading by using the commandline arguments from the MyApplication_Startup event
    It is impossible to accomplish it in the MyApplication_Startup event, we can use Form.Shown event:
    #Form.Shown Event
    http://msdn.microsoft.com/en-us/library/system.windows.forms.form.shown(v=vs.110).aspx
    If we start a form by using the commandline arguments, the count of CommandLineArgs will be above one, if so, use Me.Hide() method to hide this form.
    Private Sub Form1_Shown(sender As Object, e As EventArgs) Handles MyBase.Shown
    Dim args As String() = Environment.GetCommandLineArgs()
    If args.Count > 1 Then
    Me.Hide()
    Else
    Me.Show()
    End If
    End Sub
    You can also uncheck "Enable application framework" on the project properties application tab and select your startup object to a module object:
    Module Module1
    Sub Main()
    Dim args As String() = Environment.GetCommandLineArgs()
    If args.Count > 1 Then
    'Run your background code
    Else
    Dim f As New Form1
    f.ShowDialog()
    End If
    End Sub
    End Module
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Stop the report from firing until the user clicks the Go button?

    Hi All,
    Is there a way to stop the report from firing until the user clicks the Go button? At the moment it is populating when I open the dashboard page. I found something online that said i could use the Page Options>Save Current Settings> For Others.. but even though i am signed in as an administrator i only see a For Me.. option. Also, even after setting this option i would like to be able to hit the 'Go' button to run the report and have it uncollapse the section. Is this possible?
    Thanks

    Thanks for the replies,
    In my report i am trying to constrain the report to todays data only. However the only prompt i have is for another column. If i place a filter on the date column with Year=0000 it will not change with the prompt selection and so will never return any results. Is there any other way?
    It seems wasteful to fire a request to the database onload of the page. Is there an option to only fire a request what the prompts are entered? I will be using a stored proc which needs parameters to run the request so it would be good to be able to set the report to not run until it has parameters entered
    Thanks

  • Get error message "this "**" file cannot be attached until the files already attached are finished uploading" even when attaching 1 file

    I attached multiples .pdf files to an email. Tried to attach the next file before the previous 1 finished attaching. Got error message "this "**" file cannot be attached until the files already attached are finished uploading". Was never able to attach that 1 file to the email that I received the error message for; was able to attach subsequent files to that same email & send it. Now, I often get the same error message, even if I only attach 1 file & esp. when attaching .ai or .jpeg files. What can I do to fix this problem?

    It looks like nobody has an answer for this despite of the 80 something views!
    And here i thought Adobe admin would be monitoring the forum, but surprisingly, they don't even have the answer for this!!!

  • Hii Respected, I have restored my data from icloud, but the app's that are downloaded i am not able to open it.. but instead i am able to see it with unhighlight color.. so help me..

    Hii Respected,
    I have restored my data from icloud, but the app's that are downloaded i am not able to open it.. but instead i am able to see it with unhighlight color.. so help me..

    Contact iTunes:
    Apple - Support - iTunes - Contact Us

  • ADF method call to fetch data from DB before the initiator page loads

    Hello everyone
    I'm developing an application using Oracle BPM 11.1.1.6.0 and JDeveloper 11.1.1.6.0
    I want to fetch some data from the database before the initiator task, so that when the user clicks on the process name, his/her history will be shown to them before proceeding.
    It was possible to have a service task before the initiator task in JDeveloper 11.1.1.5.0, but I have moved to 11.1.1.6.0 and it clearly mentions this to be an illegal way.
    I came across this thread which suggested to do this using an ADF method call, but I don't know how since I'm new to ADF.
    Re: Using Service Task Activity before Initiator Task issue
    Can anyone show me the way?
    Thanks in advance

    Thanks Sudipto
    I checked that article however I think I might be able to do what I want using ADF BC.
    See, what I'm trying to do is to get a record from a database and show it to the user on the initiator UI.
    I have been able to work with ADF BC and View Objects to get all the rows and show them to the user in a table.
    However, when I try to run the same query in the parameterized form to just return a single row, I hit a wall.
    In short, My problem is like this:
    I have an Application Module which has an entity object and a view object.
    My database is SQL Server 2008.
    when I try to create a new read only view object to return a single row I face the problem.
    The query I have in the query section of my View Object is like this:
    select *
    from dbo.Employee
    where EmployeeCode= 99which works fine.
    However when I define a bind variable, input_code for example, and change the query to the following it won't validate.
    select *
    from dbo.Employee
    where EmployeeCode= :input_codeIt just keeps saying incorrect syntax near ":" I don't know if this has to do with my DB not being Oracle or I'm doing something wrong.
    Can you help me with this problem please?
    thanks again
    bye

  • Should I just wait untill the Intel Mini's are out to make the switch over?

    I have been somewhat active on this board for the last month or so looking at the Apple Mini. I want a computer that never really slows down, or crashes a lot. Also, I want a computer that can do some light video editing, and some light gaming (think: Battlefield 1942!).. I'm thinking about waiting till the New Intel Mini's come out but I really don't know when that will be! I don't know if I can hold on for 8 more months with this crappy thing they call an OPERATING SYSTEM.
    Do you guys know when the Intel's are coming out? When they do, thats when I might make the switch from XP to mac OX.
    Thank you all!

    Though a bit belatedly, I thought it might be worth pointing out an issue that ought to cross the minds of those considering buying a mini but not sure whether to wait for the Intel models or not.
    Aside from the fact that no-one knows when the Intel minis will be announced and what specs (thus performance) they will have, and the fact that as soon as the first models are out, there will be a tendency to want to wait until the next revision for the 'rev.a' bugs to get ironed out and some speed bumps ironed in, one important extra consideration is the software that's intended to be run.
    All software at this time is G4 compatible, and many titles are either already in universal binary, or about to be so, thus would run natively on an Intel-mini. But some, Adobe CS and Microsoft Office (to name a couple of significant examples) are not universal yet, and while they likely will become so, it's not at all clear when. Until they ARE universal, those apps will run in emulation on an intel Mac, and performance is not reported to be stellar.
    So I'd suggest to anyone considering the issues, to look at the titles you want to run, and make sure all the important ones are Intel-native already, or going to become so very soon. If they are, then waiting for an Intel mini is perfectly reasonable as long as you don't have any immediate need and can wait however long it takes. But if any crucial apps are PPC only and likely to stay that way, I'd buy a G4-powered mini while they're still available, and trade it later when the crucial apps go Universal and the Intel models have settled down.

  • If I enter into a 2 year contract, after I pay the initial $199/299, are there any additional monthly fees added to account?

    I currently have 2 smart phones and 1 dumb phone on my account, the smartphones were bought in 2011 & 2012, the dumb phone is even older than that, so they are all off contract. I'm looking to upgrade 1 (or both) of the smart phones. I'm currently paying $40 access fee on each smart phone, and am on the More Unlimited Talk/Text/3GB $60 plan.
    I was wondering, If I enter a new 2 year contract for a new phone, and pay the initial $199/299, is there any additional charges added to the monthly bill? Or will it remain the same as now?
    Also, If were to instead go for the edge program, would there be any additional fees added to monthly other than the ~$33 edge fee?
    Thanks!

    You are overpaying now by $10 on each smartphone. There is an off contract month to month discount on smartphones on More Everything plan.
    If you upgrade, you are no longer eligible for the discount, so you price will be the same you are paying now $40 for each smartphone.

  • All the xml and arrays are getting NULL Problem

    Hello guys
    I am working on a project which uses xml loading, e4x and array manipulation extensively, and it was going good but now I got stuck on a strange problem.  Whole code was fine and application was working and responding in a desired way, but then mystourisly it stopped working and started to retun NULL values to almost all the actionscript (internal) Arrays and XML varibales.
    Now Whenever i load xml file and assign the loaded values to internal xml variables, internal values get only NULL instead of data.
    Same is the situation with Arrays, I created some components in mxml, and when i passed them to arrays by reference, code gets compiled successfully, but again Array has only null values [that code was working fine too]
    I am wondering if Adobe Flex did a silenced update or something similar and it is the result of that things !
    I am using Adobe Flex 3.2 with SDK 3.3 on windows Vista Ultimate.
    Please check this attached project, Import it and see if you face the same problem
    Thanks
    Link to Problem Project
    http://isolatedperson.googlepages.com/problemXperiment.zip
    Problem Screenshot
    http://isolatedperson.googlepages.com/xmlissue.JPG

    Use HTTPService to load the data. You'll have fewer problems.
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application creationComplete="dataSvc.send();"
      xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
         <mx:Script>
              <![CDATA[
                import mx.collections.XMLListCollection;
                import mx.rpc.events.ResultEvent;
                [Bindable] private var xlc:XMLListCollection;
                   private function loadXML(evt:ResultEvent):void{
                    xlc =  new XMLListCollection(evt.result.individual.@id as XMLList);
              ]]>
         </mx:Script>
         <mx:HTTPService resultFormat="e4x" result="loadXML(event)" url="alirazaTree.xml" id="dataSvc"/>
         <mx:ComboBox id="cbx" dataProvider="{xlc}"/>
    </mx:Application>

  • How can I delay my MBP from hibernating until the lid has been closed for a set period of time?

    After extensive research, I have been unable to solve this problem and I'm hoping someone can explain this to me.   Everytime I close the lid on my 13-inch, Early 2011 Macbook Pro, it immediately starts to write to disk (solid light on the front) for several seconds until it finally goes into Hibernate mode (flashing light on the front).  The problem is, I frequently close the lid, then immediately reopen it within 15-30 seconds to resume typing or to add something I may have forgotten.   Each time I reopen the lid before the light has started flashing, the MBP wakes for a moment, and allows me to resume typing.  However, the Hibernation process has already begun and within 30 seconds, the screen goes blank.   I have to wake it AGAIN, which is very annoying.
    Based on my research, I could use pmset to change the hibernatemode to 0 (it is currently set at 3).   However, I dont wish to disable hibernate mode completely; I DO want it to save a hibernation image to disk if it happens to run out of battery, so that when I resume I havent lost anything.   
    I then researched using standby and standbydelay to attempt a delay of the write to disk when going into standby mode.   According to the pmset manual:
    standby causes kernel power management to automatically hibernate a machine after it has slept for a
         specified time period. This saves power while asleep
    standbydelay specifies the delay, in seconds, before writing the hibernation image to disk and powering
         off memory for Standby
    I then set these values as below, expecting the laptop to wait 4200 seconds (70 minutes) before trying to write to disk when I close the lid:
    standbydelay         4200
    standby              1
    Unfortunately, that did not work either.   If I close the lid, the light glows solid immediately (indicating it is writing to disk), and if I try to reopen the lid before it is done, it will wake and seem fine, then 30 seconds later it goes blank right in the middle of me typing something.   I usually have to click the mouse several times, or even the power button to re-wake it.  
    I do have InsomniaX installed, for when I want to close the lid and keep the machine awake permanently (while watching videos on airplay) and I have tried quitting that application to test this.  However, when I close/reopen the lid..the result is the same.   I cant keep InsomniaX enabled all the time, because it will never go to sleep when I truly want it to.   If I am not using InsomniaX, I just want to delay hibernation until he lid has been closed for a set period (say 15 minutes or more).  If I have not reopened the lid within that time, I want it to write to disk and go into hibernation mode.  And if the battery runs all the way out, I want it to go into hibernation mode before shutting down so I can recover.
    I would appreciate any help in solving this problem.  Also any insight as to why the standbydelay setting above did not work.   Thanks!

    Whats with the MBP lid? Dont close it ... if you're so concerned! Just go to System Preferences/Energy Saver and set it to how you like it.

  • Bad Form from Apple with the latest update

    Update 11.1.4 was obviously released without being fully tested.
    Given that it was released in early January and it is now the 29th I would have thought Apple would have given a "fix" top priority.
    I wasted a huge amount of  time and  effort redownloading and trying many different things before giving up in frustration.
    Eventually I managed to locate a post made by Turingtest2 on the Support community which allowed me to fix the problem. Thank you Turingtest2!
    Why is Apple relying on its customers to solve its problems?

    Hello sfhowes,
    Thank you for your response.
    I have looked into this thread that you've suggested earlier, but I'm hesitant to download a 3rd party application to fix the problem.
    This thread also references much longer hang times for autocomplete.
    What we're seeing in our office is very small, on the order of 0.1 seconds.
    It's enough of a change though that it's causing headaches in our office b/c we were used to instantaneous autocomplete.
    The preferred solution would be to have Mozilla undo or fix the change that they made that resulted in the decreased performance with the latest update.

  • How can I display the time left on my kids time limits? Whenever we ask them how much time is left, they cannot answer until the last 15 minutes are left.

    iMac, current operating system

    thanks for the quick response...
    no simple solution because no backup to restore from
    iPhoto seems to be using file metadata as some sort of index key in the
    Photo Info Window. open up the iphoto library package and take a look at
    the .xml file -- ModDate is used everywhere. hoping to export this data and merge/join it to
    each image.
    still trying to figure it out.
    thanks,
    Tom

  • My mails are duplicating to a smart box.  I don't want them to stay in the box where they came from, only to the smart box they are going to.

    I have a smart box designed to receive certain emails.  The emails arrive safely to the smart box, but they are also remaining in the original inbox where they arrived.  I don't want them in two places.  If I delete them from the original inbox will the same email that's in the smartbox stay or also delete?  Thanks.

     

  • Callbacks from WebView - Catching the URL when hyperlinks are clicked

    Hi all,
    I need some help. I'm using webview/webengine to display a webpage that uses frames, such as http://commons.apache.org/math/api-2.2/
    When I click on a hyperlink in the page the url (and therfore also the WebEngine.locationProperty) does not change and I can't find a way to "catch" the url of the new content displayed in one of the frames.
    How can I catch the event of clicking a hyperlink in a html page displayed in WebView?
    Cheers,
    Nuwanda

    I can't test this, but executing Javascript something like this might work:
    //Retrieve the IFrame.
    var frame = document.getElementById("SomeIFrame");
    //Create an event that is run every time a new page is loaded in the iframe.
    frame.addEventListener(
        "load",
        function() {
            //Display the url that has been loaded by the frame in a popup.
            alert(frame.src);
        false
    //If you want events for every link on this page...
    var i;
    for (i = 0; i < document.anchors.length; i++) {
        var anchor = document.anchors;
    anchor.addEventListener(
    "click",
    function() {
    //Display link in popup.
    alert(anchor.href);
    false
    //You can do something similar for all iframes.
    var arrayOfIFrames = document.getElementsByTagName("iframe");
    The webpage:<html>
    <body>
    <iframe id="SomeIframe" width="500" height="300" src="SomePage.html">
    </iframe>
    <body>
    </html>
    Here is a convenient JavaScript reference with links to a JavaScript tutorial: http://www.w3schools.com/jsref/default.asp
    Edited by: aidreamer on Aug 5, 2011 7:01 PM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • DNS is waiting for AD to signal the initial replication has completed

    Hello,
    First off, thank you for your help in advanced. Any help you can offer would be appreciated, and let me know if there's more information you need
    me to provide, or utilities to run.
    I have just joined a Server 2012 R2 DC to my Server 2008 R2 domain.  Topology is it only had one DC previously, the 2008 R2, running AD/DNS/DHCP. 
    I ran the forest prep & domain prep on the 2008 R2 domain controller, then ran a dcpromo on the 2012 R2.  From there, I migrated the FSMO roles over to the 2012 R2 server using ntdsutil.exe.  The ultimate goal is to retire the 2008 R2 DC and
    bring on line a 2nd 2012 R2 DC for this domain.
    My Issues
    Windows 7 client      PC's do not always resolve/pass traffic to the Server 2012 R2 server,      sometimes I need to ping
    the server by IP before it will resolve, other      times if I just repeatedly double click on the shared folder mapped to the      Server 2012 R2 DC it will work eventually.  This is      intermittent/random,
    and not always repeatable with any specific      procedures. Sometimes the user will be working, then all of the sudden      they can't resolve DNS to the internet, nor internally.
    I am getting the following errors in the event log on my 2012 R2 DC
    Log      Name:      DNS Server
         Source:             Microsoft-Windows-DNS-Server-Service
         Date:          3/16/2014      8:02:34 PM
         Event ID:      4013
         Task Category: None
         Level:         Warning
         Keywords:      Classic
         User:          N/A
         Computer:      HSSserver.carman.local
         Description:
         The DNS server is waiting for Active Directory Domain Services (AD DS) to      signal that the initial synchronization of the directory has been      completed. The DNS server service cannot start
    until the initial      synchronization is complete because critical DNS data might not yet be      replicated onto this domain controller. If events in the AD DS event log      indicate that there
    is a problem with DNS name resolution, consider adding      the IP address of another DNS server for this domain to the DNS server      list in the Internet Protocol properties of this computer. This event will     
    be logged every two minutes until AD DS has signaled that the initial      synchronization has successfully completed.
    Log      Name:      Directory Service
         Source:             Microsoft-Windows-ActiveDirectory_DomainService
         Date:          3/16/2014      8:56:17 PM
         Event ID:      2092
         Task Category: Replication
         Level:         Warning
         Keywords:      Classic
         User:          ANONYMOUS      LOGON
         Computer:      HSSserver.carman.local
         Description:
    This server is the owner of the following FSMO role, but does not consider it valid. For the partition which contains the FSMO, this server has
    not replicated successfully with any of its partners since this server has been restarted. Replication errors are preventing validation of this role.
    Operations which require contacting a FSMO operation master will fail until this condition is corrected.
    FSMO Role: CN=Partitions,CN=Configuration,DC=carman,DC=local
    User Action:
    1. Initial synchronization is the first early replications done by a system as it is starting. A failure to initially synchronize may explain why a FSMO role cannot be validated. This process is explained in KB article 305476.
    2. This server has one or more replication partners, and replication is failing for all of these partners. Use the command repadmin /showrepl to display the replication errors.  Correct the error in question. For example there maybe problems with IP connectivity,
    DNS name resolution, or security authentication that are preventing successful replication.
    3. In the rare event that all replication partners are expected to be offline (for example, because of maintenance or disaster recovery), you can force the role to be validated. This can be done by using NTDSUTIL.EXE to seize the role to the same server. This
    may be done using the steps provided in KB articles 255504 and 324801 on.
    The following operations may be impacted:
    Schema: You will no longer be able to modify the schema for this forest.
    Domain Naming: You will no longer be able to add or remove domains from this forest.
    PDC: You will no longer be able to perform primary domain controller operations, such as Group Policy updates and password resets for non-Active Directory Domain Services accounts.
    RID: You will not be able to allocation new security identifiers for new user accounts, computer accounts or security groups.
    Infrastructure: Cross-domain name references, such as universal group memberships, will not be updated properly if their target object is moved or renamed.
    Log      Name:      Directory Service
         Source:             Microsoft-Windows-ActiveDirectory_DomainService
         Date:          3/16/2014      8:56:17 PM
         Event ID:      2092
         Task Category: Replication
         Level:         Warning
         Keywords:      Classic
         User:          ANONYMOUS LOGON
         Computer:      HSSserver.carman.local
         Description:
    This server is the owner of the following FSMO role, but does not consider it valid. For the partition which contains the FSMO, this server has
    not replicated successfully with any of its partners since this server has been restarted. Replication errors are preventing validation of this role.
    Operations which require contacting a FSMO operation master will fail until this condition is corrected.
    FSMO Role: CN=Schema,CN=Configuration,DC=carman,DC=local
    User Action:
    1. Initial synchronization is the first early replications done by a system as it is starting. A failure to initially synchronize may explain why a FSMO role cannot be validated. This process is explained in KB article 305476.
    2. This server has one or more replication partners, and replication is failing for all of these partners. Use the command repadmin /showrepl to display the replication errors.  Correct the error in question. For example there maybe problems with IP connectivity,
    DNS name resolution, or security authentication that are preventing successful replication.
    3. In the rare event that all replication partners are expected to be offline (for example, because of maintenance or disaster recovery), you can force the role to be validated. This can be done by using NTDSUTIL.EXE to seize the role to the same server. This
    may be done using the steps provided in KB articles 255504 and 324801 on  
    The following operations may be impacted:
    Schema: You will no longer be able to modify the schema for this forest.
    Domain Naming: You will no longer be able to add or remove domains from this forest.
    PDC: You will no longer be able to perform primary domain controller operations, such as Group Policy updates and password resets for non-Active Directory Domain Services accounts.
    RID: You will not be able to allocation new security identifiers for new user accounts, computer accounts or security groups.
    Infrastructure: Cross-domain name references, such as universal group memberships, will not be updated properly if their target object is moved or renamed.
    Log      Name:      DFS Replication
         Source:        DFSR
         Date:          3/16/2014      11:21:43 PM
         Event ID:      5014
         Task Category: None
         Level:         Warning
         Keywords:      Classic
         User:          N/A
         Computer:      HSSserver.carman.local
         Description:
         The DFS Replication service is stopping communication with partner      CARMANSERVER for replication group Domain System Volume due to an error.      The service will retry the connection periodically.
         Additional Information:
         Error: 1726 (The remote procedure call failed.)
         Connection ID: 020D5B10-4876-4888-9214-45E3D8B3206D
         Replication Group ID: 8A8ADB84-CB25-495E-8C28-AE9FD1761E85
    From the Server 2008 R2 DC, I get the following errors/warnings in my event log:
    Log      Name:      Directory Service
         Source:             Microsoft-Windows-ActiveDirectory_DomainService
         Date:          3/16/2014      8:02:45 PM
         Event ID:      2088
         Task Category: DS RPC Client
         Level:         Warning
         Keywords:      Classic
         User:          ANONYMOUS      LOGON
         Computer:      CARMANSERVER.carman.local
         Description:
         Active Directory Domain Services could not use DNS to resolve the IP      address of the source domain controller listed below. To maintain the      consistency of Security groups, group policy,
    users and computers and      their passwords, Active Directory Domain Services successfully replicated      using the NetBIOS or fully qualified computer name of the source domain      controller.
         Invalid DNS configuration may be affecting other essential operations on      member computers, domain controllers or application servers in this Active      Directory Domain Services forest,
    including logon authentication or access      to network resources.
         You should immediately resolve this DNS configuration error so that this      domain controller can resolve the IP address of the source domain      controller using DNS.
         Alternate server name:
          HSSserver.carman.local
         Failing DNS host name:
          25346b74-2fc2-4311-a54d-d500669d4026._msdcs.carman.local
         NOTE: By default, only up to 10 DNS failures are shown for any given 12      hour period, even if more than 10 failures occur.  To log all      individual failure events, set the following
    diagnostics registry value to      1:
         Registry Path:
         HKLM\System\CurrentControlSet\Services\NTDS\Diagnostics\22 DS RPC Client
         User Action:
          1) If the source domain controller is no longer functioning or its      operating system has been reinstalled with a different computer name or      NTDSDSA object GUID, remove the source
    domain controller's metadata with      ntdsutil.exe, using the steps outlined in MSKB article 216498.
          2) Confirm that the source domain controller is running Active      Directory Domain Services and is accessible on the network by typing      "net view <DC
    name>" or "ping <source DC name>".
          3) Verify that the source domain controller is using a valid DNS      server for DNS services, and that the source domain controller's host      record and CNAME record are correctly registered,
    using the DNS Enhanced      version of DCDIAG.EXE available on 
           dcdiag /test:dns
          4) Verify that this destination domain controller is using a valid      DNS server for DNS services, by running the DNS Enhanced version of      DCDIAG.EXE command on the console of the
    destination domain controller, as      follows:
           dcdiag /test:dns
          5) For further analysis of DNS error failures see KB 824449: 
         Additional Data
         Error value:
          11004 The requested name is valid, but no data of the requested type      was found.
    Log      Name:      DNS Server
         Source:        Microsoft-Windows-DNS-Server-Service
         Date:          3/16/2014      8:02:19 PM
         Event ID:      4013
         Task Category: None
         Level:         Warning
         Keywords:      Classic
         User:          N/A
         Computer:      CARMANSERVER.carman.local
         Description:
         The DNS server is waiting for Active Directory Domain Services (AD DS) to      signal that the initial synchronization of the directory has been      completed. The DNS server service cannot start
    until the initial      synchronization is complete because critical DNS data might not yet be replicated      onto this domain controller. If events in the AD DS event log indicate      that there
    is a problem with DNS name resolution, consider adding the IP      address of another DNS server for this domain to the DNS server list in      the Internet Protocol properties of this computer. This event will be     
    logged every two minutes until AD DS has signaled that the initial      synchronization has successfully completed.
         Log Name:      System
         Source:             Microsoft-Windows-DNS-Client
         Date:          3/16/2014      8:01:55 PM
         Event ID:      1014
         Task Category: None
         Level:         Warning
         Keywords:     
         User:          NETWORK      SERVICE
         Computer:      CARMANSERVER.carman.local
         Description:
         Name resolution for the name _ldap._tcp.dc._msdcs.carman.local timed out      after none of the configured DNS servers responded.
    Log      Name:      System
         Source:        NETLOGON
         Date:          3/16/2014      8:02:07 PM
         Event ID:      3096
         Task Category: None
         Level:         Warning
         Keywords:      Classic
         User:          N/A
         Computer:      CARMANSERVER.carman.local
         Description:
         The primary Domain Controller for this domain could not be located.
    Log      Name:      System
         Source:        Microsoft-Windows-WinRM
         Date:          3/16/2014      8:05:08 PM
         Event ID:      10154
         Task Category: None
         Level:         Warning
         Keywords:      Classic
         User:          N/A
         Computer:      CARMANSERVER.carman.local
         Description:
         The WinRM service failed to create the following SPNs:      WSMAN/CARMANSERVER.carman.local; WSMAN/CARMANSERVER.
     Additional Data
     The error received was 8344: %%8344.
     User Action
     The SPNs can be created by an administrator using setspn.exe utility.
    Log      Name:      System
         Source:             Microsoft-Windows-DistributedCOM
         Date:          3/16/2014      10:50:55 PM
         Event ID:      10009
         Task Category: None
         Level:         Error
         Keywords:      Classic
         User:          N/A
         Computer:      CARMANSERVER.carman.local
         Description:
         DCOM was unable to communicate with the computer 208.67.222.222 using any      of the configured protocols

    Sorry, the forum limited me to only 60000 characters per post, so here is some more detailed information:
    Here's some initial diags/info from my server 2012 DC:
    c:\windows\system32\dcdiag /test:DNS /v /e
    Directory Server Diagnosis
    Performing initial setup:
       Trying to find home server...
       * Verifying that the local machine HSSserver, is a Directory Server.
       Home Server = HSSserver
       * Connecting to directory service on server HSSserver.
       * Identified AD Forest.
       Collecting AD specific global data
       * Collecting site info.
       Calling ldap_search_init_page(hld,CN=Sites,CN=Configuration,DC=carman,DC=local,LDAP_SCOPE_SUBTREE,(objectCategory=ntDSSiteSettings),.......
       The previous call succeeded
       Iterating through the sites
       Looking at base site object: CN=NTDS Site Settings,CN=Default-First-Site-Name,CN=Sites,CN=Configuration,DC=carman,DC=local
       Getting ISTG and options for the site
       * Identifying all servers.
       Calling ldap_search_init_page(hld,CN=Sites,CN=Configuration,DC=carman,DC=local,LDAP_SCOPE_SUBTREE,(objectClass=ntDSDsa),.......
       The previous call succeeded....
       The previous call succeeded
       Iterating through the list of servers
       Getting information for the server CN=NTDS Settings,CN=CARMANSERVER,CN=Servers,CN=Default-First-Site-Name,CN=Sites,CN=Configuration,DC=carman,DC=local
       objectGuid obtained
       InvocationID obtained
       dnsHostname obtained
       site info obtained
       All the info for the server collected
       Getting information for the server CN=NTDS Settings,CN=HSSSERVER,CN=Servers,CN=Default-First-Site-Name,CN=Sites,CN=Configuration,DC=carman,DC=local
       objectGuid obtained
       InvocationID obtained
       dnsHostname obtained
       site info obtained
       All the info for the server collected
       * Identifying all NC cross-refs.
       * Found 2 DC(s). Testing 2 of them.
       Done gathering initial info.
    Doing initial required tests
       Testing server: Default-First-Site-Name\CARMANSERVER
          Starting test: Connectivity
             * Active Directory LDAP Services Check
             Determining IP4 connectivity
             * Active Directory RPC Services Check
             The clock difference between the home server HSSSERVER and target
             server CARMANSERVER is greater than one minute. This may cause
             Kerberos authentication failures. Please check that the time service
             is working properly. You may need to resynchonize the time between
             these servers.
             ......................... CARMANSERVER passed test Connectivity
       Testing server: Default-First-Site-Name\HSSSERVER
          Starting test: Connectivity
             * Active Directory LDAP Services Check
             Determining IP4 connectivity
             * Active Directory RPC Services Check
             ......................... HSSSERVER passed test Connectivity
    Doing primary tests
       Testing server: Default-First-Site-Name\CARMANSERVER
          Test omitted by user request: Advertising
          Test omitted by user request: CheckSecurityError
          Test omitted by user request: CutoffServers
          Test omitted by user request: FrsEvent
          Test omitted by user request: DFSREvent
          Test omitted by user request: SysVolCheck
          Test omitted by user request: KccEvent
          Test omitted by user request: KnowsOfRoleHolders
          Test omitted by user request: MachineAccount
          Test omitted by user request: NCSecDesc
          Test omitted by user request: NetLogons
          Test omitted by user request: ObjectsReplicated
          Test omitted by user request: OutboundSecureChannels
          Test omitted by user request: Replications
          Test omitted by user request: RidManager
          Test omitted by user request: Services
          Test omitted by user request: SystemLog
          Test omitted by user request: Topology
          Test omitted by user request: VerifyEnterpriseReferences
          Test omitted by user request: VerifyReferences
          Test omitted by user request: VerifyReplicas
       Testing server: Default-First-Site-Name\HSSSERVER
          Test omitted by user request: Advertising
          Test omitted by user request: CheckSecurityError
          Test omitted by user request: CutoffServers
          Test omitted by user request: FrsEvent
          Test omitted by user request: DFSREvent
          Test omitted by user request: SysVolCheck
          Test omitted by user request: KccEvent
          Test omitted by user request: KnowsOfRoleHolders
          Test omitted by user request: MachineAccount
          Test omitted by user request: NCSecDesc
          Test omitted by user request: NetLogons
          Test omitted by user request: ObjectsReplicated
          Test omitted by user request: OutboundSecureChannels
          Test omitted by user request: Replications
          Test omitted by user request: RidManager
          Test omitted by user request: Services
          Test omitted by user request: SystemLog
          Test omitted by user request: Topology
          Test omitted by user request: VerifyEnterpriseReferences
          Test omitted by user request: VerifyReferences
          Test omitted by user request: VerifyReplicas
             Starting test: DNS
                DNS Tests are running and not hung. Please wait a few minutes...
                   Starting test: DNS
                      See DNS test in enterprise tests section
    for results
                      ......................... HSSSERVER passed test DNS
             See DNS test in enterprise tests section for results
             ......................... CARMANSERVER passed test DNS
       Running partition tests on : ForestDnsZones
          Test omitted by user request: CheckSDRefDom
          Test omitted by user request: CrossRefValidation
       Running partition tests on : DomainDnsZones
          Test omitted by user request: CheckSDRefDom
          Test omitted by user request: CrossRefValidation
       Running partition tests on : Schema
          Test omitted by user request: CheckSDRefDom
          Test omitted by user request: CrossRefValidation
       Running partition tests on : Configuration
          Test omitted by user request: CheckSDRefDom
          Test omitted by user request: CrossRefValidation
       Running partition tests on : carman
          Test omitted by user request: CheckSDRefDom
          Test omitted by user request: CrossRefValidation
       Running enterprise tests on : carman.local
          Starting test: DNS
             Test results for domain controllers:
                DC: HSSserver.carman.local
                Domain: carman.local
                   TEST: Authentication (Auth)
                      Authentication test: Successfully completed
                   TEST: Basic (Basc)
                      The OS
                      Microsoft Windows Server 2012 R2 Standard
    (Service Pack level: 0.0)
                      is supported.
                      NETLOGON service is running
                      kdc service is running
                      DNSCACHE service is running
                      DNS service is running
                      DC is a DNS server
                      Network adapters information:
                      Adapter [00000010] Broadcom NetXtreme Gigabit
    Ethernet:
                         MAC address is F0:1F:AF:E1:D1:C4
                         IP Address is static
                         IP address: 192.168.17.7, fe80::35d3:8713:ce0a:3680
                         DNS servers:
                            192.168.17.7
    (HSSSERVER) [Valid]
                            192.168.17.5 (carmanserver.carman.local.) [Valid]
                      The A host record(s) for this DC was found
                      The SOA record for the Active Directory zone was found
                      The Active Directory zone on this DC/DNS server was found primary
                      Root zone on this DC/DNS server was not found
                   TEST: Forwarders/Root hints (Forw)
                      Recursion is enabled
                      Forwarders Information:
                         208.67.220.220 (<name unavailable>) [Valid]
                         208.67.222.222 (<name unavailable>) [Valid]
                   TEST: Delegations (Del)
                      Delegation information for the zone: carman.local.
                         Delegated domain name: _msdcs.carman.local.
                            DNS server: carmanserver.carman.local. IP:192.168.17.5 [Valid]
                   TEST: Dynamic update (Dyn)
                      Test record dcdiag-test-record added successfully in zone carman.local
                      Test record dcdiag-test-record deleted successfully in zone carman.local
                   TEST: Records registration (RReg)
                      Network Adapter
                      [00000010] Broadcom NetXtreme Gigabit Ethernet:
                         Matching CNAME record
    found at DNS server 192.168.17.7:
                         25346b74-2fc2-4311-a54d-d500669d4026._msdcs.carman.local
                         Matching A record found
    at DNS server 192.168.17.7:
                         HSSserver.carman.local
                         Matching  SRV record
    found at DNS server 192.168.17.7:
                         _ldap._tcp.carman.local
                         Matching  SRV record
    found at DNS server 192.168.17.7:
                         _ldap._tcp.e6c304e4-c161-4258-8d51-5a2f20a61c7a.domains._msdcs.carman.local
                         Matching  SRV record
    found at DNS server 192.168.17.7:
                         _kerberos._tcp.dc._msdcs.carman.local
                         Matching  SRV record
    found at DNS server 192.168.17.7:
                         _ldap._tcp.dc._msdcs.carman.local
                         Matching  SRV record
    found at DNS server 192.168.17.7:
                         _kerberos._tcp.carman.local
                         Matching  SRV record
    found at DNS server 192.168.17.7:
                         _kerberos._udp.carman.local
                         Matching  SRV record
    found at DNS server 192.168.17.7:
                         _kpasswd._tcp.carman.local
                         Matching  SRV record
    found at DNS server 192.168.17.7:
                         _ldap._tcp.Default-First-Site-Name._sites.carman.local
                         Matching  SRV record
    found at DNS server 192.168.17.7:
                         _kerberos._tcp.Default-First-Site-Name._sites.dc._msdcs.carman.local
                         Matching  SRV record
    found at DNS server 192.168.17.7:
                         _ldap._tcp.Default-First-Site-Name._sites.dc._msdcs.carman.local
                         Matching  SRV record
    found at DNS server 192.168.17.7:
                         _kerberos._tcp.Default-First-Site-Name._sites.carman.local
                         Matching  SRV record
    found at DNS server 192.168.17.7:
                         _ldap._tcp.gc._msdcs.carman.local
                         Matching A record found
    at DNS server 192.168.17.7:
                         gc._msdcs.carman.local
                         Matching  SRV record
    found at DNS server 192.168.17.7:
                         _gc._tcp.Default-First-Site-Name._sites.carman.local
                         Matching  SRV record
    found at DNS server 192.168.17.7:
                         _ldap._tcp.Default-First-Site-Name._sites.gc._msdcs.carman.local
                         Matching  SRV record
    found at DNS server 192.168.17.7:
                         _ldap._tcp.pdc._msdcs.carman.local
                         Matching CNAME record
    found at DNS server 192.168.17.5:
                         25346b74-2fc2-4311-a54d-d500669d4026._msdcs.carman.local
                         Matching A record found
    at DNS server 192.168.17.5:
                         HSSserver.carman.local
                         Matching  SRV record
    found at DNS server 192.168.17.5:
                         _ldap._tcp.carman.local
                         Matching  SRV record
    found at DNS server 192.168.17.5:
                         _ldap._tcp.e6c304e4-c161-4258-8d51-5a2f20a61c7a.domains._msdcs.carman.local
                         Matching  SRV record
    found at DNS server 192.168.17.5:
                         _kerberos._tcp.dc._msdcs.carman.local
                         Matching  SRV record
    found at DNS server 192.168.17.5:
                         _ldap._tcp.dc._msdcs.carman.local
                         Matching  SRV record
    found at DNS server 192.168.17.5:
                         _kerberos._tcp.carman.local
                         Matching  SRV record
    found at DNS server 192.168.17.5:
                         _kerberos._udp.carman.local
                         Matching  SRV record
    found at DNS server 192.168.17.5:
                         _kpasswd._tcp.carman.local
                         Matching  SRV record
    found at DNS server 192.168.17.5:
                         _ldap._tcp.Default-First-Site-Name._sites.carman.local
                         Matching  SRV record
    found at DNS server 192.168.17.5:
                         _kerberos._tcp.Default-First-Site-Name._sites.dc._msdcs.carman.local
                         Matching  SRV record
    found at DNS server 192.168.17.5:
                         _ldap._tcp.Default-First-Site-Name._sites.dc._msdcs.carman.local
                         Matching  SRV record
    found at DNS server 192.168.17.5:
                         _kerberos._tcp.Default-First-Site-Name._sites.carman.local
                         Matching  SRV record
    found at DNS server 192.168.17.5:
                         _ldap._tcp.gc._msdcs.carman.local
                         Matching A record found
    at DNS server 192.168.17.5:
                         gc._msdcs.carman.local
                         Matching  SRV record
    found at DNS server 192.168.17.5:
                         _gc._tcp.Default-First-Site-Name._sites.carman.local
                         Matching  SRV record
    found at DNS server 192.168.17.5:
                         _ldap._tcp.Default-First-Site-Name._sites.gc._msdcs.carman.local
                         Matching  SRV record
    found at DNS server 192.168.17.5:
                         _ldap._tcp.pdc._msdcs.carman.local
                DC: CARMANSERVER.carman.local
                Domain: carman.local
                   TEST: Authentication (Auth)
                      Authentication test: Successfully completed
                   TEST: Basic (Basc)
                      The OS
                      Microsoft Windows Server 2008 R2 Standard 
    (Service Pack level: 1.0)
                      is supported.
                      NETLOGON service is running
                      kdc service is running
                      DNSCACHE service is running
                      DNS service is running
                      DC is a DNS server
                      Network adapters information:
                      Adapter
                      [00000007] Broadcom BCM5716C NetXtreme II
    GigE (NDIS VBD Client):
                         MAC address is A4:BA:DB:12:D1:77
                         IP Address is static
                         IP address: 192.168.17.5
                         DNS servers:
                            127.0.0.1
    (carmanserver.carman.local.) [Valid]
                            192.168.17.7 (HSSSERVER) [Valid]
                      The A host record(s) for this DC was found
                      The SOA record for the Active Directory zone was found
                      The Active Directory zone on this DC/DNS server was found primary
                      Root zone on this DC/DNS server was not found
                   TEST: Forwarders/Root hints (Forw)
                      Recursion is enabled
                      Forwarders Information:
                         208.67.220.220 (<name unavailable>) [Valid]
                         208.67.222.222 (<name unavailable>) [Valid]
                   TEST: Delegations (Del)
                      Delegation information for the zone: carman.local.
                         Delegated domain name: _msdcs.carman.local.
                            DNS server: carmanserver.carman.local. IP:192.168.17.5 [Valid]
                   TEST: Dynamic update (Dyn)
                      Test record dcdiag-test-record added successfully in zone carman.local
                      Test record dcdiag-test-record deleted successfully in zone carman.local
                   TEST: Records registration (RReg)
                      Network Adapter
                      [00000007] Broadcom BCM5716C NetXtreme II
    GigE (NDIS VBD Client):

Maybe you are looking for