Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

Javascript - Netscape/IE problem

Options
  • 29-06-2000 6:27pm
    #1
    Registered Users Posts: 3,317 ✭✭✭


    You'd never guess, a problem with getting something to run under both smile.gif

    The below works perfect in IE5, in NS it doesn't put the value into the form element, and it doesn't throw up an error.

    function closePopup(formname,elementname,value) {

    document.forms.item(formname).elements.item(elementname).value = value;

    }

    Its a simple little routine:
    The page with this routine opens a new browser window (a calander btw), passing the formname and element name to it.

    when you click on a date on the window, it closes and executes the above routine, passing back the form name, element name & a value to stick into that particular element.

    Its doing my head in ...


Comments

  • Registered Users Posts: 3,317 ✭✭✭ButcherOfNog


    duh redface.gif)

    function closePopup(formindex,elementindex,date) {
    document.forms[formindex].elements[elementindex].value = date;
    }


Advertisement