[Vuejs]-Nuxt: How to load html4 with activeX in Nuxt App?

0๐Ÿ‘

โœ…

I solved this problem like this.

  1. Use res.sendFile(). If you connect a url which is using res.sendFile(/path/to/bulahbulah.html), it will show the bulahbulah.html page which can use activeX(But you need to use internet explorer to run the activeX basically).
router.get('/', async (req, res, next) => {
  res.sendFile('/path/to/bulahbulah.html')
}
  1. When you need to use the values from the bulahbulah.html page in Nuxt App, then you can transport the values with query string. If the Nuxt page is /nuxtPage then, you can append a line in bularbular.html page like this
self.location.replace("/nuxtPage?foo=bar);

So, you can use the values from the normal html page. But, as it transport the values as just query string, need to watch out in using secret values.

Leave a comment