Results 1 to 4 of 4

This is a discussion on Multiple popup.html's within the Plugins Development section, part of the Chrome Plugins category: If GChrome doesn't have dialogs, and relies instead on the popup from the toolbar button ... How can I switch ...


  1. #1
    HappyFunBall is offline Junior Member
    Join Date
    Mar 2010
    Posts
    3

    Default Multiple popup.html's

    If GChrome doesn't have dialogs, and relies instead on the popup from the toolbar button ...

    How can I switch the popup's contents?
    With Ajax I could replace the contents of a div or even the body, but not the scripts or css styles.
    I've tried window.location = "popup2.html", which which works as a page, but not a menu popup.

    - can I drag the popup around the screen?
    - style its background (transparent?), borders, and/or remove the cartoon-balloon pointer?

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

    Default

    You'll have to change it with JavaScript (ie. dynamic HTML ). You can use a background page to control what needs to popup if there's no other external data that controls that.
    Can't drag the popups. Dunno about making it transparent, I don't think so think that's the default background color.
    ~ 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
    blindmurray is offline Junior Member
    Join Date
    May 2010
    Posts
    2

    Default

    HappyFunBall - have you tried the experimental.popup namespace?

  4. #4
    HappyFunBall is offline Junior Member
    Join Date
    Mar 2010
    Posts
    3

    Default

    I need to show an iframe in the popup.html with varying content from a server (a page containing HTML, Scripts, and CSS).
    I also need to modify the iframe from JS in popup.html, providing it with variables and functions, so it needs to be local with the same domain/protocol/port as popup.html.

    Apparently I can't save new content to the disk which the iframe points to <iframe src="localfile.html" ... />,
    I can only change content dynamically with something like jQuery().html(...), but that only changes the DOM, not the CSS or Scripts.

    How do I either save a local file, or change the whole iframe contents (HTML + CSS + Scripts)?
    Maybe I can point the iframe to something other than a localfile (Storage or ApplicationCache)?
    Last edited by HappyFunBall; 09-20-2010 at 05:12 AM.

Similar Threads

  1. Javascript BUG in popup windows
    By bongobongo in forum Bugs and Vulnerabilities
    Replies: 5
    Last Post: 09-06-2010, 08:01 PM
  2. Differentiate popup event..
    By pornima in forum Plugins Development
    Replies: 1
    Last Post: 02-25-2010, 05:14 AM
  3. popup window event
    By pornima in forum Plugins Development
    Replies: 2
    Last Post: 02-11-2010, 03:39 AM
  4. Popup size
    By mg2 in forum Plugins Development
    Replies: 2
    Last Post: 11-24-2009, 03:21 PM
  5. How can I block a popup?
    By Glennie in forum Chrome Tips & Tricks
    Replies: 3
    Last Post: 09-30-2009, 02:12 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
  •