Overlay for facebox lightbox script not wirking in Internet Exporer

Hi,

I posted the other week about getting form data into 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/facebox/sendformtofacebox.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/

<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>

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:

<!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.

Good to hear you’ve got it sorted.

Amazing what effect that can have!
We should make that into a sticky thread and force people to read it before posting here.

:slight_smile: