Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. FireEvent in firefox

FireEvent in firefox

Scheduled Pinned Locked Moved ASP.NET
tutorialquestion
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Suamal
    wrote on last edited by
    #1

    In ie we can fire the event from popup window to opener as opener.document.all('b1').fireEvent("onclick"); b1 - is button in parent. how to implement this in firefox?

    D 1 Reply Last reply
    0
    • S Suamal

      In ie we can fire the event from popup window to opener as opener.document.all('b1').fireEvent("onclick"); b1 - is button in parent. how to implement this in firefox?

      D Offline
      D Offline
      danidanidani
      wrote on last edited by
      #2

      In Firefox (or anything else but IE for that fact) you cannot use document.all which is a good reason to try to avoid it. Therefore instead of document.all you should use getElementById such as: document.getElementById("b1") Also, in Firefox you don't have fireEvent. You could instead either dispatchEvent (as described here: http://developer.mozilla.org/en/docs/DOM:element.dispatchEvent) or you could retrieve the handler yourself and call it explicitly

      Cheers, Dani

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups