Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Web Programming > JavaScript > Javascript
|
Javascript General Javascript discussions.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Javascript section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 8th, 2005, 12:30 PM
Friend of Wrox
 
Join Date: Jan 2005
Posts: 1,525
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to crmpicco Send a message via AIM to crmpicco Send a message via MSN to crmpicco Send a message via Yahoo to crmpicco
Default

* ignore any code that does not refer to the insertCell method. thanks

www.crmpicco.co.uk
 
Old November 9th, 2005, 07:11 AM
Friend of Wrox
 
Join Date: Jan 2005
Posts: 1,525
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to crmpicco Send a message via AIM to crmpicco Send a message via MSN to crmpicco Send a message via Yahoo to crmpicco
Default

the fix:

Code:
// Build the Header for the Mini Rules / MINMAX Stay / Contract Info div display
function build_header(id,airline,contract,title,fareId)
{    
    headerRow = document.getElementById("demodiv_SpecialInfo").insertRow(1);    
    cell2 = headerRow.insertCell(0);
    cell2.noWrap = "true";
    cell2.innerHTML = "Airline:  ";
    cell2.innerHTML = cell2.innerHTML + airline; // Insert the Airline Name into the cell

    cell4 = headerRow.insertCell(1);
    cell4.noWrap = "true";
    cell4.innerHTML = "Title:  ";

    // If the length of the Contract title is too long to
    // display then cut it up and only show first 55 chars
    if (title.length > 60)
    {
        var temp = title;
        var temp_title = temp.slice(0,55);
        cell4.innerHTML = cell4.innerHTML + temp_title + "...";        
    }
    else
    {
        cell4.innerHTML = cell4.innerHTML + title;  // Insert the Contract Title into the cell
    }

    cell3 = headerRow.insertCell(2);
    cell3.noWrap = "true";
    cell3.innerHTML = "Contract:  ";
    cell3.innerHTML = cell3.innerHTML + contract; // Insert the Contract Code into the cell

    cell = headerRow.insertCell(3);
    cell.align = "right";
    cell.noWrap = "true";
    cell.innerHTML = "ID:  ";
    cell.innerHTML = cell.innerHTML + id + " / " + fareId; // Insert the Contract ID / Fare Id into the cell
}

// Delete the header information from the HTML table onmouseOUT of the IMAGE
function delete_header(id,airline,contract,title,fareId)
{
    var d_headerRow = document.getElementById("demodiv_SpecialInfo");

    d_headerRow.deleteRow(0);

    if(d_headerRow.rows.length>1)
    {
        d_headerRow.deleteRow(1);    
    }
}

www.crmpicco.co.uk
 
Old November 9th, 2005, 07:17 AM
Friend of Wrox
 
Join Date: Jan 2005
Posts: 1,525
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to crmpicco Send a message via AIM to crmpicco Send a message via MSN to crmpicco Send a message via Yahoo to crmpicco
Default

Code:
// Make the DIV disappear
function fadeOut(obj)
{
    if (navigator.appName == "Microsoft Internet Explorer")
    {
        obj.style.filter="blendTrans(duration=0.5000)";
        if (obj.filters.blendTrans.status != 0.5000)
        {
            obj.filters.blendTrans.apply();
            obj.style.visibility="hidden";
            obj.filters.blendTrans.play();
        }
        if((document.form.booking_details_minimized)!=null)
        {
            booking_details_minimized.style.filter="blendTrans(duration=1)";
            if (booking_details_minimized.filters.blendTrans.status != 1)
            {
                booking_details_minimized.filters.blendTrans.apply();
                booking_details_minimized.style.visibility="hidden";
                booking_details_minimized.filters.blendTrans.play();
            }
        }
    }
    else
    {        
        obj.style.visibility="hidden";
    }
}

// Make the MiniRules gradually appear
function fadeIn(obj)
{
    if (navigator.appName == "Microsoft Internet Explorer")
    {
        obj.style.filter="blendTrans(duration=0.5000)";
        if (obj.filters.blendTrans.status != 0.5000)
        {
           obj.filters.blendTrans.apply();
           obj.style.visibility="visible";
           obj.filters.blendTrans.play();
        }
    }
    else if (navigator.appName == "Netscape")
    {        
        //var element = document.getElementById(obj);
        //element.style.MozOpacity = 0.5;
        obj.style.visibility = "visible";
    }
}
this is the code i have currently for a fade/in out effect. however, it only works in IE, not in FF as you can see in my condition.

is there any piece of code i can put into the condition to run the fadein on FF?

www.crmpicco.co.uk
 
Old November 9th, 2005, 11:15 AM
richard.york's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 1,706
Thanks: 0
Thanked 6 Times in 6 Posts
Default

This thread has ran it's course, and has gone completely off-topic, so it has been locked.

In the future please keep your posts on topic. On topic means that your posts pertain completely to HTML or XHTML code. Javascript posts belong in one of the Javascript forums.

Regards,
Rich

--
[http://www.smilingsouls.net]
Mail_IMAP: A PHP/C-Client/PEAR solution for webmail
Author: Beginning CSS: Cascading Style Sheets For Web Design





Similar Threads
Thread Thread Starter Forum Replies Last Post
Css layout not work well in Firefox kumiko CSS Cascading Style Sheets 0 March 31st, 2008 10:27 AM
cant get beerhouse Login to work in FireFox br BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 2 October 7th, 2006 12:09 AM
CMS doesn't appear to work with Firefox 1.5 abel714 BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 3 September 18th, 2006 10:45 AM
Why does this work in Firefox but not in IE???? Ov1 Javascript 2 August 11th, 2006 05:47 AM
code in CH11 not work in FireFox din BOOK: Professional JavaScript for Web Developers ISBN: 978-0-7645-7908-0 2 January 18th, 2006 09:21 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.