URL...What I am trying to do is be able to click and hold the button and be able to drag around the little plus and stop when the mouse is let go. Now it works fine in Firefox, however, in Internet Exploder it tries to do the browsers default drag and drop and ruins my whole thing.[code]I know its qutie messy in there but right now im just trying to debug and get it working out properly.
I have a problem to add confirmation function to my script. I have a table with data from database. "Delete" button is in each row of table to delete whole row from database (based on ID).I need to after click on "Delete" button there was confirmation to delete it or cancel. I made some tries but no matter I clicked "OK" or "CANCEL" delete was made.
A description of the problem: 1) Go to a page with various settings and a timeout (forces re-login if over 10 minutes) 2) Before the timeout, make some changes to settings. 3) Press a "reset to defaults" button that uses a confirmation box to let the user know what is about to be reset (lists items). 4) Walk away while the confirm box is displayed and come back after the page timeout. 5) My screen now has the page, a confirm popup on top of that, and a timeout alert on top of that. 6) Press OK to dismiss the timeout alert. The underlying page goes to the login screen, but the confirm box remains.
Here is one I cannot seem to figure out. I've got a set of text boxes with the change event bound to a function that will do some validation and add some numbers together. If the user enters something that is not a valid number I want to alert them and then put the focus back on the offending field.
My problem is that the event that I'm capturing is not the actual tab key or mouse click. So even though I set the focus in my event handler, the initial event that started the whole thing still moves the focus to the next field or where ever the mouse was clicked.
I've tried preventDefault, stopPropagation, returning false, and a bunch of other things to no avail. I hope it is something I'm missing or not seeing. If not it seems like my only choice is to capture all the events (key presses, mouse clicks etc. and handle them all which seems rather tedious.
I have looked at the various posts about setting onclick in IE and I cannot see any that exactly describe the problem I am having.
Firstly I am not trying to set onclick by calling setAttribute, which most of the posts describe. I am simply assigning a value to the onclick attribute of the element, which those posts seem to imply.
Specifically I am getting "Object doesn't support this action" on the following line: editButton.onclick= editCitation; editCitation is already a function, so I do not see why I should have to wrap it in an anonymous function wrapper to get IE to permit the assignment.
This is a code for a simple calculator that requires the input of an Area and then calculates how many packs of product are then required to cover that area, rounding up to the next full pack, The results should be displayed in a simple HTML form but its not happening. I can't see any obvious errors. Am I missing something.code...