使用ipadian进行测试,以使浏览器独立于网站 [英] Testing with ipadian for making browser independent website

查看:374
本文介绍了使用ipadian进行测试,以使浏览器独立于网站的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我正在做一个使现有网站浏览器独立的项目.该网站是用JavaScript和HTML页面编写的.它在IE中运行良好,我们需要使其在Safari 5.0(ipad)和Chrome 14.0(Android 4.0)中正常运行.

我已经使用ipadian模拟器对我的网站进行了Safari测试,但遇到了一些奇怪的问题.网页在装有Windows XP的Safari上运行良好(在我的台式机上),但在Safari上失败-ipadian模拟器. ipadian没有提供调试工具,因此无法在那里调试问题.警报在ipadian中也不起作用.

我已经用谷歌搜索了,但没有太多帮助.请帮忙.

提前谢谢.

Ashish

Hi,

I am working on a project to make an existing website browser independent. The site is written in JavaScript and HTML pages. It is running fine in IE and we need to make it working for Safari 5.0 (ipad) and Chrome 14.0 (Android 4.0).

I have used ipadian simulator for Safari testing of my site but facing some weired issues. A web page is running fine on Safari with Windows XP (on my desktop) but failing in Safari - ipadian simulator. ipadian does not give the debugging facility hence not able to debug the issue there. Alerts are also not working in ipadian.

I have googled but not much help. Please help.

Thanks in advance.

Ashish

推荐答案

iPadian测试存在两个主要问题:-

1.使用ShowModalDialog()方法打开一个新的html页面打开的弹出窗口,因为弹出窗口在ipadian中不起作用(因为Safari浏览器工具包中的功能不支持ShowModalDialog()).

2.如果HTML页面上的嵌入式JavaScript具有<-标记,但没有结束标记(!->),则该页面将无法在iPadian中使用,尽管它可以在Windows的浏览器中使用.

解决方案:

1.使用JQuery UI将弹出窗口作为DIV打开(我之前的文章/问题中提供了详细的解决方案)

2.将结束标记(//->)放在内联脚本结束标记</script>之前.
There are two major issues with iPadian testing:-

1. Pop-Ups opened by using the ShowModalDialog() method to open a new html page as pop-up window does not work in ipadian (because of non-supportive feature ShowModalDialog() in safari browser toolkit).

2. If inline JavaScript on HTML page has <-- tag but no closing tag (!-->) is there, the page will not work in iPadian, though it works on browsers on windows.

Solutions:

1. Use the JQuery UI for opening pop ups as DIVs (detailed solution provided in my earlier article/question)

2. Place the closing tag (//-->) just before the inline script ending tag </script>.


这篇关于使用ipadian进行测试,以使浏览器独立于网站的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