Jump to content

Armed Rebel

  • Content Count

  • Joined

  • Last visited

Everything posted by Armed Rebel

  1. Nope, the script still fails and the params are being passed as literals rather than the variable's value.
  2. I'm trying to change an onchange event, and I've got the code to do it and it's (almost) working, but I'm having a little problem with variables. Using this code: c2.onchange = function onchange(event) { replaceWord(inc1, (i - 1), r, (total - 1)) }; The variables int1, i, r and total have all been declared in the script I'm using with the above line, the problem is that instead of setting the new function with the values those variables contain, it sets the variable's names as a literal string so "inc1" become the parameter. The code (of actually setting the new onchange function) works, as
  3. I got what I wanted. I discovered the function insertBefore() which worked perfectly. Thanks though.
  4. Hi, I'm working on a spelling function that, when an incorrect word is found, it creates a dropdown box with the suggestions. When you change it, it replaces the word in the post box, and the select is replaced with the user's choice. The problem I'm having is with the replacement of the select/text. The problem being I have no idea how to do it, and I've looked everywhere with the help of google.This is all I've got (ignore the id): var c = document.getElementById("word"+id2+"."+id1); c.parentNode.removeChild(c); I had to code to add in a "text node", but that puts text in the <selec
  5. Yup, the single form works perfectly, thanks a lot.Makes me feel dumb for not thinking of it.
  6. Given the way the page is set up, I can't get around nesting the two forms.I should have mentioned, that the stuff for form 1 is actually in that table, above form 2, it's just that the submit button is in the div.But thats a good idea anyway, I might be able to simply combine the two forms.
  7. Here is a clone of the page on my server. As you can see the "Delete Selected" button doesn't do anything in IE.I could give a link to the actual page, but it's on my localhost and you'd have to register, so if you want it I'd rather you PM me.
  8. Currently, the way I have a page set up (there is no other way, unless it's possible to horizontally invert two table cells), a form needs to span across one table and div, and somewhere within, another form starts and ends.This creates no issue with Firefox, but in Internet Explorer 6, the form won't submit. I know it's not a problem with anything else as if I remove the inner form, the page submits fine.Here is a basic layout of what this page looks like HTML wise: <form (1)><table> <!-- table stuff --> <form (2)> </form (2)> <!-- table stuff -->
  9. Site Name: test.nwtclan.netSite Description: A test forums system I'm buildingSite Owner/Developer: MyselfSite Address: http://test.nwtclan.netExtra Comments: Anyone is encouraged to sign up! Also, nwtclan.net, the main site is for an AoE3 clan of mine, but I've never got around to doing anything with it, and that clan kind of fell apart (due to not playing the game).
  • Create New...