SprySuggest fails in IE with dynamic server data

When using SprySuggest with dynamic server xml suggestions,
the suggestions are never displayed in IE, if the XML response does
not have the correct content-type. Code in SpryData.js attempts to
handle this situation, but it did not work in my configuration,
until I made the change shown below in bold.
Spry.Data.XMLDataSet.prototype.xhRequestProcessor =
function(xhRequest)
// XMLDataSet uses the responseXML from the xhRequest
var resp = xhRequest.responseXML;
var manualParseRequired = false;
if (xhRequest.status != 200)
if (xhRequest.status == 0)
// The page that is attempting to load data was probably
loaded with
// a file:// url. Mozilla based browsers will actually
provide the complete DOM
// tree for the data, but IE provides an empty document node
so try to parse
// the xml text manually to create a dom tree we can use.
if (xhRequest.responseText && (!resp ||
!resp.firstChild))
manualParseRequired = true;
else if ( (!resp) || (!resp.getElementById))
// The server said it sent us data, but for some reason we
don't have
// an XML DOM document. Some browsers won't auto-create an
XML DOM
// unless the server used a content-type of "text/xml" or
"application/xml".
// Try to manually parse the XML string, just in case the
server
// gave us an unexpected Content-Type.
manualParseRequired = true;
if (manualParseRequired)
resp = Spry.Utils.stringToXMLDoc(xhRequest.responseText);
if (!resp || !resp.firstChild || resp.firstChild.nodeName ==
"parsererror")
return null;
return resp;
};

Hi John,
it is a known IE browser behavior for the files that don't
have the content-type set on xml, that will not get be interpreted
as text. So if you want to have your page working ok, you must
assure that the server response contained an xml and not other
content-type.
Diana

