Welcome guest, is this your first visit? Create Account now to join.
Results 1 to 2 of 2

This is a discussion on 'chrome.extension.onRequest.addListener(function()' don`t run other functions within the Plugins Development section, part of the Chrome Plugins category: My function "someFunc" is started by clicking on the button, but does not start when receiving a request. Any thoughts? ...


  1. #1
    Acrossfy is offline Junior Member
    Join Date
    Apr 2011
    Posts
    2

    Question 'chrome.extension.onRequest.addListener(function()' don`t run other functions

    My function "someFunc" is started by clicking on the button, but does not start when receiving a request. Any thoughts?

    Code:
    var someVariable = 'someText';
    
    function someFunc(message)
    {
        alert(message);
    }
    
    $('#someBtn').click(function()
    {
        someFunc(someVariable); //this run
        someFunc(); //this run
    }   
    
    chrome.extension.onRequest.addListener(function(request, sender, sendResponse)
    {
        if (request.action == 'login_on')
        {
          alert(request.action); //this work
          someFunc(request.action); // this don`t run
        }
    });
    Thanks.

  2. #2
    Acrossfy is offline Junior Member
    Join Date
    Apr 2011
    Posts
    2

Similar Threads

  1. Bizarre problem with Chrome search function.
    By ClosedEyeVisuals in forum Chrome Troubleshooting
    Replies: 1
    Last Post: 02-22-2011, 03:54 PM
  2. Chrome Extension function
    By Bhav in forum Plugins Development
    Replies: 1
    Last Post: 02-10-2010, 08:16 PM
  3. How to invoke function in chrome extensions
    By rohit in forum Plugins Development
    Replies: 7
    Last Post: 12-11-2009, 06:33 AM
  4. Comparison of speed for some string functions in Chrome
    By Lex1 in forum Plugins Development
    Replies: 3
    Last Post: 10-29-2009, 02:48 PM
  5. Page Action addListener gives error.
    By rajesh.poddar in forum Plugins Troubleshooting
    Replies: 1
    Last Post: 08-11-2009, 06:03 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •