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
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

Javascript - Netscape/IE problem

  • 29-06-2000 5:27pm
    #1
    Registered Users, Registered Users 2 Posts: 3,316 ✭✭✭


    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, Registered Users 2 Posts: 3,316 ✭✭✭ButcherOfNog


    duh redface.gif)

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


Advertisement