Page 2 of 4 FirstFirst 1234 LastLast
Results 11 to 20 of 31

Thread: Another gmail feature..

  1. #11
    Join Date
    Jan 2006
    Posts
    15
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Exclamation

    ok kids, that's enough...
    stop the ie vs opera vs firefox stupied wars. they don't bring us anywhere. they are just a bunch of browsers, nothing more, nothing less. for me it's the same if the NYT and the WashingtonPost has fought over their paper and printing technique.

    Anyway, a good javascript to use on gmail pages is as follows:

    javascript:window.clipboardData.setData('Text', window.frames[0].frames[3].document.body.innerHTML).

    Since gmail builds their pages with ajax and JS this will bring you the output of the page after all the functions.
    The idea is taken from the gmail skin:
    http://persistent.info/archives/2004...gmail-skinning

    And now back to the topic - does anyone has any idea how to use a link in order to open a browse dialog and to keep this dialog value ok so the form will submit it?

  2. #12
    Join Date
    May 2006
    Location
    Sydney, Australia - Near the coast.
    Posts
    1,995
    Thanks
    0
    Thanked 8 Times in 7 Posts

    Default

    stop the ie vs opera vs firefox stupied wars. they don't bring us anywhere. they are just a bunch of browsers, nothing more, nothing less.
    FireFox is more secure.
    Internet Explorer is not.

    FireFox is cool.
    Internet Explorer is lame.

    And since when did I mention Opera?

    Edit: And check out Twey's sig - You might find more reasons to avoid IE there
    Last edited by tech_support; 10-09-2006 at 08:06 AM.
    Peter - alotofstuffhere[dot]com - Email Me - Donate via PayPal - Got spare hardware? Donate 'em to me :) Just send me a PM.
    Currently: enjoying the early holidays :)
    Read before posting: FAQ | What you CAN'T do with JavaScript | Form Rules | Thread Title Naming Guide

  3. #13
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    Heh. I'm with Tech on this.
    However, yes, we're off topic.

    Note: gmail was invitation only for the longest time, but now it lets you sign up, but only with a cell phone, which is kinda a pain.

    And, sorry, I really have no idea about the browse question. Someone may in a bit. We'll see. I'm curious now.
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

  4. #14
    Join Date
    May 2006
    Location
    Sydney, Australia - Near the coast.
    Posts
    1,995
    Thanks
    0
    Thanked 8 Times in 7 Posts

    Default

    btw: is it possible to change the label on the brose button from "browse.." to something else?
    No you can't.
    Peter - alotofstuffhere[dot]com - Email Me - Donate via PayPal - Got spare hardware? Donate 'em to me :) Just send me a PM.
    Currently: enjoying the early holidays :)
    Read before posting: FAQ | What you CAN'T do with JavaScript | Form Rules | Thread Title Naming Guide

  5. #15
    Join Date
    May 2006
    Location
    Sydney, Australia - Near the coast.
    Posts
    1,995
    Thanks
    0
    Thanked 8 Times in 7 Posts

    Default

    G-Mail doesn't require a cell phone number now.

    Look at the source:

    HTML Code:
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>Gmail</title>
    <link rel="alternate" type="application/atom+xml" title="Gmail Atom Feed" href="feed/atom" />
    <script src="?view=page&amp;name=browser&amp;ver=o9cia6293i3x"></script>
    </head>
    <noscript><font face=arial>JavaScript must be enabled in order for you to use Gmail in standard view. However, it seems JavaScript is either disabled or not supported by your browser. To use standard view, enable JavaScript by changing your browser options, then <a href="">try again</a>. <p>To use Gmail's basic HTML view, which does not require JavaScript, <a href="?ui=html&zy=n">click here</a>.</p></font><p><font face=arial>If you want to view Gmail on a mobile phone or similar device <a href="?ui=mobile&zyp=n">click here</a>.</font></p></noscript>
    <script>
    <!--
    
    var fs_time=(new Date()).getTime();
    
    
    
    
    function wfs() {
    
    
    try {
    if (parent!=window && parent.wfs) {
    return false;
    }
    }catch(e){}
    
    
    
    if (top.location.href.indexOf('nocheckbrowser')!=-1) {
    return true;
    }
    
    
    
    
    if (!is_browser_supported) {
    top.location="?ui=html\x26zy=j";
    return false;
    }
    
    
    var testcookie='jscookietest=valid';
    document.cookie=testcookie;
    if (document.cookie.indexOf(testcookie)==-1) {
    top.location="html\x2Fnocookies.html";
    return false;
    }
    
    document.cookie=testcookie+';expires=Thu, 01 Jan 1970 00:00:00 GMT';
    
    
    var agt=navigator.userAgent.toLowerCase();
    
    
    if (agt.indexOf('msie')!=-1 && document.all &&
    agt.indexOf('opera')==-1 && agt.indexOf('mac')==-1) {
    
    
    eval('var c=(agt.indexOf("msie 5")!=-1)?"Microsoft.XMLHTTP":"Msxml2.XMLHTTP";try{new ActiveXObject(c);}catch(e){top.location="html\x2Fnoactivex.html";}');
    }
    
    
    return true;
    
    }
    
    function lj() {
    
    js.location.replace("?view=page\x26name=js\x26ver=bvgw6s37bz2k");
    
    }
    
    
    
    
    if (wfs()) {
    
    
    document.write('<frameset onload=lj() rows="100%,*" border=0><frame name=main src="?view=page&amp;name=loading&amp;ver=h606kb6zstq1" frameborder=0 noresize scrolling=no><frame name=js src="?view=page&amp;name=loading&amp;ver=h606kb6zstq1" frameborder=0 noresize></frameset>');
    }
    -->
    </script>
    </html>
    Can you believe that theres no DOCTYPE?
    Peter - alotofstuffhere[dot]com - Email Me - Donate via PayPal - Got spare hardware? Donate 'em to me :) Just send me a PM.
    Currently: enjoying the early holidays :)
    Read before posting: FAQ | What you CAN'T do with JavaScript | Form Rules | Thread Title Naming Guide

  6. #16
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    Ha. Gmail is better than a doctype.
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

  7. #17
    Join Date
    Jan 2006
    Posts
    15
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Any JavaScript guru around?

  8. #18
    Join Date
    May 2006
    Location
    Sydney, Australia - Near the coast.
    Posts
    1,995
    Thanks
    0
    Thanked 8 Times in 7 Posts

    Default

    Try this:

    HTML Code:
    <html>
    
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
    <title>Attach File&nbsp; Remove</title>
    <script>
    function toggleElement(elementId,mode)	{
    
    	element = document.getElementById(elementId)
    	element.style.display = mode
    }
    </script>
    </head>
    
    <body>
    <div id="attach">
    <a href="javascript:toggleElement('browseFile','block');javascript:toggleElement('removeLink','block')">Attach File</a><br />
    <input type="file" style="display:none" id="browseFile"><span id="removeLink" style="display:none"> <a href="javascript:toggleElement('browseFile','none');toggleElement('removeLink','none')">Remove</a></span>
    
    </div></body>
    
    </html>
    Peter - alotofstuffhere[dot]com - Email Me - Donate via PayPal - Got spare hardware? Donate 'em to me :) Just send me a PM.
    Currently: enjoying the early holidays :)
    Read before posting: FAQ | What you CAN'T do with JavaScript | Form Rules | Thread Title Naming Guide

  9. #19
    Join Date
    Jan 2006
    Posts
    15
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Exclamation

    tech_support, if this was the answer, i would never ask the question :-)
    I don't want to show and hide a div. this is a trick for beginners.
    What google does is that they launch the browse dialog box when pressing the link. This can be done by using the

    onclick="FileFieldID.click();"


    but again, the value it stores is erased immidiently as you press the submit form button since the user did not manually clicked the button himself.

    Google has managed to sort this problem somehow, and the question is - HOW??!

  10. #20
    Join Date
    May 2006
    Location
    Sydney, Australia - Near the coast.
    Posts
    1,995
    Thanks
    0
    Thanked 8 Times in 7 Posts

    Default

    I don't know what you mean
    Peter - alotofstuffhere[dot]com - Email Me - Donate via PayPal - Got spare hardware? Donate 'em to me :) Just send me a PM.
    Currently: enjoying the early holidays :)
    Read before posting: FAQ | What you CAN'T do with JavaScript | Form Rules | Thread Title Naming Guide

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
  •