Results 1 to 4 of 4
  1. #1
    Pazaz's Avatar
    Join Date
    Jan 2011
    Gender
    male
    Location
    California, USA
    Posts
    53
    Reputation
    10
    Thanks
    31

    Google Chrome Extension Help?

    HELP ME?!
    I Only need help with this: Using the variables on [Bash] Search MPGH - Pastebin.com
    I'm trying to use searchuser Variable, So what do I do?
    I'm trying all ways that I can think of but none of them work.
    One way I tried was: window.open("https://www.mpgh.net/forum/search.php?do=process&query="+document.search.sear ch.value, "&searchuser"), And I've done way more than that with no luck
    Last edited by Pazaz; 04-13-2011 at 05:14 PM.

  2. #2
    Broderick's Avatar
    Join Date
    Apr 2011
    Gender
    male
    Location
    Basement.
    Posts
    100
    Reputation
    42
    Thanks
    30
    The 'searchuser' GET actually requires a value you know, if you read the lines in the documentation:

    Code:
    Variable name: searchuser
    Values: Enter a username
    implying you actually need to do '&searchuser=Broderick' or some such line, an empty field won't work. Also, you don't say what is stored in search.searchvalue, or what your error actually is (no window opens, a javascript error occurs on the page...etc). For all I know, you are accessing the html elements wrong in the first place. Nevertheless, give the first solution a shot.
    The fish trap exists because of the fish.
    Once you've gotten the fish you can forget the trap.
    The rabbit snare exists because of the rabbit.
    Once you've gotten the rabbit, you can forget the snare.
    Words exist because of meaning.
    Once you've gotten the meaning, you can forget the words.
    Where can I find a man who has forgotten words so I can talk with him?

  3. #3
    Pazaz's Avatar
    Join Date
    Jan 2011
    Gender
    male
    Location
    California, USA
    Posts
    53
    Reputation
    10
    Thanks
    31
    Quote Originally Posted by Broderick View Post
    The 'searchuser' GET actually requires a value you know, if you read the lines in the documentation:

    Code:
    Variable name: searchuser
    Values: Enter a username
    implying you actually need to do '&searchuser=Broderick' or some such line, an empty field won't work. Also, you don't say what is stored in search.searchvalue, or what your error actually is (no window opens, a javascript error occurs on the page...etc). For all I know, you are accessing the html elements wrong in the first place. Nevertheless, give the first solution a shot.
    Oh, Okay, Now I understand, Thanks for clearing that up
    EDIT----
    Works perfectly! I thought that we needed query so I kept it, Instead just replace query with what ever you need to
    Last edited by Pazaz; 04-14-2011 at 02:32 PM.

  4. #4
    Broderick's Avatar
    Join Date
    Apr 2011
    Gender
    male
    Location
    Basement.
    Posts
    100
    Reputation
    42
    Thanks
    30
    Quote Originally Posted by Pazaz View Post
    Oh, Okay, Now I understand, Thanks for clearing that up
    EDIT----
    Works perfectly! I thought that we needed query so I kept it, Instead just replace query with what ever you need to
    Not a problem, glad I could help.
    The fish trap exists because of the fish.
    Once you've gotten the fish you can forget the trap.
    The rabbit snare exists because of the rabbit.
    Once you've gotten the rabbit, you can forget the snare.
    Words exist because of meaning.
    Once you've gotten the meaning, you can forget the words.
    Where can I find a man who has forgotten words so I can talk with him?

Tags for this Thread