Jump to content

Armed Rebel

Members
  • Content Count

    66
  • Joined

  • Last visited

Community Reputation

0 Neutral

About Armed Rebel

  • Rank
    Newbie

Previous Fields

  • Languages
    (X)HTML, CSS, Javascript (Sort Of), PHP, MySQL

Contact Methods

  • Website URL
    http://
  • ICQ
    0
  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 if I tried alert('hi') it would work fine.Any solutions to this?
  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 <select> tag, so it's removed with the above code.Thanks for any help.
  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 --></table><div> <!-- form 1 submit button --></div></form (1)> I'm hoping someone gets what I mean, and that they can give me a solution. Again, this works fine in FF but not IE6.
  9. I know your problem is already solved, but this may be an easier way: $file_name="12345.abcd";preg_match('/\.[^.]+$/', $file_name, $ext); So the extension there would be ".abcd" and the Preg_match would send it out as an array, so use $ext[0].
  10. You need to give us more information if you want help. Your code would be a start.
  11. Armed Rebel

    mysql_num_rows()

    Where is your sql query message?
  12. Armed Rebel

    If statement help

    The code work for me, and I don't see a problem in the code at all.What is the exact error?
  13. It removes the cookie.Means to an end.
  14. 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...