罗德 jqtouch jquery HIERARCHY_REQUEST_ERR:DOM 异常 3

发布于 2024-11-30 04:29:07 字数 2681 浏览 0 评论 0原文

我的罗兹应用程序出现错误。

I/APP ( 379): I 08/19/2011 14:59:45:680 afd4d440 ChromeClientNew| IERARCHY_REQUEST_ERR:DOM 异常 3:节点被插入到不属于它的位置。 -- 来自 http://127.0.0.1:8222 的第 12 行/public/jqtouch/jquery.1.3.2.min.js

E/Web 控制台(379):HIERARCHY_REQUEST_ERR: DOM 异常 3:节点被插入到不属于它的位置。在 http://127.0.0.1:8222/public/ jqtouch/jquery.1.3.2.min.js:12

我没有发现什么问题。

它是因为什么而产生的?

当我尝试从其他地方调用它们时,我的控制器代码、视图运行良好。

所有其他视图都运行良好。

我的layout.erb文件是

<% is_bb6 = System::get_property('platform') == 'Blackberry' && (System::get_property('os_version') =~ /^6\.0/) %>

<% if is_bb6 %>  
  <meta name="viewport" content="width=device-width; height=device-height; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;"/>
<% else %>
  <meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;"/>      
<% end %>

<% if System::get_property('platform') == 'APPLE' || System::get_property('platform') == 'ANDROID' || is_bb6 %>
  <script src="/public/jqtouch/jquery.1.3.2.min.js" type="text/javascript"></script>
  <script src="/public/js/rhogeolocation.js" type="text/javascript"></script>
  <script src="/public/jqtouch/jqtouch.js" type="text/javascript"></script>
  <link href="/public/jqtouch/jqtouch.css" type="text/css" rel="stylesheet"/>
  <% if System::get_property('platform') == 'APPLE' %>
    <link href="/public/jqtouch/jqtouch-iphone.css" type="text/css" rel="stylesheet"/>
  <% end %>
  <script type="text/javascript" charset="utf-8"> $.jQTouch(); </script>
<% end %>


<% if System::get_property('platform') == 'APPLE' || System::get_property('platform') == 'ANDROID' %>
  <link href="/public/css/global.css" rel="stylesheet" type="text/css" />
  <link rel="stylesheet" href="/public/css/retina.css" media="all and (-webkit-min-device-pixel-ratio:2)">
  <meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=no;">
<% elsif is_bb6 %>
  <link href="/public/css/android.css" type="text/css" rel="stylesheet"/>
<% elsif System::get_property('platform') == 'Blackberry' %>
  <link href="/public/css/blackberry.css" type="text/css" rel="stylesheet"/>
<% else %>
  <link href="/public/css/windows_mobile.css" type="text/css" rel="stylesheet"/>
<% end %>

I am getting error in my rhodes app .

I/APP ( 379): I 08/19/2011 14:59:45:680 afd4d440 ChromeClientNew| IERARCHY_REQUEST_ERR: DOM Exception 3: A Node was inserted somewhere it doesn't belong. -- From line 12 of http://127.0.0.1:8222/public/jqtouch/jquery.1.3.2.min.js

E/Web Console( 379): HIERARCHY_REQUEST_ERR: DOM Exception 3: A Node was inserted somewhere it doesn't belong. at http://127.0.0.1:8222/public/jqtouch/jquery.1.3.2.min.js:12

I am not getting whats wrong.

Because of what it is getting generated?

My controller code, view are running fine when I am trying to invoke them from other place.

all other views are running fine.

my layout.erb file is

<% is_bb6 = System::get_property('platform') == 'Blackberry' && (System::get_property('os_version') =~ /^6\.0/) %>

<% if is_bb6 %>  
  <meta name="viewport" content="width=device-width; height=device-height; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;"/>
<% else %>
  <meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;"/>      
<% end %>

<% if System::get_property('platform') == 'APPLE' || System::get_property('platform') == 'ANDROID' || is_bb6 %>
  <script src="/public/jqtouch/jquery.1.3.2.min.js" type="text/javascript"></script>
  <script src="/public/js/rhogeolocation.js" type="text/javascript"></script>
  <script src="/public/jqtouch/jqtouch.js" type="text/javascript"></script>
  <link href="/public/jqtouch/jqtouch.css" type="text/css" rel="stylesheet"/>
  <% if System::get_property('platform') == 'APPLE' %>
    <link href="/public/jqtouch/jqtouch-iphone.css" type="text/css" rel="stylesheet"/>
  <% end %>
  <script type="text/javascript" charset="utf-8"> $.jQTouch(); </script>
<% end %>


<% if System::get_property('platform') == 'APPLE' || System::get_property('platform') == 'ANDROID' %>
  <link href="/public/css/global.css" rel="stylesheet" type="text/css" />
  <link rel="stylesheet" href="/public/css/retina.css" media="all and (-webkit-min-device-pixel-ratio:2)">
  <meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=no;">
<% elsif is_bb6 %>
  <link href="/public/css/android.css" type="text/css" rel="stylesheet"/>
<% elsif System::get_property('platform') == 'Blackberry' %>
  <link href="/public/css/blackberry.css" type="text/css" rel="stylesheet"/>
<% else %>
  <link href="/public/css/windows_mobile.css" type="text/css" rel="stylesheet"/>
<% end %>

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文