Why does my Web Handler work with Internet Explorer, but not with Firefox

I am trying to develop a web page that uses the Simile Timeline (http://code.google.com/p/simile-widgets/wiki/Timeline) with data from SQL Server.
In initial testing of my timeline I tested it with Example.xml, a static XML file in the correct format to be event data. I wrote the following in the appropriate place within mytimeline's Javascript: -
var WebHandler = "Example.xml"
tl.loadXML(WebHandler, function (xml, url) { eventSourceFamily.loadXML(xml, url) });
This worked fine with both Firefox and Internet Explorer. I then changed the assignment to
var WebHandler = "GDBTimeline.ashx?Type=Family&Userid=" + getControlValue("input", "hdnUser");
so that invoked a web handler that could look up the SQL database and return the XML that I wanted, and wrote this web handler.
This works perfectly with Internet Explorer, but with FireFox the timeline band is blank. Yet when I examine the http traffic with Fiddler2 (http://www.fiddler2.com/fiddler2/) I see that with either browser there is a response from URL
/GDB_pages/GDBTimeline.ashx?Type=Family&Userid=robertb
that returns the XML that it is supposed to.
I have previously used web handlers with Firefox before, with no problems. The Fiddler results conclusively show that the web handler is invoked, and returns the appropriate XML, and this XML is identical to the XML from the static test with Example.xml.
Where do I start looking for answers? I don't even know if this is a Simile problem, a Firefox problem, or an ASP.NET problem.
Thank you, Robert.

Problem solved. The issue: Content Type was not correct.
Visual Studio creates the web handler with dummy code like this: -
Public Sub ProcessRequest(ByVal context As HttpContext) Implements IHttpHandler.ProcessRequest
context.Response.ContentType = "text/plain"
context.Response.Write("Hello World")
End Sub
I wrote a database query that set a string variable to the XML I wanted: -
Public Sub ProcessRequest(ByVal context As HttpContext) Implements IHttpHandler.ProcessRequest
Dim Outstring as string
' my logic to fill Outstring with XML
context.Response.ContentType = "text/plain"
context.Response.Write(Outstring)
End Sub
This works with Internet Explorer. However it's not strictly correct: to make it work with other browsers as well,
context.Response.ContentType = "text/plain"
should be
context.Response.ContentType = "text/xml"
It now works with IE, FF, and Chrome, and presumably all others.

Similar Messages

  • Cannot expand viewer for ESPN3. The task bar at the bottom is not visable. It works with Internet Explorer, but not with FireFox

    There is a task bar that should be visible so you can expand the viewer to the full size of your computer screen. I can open up internet explorer and it works, but not in FireFox. This is when using ESPN3, or ESPNWATCH.

    A good place to ask questions and advice about web development is at the mozillaZine Web Development/Standards Evangelism forum.
    The helpers at that forum are more knowledgeable about web development issues.
    You need to register at the mozillaZine forum site in order to post at that forum.
    See http://forums.mozillazine.org/viewforum.php?f=25
    You need to post a link to the website or post relevant parts of the code.

  • Why does the Java script work on my RSS feed work for Internet explorer but not for Firefox?

    I have finished building the website for my Girlfriend and the only thing left is the RSS feed. It works just fine in IE 8 but in Fire Fox 9 when the widget is clicked a bookmark box pops up and asks if I want to save it as a bookmark. I am not a Java script programer so I am hoping for some help here!! Here is the script:
    <li id="rss"><a href="http://www.susangabrielle.com/1/feed" title="RSS" alt="rss"><img src="/files/theme/rss.png"></a></li>
    The sight is http://www.susangabrielle.com

    Presumably you fixed it, the RSS seems to work for me
    * e.g. http://www.susangabrielle.com/1/post/2012/01/post-title-click-and-type-to-edit.html <br/> although I get a message about missing plugins

  • The respond button on eBay works with Internet Explorer, but NOT with Firefox.

    The "Ask a question
    == This happened ==
    Every time Firefox opened
    == Yesterday

    Maybe something is preventing javascripts working. Do you have javascript enabled? (Options > Content)
    Are you running any blocking add-ons like NoScript?
    [[Basic Troubleshooting]]

  • Photos on craig's list show up using Internet Explorer, but not with Firefox....how can I fix this?

    Photos from craig's list show up on Internet Explorer but not on Firefox....how can I fix this?

    Try this css for the image: https://hacks.mozilla.org/2009/06/moz-box-shadow/

  • Microsoft adcenter ad titles appear in internet explorer but not in firefox in English

    Microsoft adcenter ad titles appear in internet explorer but not in firefox in English
    Tried Microsoft help but so far unable to identify problem.
    Thought it might be connected to java but removal of java makes no difference
    Starting in safe mode resolves problem but about 500 add ons suspected

    If it does work in Safe-mode then disable all your extensions and then try to find which is causing it by enabling one at a time until the problem reappears.<br />
    You can use "Disable all add-ons" on the [[Safe mode]] start window to disable all extensions.<br />
    You have to close and restart Firefox after each change via "File > Exit" (Mac: "Firefox > Quit"; Linux: "File > Quit")
    See [[Troubleshooting extensions and themes]]
    * If you have many extensions then you can first enable half of the extensions to test which half has the problem.
    Continue to divide the bad half that still has the issue until you find which one is causing it.

  • Epson artison 810 wireless printing works with internet explorer, but not mozilla

    New printer. I can print web pages with internet explorer, but when I use mozilla nothing happens.

    See this: <br />
    [http://kb.mozillazine.org/Problems_printing_web_pages]

  • Why is it that I can recieve my banking information from a website on Internet Explorer but not on FireFox

    I can gain access to my bb&t banking account on Internet Explorer but when I try to enter the same website on FireFox the following message appears:
    Service Unavailable
    The server is temporarily unable to service your request.
    Explanation
    The server is unable to service a request because a needed resource is unavailable.
    Solution
    Please try again later.

    Hi, I have the same problem, but I have been using firefox 10 for some time. Everything worked well until 3 days ago, when I could not access my internet banking account. As above, I got a service unavailable message from my bank.
    I can connect with internet explorer and safari. I have removed firefox 10 and reinstalled it, but still can not access my bank.
    Any ideas

  • Unable to use all the feature of my email service (Juno on the web) like; font size/color, bolding, italics, highlighting etc why? Those features work through Internet Explorer but not Firefox.

    When I go to my Juno on the web through Firefox, I am unable to use the tool features such as:
    Font size / Color
    Bolding
    Italics
    Bullets
    Highlighting
    just to name a few. Yet when I bring it up through Internet Explorer these features work, plus the way Firefox reads my Juno the tabs are distorted (the page is not formatted correctly, I contacted Juno they said I should contact my modem company AT& T they said no so you are my last resort.. Please help resolve my issue, THANK YOU in advance for assisting with this matter.

    It is up to Juno to enable Midas, the Rich Text Editor which is built into Firefox, with one little line of code on every web page that has RTE for IE. There's nothing that you can do to turn that feature on your self, it has to be coded on each web page that has Rich Text Editing.
    http://www.mozilla.org/editor/midas-spec.html <br />
    http://kb.mozillazine.org/Midas
    Their ignorance probably lies with their staff programmers only knowing how to do it for IE ''(their training and certificates are probably from the Microsoft cabal)'', and not realizing that Gecko and WebKit apps each have their own Rich Text Editor's, which require their own small line of code to enable those Editor's.

  • Why does Build Application vi work in development environment but not in executable; error 1025

    Hello,
    I have an application ("A") that I am trying to build using another application ("BuildA").
    I can create an application for A manually from its project using the Build Specification, and it works fine (A.exe).
    Also, when I run BuildA.vi in the development environment it calls the "Build.vi" correctly and again builds application A.exe just fine.
    Then, when I make BuildA an application (manually) and run BuildA.exe, I would expect it to also create A.exe just like BuildA.vi did in the development environment.
    However, it fails with the error:
    Code: 1025
    Open VI Reference in NI_App_Builder_API.lvlib:Build (path).vi->BuildA.vi<APPEND>
    VI Path: <b>C:\TEMP\AppBuild\BuildA\vi.lib\AppBuilder\BuildTarget.vi</b>
    I noticed this thread , which looks like a similar problem, but no conclusion was reached.
    Why does BuildA.vi work fine in the LabVIEW environment, but the application BuildA.exe does not work?  All paths are hard-coded, so it shouldn't be a path issue.
    Thanks,
    -john
    Solved!
    Go to Solution.
    Attachments:
    AppBuild.zip ‏175 KB

    Interesting code.  I'm curious how you came to decide 324ms in your while loop, and 58 in the other, and then 5136ms at the end.  In any case I suspect this has to do with this line of text in the help of the Build.vi.
    If you plan to run a build specification on the LabVIEW Run-Time Engine, do not include the Build VI in any of the VIs for the build specification.
    I don't fully know what this means but it might be why it isn't working.
    The Build.vi opens all Context (application instances) and then looks for the one named "NI.LV.MxLvProvider".  This I assume is a application instance NI uses to build applications.  It then uses this and opens some other VIs in this instance for the building.  The error you are getting is "Application Reference is invalid" meaning it couldn't find the NI.LV.MxLvProvider instance it needs to build.  Again I believe this maybe because you are in a run-time environment and that instance doesn't exist there.
    At the end of the day I'm guessing since Application Builder is not free, NI probably doesn't include it in the Run-Time engine, which is free.  So you can't build the way you want.  You could have and EXE running in the run-time open an instance in the development, then run your VI from there if you must make this an EXE.  It maybe easier to just edit the BuildA.vi to have a "Run When Opened" so that you double click the VI and it runs which behaves like an EXE sorta.
    Unofficial Forum Rules and Guidelines - Hooovahh - LabVIEW Overlord
    If 10 out of 10 experts in any field say something is bad, you should probably take their opinion seriously.

  • Can watch You Tube vidoes on Internet Explorer but not with Firefox. Why?

    This problem has only cropped recently. I don't seem to be able to watch online vidoes - you tube & others - with Firefox (I have the latest version 32) anymore. They start loading & playing & then sit there trying to load but won't go any further. On the other hand, I can use my older version of Internet Explorer to watch the same videos not problem. The play smoothly without stopping & starting. They play as the load. What had changed with my Firefox please? How do I fix this? I am still using Windows XP so prefer not to use Internet Explorer anymore. I hope someone had a simple answer and I don't have heaps of time to trawl through all the questions & answers on the forum! Thanks in advance :)

    Hello,
    Some problems with Flash video playback can be resolved by disabling hardware acceleration in your Flash Player settings. (See [[Flash Plugin - Keep it up to date and troubleshoot problems|this article]] for more information on using the Flash plugin in Firefox).
    To disable hardware acceleration in Flash Player:
    #Go to this [http://helpx.adobe.com/flash-player/kb/video-playback-issues.html#main_Solve_video_playback_issues Adobe Flash Player Help page].
    #Right-click on the Flash Player logo on that page.
    #Click on '''Settings''' in the context menu. The Adobe Flash Player Settings screen will open.
    # Click on the icon at the bottom-left of the Adobe Flash Player Settings window to open the Display panel. <br/> <br/>[[Image:fpSettings1.PNG]] <br/>
    # Remove the check mark from '''Enable hardware acceleration'''.
    # Click '''Close''' to close the Adobe Flash Player Settings Window.
    # Restart Firefox.
    This [http://www.macromedia.com/support/documentation/en/flashplayer/help/help01.html Flash Player Help - Display Settings page] has more information on Flash Player hardware acceleration, if you're interested.
    Also, unrelated to Flash, the latest version of Firefox is version 33, you can update either by going to:
    * Help (or [[Image: New Fx Menu]] > [[Image: Help-29]]) > About Firefox
    Or download a fresh copy at:
    * https://www.mozilla.org/en-US/firefox/new/
    * (if you need a different localization) https://www.mozilla.org/en-US/firefox/all/
    Does this solve the problem? Let us know.

  • Flex Plugin that calls Webservice works in Internet Explorer but not firefox

    I created a simple flex plugin that consumed a web service i
    built and was working with it locally. I uploaded the files to the
    server, and when i test the file out in internet explorer, the
    plugin loads great. However when firefox or any other browser
    attempts to load the same file i get "Http Request Error"? I've got
    a crossdomain.xml loaded up.. here it is:
    <?xml version="1.0"?>
    <!DOCTYPE cross-domain-policy
    SYSTEM "
    http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">
    <cross-domain-policy>
    <allow-access-from domain="*" secure="false" />
    </cross-domain-policy>
    Any ideas? Thanks. I should note that the webservice and the
    plugin are both on the same domain.

    I was playing around some more, when i yank the
    crossdomain.xml, both browsers display a security error, but when i
    put it back in, internet explorer is happy but firefox still spits
    out "Http Request Error"

  • I have flashplayer which works in Internet Explorer but not some sites using Firefox. I refreshed but no change and i DID lose all my bookmarks. Help!

    Listening to BBC Radio was possible until today but now in Firefox I'm told to install Flashplayer. i have tried that 3 times but with no effect. The same with videos on BBC and some other sites but on others it works. If I use Internet Explorer everything is fine. So there is clearly an interface problem with Firefox which has only just started. I tried refreshing believing that it would retain all my favourites and other information/settings but most were lost. I'm 73 not technical so a simple solution if possible please.

    Look on your desktop. Do you see a folder called; '''Old Firefox?'''
    '''https://support.mozilla.org/en-US/kb/recovering-important-data-from-an-old-profile'''
    '''https://support.mozilla.org/en-US/kb/back-and-restore-information-firefox-profiles'''
    These can't get your data back, but will help in the future.
    These add-ons can be a great help by backing up and restoring Firefox
    '''[https://addons.mozilla.org/en-US/firefox/addon/febe/ FEBE (Firefox Environment Backup Extension)]''' {web link}
    FEBE allows you to quickly and easily backup your
    Firefox extensions, history, passwords, and more.
    In fact, it goes beyond just backing up -- It will actually rebuild
    your saved files individually into installable .xpi files.
    It will also make backup of files that you choose.
    '''[https://addons.mozilla.org/en-US/firefox/addon/opie/ OPIE]''' {web link}
    Import/Export extension preferences

  • I am unable to change the zipcode on Comcast xfinity tv guide. I tried clearing the cache, didn't help. I can change it on Internet Explorer, but not on firefox. Any ideas?

    I cannot find the option to clear cookies, does that exist on /firefox?

    Are you logged in to comcast or xfinity on IE, and not in Firefox.

  • Why does the flash player work on some website but not others??

    I have the new flash player, and for the most part the player will work on some web sites. However I like to be on myspace and it says that I have to install the new version of the flash player. However I ALREADY have the new verison. There are other site that I go to as well and it tells me the same thing. what is going on and how can I fix it. I am at my wits ends right now and I dont know what to do. Can any one help me please

    I had the same issue when I had created Flash Paper items. I had found the a solution on my opinion.
    http://www.eolsoft.com/freeware/flash_movie_player/
    you actually need a Flash Movie Player and not Flash Player. they are different. the only issue is that Adobe does not support this anymore.
    so what I did is placed the EXE file of Flash Movie Player found on the link above on my server, made a note to my viewers that Flash Movie Player is required to view the documents.
    I found this solutlion when my boss asked why he could not view any of the Flash Paper Documents

Maybe you are looking for

  • Creating a clone of MBP for future transfer to new Mac

    Hi Using CCC and a 1TB external drive, I have just created a full version clone of my current 13" MBP 1TB (it boots okay, apps work fine, Parallels works fine, so all looks good).  My purpose is that I want to give the MBP to a good friend and buy a

  • Few more questions (sorry I'm 22 and new)

    Let me just say you guys are amazing, this entire community and how you support eachother... Ive strolled through just about every post in rebuilding section for the most recent 20 pages and must say, everyone here is absolutely glorious. However I h

  • 'adobe' is null or not an object...what does this mean???

    I keep trying to download flash player but every time I come on to the adobe website there are always errors on the page that range from the 'null object' thing, to 'access denied to flash (or adobe flash)'.  I've adjusted the security settings (enab

  • Login and site in general

    I must admit that I am frustrated. This is day #2 trying to download Oracle Migration Workbench and the plug-ins for specific databases. user is tsduncan Started when my login was rejected by OTN as "invalid login/password". tried to add it thinking

  • Updation of order value in T code FD33

    Hi, I am facing a problem of incorrect updation of order value in T code FD33 (Customer credit management-Display). When I analyzed the individual data, I could find that the value of particular Sales document type (ZCAL) is not getting updated in FD