SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Zealot boognish's Avatar
    Join Date
    Sep 2005
    Location
    Leeds
    Posts
    102
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Overlay for facebox lightbox script not wirking in Internet Exporer

    Hi,

    I posted the other week about getting form data into a lightbox...
    http://www.sitepoint.com/forums/show...-to-a-lightbox

    The thread is now closed as it was resolved, however I'm currently doing browser testing on the page, and there seems to be an issue on the facebox lightbox overlay not working in internet explorer (works in chrome, firefox)...
    http://www.searchlabtest.com/oj/ (click 'search actuarial jobs now' in internet explorer).

    Can anyone tell me how I can get it working in internet explorer?

    These is all the scripts related to facebox...
    http://www.searchlabtest.com/oj/facebox/src/facebox.css
    http://www.searchlabtest.com/oj/face...rmtofacebox.js
    http://www.searchlabtest.com/oj/facebox/src/facebox.js
    http://www.searchlabtest.com/oj/var.php

    and the form which activates and posts to facebox http://www.searchlabtest.com/oj/ ....
    Code:
    <form id="sendToFacebox" action="var.php" method="POST">
            <div class="searchgap">
              <select id="o3" name="o3" class="custom">
                <option value="">All Job Types</option>
                <option value="261">Contract</option>
                <option value="262">Permanent</option>
              </select>
            </div>
            <div class="searchgap2">
              <select id="o2" name="o2" class="custom">
                <option value="">All locations</option>
                <option value="653">East Anglia</option>
                <option value="701">Scotland</option>
                <option value="728">South West</option>
                <option value="740">Wales</option>
                <option value="893">London</option>
                <option value="894">North East</option>
                <option value="896">Midlands</option>
                <option value="897">South East</option>
                <option value="1134">North West</option>
                <option value="1135">Yorkshire</option>
                <option value="1136">Channel Islands</option>
                <option value="1198">Asia</option>
                <option value="1137">Australasia</option>
                <option value="1200">Europe</option>
                <option value="1202">Middle East</option>
                <option value="1203">North America</option>
              </select>
            </div>
            <div class="searchbutton">
              <input type="image" src="images/search.jpg"  />
            </div>
          </form>

  2. #2
    Gre aus'm Pott gold trophysilver trophybronze trophy
    Pullo's Avatar
    Join Date
    Jun 2007
    Location
    Germany
    Posts
    5,938
    Mentioned
    214 Post(s)
    Tagged
    12 Thread(s)
    Howdy,

    Your page is missing a doctype, IE is therefore running in quirks mode and this is (probably) what's killing your overlay.
    Try inserting this at the very beginning of your page:

    Code HTML4Strict:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

    Does that help.

    FWIW, IE10 displays the overlay just fine.

  3. #3
    SitePoint Zealot boognish's Avatar
    Join Date
    Sep 2005
    Location
    Leeds
    Posts
    102
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Pullo View Post
    Howdy,

    Your page is missing a doctype, IE is therefore running in quirks mode and this is (probably) what's killing your overlay.
    Try inserting this at the very beginning of your page:

    Code HTML4Strict:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

    Does that help.

    FWIW, IE10 displays the overlay just fine.

    Thank you very much for your reply, I've actually been working on it this morning and appear to have resolved the ie issue. Just did the old 'take out all the scripts and put the page back together' trick and it all seems to be working now. I will add the correct doctype to the page.

  4. #4
    Gre aus'm Pott gold trophysilver trophybronze trophy
    Pullo's Avatar
    Join Date
    Jun 2007
    Location
    Germany
    Posts
    5,938
    Mentioned
    214 Post(s)
    Tagged
    12 Thread(s)
    Good to hear you've got it sorted.

    Quote Originally Posted by boognish View Post
    Just did the old 'take out all the scripts and put the page back together' trick and it all seems to be working now.
    Amazing what effect that can have!
    We should make that into a sticky thread and force people to read it before posting here.



Bookmarks

Posting Permissions

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