Home

Forums

Web development

 

 

 

 
     
 
dna88 Web development and Technology Forum
 
Profile   Register   Memberlist   Usergroups   FAQ   Search  Log in
Help me! Show properties in DHTMLEdit

 
Post new topic   Reply to topic    dna88 Forum Index -> Programming in Java, C, C#, VB, .NET Discussion Forum
Author Message
lvermeersch
Just In
Just In


Joined: 24 Sep 2004
Posts: 7
Location: Belgium

Post Post subject: Help me! Show properties in DHTMLEdit Reply with quote

Does anyone know how it works to get/show the properties of a selected item in the DHTMLedit control.
I thought the next command should do it but I get no result.

DHTMLedit.execComand DECMD_properties

It gives also no effect when i put ..._PROMPUSER behind it as exrta parameter. Any help is welcome.
Fri Sep 24, 04 3:41 am
Back to top
lvermeersch View user's profile Send private message Send e-mail
quantum
Site Admin
Site Admin


Joined: 07 Mar 2004
Posts: 1048
Location: Dhaka, Bangladesh

Post Post subject: Reply with quote

Hi lvermeersch,

I think, most of us are unfamiliar with DHTMLEdit for VB. I guess it is fairly new and not very popular. What is your actual project? Can we help you with that using something else? Javascript and CSS?
_________________

Dust fills my eyes / Clouds roll by / and I roll with them / Centuries cry / Orders fly / and I fall again
Afford best design, implement best solution. Outsource your web design.
Sat Sep 25, 04 5:37 am
Back to top
quantum View user's profile Send private message Visit poster's website AIM Address
lvermeersch
Just In
Just In


Joined: 24 Sep 2004
Posts: 7
Location: Belgium

Post Post subject: Reply with quote

The info u can find about the DHTMLedit is indead scarce.
I am working on a Webdesign project. A part of that is a pagelayout, code and preview frame.
The layout and preview is done with the DHTMLedit cotrol. If u know an alternetive way tho show/alter
all the properties of a selected item without having to make the properties list myself for each different item (image, sound,text,table, ect.)?
(Maybe it's possible to use scripting in VB itself and make a link somehow to the DHTMLedit control.....)
Sat Sep 25, 04 7:24 am
Back to top
lvermeersch View user's profile Send private message Send e-mail
quantum
Site Admin
Site Admin


Joined: 07 Mar 2004
Posts: 1048
Location: Dhaka, Bangladesh

Post Post subject: Reply with quote

Quote:
(Maybe it's possible to use scripting in VB itself and make a link somehow to the DHTMLedit control.....)


The website will be online, right? In that case you will need to make a dll or com file run on the server itself if it has to what you want using VB. Too much hassle.

But it is certainly possible to change each selected item according to the user inputs. Say you make a form. Now the user makes changes in that form. May be choose a different color from a drop down menu. The form captures the color value and is submitted to the server. A php script reads the value and returns a page with the html for the color. Does that make sense?

It would be of great help if you could show us a demo of what you are trying to do. Any url?
_________________

Dust fills my eyes / Clouds roll by / and I roll with them / Centuries cry / Orders fly / and I fall again
Afford best design, implement best solution. Outsource your web design.
Sat Sep 25, 04 8:10 am
Back to top
quantum View user's profile Send private message Visit poster's website AIM Address
lvermeersch
Just In
Just In


Joined: 24 Sep 2004
Posts: 7
Location: Belgium

Post Post subject: Reply with quote

The website is offline because it's a webdesignprogram and webpages are created offline, but tested
and result viewed can be online. So my problem concers offline.
All (allmost) is done in with VB6 code at the moment and no DLL links on providerserver is needed
all is client sided. Maybe there is een other VBcontrol or other sort that captures a list of all the controls
of a selected pageitem... (maybe i ask to mutch) individual props are no problem for me but is endles work.

The general idea is, when you have in pagelayout in (my case shown by the DHTMLedit control in edit mode)
you simply click on an item you get all (or the most used) properties shown in a different window. You make necesarry changes close the window and changes
are given back (to the DHTMLEdit control).
Sat Sep 25, 04 8:57 am
Back to top
lvermeersch View user's profile Send private message Send e-mail
quantum
Site Admin
Site Admin


Joined: 07 Mar 2004
Posts: 1048
Location: Dhaka, Bangladesh

Post Post subject: DhtmlEdit in VB Reply with quote

hmm...I understand what you are saying. So you want to change the property of a selected item not just on one page, but on every page in the site. How about a Search and Replace. I know in dreamweaver you can do that. Search for a certain snippet of code and replace in the whole site, or pages in a certain folder with a different set of source code. Does dhtmledit has that kind of option?
_________________

Dust fills my eyes / Clouds roll by / and I roll with them / Centuries cry / Orders fly / and I fall again
Afford best design, implement best solution. Outsource your web design.
Sat Sep 25, 04 9:05 am
Back to top
quantum View user's profile Send private message Visit poster's website AIM Address
lvermeersch
Just In
Just In


Joined: 24 Sep 2004
Posts: 7
Location: Belgium

Post Post subject: Reply with quote

I can make changes in different pages.
But the idea is to open one page and select one item of your choice (expl an image).
Then right click the image ask in a small menu for its properties and then they are shown in a separate window (and props can be altered)

now your questions about the DHTMLedit
It is possible to search in the open page.
You can ask for the code bij command: tk = Dhtmledit1.DOM.body.innerhtml
And just use the VB string functions to do the rest (inStr, replace..)
Then after changing the string just put the hole thing back.
Don't really know this is a solution tgough.
If i can't find a better solution i have to make a database with all existing tags end its properties.
and show them in a grid or something, u understand i 'm not so keen on doing that.
On the other hand there maybe not so many common items/tags
I Know there is a limited way of changing props with DHTMLedit, expl. the pictures properties by command
DHTMLEdit1.execCommand DECMD_IMAGE
This opens a seperate window and some minor changes border, filename can be changed
I suppose there is a command for hyperlinks and other items.
Sat Sep 25, 04 10:34 am
Back to top
lvermeersch View user's profile Send private message Send e-mail
quantum
Site Admin
Site Admin


Joined: 07 Mar 2004
Posts: 1048
Location: Dhaka, Bangladesh

Post Post subject: dhtmlEdit Reply with quote

Well...I guess that is as much as I can be of help to you without actually knowing the system. If you get a solution to your problem, please let us know how you did it. Best of luck.
_________________

Dust fills my eyes / Clouds roll by / and I roll with them / Centuries cry / Orders fly / and I fall again
Afford best design, implement best solution. Outsource your web design.
Sun Sep 26, 04 12:40 am
Back to top
quantum View user's profile Send private message Visit poster's website AIM Address
Display posts from previous:   
Post new topic   Reply to topic    dna88 Forum Index -> Programming in Java, C, C#, VB, .NET Discussion Forum All times are GMT - 7 Hours
Page 1 of 1

 

Partners and Resources

Bangladesh hosting company

Bangladesh web design

Driven by phpBB © phpBB Group