First of all, what a TOTALLY AWASOME SCRIPT!!!!!!! Be very proud!, this is a very good job!!! :)
I am studying writing my final examen in computer science.(be handed over 13 april). I am in a bit of haste. I am trying to create multiple dragresize from a button control in a AJAX Tab Control(ASCX). So fare it works fine, though it is add in the
Is there a way to target a ContentPlaceHolder instead of body.innerHTML?
I have only had 1 days introductionary course in school about javascript. Furthermore, I also would like to store the position of these to a database.
Is there any guide you could recommend upon this subject? I am experineced in SQL 2005 Express and C#, just not Javasccript
Again i would like to congratulate for this very cool piece code - and sorry to disturb you.
2) KennyBoyGroup: Guests IP: 85.82.--.--
Posted:
So sorry, my english is not so good. hope you understand my question :)
3) Angus TurnbullGroup: Moderators Posts: 4235Joined: 7 Dec 2003Location: New ZealandIP: 203.109.--.--
Posted:
Try using document.getElementById('element-id') to get a reference to a particular placeholder then create your new draggable elements within that.
Also, "innerHTML += xyz" is a little broken and slow sometimes as it means the entire content of the element is reset. Try creating a new element (document.createElement), appendChild() that onto your container element, then create its contents (innerHTML if you want to is OK there).
- Angus.
4) KennyBoyGroup: Guests IP: 85.82.--.--
Posted:
Thank you so much for the advise!:) I will try this.
5) KennyBoyGroup: Guests IP: 85.82.--.--
Posted:
Sorry interupt again, but i have one more question.
This seemes to work fine, draging, resizing and creation. But when i view the source of the my default.master in my browser, the created elements dont show. will this not give me problems when i want to save these and their position to my database? I want to use these to create layouts for my webpages.
6) Angus TurnbullGroup: Moderators Posts: 4235Joined: 7 Dec 2003Location: New ZealandIP: 203.109.--.--
In short: you'll need to implement a script that finds all your elements and remembers their positions then populates a form field to POST back to the server. That's probably the easiest way. And it will work OK with your current approach.