Can I use click through for file uploads? [closed] - javascript

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 9 years ago.
Improve this question
In this some what outdated article by quirksmode it does not use the click through method because it was not supported by FireFox.
http://www.quirksmode.org/dom/inputfile.html
However, I tested it and it works fine. I can produce a click event on a file input.
Are there any other limitations I might not be aware of. I basically want to use the method in the article, but use the more simple method of passing the click event from the fake input directly to the real input.
I've emailed the author and asked if he has any additional thoughts since Firefox now supports it.
I plan to implement it and will provide and info I find out.

Related

How can we mitigate shopping-cart checkout spamming? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 days ago.
Improve this question
We have an e-commerce site that allows you to check out as a guest.
An individual has been using it to check if stolen credit card numbers function.
We plan to add invisible captcha, which helps for people using scripts/headless browsing/automation, but it doesn't stop someone from manually using it this way.
We could track a cookie that starts to prevent/timeout the user from checking out if there are enough recent requests, but that's easily workaround-able.
It seems like a situation where it can't be limited too much further because normal users need to be able to check out, but are there any other specific methods that would help?

Implementing undo functionality in JavaScript [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 2 years ago.
Improve this question
How do I implement a ctrl z in javascript?
After numerous google searches, I stumbled upon the execCommand:
I'm using document.execCommand("undo", false, null), but it doesn't work
with Firefox.
I put in the 2nd and 3rd parameters even though they are optional in Firefox.
Any ideas, insights, suggestions, examples, etc?
Since this hasn't been officially answered I wrote this if this helps at all
Its extends jquery so that it detects ctrl + z. and can be used like this:
$('input').disableUndo();
or if you want it to do something when the user tries to undo
$('input').disableUndo(function(element){
// do custom stuff
});
jsFiddle Demo

Buttons with a textarea on web page [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
Could someone please point me at a resource that shows how to add buttons to a textarea on a web page? Similar to Yahoo mail where an email address is turned into a button with a cross for removal.
In fact exactly how tags are added to the Tags textarea on this site.
There are very good jQuery plugins that accomplish this. One of them is tag-it library. You can find examples on this page, as well as source code and documentation on how to use it. You can always style it according to your needs through css.

A way to determine whether or not a website validates [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
I am developing a service, and it needs to be able to determine whether or not a specific website on the internet validates (with 0 errors).
Does the W3C have an API?
Also, I would like to be able to do a browser-by-browser test. I mean, I would also like to be able to tell if [the first criteria cannot be met] any 1 (or more) particular website(s) fail(s) to validate (with 0 errors). Is this currently possible?
I am still searching, but have yet to find this out.
The W3C has APIs for both their HTML and CSS validators.
The HTML validator docs are found at: http://validator.w3.org/docs/api.html
The CSS validator docs are found at: http://jigsaw.w3.org/css-validator/api.html

html code in class name [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
For a long and convoluted reason I need to include a html code spaces in a class name - there is no other option.
This class links to some javascript to open and close a div. In Chrome, Safari, IE 8, Firefox 5,6. However it doesn't work in Firefox 3. Why would this be, I don't understand! Anyone have an idea - does firefox handle this character weirdly?
In any case, I don't think firefox is going to update its browser to help you.
It sounds like your problem is an unstoppable force against an immovable stone.
But I think with extra work there should be 'an extra option'.
Saying there's 'no other option' is usually, even if justifiably, avoiding another problem and/or being lazy.
As suggested, code would also help us know exactly what you're talking about.

Categories