On our website we send a postal code from a form to an iframe. The code works in all browsers except Google Chrome.
This is the code:
<code>
<?php if (isset($_POST['postcode']) && !empty($_POST['postcode'])) { ?>
<script>
$( document ).ready(function() {
$('#sd-iframe').load(function() {
$('#sd-root').trigger('setFieldValue', {
name: 'postcode',
value: '<?php echo htmlspecialchars($_POST['postcode']); ?>'
});
});
});
</script>
<?php
}
?>
</code>
Maybe i have to use a Settimeout? but i dont know how ;)
I was very happy that i was able to make this, just a beginner ;)
I hope someone is able to help me!
Ralf