Forum: JavaScript / DHTML / AJAX Mar 19th, 2009 |
| Replies: 4 Views: 1,725 ok, well from my understanding you want to set the value of hidden1, hidden2 depending on which submit button is pressed. you already have the onclick event, so inside the event you want to execute... |
Forum: JavaScript / DHTML / AJAX Mar 19th, 2009 |
| Replies: 4 Views: 1,725 you don't need to insert any hidden fields as such, just set the value. if this is to be filled when you submit the form, then make use of the onclick event and set the element (your input field)... |
Forum: JavaScript / DHTML / AJAX Jan 12th, 2009 |
| Replies: 7 Views: 5,090 what makes you think there is such a thing as document.fontFamily?
as I said, make sure you are using up-to-date and correct properties. |
Forum: JavaScript / DHTML / AJAX Jan 12th, 2009 |
| Replies: 7 Views: 5,090 well since background works, why not use the same location.href? You are also making use of deprecated code, you might want to rethink how you are changing the properties. |
Forum: JavaScript / DHTML / AJAX Nov 10th, 2008 |
| Replies: 2 Views: 614 I think you have broken your own rule already since asp is server-side. Anyway, what you probably want to do is look at AJAX. |
Forum: JavaScript / DHTML / AJAX Nov 14th, 2007 |
| Replies: 5 Views: 4,882 Watch your blocks as I think you are missing a few { }.
I would do it slightly different to you, but this is how I would do it:
function confirmSubmit() {
var acc =... |
Forum: JavaScript / DHTML / AJAX Nov 14th, 2007 |
| Replies: 5 Views: 4,882 move you window redirecting code to a javascript function. Make your onclick call a function to validate the checkbox (again, in javascript), and then if the checkbox is checked you can then... |
Forum: JavaScript / DHTML / AJAX Nov 13th, 2007 |
| Replies: 3 Views: 2,016 Have you tried:
window.location = "???.html"; |