Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Floating objects..

Guest
Jul 31, 2010 Jul 31, 2010

Hi,

I have a background image in my page. The image is a systemdrawing. I want to place textboxes containing information from a database related to different parts of the drawing. How can I place textbox objects freely though out the background image?

/Mats

TOPICS
Server side applications
1.9K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jul 31, 2010 Jul 31, 2010

Because the background image is in a fixed position, either relative to the body tag or to the div tag within the body tag, you will need to place the textboxes at a fixed position relative to either the body tag or the dive tag.

I hope this helps

Ben

Wappler is the DMXzone-made Dreamweaver replacement and includes the best of their powerful extensions, as well as much more!
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Aug 01, 2010 Aug 01, 2010

Yes, I know. But how do I make dreamweaver place an object where that I want it? Now it always becomes left justified. I want to drag the textbox to the position where I want it and drop it there. 

This is what it looks like if I code it manually.

<input name="UnitId" type="text" id="UnitId" style=\"position:absolute;width:49px;left:252px;top:428px;z-index:1\" value="<?php echo $row_unitStartLevel['Start_Level'];?> />

This was actually created with another tool but I have to add the PHP database access manually.

Could I make dreamweaver produce something like this?

/Mats

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Aug 02, 2010 Aug 02, 2010
Yes, I know. But how do I make dreamweaver place an object where that I want it? Now it always becomes left justified. I want to drag the textbox to the position where I want it and drop it there.

DW is not a drag and drop tool and will not do what you want it to.

This was actually created with another tool but I have to add the PHP database access manually.

What is the other tool, you have made me curious.

Wappler is the DMXzone-made Dreamweaver replacement and includes the best of their powerful extensions, as well as much more!
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Aug 02, 2010 Aug 02, 2010

I used this

http://www.webpage-maker.com/

Perhaps it is possible to us it to create the layout, pick it upp in DW and add the database things. And mayby pick it upp in web page maker again if I want to move something. I will try.

/Mats

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Aug 02, 2010 Aug 02, 2010

>>input name="UnitId" type="text" id="UnitId" style=\"position:absolute

The application you used used absolute positioning to allow you to drag/drop. You can do this with DW too using AP Divs, however it is not recommended to use absolute positioning for general layout. Your question really belongs in the main Dreamweaver forum, not the application developement forum as you are asking about page layouts.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Aug 02, 2010 Aug 02, 2010
LATEST

If I’m not to use absolute positioning. What approach would you suggest to solve my original requirement ie. to be able to place text/values from a database on an image on positions they relate to?

I am usually an embedded programmer with very little experience from web programming. But I am a little frustrated over the web/database things made by the professionals here. So I obviously think I can do it better !


I’ll try to be more cautious in my choice of forum in the future .

/Mats

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines