Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
How Do You Show A Bundled Image With showNotification()?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  7 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Brian Vargas  
View profile  
 More options Oct 22 2009, 9:49 am
From: Brian Vargas <br...@ardvaark.net>
Date: Thu, 22 Oct 2009 09:49:44 -0400
Local: Thurs, Oct 22 2009 9:49 am
Subject: How Do You Show A Bundled Image With showNotification()?
-----BEGIN PGP SIGNED MESSAGE-----
Hash: RIPEMD160

Hi,

The IDL for platform.showNotification() [1] claims the third parameter
is the URI of an image to be loaded and displayed with the notification.
 It works fine with a remote image pulled down over HTTP, but I'd like
it to display an image from the bundle.  Is that possible?

Any help would be greatly appreciated.  Thanks!

Brian

1:
http://mxr.mozilla.org/mozillasvn/source/projects/webrunner/component...
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (MingW32)
Comment: What is this? http://pgp.ardvaark.net
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEAREDAAYFAkrgYvgACgkQ3YdPnMKx1ePbcwCgmYG3AFOrxH+YPIRwnQxk6xYu
xI8An2IHWpibbba0FB8ybsVydClZA5zs
=VslX
-----END PGP SIGNATURE-----


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Discussion subject changed to "How Do You Show A Bundled Image With showNotific ation()?" by Jason Miller
Jason Miller  
View profile  
 More options Oct 22 2009, 9:54 am
From: "Jason Miller" <ja...@developit.ca>
Date: Thu, 22 Oct 2009 08:54:19 -0500
Local: Thurs, Oct 22 2009 9:54 am
Subject: Re: How Do You Show A Bundled Image With showNotific ation()?

It would be much easier to convert your image into a base64-encoded string and place that in your webapp.js file.

var notifyIconResource = "data:image/png;base64,
iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAABGdBTUEAALGP
C/xhBQAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB9YGARc5KB0XV+IA
AAAddEVYdENvbW1lbnQAQ3JlYXRlZCB3aXRoIFRoZSBHSU1Q72QlbgAAAF1J
REFUGNO9zL0NglAAxPEfdLTs4BZM4DIO4C7OwQg2JoQ9LE1exdlYvBBeZ7jq
ch9//q1uH4TLzw4d6+ErXMMcXuHWxId3KOETnnXXV6MJpcq2MLaI97CER3N0
vr4MkhoXe0rZigAAAABJRU5ErkJggg==";

platform.showNotification(message, title, notifyIconResource);

- Jason

