document.formname.submit() not working in safari browser..

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sarvanhsr
    New Member
    • Jan 2010
    • 8

    document.formname.submit() not working in safari browser..

    Hai,
    I have one problem..we finshed a project.. using document.formna me.submit() to submit the form....It's all well working in IE and FIREFOX and remains like mud in safari browser.. nothing happens when we submit form using JavaScript...

    Please help me...
    I cant find answer for this question in earlier post..
    safari version 4.0.3

    thanks in advance..
  • acoder
    Recognized Expert MVP
    • Nov 2006
    • 16032

    #2
    Please post your code.

    Comment

    • sarvanhsr
      New Member
      • Jan 2010
      • 8

      #3
      Code:
      function pagevalidation(formtunisia)
      {
      	var tunisiaNull = document.getElementById('tuninull').value;
      		var alreadyExist = document.getElementById('exist').value;
      	if(!tunisiaNull)
      	{
      		return ModalPopupsAlert();
      	}
      	<? if($_REQUEST['id'] == "") { ?>
      	else if(alreadyExist!= 1)
      	{
      		return ModalPopupsAlready()
      	}
      	<? } ?>
      	else
      	{
      		document.formtunisia.submit();
      		return (true);
      	}
      }
      all javascript working expect document.formtu nisia.submit();

      i also tried document.getEle mentById('formt unisia').submit ();
      and document.forms[formtunisia].submit();
      Last edited by gits; Mar 30 '10, 07:49 PM. Reason: added code tags

      Comment

      • gits
        Recognized Expert Moderator Expert
        • May 2007
        • 5390

        #4
        does the form has an id = "formtunisi a"?

        kind regards

        Comment

        Working...