On Tuesday, August 13, 2013 7:29:27 PM UTC+2, Simon Lindholm wrote:
>
> Well, you can, but not through innerHTML which is what domplate uses. 
> (IIRC.) So try
>
Ah, good to know.

In any case, I don't have good experience when inserting HTML into XUL 
documents.
Mixing XUL and HTML is often problematic, but perhaps depends on complexity
of the markup.

Honza

 

>
> el = document.createElement("splitter");
> panelNode.appendChild(el);
>
> (or with panelNode.ownerDocument, or createElementNS(..., some xul 
> namespace), I don't really know how XUL works.)
>
> Den tisdagen den 13:e augusti 2013 kl. 16:56:19 UTC+2 skrev Jan Honza 
> Odvarko:
>>
>> Note that panel content is HTML 
>>
>> This is the place where <browser> element is used to represent the side 
>> panel content.
>>
>> https://github.com/firebug/firebug/blob/master/extension/content/firebug/firebugOverlay.xul#L443
>>
>> ... and you can't insert XUL elements into HTML page.
>>
>> Honza
>>
>>
>> On Friday, August 9, 2013 4:08:14 PM UTC+2, Dhruva Ray wrote:
>>>
>>> What you mention is the ability to toggle (minimize) a side panel. What 
>>> i wanted was inside a side panel, a horizontal splitter via Domplate or 
>>> otherwise? Is that possible? Or I am mis-reading your comment.
>>>
>>> Thanks,
>>> Dhruva Ray
>>>
>>> On Friday, 9 August 2013 13:50:46 UTC+5:30, Sebastian Zartner wrote:
>>>>
>>>> What's the main purpose to add this splitter? Note that we added a new 
>>>> button 
>>>> to toggle the side panels display in 
>>>> 1.12<https://blog.getfirebug.com/2013/07/05/firebug-1-12-beta-2/>and we 
>>>> intentionally 
>>>> avoided to use a 
>>>> splitter<http://code.google.com/p/fbug/issues/detail?id=6095#c14>
>>>> .
>>>>
>>>> Sebastian
>>>>
>>>> On Friday, August 9, 2013 3:47:34 AM UTC+2, Dhruva Ray wrote:
>>>>>
>>>>> Hi
>>>>>
>>>>> I need to create a XUL splitter element in my Firebug side panel. As 
>>>>> per my understanding, you cannot directly put XUL element tags in 
>>>>> Domplate. 
>>>>> So I did some workarounds which are not working. Any help on how to 
>>>>> resolve 
>>>>> this would be appreciated.
>>>>>
>>>>> My DOMPlate code is 
>>>>>
>>>>>         with (Domplate) {
>>>>>
>>>>>             //xtends DOMReps (via require "firebug/dom/domReps")
>>>>>             aPanel.prototype.panelReps= 
>>>>> domplate(DOMReps.DirTablePlate, {
>>>>>                 VIZ:IFRAME({src:"chrome://xxx/content/panels/viz.xul",
>>>>>                     width:"100%",
>>>>>                     height:"50%",
>>>>>                     frameborder:"0"
>>>>>                 }),
>>>>>
>>>>>                 //Would ideally like a xul splitter tag here
>>>>>
>>>>>                 DATA({width:"100%", height:"50%"})
>>>>>             });
>>>>>         }
>>>>>
>>>>>
>>>>> In my Firebug side panel initialize, I do this
>>>>>
>>>>> this.panelReps.VIZ.replace({}, this.panelNode);
>>>>>
>>>>> //Even something like this does not work
>>>>> //panelNode.innerHTML += "<splitter/>
>>>>>
>>>>> this.timeline.DATA.append({}, this.panelNode);
>>>>> //tag template is from the extended DOMReps
>>>>> this.timeline.tag.append({object:data}, this.panelNode.lastChild);
>>>>>
>>>>> Can you give me a way forward? Thanks!
>>>>>
>>>>> Dhruva Ray
>>>>>
>>>>

-- 
You received this message because you are subscribed to the Google Groups 
"Firebug" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/firebug.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/firebug/3a6b5409-fb5d-4f65-a4e2-499cf134500e%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to