Yes. We currently limit popups to 800px wide.
On Tue, Dec 8, 2009 at 1:52 PM, Joe <[email protected]> wrote:
> ah.
>
> this was my workaround: (the popup seems to max out at a particular
> width, couldn't make it wider).
>
> thanks,
> -joe
>
>
> <!DOCTYPE html>
> <head>
> <script>
> //parse a URL to form an object of properties
> function parseURL(url)
> {
> var loc = { 'href' : url };
> var parts = url.replace('//', '/').split('/');
>
> loc.protocol = parts[0];
> loc.host = parts[1];
>
> parts[1] = parts[1].split(':');
> loc.hostname = parts[1][0];
> return loc;
> }
>
>
> function sw() {
>
> chrome.tabs.getSelected(null, function(tab) {
> var parts = parseURL(tab.url);
> var hostname = parts.hostname.replace(/^www\./i,'');
> document.getElementById("if").src = "http://blahmydomain.com.com/
> blah" + hostname;
> });
> }
>
> sw();
> </script>
> <style>
> body {
> margin: 0px;
> width:950px; // doesn't seem to work.
> height: 850px;
> }
> </style>
>
> </head>
> <body>
> <iframe id=if width=950px height=850 frameborder=0 marginwidth=0
> marginheight=0/>
> </body>
>
>
> On Dec 8, 1:25 pm, Erik Kay <[email protected]> wrote:
> > You can't directly navigate a popup to a non-extension URL. If you need
> to
> > do this, you can use an iframe.
> >
> > Erik
> >
> >
> >
> > On Tue, Dec 8, 2009 at 10:31 AM, Joe <[email protected]> wrote:
> > > Hi,
> >
> > > I have an extension that brings up a popup window when the icon is
> > > clicked. I'd like the content of that window to come from my server.
> > > So I have:
> >
> > > <head>
> > > <script>
> > > function sw() {
> > > // get hostname from current tab?
> > > var hostname = window.location.hostname;
> > > // i want the content of the popup window to have content from
> this
> > > url:
> > > window.location.href= "http://myblahblah.com/blah/" +
> > > hostname;
> > > }
> >
> > > sw();
> > > </script>
> > > </head>
> > > <body>
> > > do i even need this?
> > > </body>
> >
> > > The code above is not working. What am I missing?
> >
> > > thanks,
> > > -joe
> >
> > > --
> >
> > > You received this message because you are subscribed to the Google
> Groups
> > > "Chromium-extensions" group.
> > > To post to this group, send email to
> [email protected].
> > > To unsubscribe from this group, send email to
> > > [email protected]<chromium-extensions%[email protected]><chromium-extensions%2Bunsu
> [email protected]>
> > > .
> > > For more options, visit this group at
> > >http://groups.google.com/group/chromium-extensions?hl=en.
>
> --
>
> You received this message because you are subscribed to the Google Groups
> "Chromium-extensions" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<chromium-extensions%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/chromium-extensions?hl=en.
>
>
>
--
You received this message because you are subscribed to the Google Groups
"Chromium-extensions" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/chromium-extensions?hl=en.