The comments, they do nothing.



  • A guy posted a pretty vague "please fix my code" to the Facebook Connect developers forum.  At least part of his problem is that he took multiple lines of javascript and removed the line breaks without  removing some single-line comments...

    <script type="text/javascript"> function update_user_box() { var user_box = document.getElementById("user"); // add in some XFBML. note that we set useyou=false so it doesn't display "you" user_box.innerHTML = "<span>" + "<fb:profile-pic uid=loggedinuser facebook-logo=true></fb:profile-pic>" + "Welcome, <fb:name uid=loggedinuser useyou=false></fb:name>. the application has been filled with your Facebook account." + "</span>"; // because this is XFBML, we need to tell Facebook to re-process the document FB.XFBML.Host.parseDomTree(); } </script>

     

    http://forum.developers.facebook.com/viewtopic.php?pid=117004#p117004



  •   there's my answer.



  • Here's something WTF-ish:

    <font color="BLUE" size="+1"><</font><font color="RED">script</font> type<font color="BLUE" size="+1">=</font><font color="PURPLE">"text/javascript"</font><font color="BLUE" size="+1">></font><font color="gray">var submitted=false;</font><font color="BLUE" size="+1"><</font><font color="BLUE" size="+1">/</font><font color="RED">script</font><font color="BLUE" size="+1">></font><font color="gray">
    </font>
    <font color="BLUE" size="+1"><</font><font color="RED">iframe</font> name<font color="BLUE" size="+1">=</font><font color="PURPLE">"hidden_iframe"</font> id<font color="BLUE" size="+1">=</font><font color="PURPLE">"hidden_iframe"</font> <font color="RED">style</font><font color="BLUE" size="+1">=</font><font color="PURPLE">"display:none;"</font> onload<font color="BLUE" size="+1">=</font><font color="PURPLE">"if(submitted){window.location='http://statehoodpr.org/index.thankyou.html';}"</font><font color="BLUE" size="+1">></font><font color="BLUE" size="+1"><</font><font color="BLUE" size="+1">/</font><font color="RED">iframe</font><font color="BLUE" size="+1">></font><font color="gray">
    </font>
    <font color="BLUE" size="+1"><</font><font color="RED">form</font> accept<font color="BLUE" size="+1">-</font>charset<font color="BLUE" size="+1">=</font><font color="PURPLE">"UTF-8"</font> action<font color="BLUE" size="+1">=</font><font color="PURPLE">"http://spreadsheets.google.com/formResponse?key=pgRS1645t20FhBrDqATz-Vg&amp;embedded=true"</font>
    enctype<font color="BLUE" size="+1">=</font><font color="PURPLE">"multipart/form-data"</font> method<font color="BLUE" size="+1">=</font><font color="PURPLE">"post"</font> target<font color="BLUE" size="+1">=</font><font color="PURPLE">"hidden_iframe"</font> onsubmit<font color="BLUE" size="+1">=</font><font color="PURPLE">"submitted=true;"</font><font color="BLUE" size="+1">></font><font color="gray">

    </font>



  • @Zecc said:

    Here's something WTF-ish:
    <font color="BLUE" size="+1"><</font><font color="RED">script</font> type<font color="BLUE" size="+1">=</font><font color="PURPLE">"text/javascript"</font><font color="BLUE" size="+1">></font><font color="gray">var submitted=false;</font><font color="BLUE" size="+1"><</font><font color="BLUE" size="+1">/</font><font color="RED">script</font><font color="BLUE" size="+1">></font>

    <font color="BLUE" size="+1"><</font><font color="RED">iframe</font>
    name<font color="BLUE" size="+1">=</font><font color="PURPLE">"hidden_iframe"</font>
    id<font color="BLUE" size="+1">=</font><font color="PURPLE">"hidden_iframe"</font>
    <font color="RED">style</font><font color="BLUE" size="+1">=</font><font color="PURPLE">"display:none;"</font>
    onload<font color="BLUE" size="+1">=</font><font color="PURPLE">"if(submitted){window.location='http://statehoodpr.org/index.thankyou.html';}"</font><font color="BLUE" size="+1">></font>

    <font color="BLUE" size="+1"><</font><font color="BLUE" size="+1">/</font><font color="RED">iframe</font><font color="BLUE" size="+1">></font>
    <font color="BLUE" size="+1"><</font><font color="RED">form</font>
    accept<font color="BLUE" size="+1">-</font>charset<font color="BLUE" size="+1">=</font><font color="PURPLE">"UTF-8"</font>
    action<font color="BLUE" size="+1">=</font><font color="PURPLE">"http://spreadsheets.google.com/formResponse?key=pgRS1645t20FhBrDqATz-Vg&amp;embedded=true"</font>
    enctype<font color="BLUE" size="+1">=</font><font color="PURPLE">"multipart/form-data"</font>
    method<font color="BLUE" size="+1">=</font><font color="PURPLE">"post"</font>
    target<font color="BLUE" size="+1">=</font><font color="PURPLE">"hidden_iframe"</font>
    onsubmit<font color="BLUE" size="+1">=</font><font color="PURPLE">"submitted=true;"</font>
    <font color="BLUE" size="+1">></font>

    FTFY so it doesn't go off-screen


Log in to reply