*Jason Miller*
519.872.0797 // developIT [link: http://developit.ca/] // Jason Miller Design [link: http://jasonmillerdesign.com/]
Developer of amoebaOS [link: https://amoebaos.com/], Shutterborg [link: http://shutterb.org/], Delitweet [link: http://delitweet.com/] & more

On Thu Oct 22 2009 09:49:44 GMT-0400 (EST), Brian Vargas [link: mailto:br...@ardvaark.net] wrote:

-----BEGIN PGP SIGNED MESSAGE-----
Hash: RIPEMD160

Hi,

The IDL for platform.showNotification() [1] claims the third parameter
is the URI of an image to be loaded and displayed with the notification.
It works fine with a remote image pulled down over HTTP, but I'd like
it to display an image from the bundle.  Is that possible?

Any help would be greatly appreciated.  Thanks!

Brian

1:
http://mxr.mozilla.org/mozillasvn/source/projects/webrunner/component...
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (MingW32)
Comment: What is this? http://pgp.ardvaark.net
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEAREDAAYFAkrgYvgACgkQ3YdPnMKx1ePbcwCgmYG3AFOrxH+YPIRwnQxk6xYu
xI8An2IHWpibbba0FB8ybsVydClZA5zs
=VslX
-----END PGP SIGNATURE-----


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Brian Vargas  
View profile  
 More options Oct 22 2009, 10:00 am
From: Brian Vargas <br...@ardvaark.net>
Date: Thu, 22 Oct 2009 10:00:06 -0400
Local: Thurs, Oct 22 2009 10:00 am
Subject: Re: How Do You Show A Bundled Image With showNotific ation()?
-----BEGIN PGP SIGNED MESSAGE-----
Hash: RIPEMD160

Jason,

Wow, is that ugly.  But it works, and I can't argue with success!

Thanks for the help!

Brian

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (MingW32)
Comment: What is this? http://pgp.ardvaark.net
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEAREDAAYFAkrgZWYACgkQ3YdPnMKx1eNmPACg2fg9m/mB9kBftAEfXYEq3mjh
sm8An3O9E3ymrsHed8ZF4q46JcC4ENzd
=O2aq
-----END PGP SIGNATURE-----


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jason Miller  
View profile  
 More options Oct 22 2009, 10:01 am
From: "Jason Miller" <ja...@developit.ca>
Date: Thu, 22 Oct 2009 09:01:58 -0500
Local: Thurs, Oct 22 2009 10:01 am
Subject: Re: How Do You Show A Bundled Image With showNotific ation()?

No problem, I had a similar idea earlier when trying to use multiple local JavaScript files, but I don't think Prism makes it easy to gain access to the bundle's cached location and the files therein.

*Jason Miller*
519.872.0797 // developIT [link: http://developit.ca/] // Jason Miller Design [link: http://jasonmillerdesign.com/]
Developer of amoebaOS [link: https://amoebaos.com/], Shutterborg [link: http://shutterb.org/], Delitweet [link: http://delitweet.com/] & more

On Thu Oct 22 2009 10:00:06 GMT-0400 (EST), Brian Vargas [link: mailto:br...@ardvaark.net] wrote:

-----BEGIN PGP SIGNED MESSAGE-----
Hash: RIPEMD160

Jason,

Wow, is that ugly.  But it works, and I can't argue with success!

Thanks for the help!

Brian

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (MingW32)
Comment: What is this? http://pgp.ardvaark.net
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEAREDAAYFAkrgZWYACgkQ3YdPnMKx1eNmPACg2fg9m/mB9kBftAEfXYEq3mjh
sm8An3O9E3ymrsHed8ZF4q46JcC4ENzd
=O2aq
-----END PGP SIGNATURE-----


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Matthew Gertner  
View profile  
 More options Oct 22 2009, 12:35 pm
From: Matthew Gertner <matthew.gert...@gmail.com>
Date: Thu, 22 Oct 2009 17:35:35 +0100
Local: Thurs, Oct 22 2009 12:35 pm
Subject: Re: How Do You Show A Bundled Image With showNotific ation()?

You can also say resource://webapp/image.png where image.png is a file
located in the webapp home directory (the place as webapp.ini).


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jason Miller  
View profile  
 More options Oct 22 2009, 1:10 pm
From: "Jason Miller" <ja...@developit.ca>
Date: Thu, 22 Oct 2009 12:10:12 -0500
Local: Thurs, Oct 22 2009 1:10 pm
Subject: Re: How Do You Show A Bundled Image With showNotific ation()?

Ahh - I had hoped there was a simple URI for the bundle directory.
Thanks, that's going to be extremely useful.

- Jason

*Jason Miller*
519.872.0797 // developIT [link: http://developit.ca/] // Jason Miller Design [link: http://jasonmillerdesign.com/]
Developer of amoebaOS [link: https://amoebaos.com/], Shutterborg [link: http://shutterb.org/], Delitweet [link: http://delitweet.com/] & more

On Thu Oct 22 2009 12:35:35 GMT-0400 (EST), Matthew Gertner [link: mailto:matthew.gert...@gmail.com] wrote:You can also say resource://webapp/image.png where image.png is a file located in the webapp home directory (the place as webapp.ini).

On Thu, Oct 22, 2009 at 3:01 PM, Jason Miller <ja...@developit.ca [link: mailto:ja...@developit.ca]> wrote:

No problem, I had a similar idea earlier when trying to use multiple local JavaScript files, but I don't think Prism makes it easy to gain access to the bundle's cached location and the files therein.

*Jason Miller*
519.872.0797 // developIT [link: http://developit.ca/] // Jason Miller Design [link: http://jasonmillerdesign.com/]

Developer of amoebaOS [link: https://amoebaos.com/], Shutterborg [link: http://shutterb.org/], Delitweet [link: http://delitweet.com/] & more

On Thu Oct 22 2009 10:00:06 GMT-0400 (EST), Brian Vargas [link: mailto:br...@ardvaark.net] wrote:

-----BEGIN PGP SIGNED MESSAGE-----
Hash: RIPEMD160

Jason,

Wow, is that ugly.  But it works, and I can't argue with success!

Thanks for the help!

Brian

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (MingW32)
Comment: What is this? http://pgp.ardvaark.net [link: http://pgp.ardvaark.net]
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ [link: http://enigmail.mozdev.org/]

iEYEAREDAAYFAkrgZWYACgkQ3YdPnMKx1eNmPACg2fg9m/mB9kBftAEfXYEq3mjh
sm8An3O9E3ymrsHed8ZF4q46JcC4ENzd
=O2aq
-----END PGP SIGNATURE-----


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Brian Vargas  
View profile  
 More options Oct 22 2009, 2:02 pm
From: Brian Vargas <br...@ardvaark.net>
Date: Thu, 22 Oct 2009 14:02:48 -0400
Local: Thurs, Oct 22 2009 2:02 pm
Subject: Re: How Do You Show A Bundled Image With showNotific ation()?
-----BEGIN PGP SIGNED MESSAGE-----
Hash: RIPEMD160

Perfect!  That's exactly what I was looking for - much cleaner.

Thanks!

Brian

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (MingW32)
Comment: What is this? http://pgp.ardvaark.net
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEAREDAAYFAkrgnkgACgkQ3YdPnMKx1eMttQCePFlrgo5bcrlXvgnaLpZQPQBI
YWQAn0/VEEwPX179qt7HSZ3+v3zUjuXu
=QC4G
-----END PGP SIGNATURE-----


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »