搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

详细了解

javascript not working on dx.com

  • 3 个回答
  • 8 人有此问题
  • 2 次查看
  • 最后回复者为 cor-el

more options

go to http://club.dx.com/reviews/photos/46136/add

Click the orange "browse" button next to select image. On Chrome and IE it opens a file picker box. On firefox it returns href="javascript:void(0);"

I have duplicated this error using windows XP with firefox 18.0.2 and 19

I saved the source code of that page in chrome and firefox and Winmerge says the files are identical.

I restarted firefox in SAFEMODE and the problem is still there. I created a NEW PROFILE and the problem is still there

go to http://club.dx.com/reviews/photos/46136/add Click the orange "browse" button next to select image. On Chrome and IE it opens a file picker box. On firefox it returns href="javascript:void(0);" I have duplicated this error using windows XP with firefox 18.0.2 and 19 I saved the source code of that page in chrome and firefox and Winmerge says the files are identical. I restarted firefox in SAFEMODE and the problem is still there. I created a NEW PROFILE and the problem is still there

所有回复 (3)

more options

reproducible on Fx 19 and Windows xp,

working on Firefox 19, 20 and 21 in ubuntu.
Bug filled

more options

It works if I click the input field and the left part of the Browse button and you get the tooltip, but not if I click the right half of the Browse button and you see the javascript:void(0); pop-up.

There are two input fields and the first one has type="file" and z-index:2 that is used to select a file.
The second input field is a span with class="fakefile" and z-index:1 with a second input field and a Browse link to style the appearance of the input area.
The first field end halfway on the Browse button on Linux.

So this looks like an example of bad page coding.


<span class="con pr">
 <input name="PicName[0]" class="file required maxImgSize" title="Please select an image (png, jpg, bmp, gif)" type="file">
 <span class="fakefile">
  <input class="text">
  <a class="browse" href="javascript:void(0);" alt="browse"></a>
 </span>
</span>

由cor-el于修改

more options

Note that on Linux the width of input fields is usually determined by the number of characters and the the font-size and in the case the first input field isn't wide enough to cover the fake input field and browse button. The width setting (174px) in the CSS code doesn't seem the get honored.