Welcome Guest, Not a member yet? Register   Sign In
Form acting different in IE and Chrome
#7

[eluser]MRosenello[/eluser]
I am using the form validation class. Using IE when I submit the form it runs the validations (and outputs the validation errors if there are any) Also, it continues to run the validation every time it fails the validation. It also submits the form correctly the first time I try when all validation passes; however, if I go back to the same form at any point while keeping IE open, it won't submit the form and no validation errors are thrown.

The reason I am storing the post values in a session is because the user is presented with a confirmation page next where all of the values they entered are presented to them to confirm. Then once they hit a confirm button it grabs all of these values and makes a web services call to create a record in another application and then unsets the session variables.

Also, it works perfectly fine in Chrome and firefox just not IE7-9 (didnt test IE6). I inherited the code the way it is, so I guess I will try rebuilding the piece that stores the values in a session and see what happens.

All of the input and validations on the form are dynamic. The names and requirements are created in another DB that I am just reading from. Below is the code I am using to set the form validations. Maybe there is something wrong with the way I am doing that?

Again, this is all working fine in chrome and on the first submit of the form in all versions of IE(7-9).

Code:
$data['orderItems'] = $this->request_model->finishOrder($items);
  
  $validations = $data['orderItems'];
  for ($i=1;$i<=count($validations);$i++){
   if(isset($validations[$i]['validation'])){
   foreach($validations[$i]['validation'] as $validationID){
    $id = $i."__".$validationID;
    $this->form_validation->set_rules($id,$validationID,'required');
    //echo($validationID);
   }
   }


Messages In This Thread
Form acting different in IE and Chrome - by El Forum - 06-19-2012, 07:40 AM
Form acting different in IE and Chrome - by El Forum - 06-19-2012, 01:49 PM
Form acting different in IE and Chrome - by El Forum - 06-19-2012, 03:49 PM
Form acting different in IE and Chrome - by El Forum - 06-19-2012, 05:04 PM
Form acting different in IE and Chrome - by El Forum - 06-19-2012, 06:53 PM
Form acting different in IE and Chrome - by El Forum - 06-19-2012, 06:55 PM
Form acting different in IE and Chrome - by El Forum - 06-19-2012, 07:10 PM
Form acting different in IE and Chrome - by El Forum - 06-19-2012, 07:19 PM
Form acting different in IE and Chrome - by El Forum - 06-19-2012, 07:28 PM
Form acting different in IE and Chrome - by El Forum - 06-20-2012, 07:58 AM
Form acting different in IE and Chrome - by El Forum - 06-20-2012, 08:16 AM
Form acting different in IE and Chrome - by El Forum - 06-20-2012, 08:41 AM
Form acting different in IE and Chrome - by El Forum - 06-20-2012, 10:27 AM
Form acting different in IE and Chrome - by El Forum - 06-25-2012, 05:49 AM



Theme © iAndrew 2016 - Forum software by © MyBB