Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4

Thread: AJAX help.

  1. #1
    Regular Coder Rachy06's Avatar
    Join Date
    Apr 2006
    Posts
    123
    Thanks
    1
    Thanked 3 Times in 3 Posts

    AJAX help.

    hi... just need a bit of help. On a site that i designed a while ago http://www.cfab.co.uk, there is as you will see, an i-frame, where all of the content loads into. I am aware that i-frames are not very compatible with different browsers other than IE, and can brew up a number of issues.

    I was considering using AJAX instead, but havn't really got to grips with it yet, and haven't a clue where to start...

    any advice???

  • #2
    Master Coder
    Join Date
    Jun 2003
    Location
    Cottage Grove, Minnesota
    Posts
    9,529
    Thanks
    8
    Thanked 1,091 Times in 1,082 Posts
    Actually, there's nothing wrong with <iframes> ...
    I don't know of any browsers that don't support it.

    With your site though, you could use PHP and PHP includes.

    That means that a PHP script would load the contents of
    the <div> where your content appears. It would mean that
    your page would refresh each time, but since everything else
    appears in the same place, it would be seamless.

    But I use <iframes> all the time, and they allow that content to
    refresh without refreshing the whole page.

    I think your site looks and works pretty good the way it is.

    Using Javascripting for navigation would be more of an issue than <iframes>

  • #3
    Regular Coder Rachy06's Avatar
    Join Date
    Apr 2006
    Posts
    123
    Thanks
    1
    Thanked 3 Times in 3 Posts
    thanks for that. i actually checked how the site looked in different browsers and at different screen resolutions. in firefox and opera it looks a bit different to in IE, which I can understand, but it is, however, stilly fully functional.

  • #4
    Master Coder
    Join Date
    Jun 2003
    Location
    Cottage Grove, Minnesota
    Posts
    9,529
    Thanks
    8
    Thanked 1,091 Times in 1,082 Posts
    The differences are because of the CSS and <tables>.
    If you were to re-design the site using only CSS (tableless) and
    not using any hacks for IE, you might get it looking the same in
    all browsers. This includes using a doctype that can be validated.

    You now have this:

    <html>
    <head>
    <meta http-equiv="Content-Language" content="en-gb">


    Doing something more like this, along with valid XHTML/CSS

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <title>Clarion Flooring & Blinds Ltd (formerly Cheshire Flooring & Blinds) - Quality You Can Trust</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />


    That's all part of making a site browser compatible.

    Always design for FF and then adjust for IE (without using hacks).


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •