I am trying to execute 3 javascript commands on the page
http://ringvaart.toervolger.nl/nl/tour_2/livepagina/?mode=default
by loading it into my own div, but I fail to execute the commands. The commands
toggleAllSelected();
setActiveTeamId(64);
toggleSelectedTeamId(40);
are able to execute on the original page, but they are not defined in my own javascript and I therefore am not able to execute them.
Can anyone please help me out?
By the way, due to contraints executing them on the original page is not an option.
Kind regards!
<html>
<body>
<div id="ringvaart"></div>
</body>
<script src="https://code.jquery.com/jquery-latest.min.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function() {
$("#ringvaart").html( "<object data='http://ringvaart.toervolger.nl/nl/tour_2/livepagina/?mode=default' style='width:100%; padding:0px; margin:0px; height:100%;'/>").ready(
function(){
toggleAllSelected();
setActiveTeamId(64);
toggleSelectedTeamId(40);
}
);
});
</script>
<style >
#ringvaart{
width: 1920px;
}
body{
margin:0px;
padding:0px;
}
</style>
jsof that particularURLhas this function?scriptin your head and specify its path as the aboveurland then try calling this functions!! Just a wild guess! Might work! I am not able to replicate this in fiddle as its not allowing to get the js file!