Reputation: 53
I have a working code here
<iframe src="map.html" height="95%" width="100%" scrolling="no" frameborder="0" style="border:0" allowfullscreen></iframe>
Now i am converting it into laravel 5.2. I want to get data from database and show that section via iframe.
How i can pass my data to src
file?
OTHER WAY:
I also tried this way via AJAX/JQUERY
$returnHTML = view('mapcontents')->with('Map', $hs_list)->render();
return response()->json(array('success' => true, 'map_data'=>$returnHTML));
But the issue is that CSS
& JS
code do not work in mapcontents
because my css & js files included in main layout file.So i left this idea.
How i can fix it?
Upvotes: 0
Views: 4719
Reputation: 5135
Your tried way is almost correct, you just need to call again your CSS and JS files in mapcontents
blade. This will work fine.
Upvotes: 1