First of all I should have to say that I do have a good knowledge in C# and but not much knowledge in JS and Jquery.
I’m going to develop a web application which can see a specific location of a building (conference room, manager’s room) graphically. It is used a building map and a locator is created with jquery which is dragable.
Locator is used html img controller.
<div id="draggable" class="ui-icon-image">
<img id="img1" src="/Resource/location_icon.png" width="27px" height="45px" />
</div>
Here is the jquery
$( "#draggable" ).draggable({containment: '#mainDIV'})
The interface like this.
One dropdown list (this controller is feed all the locations in the office such as manager’s office, conference room, lunch room etc.)
The map of the office
Locator (html img controller)
Save button (This is an asp button)
Now I want to save the location to the database.
Eg: Stage 1 : if the user select “manager’s room” from the dropdownlist, then user should have to drag and drop the locator to the right position and click save button.
Stage 2 : if the user select “manager’s room” from the dropdownlist, it should automatically show the locator in right position.
When click save button, top and left position of the img controller (or related div tag) should have to pass to the database. But still I do not have an idea, this must do with code behind? Can we use jquery to save data to the database?
Actually I do not have much knowledge to how handle a situation like Stage 1 and Stage 2.
I do not ask a code for this. Expect some direction for doing this.