sie source code displays in firefox

Discussion in 'Web Development & Web Hosting' started by Japanese Elvis, Aug 3, 2006.

  1. Japanese Elvis

    Japanese Elvis Nibble Poster

    84
    4
    20
    Ok folks, be nice to me please 'cos I'm way out of my depth with this one.

    A nephew of mine made a site for my wife's new business. The site looks ok and seems to work ok in IE, but there's a problem in Firefox - only the source code is displayed.

    I have discovered that if the pages are saved with .htm extensions then firefox seems to read it ok.

    Will I just have to replace all the .asp files with .htm files and change all the internal links?

    The site in question is www.gloriosaflorist.co.uk

    the default page is an htm file so should work in either browser.

    I have access to dreamweaver and frontpage.

    Thanks
     
    Certifications: A+, Network+, MCSA Server 2003
    WIP: Get a job?
  2. Mr.Cheeks

    Mr.Cheeks 1st ever Gold Member! Gold Member

    5,373
    89
    190
    is your homepage .htm and the rest .asp?

    edit: just noticed your already mentioned that
     
  3. SimonV
    Honorary Member

    SimonV Petabyte Poster Gold Member

    6,651
    180
    258
    I've no idea why firefox is doing this to be honest! :(

    My first question is what is in the site that requires asp? There is some java script embeded in the pages but that can be done in html pages anyway.
     
    Certifications: MOS Master 2003, CompTIA A+, MCSA:M, MCSE
    WIP: Keeping CF Alive...
  4. hbroomhall

    hbroomhall Petabyte Poster Gold Member

    6,624
    117
    224
    Have a look here.

    Note that the server-side non-standard ASP header line is also disfigureing the main page as well, when viewed in FF.

    Harry.
     
    Certifications: ECDL A+ Network+ i-Net+
    WIP: Server+
  5. Japanese Elvis

    Japanese Elvis Nibble Poster

    84
    4
    20
    Thanks for the replies so far.

    "what is in the site that requires asp?"

    -errm..., don't know. I didn't write it and my knowledge of these things is limited (i.e. nil)

    "the server-side non-standard ASP header line is also disfigureing the main page "

    I had noticed that. I've no idea what the purpose of this code is, but the page seems to work ok if this line is removed.

    A solution appears to be to save all the pages with htm extensions rather than asp, and to change all the links in the site accordingly.

    I initially changed the default page to htm after it didn't appear when it was uploaded. I just guessed at that solution.

    I'm learning about this in the good old fashioned take it apart and see what it does style.

    Thanks for the hints, please feel free to add further comments.
     
    Certifications: A+, Network+, MCSA Server 2003
    WIP: Get a job?
  6. hbroomhall

    hbroomhall Petabyte Poster Gold Member

    6,624
    117
    224
    At least one of the other pages also has that asp line at the start - I suggest you go through them editing it out.

    Harry.
     
    Certifications: ECDL A+ Network+ i-Net+
    WIP: Server+
  7. hbroomhall

    hbroomhall Petabyte Poster Gold Member

    6,624
    117
    224
    I see that the server is in fact Apache. I suspect that the config file hasn't had asp added to its file types - as it is handing these pages out as text/plain rather than text/html.

    Harry.
     
    Certifications: ECDL A+ Network+ i-Net+
    WIP: Server+
  8. Japanese Elvis

    Japanese Elvis Nibble Poster

    84
    4
    20
    Thanks Harry.

    Apologies for being a bit dim, but is that something I should contact the hosting company about to see if they can address the issue?
     
    Certifications: A+, Network+, MCSA Server 2003
    WIP: Get a job?
  9. Bluerinse
    Honorary Member

    Bluerinse Exabyte Poster

    8,878
    181
    256
    For what it's worth JE the same issue happens in Opera :wink:
     
    Certifications: C&G Electronics - MCSA (W2K) MCSE (W2K)
  10. Boycie
    Honorary Member

    Boycie Senior Beer Tester

    6,281
    85
    174
    Hi,

    Did your friend create this in Frontpage? It works fine in IE7 by the way.

    Si
     
    Certifications: MCSA 2003, MCDST, A+, N+, CTT+, MCT
  11. hbroomhall

    hbroomhall Petabyte Poster Gold Member

    6,624
    117
    224

    IMHO the probable best answer goes like this:

    As it is Apache running on some Unix on the hosting site they are unlikely to want, or be able (at a reasonable price) to deal with ASP. So go back to the original web pages and set the web-site type to something like 'non microsoft' or 'standard' or 'apache'. Then export and upload again.

    And thump the nephew (gently) upside the head for not checking things properly. :biggrin

    And, BTW, avoid Frontpage.

    Harry.
     
    Certifications: ECDL A+ Network+ i-Net+
    WIP: Server+
  12. hbroomhall

    hbroomhall Petabyte Poster Gold Member

    6,624
    117
    224

    I'm not surprised. IE7 has the same standard errors as previous versions!

    Harry.
     
    Certifications: ECDL A+ Network+ i-Net+
    WIP: Server+
  13. Boycie
    Honorary Member

    Boycie Senior Beer Tester

    6,281
    85
    174
    yeah, and i was silly enough to install it. :oops:

    Si
     
    Certifications: MCSA 2003, MCDST, A+, N+, CTT+, MCT
  14. hbroomhall

    hbroomhall Petabyte Poster Gold Member

    6,624
    117
    224
    According to statements I've seen many people will soon suddenly find that they have installed it, as M$ are intending to include it as a 'critical' in their updates.

    Good job I force a review of all updates before they get installed. :ohmy

    Harry.
     
    Certifications: ECDL A+ Network+ i-Net+
    WIP: Server+
  15. Boycie
    Honorary Member

    Boycie Senior Beer Tester

    6,281
    85
    174
    Harry,

    Makes good sense. Do you use XP as your main personal system?]

    Si
     
    Certifications: MCSA 2003, MCDST, A+, N+, CTT+, MCT
  16. hbroomhall

    hbroomhall Petabyte Poster Gold Member

    6,624
    117
    224
    At home - yes. There is also a FreeBSD box acting as a general purpose server, along with a Win98SE box for older stuff that won't work with later hardware.

    This ignores the collection of even older machines - mostly in the attic.

    Harry.
     
    Certifications: ECDL A+ Network+ i-Net+
    WIP: Server+
  17. Japanese Elvis

    Japanese Elvis Nibble Poster

    84
    4
    20
    Thanks one and all.

    As far as I know the site was produced with Dreamweaver. I've subsequently altered bits and bobs using both Dreamweaver and Frontpage.

    I contacted the hosts and they said I should upgrade to a different package to ensure asp works ok.

    Depending on the cost I may do this, but if all I have to do is change a few extensions and delete a couple of lines of text then I'll go for that route - at no cost.

    Thanks again.

    Oh yes, and I'm avoiding IE7 at the mo as well. And I'm very careful and choosy about what updates I install, I've been more than a wee bit annoyed at some of the things that were 'critical' in the past.
     
    Certifications: A+, Network+, MCSA Server 2003
    WIP: Get a job?

Share This Page

Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.