Jump to:

2002 Posts in 1422 Topics by 616 members

Form Questions

SilverStripe Forums » Form Questions » Renderwidth and IE

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 609 Views
  • Tomase
    Avatar
    Community Member
    13 Posts

    Renderwidth and IE Link to this post

    Hello!

    We have a problems with a form showing the results on another page. We use renderwidth in the action method, and it works fine in all browsers exept ie. As we startet developing this form we was working with ss 2.3.3, and the problem occured as we moved our files to the customers site running on 2.3.4. (in the 2.3.3 installation all is fine, also in ie) (we also testet in 2.4, but there we got a security error)

    our code is like this:

    function VerdiResultat($data, $form) {

    $res = new Verdi();

    $verdier = array($data["Spm1"], $data["Spm2"], $data["Spm3"], $data["Spm4"], $data["Spm5"], $data["Spm6"], $data["Spm7"], $data["Spm8"], $data["Spm9"],$data["Spm10"],$data["Spm11"], $data["Spm12"], $data["Spm13"], $data["Spm14"],$data["Spm15"]);

    foreach($verdier as $temp) {

    if ($temp != 0) {
    if ($temp < 3){
    $res->Lav += 1;
    }
    elseif ($temp == 3) {
    $res->Middels += 1;
    }

    elseif ($temp > 3) {
    $res->Hoy += 1;
    }
    }

    }

    $res->write();
    Session::set('VurdertArtikkel', true);

    return $this->renderWith(array('Page_VerdiResultat', 'Page'));

    we have also tried to put in ->customise($data) in the return statement, without any new results.

    We notice when we look in Firebug and the developer tool in IE that all what should be in <head> is appearing in <body>. When we look directly in the sourcecode of the resultpage, however, this information shows up in <head> as it should. Strange.

    Have anyone an idea about how to solve this IE problem??

    thanks

    609 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.