How to show HTML element by domplate?

View: New views
8 Messages — Rating Filter:   Alert me  

How to show HTML element by domplate?

by 马良 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


I want to implement a function: click a HTML element in the firefox
and this element is shown in my custom panel.
I can show the element soruce code by domplate. How to show HTML
element by domplate?

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Firebug" group.
To post to this group, send email to firebug@...
To unsubscribe from this group, send email to firebug-unsubscribe@...
For more options, visit this group at http://groups.google.com/group/firebug?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: How to show HTML element by domplate?

by John J Barton :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Find some where in Firebug that does what you want and work back from
there. I don't understand what you mean by "show HTML element" any
way, maybe you can give an example.

On Jul 22, 6:45 pm, 马良 <malian...@...> wrote:
> I want to implement a function: click a HTML element in the firefox
> and this element is shown in my custom panel.
> I can show the element soruce code by domplate. How to show HTML
> element by domplate?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Firebug" group.
To post to this group, send email to firebug@...
To unsubscribe from this group, send email to firebug-unsubscribe@...
For more options, visit this group at http://groups.google.com/group/firebug?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: How to show HTML element by domplate?

by 马良 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


I have uploaded a picture "display_element.gif " to show what I mean.
Here is the link
http://firebug.googlegroups.com/web/display_element.gif?gda=n4-dYkQAAAB2zFO_A5KkoTHPaE4A5jOAJpNAtCrW9H3YaUlW93xFIGG1qiJ7UbTIup-M2XPURDROF_7KCTQjDp7sK1ci7oGmvTDdAvlCq3b5inRhRDDNqA&gsc=9KVS9QsAAAAjYqXgRaFstvq_V9_3WhSi


On Jul 23, 12:19 pm, John J Barton <johnjbar...@...>
wrote:

> Find some where in Firebug that does what you want and work back from
> there. I don't understand what you mean by "show HTML element" any
> way, maybe you can give an example.
>
> On Jul 22, 6:45 pm, 马良 <malian...@...> wrote:
>
>
>
> > I want to implement a function: click a HTML element in the firefox
> > and this element is shown in my custom panel.
> > I can show the element soruce code by domplate. How to show HTML
> > element by domplate?- Hide quoted text -
>
> - Show quoted text -

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Firebug" group.
To post to this group, send email to firebug@...
To unsubscribe from this group, send email to firebug-unsubscribe@...
For more options, visit this group at http://groups.google.com/group/firebug?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: How to show HTML element by domplate?

