Login ProductsSalesSupportDownloadsAbout |
Home » Technical Support » Elevate Web Builder Technical Support » Support Forums » Elevate Web Builder General » View Thread |
Messages 1 to 10 of 10 total |
window.PointerEvent in external javascript |
Mon, Feb 24 2014 6:29 AM | Permanent Link |
Chris Holland SEC Solutions Ltd. Team Elevate | I am trying to test for window.PointerEvent in some external javascript
so that I can get touch working in IE but it never appears to be defined. Is fact the window object that I am accessing in the javascript does not appear to be the standard browser window but a different class altogether. Is there any way to access the browser window object from external javascript with EWB? -- Chris Holland [Team Elevate] |
Mon, Feb 24 2014 4:34 PM | Permanent Link |
Tim Young [Elevate Software] Elevate Software, Inc. timyoung@elevatesoft.com | Chris,
<< I am trying to test for window.PointerEvent in some external javascript so that I can get touch working in IE but it never appears to be defined. >> Code please. << Is fact the window object that I am accessing in the javascript does not appear to be the standard browser window but a different class altogether. >> It's possible that some JS has messed with the namespace in such a way as to make it different, but that's a pretty odd thing to do. << Is there any way to access the browser window object from external javascript with EWB? >> It should be defined as just: window as a global variable. Tim Young Elevate Software www.elevatesoft.com |
Mon, Feb 24 2014 5:27 PM | Permanent Link |
Chris Holland SEC Solutions Ltd. Team Elevate | I am just testing if the pointer events are supported indicating IE 11
using the following and setting the style to contain touch-action : none if (window.PointerEvent) signaturec.setAttribute("style","touch-action: none;"); Chris Holland [Team Elevate] On 24/02/2014 21:34, Tim Young [Elevate Software] wrote: > Chris, > > << I am trying to test for window.PointerEvent in some external > javascript so that I can get touch working in IE but it never appears to > be defined. >> > > Code please. > > << Is fact the window object that I am accessing in the javascript does > not appear to be the standard browser window but a different class > altogether. >> > > It's possible that some JS has messed with the namespace in such a way > as to make it different, but that's a pretty odd thing to do. > > << Is there any way to access the browser window object from external > javascript with EWB? >> > > It should be defined as just: > > window > > as a global variable. > > Tim Young > Elevate Software > www.elevatesoft.com |
Tue, Feb 25 2014 7:13 AM | Permanent Link |
Chris Holland SEC Solutions Ltd. Team Elevate | If I run my extrenal javascript from Expression Web 4 then
if(window.PointerEvent) returns true so I set the Canvas style to contain "touch-action: none" and the canvas then doesn't try and pan around when I touch it using IE. If I test window.PointerEvent from EWB it doesn't exist. Trying to set the "touch-action:none" style anyway doesn't appear to stop the panning even if I just set it and bypass the test for window.PointerEvent Chris Holland [Team Elevate] On 24/02/2014 22:27, Chris Holland wrote: > I am just testing if the pointer events are supported indicating IE 11 > using the following and setting the style to contain touch-action : none > > if (window.PointerEvent) > signaturec.setAttribute("style","touch-action: none;"); > |
Fri, Feb 28 2014 4:04 PM | Permanent Link |
Tim Young [Elevate Software] Elevate Software, Inc. timyoung@elevatesoft.com | Chris,
<< if (window.PointerEvent) signaturec.setAttribute("style","touch-action: none;"); >> PointerEvent is not defined in the TWindow external interface in EWB, so it won't be accessible at all. You'll have to modify the TWindow external interface in the WebDOM unit and add the appropriate property in order to use it with EWB. Tim Young Elevate Software www.elevatesoft.com |
Fri, Feb 28 2014 4:07 PM | Permanent Link |
Tim Young [Elevate Software] Elevate Software, Inc. timyoung@elevatesoft.com | Chris,
<< If I run my extrenal javascript from Expression Web 4 then if(window.PointerEvent) returns true so I set the Canvas style to contain "touch-action: none" and the canvas then doesn't try and pan around when I touch it using IE. If I test window.PointerEvent from EWB it doesn't exist. Trying to set the "touch-action:none" style anyway doesn't appear to stop the panning even if I just set it and bypass the test for window.PointerEvent >> I'd have to see how you're setting it as an in-line style. It's a CSS property, so inline styles should work with it. Tim Young Elevate Software www.elevatesoft.com |
Sat, Mar 1 2014 5:21 PM | Permanent Link |
Chris Holland SEC Solutions Ltd. Team Elevate | I am setting it lke this
signaturec.setAttribute("style","touch-action: none;"); Chris Holland [Team Elevate] On 28/02/2014 21:07, Tim Young [Elevate Software] wrote: > Chris, > > << If I run my extrenal javascript from Expression Web 4 then > if(window.PointerEvent) returns true so I set the Canvas style to > contain "touch-action: none" and the canvas then doesn't try and pan > around when I touch it using IE. > > If I test window.PointerEvent from EWB it doesn't exist. > > Trying to set the "touch-action:none" style anyway doesn't appear to > stop the panning even if I just set it and bypass the test for > window.PointerEvent >> > > I'd have to see how you're setting it as an in-line style. It's a CSS > property, so inline styles should work with it. > > Tim Young > Elevate Software > www.elevatesoft.com |
Tue, Mar 11 2014 8:46 AM | Permanent Link |
Tim Young [Elevate Software] Elevate Software, Inc. timyoung@elevatesoft.com | Chris,
<< I am setting it lke this signaturec.setAttribute("style","touch-action: none;"); >> That should work fine. And signaturec is the canvas element, I assume ? Tim Young Elevate Software www.elevatesoft.com |
Tue, Mar 11 2014 10:03 AM | Permanent Link |
Chris Holland SEC Solutions Ltd. Team Elevate | Yes, I will see if I can know up a small test project for this on
Thursday (I am off work tomorrow) Chris Holland [Team Elevate] On 11/03/2014 12:46, Tim Young [Elevate Software] wrote: > Chris, > > << I am setting it lke this > > signaturec.setAttribute("style","touch-action: none;"); >> > > That should work fine. And signaturec is the canvas element, I assume ? > > Tim Young > Elevate Software > www.elevatesoft.com |
Thu, Mar 13 2014 9:23 AM | Permanent Link |
Chris Holland SEC Solutions Ltd. Team Elevate | I have emailed a small demo project that shows this happening (hopefully)
Chris Holland [Team Elevate] On 11/03/2014 12:46, Tim Young [Elevate Software] wrote: > Chris, > > << I am setting it lke this > > signaturec.setAttribute("style","touch-action: none;"); >> > > That should work fine. And signaturec is the canvas element, I assume ? > > Tim Young > Elevate Software > www.elevatesoft.com |
This web page was last updated on Saturday, May 4, 2024 at 12:54 AM | Privacy PolicySite Map © 2024 Elevate Software, Inc. All Rights Reserved Questions or comments ? E-mail us at info@elevatesoft.com |