Firefox addon help

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • fluk3d
    New Member
    • Jul 2007
    • 5

    Firefox addon help

    Hello,

    I'm working on a portion of my Firefox script which will when you click on a button it will call the openUrl function and open up the nwtools URL. Eventually I will be passing the eWhois variable into the openURL function so i can modify the host. Unfortunately it is not working at the basic stage of just opening the following url. Any ideas?



    Code:
    <groupbox>
    <caption label="DNS Tools"/>
    eWhois = document.getElementById('nWhois').value;
    <row><textbox id="nWhois" value=""/> <button label="whois" width="15" oncommand="openURL();"  /> </row>
    </groupbox>
    
    function openURL() {
    wndow.open(http://nwtools.com/default.asp?prog=whois&host=cnn.com, "_blank", "chrome=true");
    
    }
  • drhowarddrfine
    Recognized Expert Expert
    • Sep 2006
    • 7434

    #2
    You misspelled window on the last line.

    Comment

    • fluk3d
      New Member
      • Jul 2007
      • 5

      #3
      ok fixed it, it's working now except its not opening the variable at the end of the url


      Code:
      <groupbox>
      <caption label="DNS Tools"/>
      eWhois = document.getElementById('nWhois').value;
      <row><textbox id="nWhois" value=""/> <button label="whois" width="15" oncommand="openURL(eWhois);"  /> </row>
      </groupbox>	
      
      function openURL(host)
      {
      
      window.open("http://nwtools.com/default.asp?prog=whois&host=+host", "whois", "chrome");
      }

      Comment

      • fluk3d
        New Member
        • Jul 2007
        • 5

        #4
        anyone have any suggestions? im kinda stuck

        Comment

        • drhowarddrfine
          Recognized Expert Expert
          • Sep 2006
          • 7434

          #5
          You should probably ask this in the javascript forum.

          Comment

          Working...