There doesn't really seem to be much in the documentation--everything in the docs seems to assume that you're working in an environment that is 100% SmartClient-generated, and refers to any existing web content as "legacy". *shrug*
Maybe I should just get into my specific situation. I have pages listing Transformer toys, and each toy listed as a little "I own it" checkbox that you can check, which sends a request to the server where some database operations happens, AJAX-this, PHP-that, etc. Here's a sample:
http://www.shmax.com/Database/393
Works fine, but I'm planning on upgrading the collection system, such that the "I own it" checkbox is replaced with an "Add to Collection" button. When you click the "Add to Collection" button, my new idea is that one of your fancy dynamic forms appears, perhaps using "sections" to hide the form until it is expanded. Then, for each instance of a collected toy, the user can enter more specific info, such as the toy's condition, how much he paid for it, and so on.
Here's a mockup I did a while back--this is an older concept, in which the entire form fits on one line, but you should still get the idea (just imagine that each horizontal blue bar is a section header, and that when you click on it a form appears below it with more room for extra widgets):
http://www.shmax.com/img/misc/mockup.jpg
I had hoped that I could whip this all up in SmartClient fairly easily, but I'm having layout issues. What I want is for the containing DIV that I already have to expand as rows are added to their container (I've tried using VLayout and HTMLLayout), but I can't even get as far as convincing the VLayout or HTMLLayout container to resize as the sections are expanded/minimized. All of your examples show a static container.
And assuming I get that working, I'm also having trouble getting the container to play nice with the parent DIV (which is generated by my "legacy" code). When I set the container's width to be 100%, I want that to be relative to the containing DIV, not the page. I tried setting the "position:relative" attribute on the container, but all that does is help with positioning, not width or height.
I've barely even started and I can tell I'm already hopelessly on the wrong track. Do I have to start over and rewrite the whole thing such that pretty much everything is done with SmartClient? Any suggestions?
Maybe I should just get into my specific situation. I have pages listing Transformer toys, and each toy listed as a little "I own it" checkbox that you can check, which sends a request to the server where some database operations happens, AJAX-this, PHP-that, etc. Here's a sample:
http://www.shmax.com/Database/393
Works fine, but I'm planning on upgrading the collection system, such that the "I own it" checkbox is replaced with an "Add to Collection" button. When you click the "Add to Collection" button, my new idea is that one of your fancy dynamic forms appears, perhaps using "sections" to hide the form until it is expanded. Then, for each instance of a collected toy, the user can enter more specific info, such as the toy's condition, how much he paid for it, and so on.
Here's a mockup I did a while back--this is an older concept, in which the entire form fits on one line, but you should still get the idea (just imagine that each horizontal blue bar is a section header, and that when you click on it a form appears below it with more room for extra widgets):
http://www.shmax.com/img/misc/mockup.jpg
I had hoped that I could whip this all up in SmartClient fairly easily, but I'm having layout issues. What I want is for the containing DIV that I already have to expand as rows are added to their container (I've tried using VLayout and HTMLLayout), but I can't even get as far as convincing the VLayout or HTMLLayout container to resize as the sections are expanded/minimized. All of your examples show a static container.
And assuming I get that working, I'm also having trouble getting the container to play nice with the parent DIV (which is generated by my "legacy" code). When I set the container's width to be 100%, I want that to be relative to the containing DIV, not the page. I tried setting the "position:relative" attribute on the container, but all that does is help with positioning, not width or height.
I've barely even started and I can tell I'm already hopelessly on the wrong track. Do I have to start over and rewrite the whole thing such that pretty much everything is done with SmartClient? Any suggestions?
Comment