Firefox 不支持基于程序的调用功能
单击以下程序的任何行...我正在触发功能邮件文件单击...功能只是有警报消息,根据单击显示不同的文件名...
** **它在 IE 中正常工作.....Firefox N 其他浏览器功能在单击任何行时都不会调用..有什么问题..请帮助我......我正在编写代码以便您更好地了解*** *
For Each info In fsi
Response.Write("<span id=" & " 'userijd'" & " onmouseup=" & "mailfileclick('" & info.Name & "')" & ";>")
Response.Write("<td width=" & "16%" & " bgcolor=" & "#FFFFFF" & " style=" & "border-bottom-style: solid; border-bottom-width: 1px" & " bordercolor=" & "#C0C0C0" & " nowrap" & ">")
Response.Write("<font face=" & "Arial" & "style=" & "font-size: 9pt" & " color=" & "#000000" & ">" & Mid(contents, InStr(contents, "Date: ") + Len("Date:"), 17) & "</font></td>")
Response.Write("</span>")
Next
这是 vbscript 代码...我只是调用函数 mailfileclick ohkkkkkkkk 本页的其他部分我正在修改函数,请参阅下面...
<script type="text/javascript">
function logintk(str) {
alert(str);
}
</script>
我的事情..现在您已经清楚了编码....还有一点..这段代码在 Internet Exlorer 上运行良好...问题 Firefox 和其他浏览器... .我认为问题领域是... ("")
你更了解....你的帮助之手...
on clicking any row of the following program... I am firing on function mail file click....function just having alert message that shows different file name on the basis of clicking...
****its working properly in IE .....Firefox N other browser function doesnot call on clicking on any row.. whats problem..please help me......i am writing code for your better awareness****
For Each info In fsi
Response.Write("<span id=" & " 'userijd'" & " onmouseup=" & "mailfileclick('" & info.Name & "')" & ";>")
Response.Write("<td width=" & "16%" & " bgcolor=" & "#FFFFFF" & " style=" & "border-bottom-style: solid; border-bottom-width: 1px" & " bordercolor=" & "#C0C0C0" & " nowrap" & ">")
Response.Write("<font face=" & "Arial" & "style=" & "font-size: 9pt" & " color=" & "#000000" & ">" & Mid(contents, InStr(contents, "Date: ") + Len("Date:"), 17) & "</font></td>")
Response.Write("</span>")
Next
this is vbscript code ... i am just calling function mailfileclick ohkkkkkkk
and ohter part this page i am difing function seebelow...
<script type="text/javascript">
function logintk(str) {
alert(str);
}
</script>
i thing ..now you got clear about coding.... one thine more..this code working fine with Internet Exlorer ...problem Firefox and other browser....i think problem area is...
("")
better u know....u r helping hand ...
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Firefox(以及所有其他网络浏览器)不运行 VBScript 代码。为了实现跨浏览器兼容性,您应该始终使用 JavaScript,而不是 VBScript。
Firefox (and all other web browsers) don't run VBScript code. For cross-browser compatibility, you should always use JavaScript, not VBScript.