Iframe in javascript variable with data from php
Posted: 04 Oct 2017, 11:53
Dear Admin i Hope you understand my Question
I would like to use your SimpleModal Windows script
But into my notice-script the code where i wanna add the SimpleModal
starts like this
I can`t add --> ' <-- anymore i need to change the whole code with " but...
then My IFRAME is not shown into the modal
Edit:
After long trying I found a way to do it, but now it does not detect: $row['notice_id']
i trying many differents for detection but without any success.
I would like to use your SimpleModal Windows script
But into my notice-script the code where i wanna add the SimpleModal
starts like this
Code: Select all
$rehtm .='
then My IFRAME is not shown into the modal
Code: Select all
// content
var win_cnt = " <iframe src="All-Notice.php"
width="300" height="440" frameborder="0" scrolling="yes"
align="top" marginwidth="0" marginheight="0" name="offtopic">
</iframe>";
// Calls modalW1(), passing win_cnt, on click the button
$("#basic-modal .button").click(function (e) {
modalW1(win_cnt);
return false;
});
</script>
After long trying I found a way to do it, but now it does not detect: $row['notice_id']
i trying many differents for detection but without any success.
Code: Select all
// content
var win_cnt = " <iframe src=/comments/user/User-Info/Notice-Plus.php?notice_id='. $row['notice_id'] .'</iframe>";