vendita cialis in svizzera acheter tadalafil generique tadalafil preis köpa viagra på apoteket viagra sin receta españa generique cialis 10mg cialis presentacion y precio viagra apotek venta viagra online viagra kosten viagra preis viagra piller pris viagra per nachnahme bestellen precio viagra en españa viagra resept
cialis donne levitra receta medica viagra rezeptfrei länder clomid achat cialis naturale in farmacia achat viagra ou cialis pas cher levitra kaufen viagra korvattavuus pris cialis comprar vardenafil viagra x le donne commander kamagra levitra indien prix du viagra au maroc viagra voor vrouwen kopen

Internal Apps In Firefox

This post is probably highly irrelevant unless you work at Capgemini and want to use the internal nordic applications in Firefox.

Read on if you want to access systems like CTR (time reporting), Event calendar, Skills database, PDR, Project forms or similar applications in Firefox.

Problem is that the systems are not accessible at all if you’re not logged in. The reason is some extremely malformed HTML. Here is the entire content of the HTML page sent out:

<!– CFIF (#Cookie.CFId# LT 10000) –>
<!– CFLOCATION URL=”/applikationer/Login/CleanUp.cfm” Addtoken=”NO” –>
<!– /CFIF —>

<HTML>
<HEAD>
<TITLE>CTR System</TITLE>
</HEAD>

<!– No Cookie –>

<FORM Name=”ssoRedirect” Method=”Post” Action=”https://sso.capgemini.com/gate.asp”>
<INPUT Type = “hidden” Name=”calling_url” Value=”http://applications.capgemini.se/Applications/CTR/CTR.cfm?”>
<INPUT Type = “hidden” Name=”server_identifier” Value=”applications.capgemini.se”>
</FORM>

<SCRIPT Language=”javascript”>
document.forms['ssoRedirect'].submit()
</SCRIPT>

Several problems here: Content outside of HTML element. No body element. No end HTML tag. And the most critical that triggers this particular problem: The form element and the SCRIPT element are outside the body.

IE has an interpretation of this illegal structure: It creates a body element and fills in the SCRIPT and FORM tag into them.

Firefox guesses differently. It moves the FORM element to the body as well, but the SCRIPT element is put in the HEAD section. The consequence is that the form submit happens before the FORM element is rendered. And it gives a JavaScript error that the form is not found.

I wrote a Greasemonkey script that essentially posts the form again (and Greasemonkey is not triggered until DOM is loaded).

Install greasemonkey script:

capinternal_systems_login_nordic_apps.user.js (version 1.0 created 2009-09-23)

If you want to improve on it or add more for more internal systems, feel free to fork this gist on Github http://gist.github.com/191896

One Response to “Internal Apps In Firefox”

  1. interpreting Says:

    It is really a great post that allows you to learn a lot from your post. The post about HTML was really awesome as it has helped quite a lot to me.