Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #36130

Loading a page into ID and also load script dynamically?

Newsgroups comp.lang.javascript
Date 2019-03-19 00:48 -0700
Message-ID <2a8730d3-c338-47df-92d2-bf44206176f9@googlegroups.com> (permalink)
Subject Loading a page into ID and also load script dynamically?
From Jonas Thörnvall <jonas.thornvall@gmail.com>

Show all headers | View raw


 function start_synth(){
//This will load the page dynamically into an ID
 document.getElementById("startTest").innerHTML='<object type="text/html" data="http://imaya.github.io/demo/sf2.js/wml.html" ></object>';


// The above code do load the page into an ID, but it does not actually start the // synth. This code do "but it also open a new window.

synth.Load('http://imaya.github.io/demo/sf2.js/wml.html')
}


How can i write the function so that both load the page into a div and also start the synth?

Back to comp.lang.javascript | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

Loading a page into ID and also load script dynamically? Jonas Thörnvall <jonas.thornvall@gmail.com> - 2019-03-19 00:48 -0700
  Re: Loading a page into ID and also load script dynamically? Jonas Thörnvall <jonas.thornvall@gmail.com> - 2019-03-19 01:01 -0700
    Re: Loading a page into ID and also load script dynamically? Jonas Thörnvall <jonas.thornvall@gmail.com> - 2019-03-19 01:32 -0700

csiph-web