imothep85's Forum Posts

  • i cant do it with on iframe focus :s

  • can someone help?

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • where i can find the expression "check the LastKeyCode expression" ??

  • can someone help to achieve this?

  • the only function missing is in fact: onbefore loading

    like that if the user types and url, who is blacklisted in a txt file for example, the page is not visible at all and the user is instantly redirected to google

  • if you can add the function for the iframe

         block = true;
                 }
    
                 if (block) {
                  //httpChannel.cancel(Cr.NS_BINDING_ABORTED); //this aborts the load
                  httpChannel.redirectTo(Services.io.newURI('https://www.google.com/', null, null)); //can redirect with this line, if dont want to redirect and just block, then uncomment this line and comment out line above (line 17)
                 }
                }[/code:4yfay4o9]
    
    this come from my mozilla add-on
    
    or maybe something like:
    
    [code:4yfay4o9]};
    function extract_domain(url)    {
        var matches = url.match(/^https?\:\/\/([^\/?#]+)(?:[\/?#]|$)/i);
        return matches[1];
    }
     
    chrome.webRequest.onBeforeRequest.addListener(function(details) { 
    var domain = extract_domain(details.url);
    return { cancel: AUTHORIZED_DOMAINS[domain ]===false }; 
    }, {urls: ["<all_urls>"]},["blocking"]);})();[/code:4yfay4o9]
  • i mean, the user is typing something inside the iframe, the iframe load google.com at the start of layout.

    HOW to copy what the user is typing inside the TextBox object???

  • i cant achive that trying now :s

  • hi in my app i have the iframe object who just show the web.

    HOW can i know with text object or another plugin, what the user is typing?

    i want t do this, evrytime user is typing something inside the iframe, the url or word is copied and pasted into the txt object.

    how can i achive that?

    thanks

  • yeah <img src="{SMILIES_PATH}/icon_e_biggrin.gif" alt=":D" title="Very Happy"> now your last version works but still a problem, when i load the app i did this, added google.com at start

    IF the user is visiting an url i want to be blocked, then he is redirected to google.com this actually works with your example

    BUT what i need is to BLOCK acces to that specific url i dont want the user see the content <img src="{SMILIES_PATH}/icon_e_biggrin.gif" alt=":D" title="Very Happy">

    also like i said if the visited url is for example http://www.bad1.com i want blocked, it works, and im redirected to google

    BUT if the url is http://www.bad1.com/something, the url is not more recognised and im not redirected to google.

    im going to send you a PM <img src="{SMILIES_PATH}/icon_e_biggrin.gif" alt=":D" title="Very Happy">

    thanks for all your help <img src="{SMILIES_PATH}/icon_e_biggrin.gif" alt=":D" title="Very Happy">

  • it gives me an error i cant opent your capx file error in value not an expression hostname is not an expression or instance variable in iframe line 13, column 17 in event xml

  • the problem is, the page is still loaded, and AFTER the user is redirected.

    what i need is to do the redirection BEFORE the url/page is loaded

    also i tried something

    if the url is http://www.test.com/ i do a redirection to google, that works

    BUT if the url is http://www.test.com/something then teh user is no more redirected

    how to do a redirection if after teh backslash / the url contains folders or anything?

    i have a txt file on a server who contains hundreds of urls, what i want is this

    the app start with google search engine, the user do what he want, BUT if he try to reach one of those urls

    listed in the txt file, then he is redirected to google <img src="{SMILIES_PATH}/icon_e_biggrin.gif" alt=":D" title="Very Happy">

  • typing on keyboard i mean when a user type an url who is already inside the txt file on server

    i use iframe because i show the web inside

  • i would like to check a list of urls i have on a server in a txt file

    it is possible to check those urls BEFORE PAGE LOADING with iframe html, and then if the user type one of those he get a redirection?

    i was thinking to ajax...

  • thanks it is possible to do this?

    i would like to check urls i have on a server in a txt file

    it is possible to check those urls BEFORE PAGE LOADING, and then if the user type one of those he get a redirection?

    i was thinking to ajax...