CDHTMLDialog issue
-
When I create a DHTML-based dialog, and I add external resources to the HTML code (images, sounds, etc...), ¿where should I store these resources?, ¿how must be referenced form my html code? :wtf: I supose that putting them into the executable resource section is the best choice... but I don´t know hot to load them from HTML. :~ Thanks. :cool: "nobody knows it, but you´ve got a secret smile, and you use it only for me"
-
When I create a DHTML-based dialog, and I add external resources to the HTML code (images, sounds, etc...), ¿where should I store these resources?, ¿how must be referenced form my html code? :wtf: I supose that putting them into the executable resource section is the best choice... but I don´t know hot to load them from HTML. :~ Thanks. :cool: "nobody knows it, but you´ve got a secret smile, and you use it only for me"
I'm sure there's a better way, but i used a bit of javascript to compose the resource URLs:
// set background image to jpeg stored in resources as "background.jpg"
// determine base URL
strBasePath = document.location.toString();
strBasePath = strBasePath.substring(0, strBasePath.length-3);
// set background
document.body.background = strBasePath + "background.jpg";---
Shog9 Actually I use to find learning in bars when drinking really useful. It sort of makes a language liquid. - Colin Davies, Thinking in English?
-
I'm sure there's a better way, but i used a bit of javascript to compose the resource URLs:
// set background image to jpeg stored in resources as "background.jpg"
// determine base URL
strBasePath = document.location.toString();
strBasePath = strBasePath.substring(0, strBasePath.length-3);
// set background
document.body.background = strBasePath + "background.jpg";---
Shog9 Actually I use to find learning in bars when drinking really useful. It sort of makes a language liquid. - Colin Davies, Thinking in English?
It doesn´t work! I´m still unable to display these images on my dialog, nor using the original file name "title.gif" or the resource index "106" . . . I´m confuse. :eek: Thanks. "nobody knows it, but you´ve got a secret smile, and you use it only for me"
-
It doesn´t work! I´m still unable to display these images on my dialog, nor using the original file name "title.gif" or the resource index "106" . . . I´m confuse. :eek: Thanks. "nobody knows it, but you´ve got a secret smile, and you use it only for me"
How are you naming your resources? Make sure you include the name in quotes, or VS will give it a number instead. (yes, you can use a resource index, but i don't remember how off the top of my head. Use a name 'till you've got the kinks worked out.)
---
Shog9 Actually I use to find learning in bars when drinking really useful. It sort of makes a language liquid. - Colin Davies, Thinking in English?
-
How are you naming your resources? Make sure you include the name in quotes, or VS will give it a number instead. (yes, you can use a resource index, but i don't remember how off the top of my head. Use a name 'till you've got the kinks worked out.)
---
Shog9 Actually I use to find learning in bars when drinking really useful. It sort of makes a language liquid. - Colin Davies, Thinking in English?
Yes, it works! Thanks. "nobody knows it, but you´ve got a secret smile, and you use it only for me"