Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8459665
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T13:23:36+00:00 2026-06-10T13:23:36+00:00

Currently I detect if WebGL is available with creating a canvas and trying to

  • 0

Currently I detect if WebGL is available with creating a canvas and trying to get the context for "webgl" and "experimental-webgl". If both return null, WebGL will be disabled. Now the Problem is, when the user has IEWebGL installed the application itself works fine, but both getContext’s return null, so the availability check returns false. When I visit the tutorial at the IEWebGL website (http://iewebgl.com/Developer.aspx#CreatingTutorial) I can see that they are doing it exactly like I am. Am I missing something?
Some code:

var contextNames = ["webgl", "experimental-webgl"];

var isEnabled = false;
for(var i = 0, length = contextNames.length; i < length; i++)
    if(canvas[0].getContext(contextNames[i]))
        isEnabled = true;
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T13:23:38+00:00Added an answer on June 10, 2026 at 1:23 pm

    You don’t create a canvas element in IEWebGL, you use a object elment instead. Try to replace your canvas element with this and see if it works:

    <object type="application/x-webgl" id="canvas"></object>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

What I am currently trying to do is use the Face API to detect
I am trying to detect when particular applications are launched. Currently I am using
I am currently trying to detect [P Plates] in images made from panoramas off
I am currently trying to implement some code using Android to detect when a
I currently have a drag/drop list my problem being I'm trying to detect when
I'm currently doing an application where I'm trying to detect touch-positions of the user.
What is the currently best method to detect spam ? especially on mobile text
Is there a way to detect if the device I'm currently running on has
I'm trying to detect the browser's current size (width and height). I know it's
I'm trying to figure out how to detect when the current user has changed

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.