olbers / iui

Automatically exported from code.google.com/p/iui
MIT License
0 stars 0 forks source link

mailto link doesn't work when in a web-app #206

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Go in a iUI web-app by clicking on the icon in the home screen
2. On the homepage I have a <a href="mailto:..."> link
3. Click on the mailto link.

Here is the code:

    <ul id="home" title="Home" selected="true">

    [...]   

    <li class="group">Informations</li>
    <li><a href="mailto:sales@cableorganizer.com">E-Mail</a></li>
    <li><a href="tel:18662220030">Phone</a></li>

        [...]

    </ul>

The link doesn't work when clicked (in a fullscreen web-app).
When the website is seen with Safari it will work, but after having sent 
the e-mail (or canceled the e-mail pop-up) all the links within the pages 
are not working anymore. That's kind of weird :o

Tested on iPhone 3.1 and 3.0 and iUI 0.4.0-dev1 (but I've also noticed the 
bug in the v0.30).

Regards,

Charles

Original issue reported on code.google.com by char...@cableorganizer.com on 21 Dec 2009 at 8:09

GoogleCodeExporter commented 9 years ago
Is this a problem with iUI or does mailto: not work for any fullscreen web-app?

Original comment by msgilli...@gmail.com on 27 Dec 2009 at 5:05

GoogleCodeExporter commented 9 years ago
I've tested with this code:

    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <title>Test</title>
        <meta name="viewport" content="width=device-width; initial-scale=1.0; 
maximum-scale=1.0; user-scalable=0;"/>
        <meta name="apple-touch-fullscreen" content="yes" />
        <meta name="apple-mobile-web-app-capable" content="yes" />
    </head>
    <body>
    <a href="mailto:test@test.com">test</a>
    </body>
    </html>

Looks like it doesn't work neither (on fullscreen web-app).

Original comment by char...@cableorganizer.com on 28 Dec 2009 at 2:39

GoogleCodeExporter commented 9 years ago
OK, so it doesn't look it's a problem with iUI.  I'd call it an iPhone bug, I 
don't see any reason why this would be 
desirable behavior.

Original comment by msgilli...@gmail.com on 28 Dec 2009 at 7:56

GoogleCodeExporter commented 9 years ago
Yes, but still the behavior is weird under iUI with Safari, and this time I 
don't think 
that come from Safari/iPhone. Links doesn't work anymore after having clicked 
on the 
mailto link.

Original comment by char...@cableorganizer.com on 28 Dec 2009 at 8:12

GoogleCodeExporter commented 9 years ago
Do you mind trying to see if the behavior you described in comment #4 happens 
when added to the non-iui 
code you posted in comment #2?

Original comment by msgilli...@gmail.com on 28 Dec 2009 at 9:21

GoogleCodeExporter commented 9 years ago
Sure. I've tried this non-iui code with iPhone Safari (iPhone simulator 3.1.1), 
I even 
added these links in an list with <ul> tag, and it works fine.

Don't you have this weird behavior too on iUI or am I the only one?

Original comment by char...@cableorganizer.com on 28 Dec 2009 at 9:35

GoogleCodeExporter commented 9 years ago
Can you please clearly describe the weird behavior and provide sample code and 
step-by-step instructions to 
reproduce? 

Original comment by msgilli...@gmail.com on 28 Dec 2009 at 10:12

GoogleCodeExporter commented 9 years ago
Yes.

As said before:

> When the website is seen with Safari it will work, but after having sent the 
e-mail 
(or canceled the e-mail pop-up) all the links within the pages are not working 
anymore.

The code is basic, nothing fancy, just links in a <ul> list, and one of these 
links 
is a mailto link.
Here is the code:

  [...]  // HTML header with iUI CSS and JS links iUI-0.4.0-dev1

    <ul id="home" title="Home" selected="true">
        <!-- header -->
        <div style="text-align:center;">
            <img src="http://images.cableorganizer.com/logo-
taglines/logo-center.gif" alt="CableOrganizer.com" />
            <br/>
            <table width="100%" border="0" cellspacing="0" 
cellpadding="3">
                <tr>
                    <td style="padding-left:10px; width:50%;text-
align: center;">
                        <a href="cart.aspx"><img 
src="icons/cart.png" width="16" height="16" alt="Cart" border="0" /> View cart 
(0)</a> 
                    </td>
                    <td style="text-align: center;">
                        <img src="icons/user.png" width="16" 
height="16" alt="User" border="0" /> Hello <a href="account.aspx">Guest</a>.
                    </td>
                </tr>
            </table>
        </div>

        <li class="group">Top categories</li>
            <li><a href="cat.aspx"><img src="icons/resultset_next.png" 
width="16" height="16" border="0" /> See all categories</a></li>

        <li class="group">Top products</li>

        <li class="group">Informations</li>
            <li><a href="account.aspx"><img src="icons/user.png" width="16" 
height="16" alt="User" border="0" /> My account</a></li>
            <li><a href="about.aspx"><img src="icons/information.png" 
width="16" height="16" alt="About" border="0" /> About us</a></li>
            <li><a href="mailto:sales@cableorganizer.com"><img 
src="icons/email.png" width="16" height="16" alt="E-Mail" border="0" /> E-
Mail</a></li>
            <li><a href="tel:18662220030"><img src="icons/phone.png" 
width="16" height="16" alt="Phone" border="0" /> Phone</a></li>
        <li class="group">Can't find one of our products?</li>
            <li><a href="http://cableorganizer.com" target="_self"><img 
src="icons/arrow_branch.png" width="16" height="16" alt="Original" border="0" 
/>  Go 
to the original website</a></li>
    </ul>

</body>
</html>

Original comment by char...@cableorganizer.com on 28 Dec 2009 at 10:23

GoogleCodeExporter commented 9 years ago
Yeah, I've reproduced  the problem with some simple test files.  I'm still not 
sure whether it's an iUI bug or a 
Safari bug, but I'm looking in to it...

Original comment by msgilli...@gmail.com on 29 Dec 2009 at 8:12

GoogleCodeExporter commented 9 years ago
I think this may be related to issue 147.

Original comment by rogersp...@yahoo.com on 3 Jan 2010 at 12:48

GoogleCodeExporter commented 9 years ago
Found a couple of threads where other developers seem to be facing the same 
issue...

http://discussions.apple.com/thread.jspa?threadID=2126836&tstart=0
http://code.google.com/p/jqtouch/issues/detail?id=45
http://code.google.com/p/jqtouch/issues/detail?id=75

So far what I've found in searching is that there may be some kind of focus 
lost with the iphone mail dialog

Original comment by rogersp...@yahoo.com on 3 Jan 2010 at 2:15

GoogleCodeExporter commented 9 years ago

Original comment by msgilli...@gmail.com on 3 Jan 2010 at 4:38