** I have 1 page where I load all pages within a <div content>
:
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
<script>
var vars = geturlvar()['Nome'];
$(function () {
$("#includedContent").load(vars);
});
</script>
<script>
function CarregaCamposModulo() {
debugger;
var id = localStorage.id;
var nome = localStorage.nome;
document.getElementById("id_id").value = id;
document.getElementById("id_nome").value = nome;
};
</script>
</head>
<body class="theme-red" onload="CarregaModulos();CarregaCamposModulo()">
<section class="content">
<img src="../images/carregando.gif" id="image">
<div id="includedContent"></div>
</section>
</body>
</html>
** And the page that I load within includedContent
through the link http://localhost/i9maker/pages/container_admin.html?Nome=consultas/admin_modulo.html
**
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Módulos</title>
</head>
<body>
<div class="container-fluid" style="margin-left: -29px; margin-right: -29px">
<!--Striped Rows-->
<div class="row clearfix">
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
<div class="card-panel" style="margin-top: -29px; ">
<div class="card" style="background: rgba(245, 245, 245, 0.6)">
<div class="body">
<form class="form" id="wizard_with_validation" method="POST">
<div class="row">
<div class="col-sm-12 col-md-12 col-lg-12">
<input id="id_id" name="id_id" type="hidden" class="form-control input-style" autofocus required>
<label class="label-margin-top">Descrição*</label>
<input id="id_nome" name="id_nome" type="text" class="form-control input-style input-casesensitive" autofocus required>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>
It works in Google Chrome, but in Firefox and Edge, it does not work, the error occurs at the time of:
document.getElementById ("id_id"). value = id;
document.getElementById ("id_name"). value = description;
Debugging on Edge appears error:
Unable to set property 'value' of undefined or null reference
Image in firefox, it works only in debug mode, if I run without debug mode it does not bring anything.
GoogleChrome,thisisinGoogleChrome: