Re: the editor doesn't seem to pass its content through POST

  •  10-20-2006, 7:47 AM

    Re: the editor doesn't seem to pass its content through POST

    Hi all...

    i have just found what was making all the trouble.

    I was using a button and some javascript as a mechanism to call submit on the form.

    I have replaced this bit of code:
    <input type="button" name="Button" value="Add" onClick="if( document.fm_admin.title.value == '' ) alert( 'Please give this programme a title' ); else { document.fm_admin.action='progs_add_create.asp'; submit(); return true; }">

    with this...
    <input type="submit" name="Button" value="Add" onClick="if( document.fm_admin.title.value == '' ) { alert( 'Please give this programme a title' ); return false; } else { document.fm_admin.action='progs_add_create.asp'; return true; }">

    I was getting nowhere really, comparing the default.asp example with my web page and looking at it... Everything seem to be fine, form has a name, method, id, action... form fields have unique names,ids...

    Then i have noticed the submit-calling-code and changed it, works for me!

    Regards

View Complete Thread