javascript - iframe tag not loading some URL's -


i passing url's dynamically http://ip:port/myproject/dashboard.do?method=loaddashboard. methods of same action class not loading loading in browser. here method name loaddp. http://ip:port/myproject/dashboard.do?method=loaddp.

$("#containerid").html(' <ifrme id="iframeid" src= '+ url +' style="width: 100%; height: 100%;"></iframe>');

you have typo issues, should have iframe not ifrme missing quotes in src attribute:

$("#containerid").html('<iframe id="iframeid" src="'+ url +'" style="width: 100%; height: 100%;"></iframe>'); //----------------------^^^^^^^^------------------^--here---^ 

Comments

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

How to get the ip address of VM and use it to configure SSH connection dynamically in Ansible -

javascript - Get parameter of GET request -