I want to add a Icon that represents my webpage in the browser tabs and when is saved to favorites. How do I add this.
Probably some propriety of the Aplication tag that I can´t find.
And what it the correct size the icon must be ? (32*32 or something like that)
Thanks in advance.
The keyword you are lacking is favicon or favicon.ico.
What you are referring to is a favicon.ico file, which is set on your server, not within your flex app. Depending upon your server setup, it could be as simple as dropping a favicon.ico file that you create in the same directory as your app. The favicon.ico file has to be in a particular format (.ico) and is generally 16x16 pixels, although the .ico format allows for multiple sizes within the same file.
You're looking for a (16 pixel) Favicon.
Related
In my summernote editor I have the problem that the font icon isn't working while I see it back in the html. I am wondering how to fix this issue?
Thanks!
I faced this problem a while ago and solved by:
The fonts used by summernote is not the bootstrap one. They have their own font directory. One can check the console (Ctrl+Shift+I) in web browser for any error. One may have to edit the summernote.css file if they are not located in the default folder for Summernote like adding "../" in front of all the font references at the top of the css file.For my application, I had put it under /static/css/font for the server to find it.
To check whether the server is able to find the directory, one can also check the network by right click -> Inspect element-> change to network tab:
When i did inspect Element on one of the website logo. Image src is as follow.
src="/WSDNPortalTest/Content/themes/images/THP_img.jpg"
Now, I want to try different logo, that i have in my local machine folder.
Is it possible to do that? Advice me. Thanks
It is not possible to inspect and put up your local image. However, you can follow the following steps to achieve the desired result:
Put your image on Google Drive or any other storage server
Generate a sharable link for that image
Inspect the element in your browser
Change image src from src="/WSDNPortalTest/Content/themes/images/THP_img.jpg to src = "sharable-url-here.jpg"
This is how you can achieve the same effect
You can't, but the change will only be valid in that Inspect-session on your local machine. The www would like quite different if it was that easy to change a website! ;-)
see also: How to display local images placed on client machine in HTML webpages
BUT: you could save the entire page using File/Save As and then edit the code locally and replace the downloaded image with your own.
I'm trying to create an Android View with a PNG image displayed as is in it. The only problem is, when I use the "ImageView" option, it will only allow me to create icons (Launcher icon, menu icon...etc.), which are too small to be displayed on my View!
I tried importing the PNG file in the drawable folders manually with "Link to file in the file system" option in the advanced options. That way, it does appear in the Graphical Layout of Eclipse as I want it to, but the XML file refers to a resource android:src="#drawable/myImage.png" that is "not found".
How to solve this?
Thank you in advance.
SOLVED **
Actually, what I did is enter the resource manually in the XML file of my activity as such:
<ImageView
android:src="#drawable/myimage" />
I put the file in all the drawable folders (xhdpi, hdpi, ldpi and mdpi) but in different sizes (200px width for ldpi, 300 for mdpi, 400 for hdpi and 480 for xhdpi). All files' name is myimage.png (but you should not put the extension in the code above!
PS: The reason for which it wasn't working before is that the file name's first letter was capital. I think...
Thanks anyway.
Sorry 'bout editing first post, but the site won't allow me to "answer my own question cuz I'm a newbie". :)
I am supporting a site for a client on the intranet. The site contains links to xml files. These xml files have a unique extension and are intended to be opened by a specific application. Using IE 8, we could support this by setting the option ‘Open files based on content, not file extension’ in Internet Options -> Security -> Custom Level. In IE 9, this option has been removed. Now these files open a new tab and display the xml.
Ideally, I’d like the file to just download through the download manager, but opening file in the application on the client machine would be acceptable as well. What is the best way to do this in IE 9? Is there a setting that I should adjust? Server side, I have tried adjusting the MIME type, but it seems that if I sent it to something unknown (e.g. application/octet-stream) IE determines the content. The last option I could think of would be to adjust the links such that they call an asp.net page that loads the contents of the xml into the response object but changes the header to contain Content-Disposition:"attachment;filename=file.ext”.
Any advice on the best way to solve this problem?
Content-Disposition:attachment is what you are looking for, yes. That is how you instruct browsers to download the file separately, and not try to display it.
You could use routing or rewriting to keep your file URLs, but have an ASHX handle the file so it can set that header. (don't use an ASPX; it's more than you need to just set some headers)
I think the work around that I was looking for was the fact that the 'Open files based on content, not file extension' option in IE8 was renamed, 'Enable MIME Sniffing' in IE9. But Andrew Barber's answer is the correct solution.
I have one xml link. that link have collections of images(apx 1000 images).
when i flex applications start at the time load all images in locally. then when i need that images then use it.
How i do this... give me some links and logic.
Using flex 3.
Thanks advance.
senthil.
Load the .xml form server or so.
Parse the .xml and create a Map where you store all the image URLs
Place an Image Component on your UI and set the "source" property to the value of the image URL
Flash Plugin will load the image from the URL and will show the image when done.
If you are facing a "SandboxVaiolationException" (or something like that) you need to tell your server to let the request go.
If you want to change the "source" Property of the Image at runtime, just set it after a click oder an other Event. (is no problem)