lachlan438
02-18-2008, 03:15 AM
Can some one post the html code for that firefox pop up thing i can see it i would like to pop up a smilier notice on my site:)
What are you talking about?
Are you talking about popups on the itouch, like dialog box's?....
http://developer.apple.com/documentation/AppleApplications/Reference/SafariWebContent/CreatingContentforSafarioniPhone/chapter_2_section_10.html
.....
Use windows and dialogs supported by Safari on iPhone and avoid the others.
You can open a new window in JavaScript by invoking window.open(). Remember that the maximum number of documents—hence, the maximum number of open windows—is eight.
Supported JavaScript dialog methods include: alert(), confirm(), and prompt(). If you use these methods, Safari on iPhone displays an attractive dialog that doesn’t obscure the webpage as show in Figure 1-6.
Figure 1-6 Confirm dialog
Confirm dialog
Note that the showModalDialog() and print() methods are not supported in Safari on iPhone.
xM45x
02-18-2008, 06:06 AM
i think he means if you visit this site using IE7 you get a notice saying "you might need firefox to use this site fully download it here". i think thats what your talking about but i dont know the code for it
1pod_us3r
02-18-2008, 10:54 AM
yea what is that code?
Google says.....
http://techpatterns.com/downloads/javascript_browser_detection.php
and it didnt mention iTouch/Phone so just incase heres some code for that....
<script language=javascript>
<!--
if((navigator.userAgent.match(/iPhone/i)) || (navigator.userAgent.match(/iPod/i)))
{
location.replace("iphone-version.html");
}
-->
</script>