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

This is a discussion on Help!Chrome Extension link to another file! within the Plugins Development section, part of the Chrome Plugins category: Hi guys! I have a problem: i should create an extension with a popup, i want to have a link ...


  1. #1
    GnuDesmo is offline Junior Member
    Join Date
    Mar 2010
    Posts
    7

    Default Help!Chrome Extension link to another file!

    Hi guys!
    I have a problem: i should create an extension with a popup, i want to have a link that loads another file ( not in a new tab but in the same page ) how can I do this?
    I 'm looking for chrome.extension.getURL but i don't know use it.
    For example ..

    <button type="button" class="dcbtn" onClick=chrome.extension.getURL("file.html");></button>

    but it doesn't work!
    Help me please!
    Thanks!

  2. #2
    Waha's Avatar
    Waha is offline Senior Member
    Join Date
    Apr 2009
    Location
    Oregon
    Posts
    788

    Default

    You should really learn some javascript and HTML first..
    ~ Projects ~
    Specialized: Carapass Auction Watcher, Kongregate Chat
    Libraries: bliplib
    Tools: manifest syntax highlighting & snippits
    ~ Happy to make extensions for pay too ;D ~
    Portfolio: Search and Share

  3. #3
    GnuDesmo is offline Junior Member
    Join Date
    Mar 2010
    Posts
    7

    Default

    i know javascript and html, but in the extension (popup) doesn't work!
    For example a stupid example -><a href="prr.html" target="_top">linktext</a>
    In the extension doesn't work.
    you have a solution?

  4. #4
    Waha's Avatar
    Waha is offline Senior Member
    Join Date
    Apr 2009
    Location
    Oregon
    Posts
    788

    Default

    See the chrome.windows and chrome.tabs API references to retrieve the current window's focused tab ID, and use that to update the current tab with the new URL.
    ~ Projects ~
    Specialized: Carapass Auction Watcher, Kongregate Chat
    Libraries: bliplib
    Tools: manifest syntax highlighting & snippits
    ~ Happy to make extensions for pay too ;D ~
    Portfolio: Search and Share

  5. #5
    hailwood is offline Junior Member
    Join Date
    Apr 2010
    Posts
    4

    Default

    Hi i believe what he means is to actually load the other file into the popup window that appears when you click the browser action button?

  6. #6
    PAEz's Avatar
    PAEz is offline Moderator
    Join Date
    Aug 2009
    Location
    Australia
    Posts
    656

    Default

    I know this is old but it came up at the google group so I thought Id link it.....
    How to open a new URL in the popup window?

Similar Threads

  1. Chrome trying to download file when clicking link
    By gary1511 in forum Chrome Troubleshooting
    Replies: 5
    Last Post: 03-19-2011, 06:33 AM
  2. Chrome File Compatibility
    By TechBoyGeorge in forum Chrome Talk
    Replies: 4
    Last Post: 02-01-2010, 02:41 AM
  3. Chrome file browser
    By dheskett in forum Bugs and Vulnerabilities
    Replies: 8
    Last Post: 01-14-2010, 05:35 AM
  4. Replies: 0
    Last Post: 12-13-2009, 09:59 PM
  5. Chrome Extension Installer (.crx file)
    By StevePaul in forum Chrome Plugins
    Replies: 6
    Last Post: 04-28-2009, 02:26 AM

Posting Permissions

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