External javascripts

Jan 12, 2011 at 8:46 AM

I have some html pages that are dependent on the same external javascript library, normally loaded like this:

<script src="library.js" type="text/javascript">
</script>

Unfortunately Awesomiumdotnet seems to be unable to read it, and the functions can not be called.

library.js as well as the html page using it both reside in the assigned webroot, and the html pages renders fine when read directly by a browser, but when viewed through awesomiumdotnet it operates as if it could not load the external javascript library.

Any idea how to get around this problem?

I could inject the javascript directly into each and every html page, but that would be very messy as the javascript library is continuously being developed and changed, and defeats the purpose of having a library in the first place...

Could I somehow add the javascript library programmatically from c#?

 

Jan 12, 2011 at 4:09 PM

I just found the issue is not in Awesomiumdotnet, it was caused by some weird synchronization issues which only affected my scripts when called from within Awesomiumdotnet but not when called through the browser.

So, it appears the javascript was loading fine after all. Sorry for this false alarm.

Keep up the good work! :)