duanbage2161 2017-11-13 08:20
浏览 38

在已加载数据时查看未显示完整结果

I am currently trying to combine one of my template(test.blade.php) to a new view page which contain a button where it will show a pop up form when clicked. But for some reason when I do that nothing only a few information taken from test.blade.php. Even the button is missing but if I were to place the include('test') at another location, it will show the button but even lesser information being shown.

Here is the code:

evaltest.blade.php (div_show this will display the form)

  <html>
    <head> 
        <title>Popup form </title>
        <meta name="robots" content="noindex, nofollow">    
        <link href="{{ asset('css/elements.css') }}" rel="stylesheet">
        <script type="text/javascript">
        var _gaq = _gaq || [];
        _gaq.push(['_setAccount', 'UA-43981329-1']);
        _gaq.push(['_trackPageview']);
        (function () {
        var ga = document.createElement('script');
        ga.type = 'text/javascript';
        ga.async = true;
        ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
        var s = document.getElementsByTagName('script')[0];
        s.parentNode.insertBefore(ga, s);
        })();
    </script>
    </head> 
     <!-- body starts here -->
     <body id ="bdy" style="overflow:hidden;">

     <div id="abc">

         <!-- Popup div starts here -->
     <div id="popupContact"> 

        <!-- contact us form -->
             <form class="form-horizontal" method="post" action="{{ url('/evaltest/'.$data0->id) }}">
            {{ csrf_field() }}
            <img id ="close" src="{{ URL::to('/image') }}/3.png" onclick ="div_hide()">
             <input type="hidden" name="user_id" value="{{$data0->id}}">

         <div class="form-group">
            <label class="col-md-2"><b>Recommendation:</b></label>
          <div class="col-md-6">
            <input type="radio" id ="recommendation" name="recommendation" value="Yes"> Yes<br>
            <input type="radio" id ="recommendation" name="recommendation" value="No"> No<br>
          </div>
      </div>
            <div class="form-group">
                <div class="col-md-6-offset-2">
                  <input id= "submit" type="submit" href="javascript: check_empty()" class="btn btn-primary" value="Save">
                </div>
              </div>
            </form>
     </div> 
    <!-- Popup Div Ends Here -->
    </div>
    <!-- Display Popup Button -->
//this will show a few info but no button       
@include('test')
    <h1>Click Button to Evaluate</h1>
    <button id="popup" onclick="div_show()">Popup</button>
        <script src="{{ asset('/js/my_js.js') }}"></script>
//this will show even lesser info but button is shown
//@include('test')
    </body>
    </html>

test.blade.php (there are more information inside but I only put some as an example of how I got the information)

@foreach ($data as $object)
    <b>Name: </b>{{ $object->Name }}<br><br>
    <b>Alias: </b>{{ $object->Alias }}<br><br>
    <b>Email: </b>{{$object->Email}}<br><br>
@endforeach

This is the screenshot I am facing right now: enter image description here

This is the screenshot of test.blade.php which I want it to be together with evaltest.blade.php enter image description here

As you can see in the test.blade.php, there is a scroll bar which contain other kind of information and it also contain many other information but evaltest.blade.php only show a few but when I view page source for evaltest.blade.php, it shows that all the data have already been loaded

  • 写回答

1条回答 默认 最新

  • drh47606 2017-11-13 08:22
    关注

    The problem must be in your elements.css file. There's a style rule there fixing the height or something similar.

    评论

报告相同问题?

悬赏问题

  • ¥15 有了解d3和topogram.js库的吗?有偿请教
  • ¥100 任意维数的K均值聚类
  • ¥15 stamps做sbas-insar,时序沉降图怎么画
  • ¥15 unity第一人称射击小游戏,有demo,在原脚本的基础上进行修改以达到要求
  • ¥15 买了个传感器,根据商家发的代码和步骤使用但是代码报错了不会改,有没有人可以看看
  • ¥15 关于#Java#的问题,如何解决?
  • ¥15 加热介质是液体,换热器壳侧导热系数和总的导热系数怎么算
  • ¥100 嵌入式系统基于PIC16F882和热敏电阻的数字温度计
  • ¥15 cmd cl 0x000007b
  • ¥20 BAPI_PR_CHANGE how to add account assignment information for service line