by Jan Odvarko-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Perhaps these posts could help you (it's about how to use Domplate):
http://www.softwareishard.com/blog/firebug-tutorial/extending-firebug-domplate-part-v/
http://www.softwareishard.com/blog/firebug-tutorial/extending-firebug-yahoo-search-part-vi/
Honza

On Jul 23, 6:19 am, John J Barton <johnjbar...@...> wrote:

> Find some where in Firebug that does what you want and work back from
> there. I don't understand what you mean by "show HTML element" any
> way, maybe you can give an example.
>
> On Jul 22, 6:45 pm, 马良 <malian...@...> wrote:
>
> > I want to implement a function: click a HTML element in the firefox
> > and this element is shown in my custom panel.
> > I can show the element soruce code by domplate. How to show HTML
> > element by domplate?
>
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Firebug" group.
To post to this group, send email to firebug@...
To unsubscribe from this group, send email to firebug-unsubscribe@...
For more options, visit this group at http://groups.google.com/group/firebug?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: How to show HTML element by domplate?

by John J Barton :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Oh, that's easy: don't use domplate, just put the HTML into the panel.
The panel is just a web page.

On Jul 23, 1:28 am, 马良 <malian...@...> wrote:

> I have uploaded a picture "display_element.gif " to show what I mean.
> Here is the linkhttp://firebug.googlegroups.com/web/display_element.gif?gda=n4-dYkQAA...
>
> On Jul 23, 12:19 pm, John J Barton <johnjbar...@...>
> wrote:
>
> > Find some where in Firebug that does what you want and work back from
> > there. I don't understand what you mean by "show HTML element" any
> > way, maybe you can give an example.
>
> > On Jul 22, 6:45 pm, 马良 <malian...@...> wrote:
>
> > > I want to implement a function: click a HTML element in the firefox
> > > and this element is shown in my custom panel.
> > > I can show the element soruce code by domplate. How to show HTML
> > > element by domplate?- Hide quoted text -
>
> > - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Firebug" group.
To post to this group, send email to firebug@...
To unsubscribe from this group, send email to firebug-unsubscribe@...
For more options, visit this group at http://groups.google.com/group/firebug?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: How to show HTML element by domplate?

by 马良 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


I use "panel.document.write('some words')", it works, but stylesheet
does not work.
I use "panel.document.body.appendChild(myElement)", it does not work.
I find domplate generated code is inserted into "<div active="true"
class="panelNode panelNode-UI Map"></div>", so I must insert my HTML
into this DIV ?

On Jul 23, 10:56 pm, John J Barton <johnjbar...@...>
wrote:

> Oh, that's easy: don't use domplate, just put the HTML into the panel.
> The panel is just a web page.
>
> On Jul 23, 1:28 am, 马良 <malian...@...> wrote:
>
>
>
> > I have uploaded a picture "display_element.gif " to show what I mean.
> > Here is the linkhttp://firebug.googlegroups.com/web/display_element.gif?gda=n4-dYkQAA...
>
> > On Jul 23, 12:19 pm, John J Barton <johnjbar...@...>
> > wrote:
>
> > > Find some where in Firebug that does what you want and work back from
> > > there. I don't understand what you mean by "show HTML element" any
> > > way, maybe you can give an example.
>
> > > On Jul 22, 6:45 pm, 马良 <malian...@...> wrote:
>
> > > > I want to implement a function: click a HTML element in the firefox
> > > > and this element is shown in my custom panel.
> > > > I can show the element soruce code by domplate. How to show HTML
> > > > element by domplate?- Hide quoted text -
>
> > > - Show quoted text -- Hide quoted text -
>
> - Show quoted text -

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Firebug" group.
To post to this group, send email to firebug@...
To unsubscribe from this group, send email to firebug-unsubscribe@...
For more options, visit this group at http://groups.google.com/group/firebug?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: How to show HTML element by domplate?

by John J Barton :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Yes,sorry, you have to get the panelNode and append to it. All of the
panels are just div elements and the one you see is the only one that
is active="true".

On Jul 24, 3:03 am, 马良 <malian...@...> wrote:

> I use "panel.document.write('some words')", it works, but stylesheet
> does not work.
> I use "panel.document.body.appendChild(myElement)", it does not work.
> I find domplate generated code is inserted into "<div active="true"
> class="panelNode panelNode-UI Map"></div>", so I must insert my HTML
> into this DIV ?
>
> On Jul 23, 10:56 pm, John J Barton <johnjbar...@...>
> wrote:
>
> > Oh, that's easy: don't use domplate, just put the HTML into the panel.
> > The panel is just a web page.
>
> > On Jul 23, 1:28 am, 马良 <malian...@...> wrote:
>
> > > I have uploaded a picture "display_element.gif " to show what I mean.
> > > Here is the linkhttp://firebug.googlegroups.com/web/display_element.gif?gda=n4-dYkQAA...
>
> > > On Jul 23, 12:19 pm, John J Barton <johnjbar...@...>
> > > wrote:
>
> > > > Find some where in Firebug that does what you want and work back from
> > > > there. I don't understand what you mean by "show HTML element" any
> > > > way, maybe you can give an example.
>
> > > > On Jul 22, 6:45 pm, 马良 <malian...@...> wrote:
>
> > > > > I want to implement a function: click a HTML element in the firefox
> > > > > and this element is shown in my custom panel.
> > > > > I can show the element soruce code by domplate. How to show HTML
> > > > > element by domplate?- Hide quoted text -
>
> > > > - Show quoted text -- Hide quoted text -
>
> > - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Firebug" group.
To post to this group, send email to firebug@...
To unsubscribe from this group, send email to firebug-unsubscribe@...
For more options, visit this group at http://groups.google.com/group/firebug?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: How to show HTML element by domplate?

by 马良 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Yes, I append to panelNode div, it works.

Thanks a lot!

On Jul 24, 11:05 pm, John J Barton <johnjbar...@...>
wrote:

> Yes,sorry, you have to get the panelNode and append to it. All of the
> panels are just div elements and the one you see is the only one that
> is active="true".
>
> On Jul 24, 3:03 am, 马良 <malian...@...> wrote:
>
>
>
> > I use "panel.document.write('some words')", it works, but stylesheet
> > does not work.
> > I use "panel.document.body.appendChild(myElement)", it does not work.
> > I find domplate generated code is inserted into "<div active="true"
> > class="panelNode panelNode-UI Map"></div>", so I must insert my HTML
> > into this DIV ?
>
> > On Jul 23, 10:56 pm, John J Barton <johnjbar...@...>
> > wrote:
>
> > > Oh, that's easy: don't use domplate, just put the HTML into the panel.
> > > The panel is just a web page.
>
> > > On Jul 23, 1:28 am, 马良 <malian...@...> wrote:
>
> > > > I have uploaded a picture "display_element.gif " to show what I mean.
> > > > Here is the linkhttp://firebug.googlegroups.com/web/display_element.gif?gda=n4-dYkQAA...
>
> > > > On Jul 23, 12:19 pm, John J Barton <johnjbar...@...>
> > > > wrote:
>
> > > > > Find some where in Firebug that does what you want and work back from
> > > > > there. I don't understand what you mean by "show HTML element" any
> > > > > way, maybe you can give an example.
>
> > > > > On Jul 22, 6:45 pm, 马良 <malian...@...> wrote:
>
> > > > > > I want to implement a function: click a HTML element in the firefox
> > > > > > and this element is shown in my custom panel.
> > > > > > I can show the element soruce code by domplate. How to show HTML
> > > > > > element by domplate?- Hide quoted text -
>
> > > > > - Show quoted text -- Hide quoted text -
>
> > > - Show quoted text -- Hide quoted text -
>
> - Show quoted text -

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Firebug" group.
To post to this group, send email to firebug@...
To unsubscribe from this group, send email to firebug-unsubscribe@...
For more options, visit this group at http://groups.google.com/group/firebug?hl=en
-~----------~----~----~----~------~----~------~--~---

LightInTheBox - Buy quality products at wholesale price