Similar Messages

  • CBS failed to communicate with other server

    Hi All,
    I have created one track and I have imported it in NWDS. In NWDS I have created one new DC and one sample WD project under that newly created DC, it has asked to create new activity. There I am successfully created new activity and my application is working fine. When I want to checkin the activity it is giving server communcation failure exception. The excpeiton I am getting is " Activation failed: CBS Server Error: CBS failed to communicate with some other server( internal code: COMMUNICATION_ERROR)". What are the steps I need to take to resolve the issue.
    Regards
    Suresh

    Hi,
    Take a look at these threads:
    CBS Server Error
    Akshatha

  • Help with flash server date

    hello, i have a pack with 4 swfs() and i want to change them automaticly when new season is coming using server date, can someone help me with script or documentation?

    This doesn't sound like a Flash issue, unless you have some other Flash file that loads these files in them.  You probably just want to see about creating a php page that writes the embedding code for the Flash file it will show based on the date the PHP sees on the server.

  • Operations Manager fails to communicate with DCR server

    After a recent restart of the Operations Manager server we found it is no longer able to manage devices. When attempting to open a applet that depends on DCR connection I receive an error " Error in communicating with DCR Server. DCR Server may be down. Please start the DCR Server and refresh the page." I have attached the DCR logs and pdshow from the server. Has anyone experienced this issue, and if so, how can I correct it. Any help would be appreciated.
     

    I am constantly seeing this error at multiple sites on Windows Server 2012 and 2012 R2 Standard and DataCenter.
    I have counted over 50 different server I manage with services such as   domain controller, hyper-v, file servers, exchange 2013, SQL 2008/2012, and print servers.
    I have seen it happen on machine that have been in production for over 2 years and to machines that were just created last week.
    It is happening on metal, hyper-v and esx vmware servers.
    It is happening when the machine have updates waiting or no updates, or after updates have been applied and awaiting a restart.
    It is happening on Dell PowerEdge server, HP Proliant servers and IBM servers.
    It is happening on servers with Intel and AMD chip-sets.
    It is happening on machines that are a part of a domain or in a workgroup.
    It is happening on machines with AV of Bitdefendor, Trend Micro, Vipre, Microsoft Endpoint, and Symantec Endpoint.
    Only a restart will fix it.
    I have ran process monitor on several of the problem machines and I cannot find anything.
    Since I have only started seeing this about 6 month ago it must be a Windows update causing it.
    Moses Hull of Alexant Systems

  • Problem with SQL Server data on webpage

    Hello, we recently 'upsized' from Access to MS SQL Server
    2005.
    I'm trying to port over my webpages but have run into a very
    bizarr
    behavior, some data from some fields in my table appear on my
    web pages and
    some do not. In fact, depending on where I place some of
    these fields on the
    page can determine whether the data fields show up or not.
    For example, I'll place a field
    <%=(Recordset1.Fields.Item("Tastings").Value)%> above
    the phone field
    <%=(Recordset1.Fields.Item("Phone").Value)%> and the
    phone field disappears,
    i.e. the phone number was displaying on the page and after I
    place the
    Tasting field above it the phone number no longer displays on
    the page.
    Many of the fields on the webpage are just blank even though
    I know the code
    is right and I know there is data in that db record. I also
    know the pages
    work without a problem since if I use a connection string to
    the Access db
    (which is linked to the SQL db!) everything works perfectly.
    I don't know if this matters, but the table has about 95
    fields in it many
    of which are 'True' 'False'. There are only about 400 records
    though.
    I'm stumped, so any ideas would be greatly appreciated.
    -Joe

    Hey Lionstone, you're the best!
    That fixed my problem and I would have never figured that
    out.
    If you're ever in the Napa Valley give me a ring, I have a
    couple bottles of
    Napa's finest for you.
    -Joe
    707-968-4205
    "Lionstone" <[email protected]> wrote in
    message
    news:[email protected]...
    > You've used columns with the data type of "text." This
    is not the right
    > data type for you.
    > In SQL Server 2005, you should use strictly VARCHAR
    columns to hold text.
    > Anything up to 8000 bytes of text (8000 characters using
    standard ANSI
    > encoding) should use VARCHAR(X), where X is a reasonable
    maximum length;
    > for instance, VARCHAR(50) is a reasonable length for a
    title. "Text" is
    > actually intended for very large amounts of information
    (say, a research
    > paper or long news article), but in SQL Server 2005, you
    should use
    > VARCHAR(MAX) instead (and I literally mean MAX, not a
    numeric value).
    >
    > Shorter version of everything I said: Use VARCHAR([some
    number]) up to
    > 8000 characters and VARCHAR(MAX) for more than 8000
    characters. Text is
    > kept for mainly for backward compatibility.
    >
    > There are several things you can do in the interim. The
    best would be to
    > put all "text", "ntext", and "image" columns at the end
    of your select
    > list (you shouldn't be using SELECT * in production code
    anyway) and, if
    > you have more than one, list them in the order they're
    defined in your
    > table.
    >
    > Solutions that involve changing the cursor type or
    location have a
    > performance penalty, and they aren't even possible using
    the DW 8.02-style
    > recordsets.
    >
    >
    > "Joe" <[email protected]> wrote
    in message
    > news:[email protected]...
    >> Hello, we recently 'upsized' from Access to MS SQL
    Server 2005.
    >>
    >> I'm trying to port over my webpages but have run
    into a very bizarr
    >> behavior, some data from some fields in my table
    appear on my web pages
    >> and some do not. In fact, depending on where I place
    some of these fields
    >> on the page can determine whether the data fields
    show up or not.
    >>
    >> For example, I'll place a field
    >>
    <%=(Recordset1.Fields.Item("Tastings").Value)%> above the
    phone field
    >> <%=(Recordset1.Fields.Item("Phone").Value)%>
    and the phone field
    >> disappears, i.e. the phone number was displaying on
    the page and after I
    >> place the Tasting field above it the phone number no
    longer displays on
    >> the page.
    >>
    >> ???
    >>
    >> Many of the fields on the webpage are just blank
    even though I know the
    >> code is right and I know there is data in that db
    record. I also know the
    >> pages work without a problem since if I use a
    connection string to the
    >> Access db (which is linked to the SQL db!)
    everything works perfectly.
    >>
    >> I don't know if this matters, but the table has
    about 95 fields in it
    >> many of which are 'True' 'False'. There are only
    about 400 records
    >> though.
    >>
    >> I'm stumped, so any ideas would be greatly
    appreciated.
    >>
    >> -Joe
    >>
    >
    >

  • Keep mobile device informed with actual server data

    Hello,
    for my bachelor thesis I have to develop an application that works as a client for a workflow-management-system.
    I've had the following idea: The app registers itself in the push registry and it sends it own ip-adress via http-get-command to the server.
    If the server has new data it connects to the phone, tests, if the right phone is still on that ip-adress and after this test it send the data. The application is automatically started and displays the data
    So far, so good. But what happens, if the phone has no network connection for a short period in between and after the reconnect to the network it gets another ip-adress?
    Sure, the server sends no data tho the old IP-Adress because the check fails, but it doesn't know the new adress and so no data will be transmitted. On the phone there will be no error-message. The phone will simply never receive any data - and that is a serious problem.
    Has anybody already solved this problem - maybe for a chat client?
    Regards, Klaus

    i am not sure about this solution but you can make another servlet(page) hit this servlet within the some time durection say after every 15 mins if response is ok from that then link is ok and fetch the data from yr page that servlet would work as Enquiry Link!! if you can put both on the same server then you can know that that server is up or not?
    [email protected]

  • SMTP send fails first time with exchange server. how about you?

    I run a 2007 Exhcange server at our business...never an issue with OSX working with it.
    Now that I've upgraded to mavericks anytime I have an attached of any good size (screenshots, photos) it fails the first time...and when I try to resend it goes. This issue doesn't exist with small attached (signatures for example) or blank emails.
    Anyone have this issue with Maverick/Mail.App?
    Before you start to tell me that I need to increase the attachment size on my exchange server it already permits up to 99,999KB and if it was being blocked due to size the 2nd attempt would not work either.

    Ok, so I've gotten Cups and wicd autostarting, set the static ip from my router because else it wasnt getting DNS etc details and left it asking for that by dhcp.
    Still having issues with the DE
    pedro_sland wrote:
    If DE is required, Xorg must be started in tty1, startlxde ran in tty2, and then manually switch to tty7 for the DE.
    I run xfce4 sometimes. I just run startxfce4 and it starts Xorg and displays the DE. I think that startx runs twm which you probably don't want so you might want to take a look at that. startx has a script it runs somewhere (I forget where but the wiki will know). When I'm done with xfce I just log out and it exits.
    For me, this isnt working. startlxde on its own just goes to
    [root@yomiko ~]#
    in tty1, and leaves me with a blank screen when i switch to tty7
    I literally must call Xorg in one tty, startlxde in another and then manually shift to tty7 to see it.
    startx itself:
    -bash: startx: command not found
    Even Xorg isnt happy being called on its own, that too goes to a blank screen, though it does at least switch to tty7
    With Xorg called in tty1, when i call startlxde in tty2 i get dbug errors from pcmanfm though these seem to be just it informing its detected the HDD partitions.
    there is a grumble early on in the process, before the debug errors, saying:
    Importing pynotify failed, notifications disabled.
    Finally, I did add the line to .xinitrc the LXDE page in the wiki said to to allow startx to run:
    exec ck-launch-session startlxde
    This is the only line in this file.
    Currently running as root... I'm not going to complicate matters by adding a user until im sure i got it all running as root, bad practice or not!
    Edit: A friend helped me solve it.
    The package xorg-xinit held the startx script that was missing. I now get LXDE when i want and only when I want.
    Last edited by Rhiadratech (2011-05-20 23:09:16)

  • Failed download everytime with dynamic bookmarks

    No hope to see the new titles on blogs or website that contains dynamic bookmarks even if I quit and open again Firefox

    The servers are overloaded. There are a hundred million people all trying to download iOS 7 at one time. Try again later

  • Failure Installing SQL Server Data Tools 2012 on Windows 8.1

    I am trying to install SQL Server 2012 with SQL Server Data Tools on my laptop with Windows 8.1 standard edition.  It fails each time when it gets to the SSDT installation with the same 1935 error, other features still install.  The error
    text is as follows:
    The following error has occurred:
    SQL Server Setup has encountered an error when running a Windows Installer file.
    Windows Installer error message: An error occurred during the installation of assembly 'Microsoft.VC80.CRT,version="8.0.50727.4053",publicKeyToken="1fc8b3b9a1e18e3b",processorArchitecture="amd64",type="win32"'. Please
    refer to Help and Support for more information. HRESULT: 0x80073715.
    Windows Installer file: F:\1033_ENU_LP\x64\setup\x64\SharedManagementObjects.msi
    Windows Installer log file: C:\Program Files\Microsoft SQL Server\110\Setup Bootstrap\Log\20140220_201634\SharedManagementObjects_Cpu64_1.log
    Click 'Retry' to retry the failed action, or click 'Cancel' to cancel this action and continue setup.
    For help, click: http://go.microsoft.com/fwlink?LinkID=20476&ProdName=Microsoft%20SQL%20Server&EvtSrc=setup.rll&EvtID=50000&ProdVer=11.0.3128.0&EvtType=0xDC80C325
    I have disabled any antivirus software that may have been interfering and am not sure what else to try.  Any assistance on how to resolve this error would be greatly appreciated.

    Hello,
    Please read the following article about the cause of that error:
    http://support.microsoft.com/kb/2688946/en-us
    I would like to recommend you the following procedure:
    http://www.sqlcoffee.com/SQLServer2012_0008.htm
    Hope this helps.
    Regards,
    Alberto Morillo
    SQLCoffee.com

  • Creating context node with dynamic type

    When we are creating context node thru wizard,  Dictionary type must be filled. I'm trying to create Context node manually.Did any one tried created Context node class with Dynamic type.

    Hi Prasad,
    I have a similar requirement.
    Can you please share with me how did you create context node with dynamic table data?
    Thanks
    Vicky

  • "Acrobat Failed to Connect to DDE server"

    Hi
    I get a fatal error when I try to open a PDF document by double clicking on it. I am using version 10.1.4.
    It just started recently. It was working before. I don't know why it is not working now.

    Hi,
    No, the Privileged key is not present at all in HKEY_CURRENT_USER\Software\Adobe\Acrobat Reader\10.0\.
    I See a field AdobeViewer in which I see "TrustedMode" set to 0.
    Also I noticed that the value for HKEY_CLASSES_ROOT\acrobat\shell\open\ddeexec\application is "AcroviewR10" even after the restart.
    But What I found was that the shockwave flash plugin is causing some problem with Acrobat reader. WHen ever I enable this plug in I am not able to view the PDF documents and I get the original  error "Failed to connect with DDE server". If I disable the plugin and restart then I am able to view the docs. But I can't browse web sites which need flash plugin. So I dn't know what exactly is the issue here..
    Any more suggestions?

  • Error while connecting to an OData Feed from Excel 2013 PowerPivot . Error: Failed to connect to the server. Reason: The payload kind 'BinaryValue' of the given data feed is not supported

    I am trying to connect to a Odata Data feed from Excel 2013 Power Pivot
    The datasource is in sharepoint site eg: https://sitename/Shared%20Documents/datafeed.atomsvc
    getting below error
    Error message:
    Failed to connect to the server. Reason: The payload kind 'BinaryValue' of the given data feed is not supported.
    ============================
    Call Stack:
    ============================
       at Microsoft.Data.DataFeedClient.DataFeedODataReader.ValidatePayloadKind(ODataPayloadKind payloadKind, ODataMessageReader odataMessageReader)
       at Microsoft.Data.DataFeedClient.DataFeedODataReader.InterceptODataException(Action action)
       at Microsoft.Data.DataFeedClient.DataFeedODataReader..ctor(IODataResponseMessage responseMessage, Int64 maxReceivedMessageSize)
       at Microsoft.Data.DataFeedClient.DataFeedODataReader.CreateReader(IWebResponse webResponse, Int64 maxReceivedMessageSize, Boolean applySlashUpdatingBaseUriResolver)
       at Microsoft.Data.DataFeedClient.ODataHelper.GetCollectionsFromServiceDocumentUrl(Uri serviceDocumentUrl, DataFeedConnection connection)
       at Microsoft.Data.DataFeedClient.DataFeedConnection.Open()
       at Microsoft.AnalysisServices.BackEnd.RelationalDataSourceConnection.InitializeConnectionObject(String connectionIdentifier)
       at Microsoft.AnalysisServices.BackEnd.RelationalDataSourceConnection.InitializeConnectionObject(String connectionIdentifier)
       at Microsoft.AnalysisServices.BackEnd.RelationalDataSourceConnection.Open(String& connectionIdentifier)
       at Microsoft.AnalysisServices.BackEnd.RelationalDataSourceConnection.Open()
       at Microsoft.AnalysisServices.Common.DataSourceBasic.ClickTestConnection(Object progressControl)
    Appreciate suggestions/answers
    NOTE: The error is showing only while using Excel 2013 powerpivot
    its working good with Excel 2010 powerpivot

    Anita,
    Please look into using Power Query to use OData as a source in Power Pivot.
    Thanks!
    Ed Price, Power BI & SQL Server Customer Program Manager (Blog,
    Small Basic,
    Wiki Ninjas,
    Wiki)
    Answer an interesting question?
    Create a wiki article about it!

  • I have a production mobile Flex app that uses RemoteObject calls for all data access, and it's working well, except for a new remote call I just added that only fails when running with a release build.  The same call works fine when running on the device

    I have a production mobile Flex app that uses RemoteObject calls for all data access, and it's working well, except for a new remote call I just added that only fails when running with a release build. The same call works fine when running on the device (iPhone) using debug build. When running with a release build, the result handler is never called (nor is the fault handler called). Viewing the BlazeDS logs in debug mode, the call is received and send back with data. I've narrowed it down to what seems to be a data size issue.
    I have targeted one specific data call that returns in the String value a string length of 44kb, which fails in the release build (result or fault handler never called), but the result handler is called as expected in debug build. When I do not populate the String value (in server side Java code) on the object (just set it empty string), the result handler is then called, and the object is returned (release build).
    The custom object being returned in the call is a very a simple object, with getters/setters for simple types boolean, int, String, and one org.23c.dom.Document type. This same object type is used on other other RemoteObject calls (different data) and works fine (release and debug builds). I originally was returning as a Document, but, just to make sure this wasn't the problem, changed the value to be returned to a String, just to rule out XML/Dom issues in serialization.
    I don't understand 1) why the release build vs. debug build behavior is different for a RemoteObject call, 2) why the calls work in debug build when sending over a somewhat large (but, not unreasonable) amount of data in a String object, but not in release build.
    I have't tried to find out exactly where the failure point in size is, but, not sure that's even relevant, since 44kb isn't an unreasonable size to expect.
    By turning on the Debug mode in BlazeDS, I can see the object and it's attributes being serialized and everything looks good there. The calls are received and processed appropriately in BlazeDS for both debug and release build testing.
    Anyone have an idea on other things to try to debug/resolve this?
    Platform testing is BlazeDS 4, Flashbuilder 4.7, Websphere 8 server, iPhone (iOS 7.1.2). Tried using multiple Flex SDK's 4.12 to the latest 4.13, with no change in behavior.
    Thanks!

    After a week's worth of debugging, I found the issue.
    The Java type returned from the call was defined as ArrayList.  Changing it to List resolved the problem.
    I'm not sure why ArrayList isn't a valid return type, I've been looking at the Adobe docs, and still can't see why this isn't valid.  And, why it works in Debug mode and not in Release build is even stranger.  Maybe someone can shed some light on the logic here to me.

  • There was an error while writing data back to the server: Failed to commit objects to server : Duplicate object name in the same folder.

    Post Author: dmface15
    CA Forum: Administration
    I am working in a new enviorment and i am trying to save a report to the Crystal Server via the CMC. I am uploading the report from the objects tab and attempting to save to a folder. The report has 1 static defined parameter and that's it. When i click submit to save the report i receive the following error message: "There was an error while writing data back to the server: Failed to commit objects to server : Duplicate object name in the same folder." There is not a anothe report within the folder with that name. What could be causing this error message and equally important, what is the solution.

    hte message you received about duplicate user probably means something hadn't fully updated yet. Once it did then it worked...
    Regards,
    Tim

  • Failed to load resource: the server responded with a status of 405 (Method Not Allowed) XMLHttpRequest cannot load (WCF service URL). Invalid HTTP status code 405

    Hi,
    while consuming the  WCF service POST method Jquery, getting error in Chrome and firefox, in IE  Its working fine.
    ERROR:Failed to load resource: the server responded with a status of 405 (Method Not Allowed)  XMLHttpRequest cannot load (WCF service URL). Invalid HTTP status code 405.
    Jquery used to call:
    $.support.cors = true
            $.ajax({
                type: "POST",
                url: serviceURL,
                data: JSON.stringify(managedProps),
                useDefaultXhrHeader:false,
                contentType: "application/json; charset=utf-8",
                dataType: "json",
                //processData: true,
                crossDomain: true,
                success: function (data, status, jqXHR) {
                   alert("sucess");
                error: function (xhr) {
                    alert("error");
    WCF sevice Web.config
    <webHttpBinding>
            <!--<binding name="webHttpBindingWithJsonP" transferMode="StreamedRequest" />-->
            <binding name="crossDomain" crossDomainScriptAccessEnabled="true" transferMode="StreamedResponse" />
          </webHttpBinding>
        </bindings>
        <services>
          <service name="DynamicRefinerWCF.DynamicRefiner">
            <endpoint address="" behaviorConfiguration="REST" bindingConfiguration="crossDomain" binding="webHttpBinding" contract="DynamicRefinerWCF.IDynamicRefiner" />
            <endpoint address="mex" binding="mexHttpBinding" contract="DynamicRefinerWCF.IDynamicRefiner" />
            <host>
              <baseAddresses>
                <add baseAddress="http://localhost/example.svc" />
              </baseAddresses>
            </host>
          </service>
        </services>
        <!--<protocolMapping>
            <add binding="basicHttpsBinding" scheme="https" />
        </protocolMapping>-->    
        <!--<serviceHostingEnvironment aspNetCompatibilityEnabled="true" multipleSiteBindingsEnabled="true" />-->
      </system.serviceModel>
      <system.webServer>
        <!--<modules runAllManagedModulesForAllRequests="true"/>-->
        <modules>
          <remove name="WebDAVModule" />
        </modules>
        <handlers>
          <remove name="WebDAV" />
        </handlers>
        <directoryBrowse enabled="true" />
        <httpProtocol>
          <customHeaders>
            <add name="Access-Control-Allow-Origin" value="*"/>
            <add name="Access-Control-Allow-Headers" value="Content-Type"/>
            <add name="Access-Control-Allow-Methods" value="GET, POST, PUT, DELETE, OPTIONS"/>
            <add name="Access-Control-Request-Headers:" value="*" />
            <add name="Access-Control-Request-Method:" value="*" />
          </customHeaders>
        </httpProtocol>
        <!--
            To browse web app root directory during debugging, set the value below to true.
            Set to false before deployment to avoid disclosing web app folder information.
          -->
        <!--<directoryBrowse enabled="true"/>-->
      </system.webServer>
    </configuration>
    Thanks,
    Swathi

    Right on - I have done that a number of times.

Maybe you are looking for

  • If I lose my iphone how do I find my iphone

    I have find my iphone on my iphone but if I lose my iphone how do I find my iphone

  • Stored Procedure and Crystal Report

    Hi, I am using oracle 9i and trying to make a crystal report out of a stored procedure. I am using sys_refcursor type to return the record. I just wonder if it is at all possible to return two or more select statements from different tables using the

  • Script does not define the findserverbehaviors function

    Sud denly when I log into dreamweaver and try to edit a page I get this error. recordsets are no longer listed. I'm not sure where to start on this?

  • CS5 to CS6 actions - button mode broken

    Just upgraded from CS5 to CS6 on the Mac. I've imported our actions (some didn't import at all), but the problem we're having with our actions is that in button mode the action requires that we confirm each step. If I put the view mode to "normal" by

  • Bursting & Automatic eMailing from EBS with subtemplates

    Howdy, We have our purchase orders set up so that with a flag checked our purchasing agents can automatically have the pdf file split by PO number and have each (separate PO) emailed directly to them upon completion of the report (assuming they have