Re: [jbosstools-dev] Embedded javascript in the VPE visual document?
by Marshall Culpepper
Right, but I'm trying to avoid reinventing the wheel ;) I guess I have no
other recourse?
On Sat, Aug 16, 2008 at 11:27 AM, Max Andersen <manderse(a)redhat.com> wrote:
> This is why you write templates - to simulate the rendering :)
>
> /max (sent from my phone)
>
> On 16/08/2008, at 16.39, "Marshall Culpepper" <mculpepper(a)appcelerator.org>
> wrote:
>
> I guess the next logical question is, where can I look to find the
> Javascript disabling code? I've been doing lots of poking around looking for
> it, but haven't had any luck... any pointers?
>
> On Fri, Aug 15, 2008 at 9:33 PM, Marshall Culpepper <<mculpepper(a)appcelerator.org>
> mculpepper(a)appcelerator.org> wrote:
>
>> At runtime, our widgets are rendered using Javascript. It would help
>> tremendously if we could execute the same script in VPE so I don't have to
>> reinvent the wheel in Java.... (though calling into JS using Rhino is
>> another option, but I'm guessing nowhere near as effecient)
>>
>>
>> On Fri, Aug 15, 2008 at 6:33 PM, Max Andersen < <manderse(a)redhat.com>
>> manderse(a)redhat.com> wrote:
>>
>>> We do what we can to prevent javascript to execute in the editor to avoid
>>> bad sidesffects -. Why do you need it ?
>>>
>>> /max (sent from my phone)
>>>
>>>
>>>
>>> On 15/08/2008, at 21.25, "Marshall Culpepper" <<mculpepper(a)appcelerator.org>
>>> mculpepper(a)appcelerator.org> wrote:
>>>
>>> Hey guys..
>>>>
>>>> I was curious if it's possible to execute javascript by adding <script>
>>>> nodes into the head node the same way that <link> nodes are added for CSS
>>>> styles. I've created a method that does it for me locally, but the script in
>>>> question doesn't seem to be executing... is there something special needed
>>>> to make javascript work in this document? Here's my snippet:
>>>>
>>>> public static void addScriptNodeToHead (VpePageContext pageContext,
>>>> nsIDOMDocument visualDocument, String scriptSrc) {
>>>> nsIDOMNode headNode =
>>>> pageContext.getVisualBuilder().getHeadNode();
>>>>
>>>> nsIDOMElement scriptNode =
>>>> visualDocument.createElement("script");
>>>> scriptNode.setAttribute("src", scriptSrc);
>>>> scriptNode.setAttribute("type", "text/javascript");
>>>>
>>>> headNode.appendChild(scriptNode);
>>>> }
>>>> _______________________________________________
>>>> jbosstools-dev mailing list
>>>> <jbosstools-dev(a)lists.jboss.org>jbosstools-dev(a)lists.jboss.org
>>>> <https://lists.jboss.org/mailman/listinfo/jbosstools-dev>
>>>> https://lists.jboss.org/mailman/listinfo/jbosstools-dev
>>>>
>>>
>>
> _______________________________________________
> jbosstools-dev mailing list
> jbosstools-dev(a)lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/jbosstools-dev
>
>
16 years, 4 months
3.alpha status and what is new and noteworthy
by Max Rydahl Andersen
Hi,
We now reached 0 outstanding issues for 3.alpha (hurray!) so Rob and
Dennis will be able to push the release out when they get online.
I'm almost done with what is new and noteworthy, but need some final
polishing I will do tonight.
You can see the current version here:
http://fisheye.jboss.org/browse/~raw,r=9798/JBossTools/trunk/documentatio...
Feedback welcome!
Things I do know:
the navigation links are broken
I'm missing a screenshot for the archives and JBoss AS part.
Need to add some example of BIRT running on a datasource
--
-max
16 years, 4 months
QA Daily report 19 August 2008
by Aliaksey Nis
Hello Denis,
This is Daily QA report for 19 August 2008.
Tasks performed:
1. Free testing of latest JBoss Tools 3.0.0 alpha1 build.
2. Issues verification
3. Testcases updating.
--
Best regards,
Aliaksey mailto:anis@exadel.com
16 years, 4 months