小编web*_*ebo的帖子

Jquery:忘记DOM结构,只需找到这个类的下一个元素

我觉得之前已经问过这个问题,但答案似乎对每张海报都非常具体.

我正在寻找一种方法来识别给定元素并找到具有特定类的下一个元素.我不想处理parent()或children(),因为我正在通过表解析,我不希望它停在一行的末尾甚至是表本身的末尾(那里)是两个并排).

有没有办法只搜索整个页面的下一个元素实例?

背景信息:http: //jsfiddle.net/HKkAa/2/

我正在尝试从突出显示的单元格开始遍历底部表格,并将"突出显示"类应用于每个单元格,直到我到达结束日期.我有办法计算当我到达结束日期时,我只需要魔术方法来选择下一个链接实例.

jquery

13
推荐指数
1
解决办法
4926
查看次数

Postfix和Rails 3.0 ActionMailer:STARTTLS后丢失连接

我在开发模式下使用Ruby 1.9.2和Rails 3.0.4,我正在尝试将其配置为从安装在同一个盒子上的Postfix服务器发送电子邮件(运行安装了dovecot-postfix软件包的Ubuntu 10.04)每当我尝试从Rails发送电子邮件,它在Rails中干净利落地运行,但在Postfix日志中显示错误(我从下面的摘录中删除了域名和IP):

Feb 21 04:49:16 alpha postfix/smtpd[9060]: connect from alpha.mydomain.com[xxx.xxx.xxx.xxx]
Feb 21 04:49:16 alpha postfix/smtpd[9060]: lost connection after STARTTLS from alpha.mydomain.com[xxx.xxx.xxx.xxx]
Feb 21 04:49:16 alpha postfix/smtpd[9060]: disconnect from alpha.mydomain.com[xxx.xxx.xxx.xxx]
Run Code Online (Sandbox Code Playgroud)

奇怪的是,当我从像Thunderbird这样的电子邮件客户端连接到SMTP服务器时,它没有任何问题.

我知道开发模式有时不允许发送电子邮件,所以我将以下内容添加到environment/development.rb文件中:

config.action_mailer.raise_delivery_errors = true
config.action_mailer.perform_deliveries = true

 #load mail server settings
config.action_mailer.delivery_method = :smtp
config.action_mailer.smtp_settings = {
  :address              => "mail.mydomain.com",
  :port                 => 587,
  :domain               => 'mydomain.com',
  :user_name            => 'username',
  :password             => 'password',
  :authentication       => 'plain',
  :tls  => true,
  :enable_starttls_auto => true  }
Run Code Online (Sandbox Code Playgroud)

email postfix-mta actionmailer ruby-on-rails-3

1
推荐指数
1
解决办法
9489
查看次数