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. General Programming
  3. C / C++ / MFC
  4. webbrowser problem

webbrowser problem

Scheduled Pinned Locked Moved C / C++ / MFC
javajavascripttoolshelptutorial
6 Posts 3 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.
  • A Offline
    A Offline
    Aric Wang
    wrote on last edited by
    #1

    How to stop the popup dialog,if an application embeded a webbrowser control,when opening a webpage which has javascript files,it will popup a dialog ask you to confirm whether to run the scripts.I want to know stop stop the dialog,run the java script as default,really thx!

    I am not a genius, but shed more sweat!

    C 1 Reply Last reply
    0
    • A Aric Wang

      How to stop the popup dialog,if an application embeded a webbrowser control,when opening a webpage which has javascript files,it will popup a dialog ask you to confirm whether to run the scripts.I want to know stop stop the dialog,run the java script as default,really thx!

      I am not a genius, but shed more sweat!

      C Offline
      C Offline
      Cedric Moonen
      wrote on last edited by
      #2

      And what does it have to do with C++ ? :confused:

      Cédric Moonen Software developer
      Charting control [v3.0] OpenGL game tutorial in C++

      A 1 Reply Last reply
      0
      • C Cedric Moonen

        And what does it have to do with C++ ? :confused:

        Cédric Moonen Software developer
        Charting control [v3.0] OpenGL game tutorial in C++

        A Offline
        A Offline
        Aric Wang
        wrote on last edited by
        #3

        this->put_Silent(VARIANT_TRUE); but how to do that in CHtmlView...

        I am not a genius, but shed more sweat!

        A 1 Reply Last reply
        0
        • A Aric Wang

          this->put_Silent(VARIANT_TRUE); but how to do that in CHtmlView...

          I am not a genius, but shed more sweat!

          A Offline
          A Offline
          Aric Wang
          wrote on last edited by
          #4

          LPDISPATCH lpDisp = this->GetApplication(); if(lpDisp == NULL) return; IWebBrowser2* lpWeb = NULL; if(SUCCEEDED(lpDisp->QueryInterface(IID_IWebBrowser2, (void**)&lpWeb))) { lpWeb->put_Silent (VARIANT_TRUE); }

          I am not a genius, but shed more sweat!

          E 1 Reply Last reply
          0
          • A Aric Wang

            LPDISPATCH lpDisp = this->GetApplication(); if(lpDisp == NULL) return; IWebBrowser2* lpWeb = NULL; if(SUCCEEDED(lpDisp->QueryInterface(IID_IWebBrowser2, (void**)&lpWeb))) { lpWeb->put_Silent (VARIANT_TRUE); }

            I am not a genius, but shed more sweat!

            E Offline
            E Offline
            Eugen Podsypalnikov
            wrote on last edited by
            #5

            Have you already tried CHtmlView::PutProperty(..) ? :)

            virtual void BeHappy() = 0;

            A 1 Reply Last reply
            0
            • E Eugen Podsypalnikov

              Have you already tried CHtmlView::PutProperty(..) ? :)

              virtual void BeHappy() = 0;

              A Offline
              A Offline
              Aric Wang
              wrote on last edited by
              #6

              No,remark me that.

              I am not a genius, but shed more sweat!

              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