Animated gif file not working in IE7 - animated-gif

I'm learning Ajax from Sams Teach Yourself Ajax,Javascript and Php All in One
and testing an example which diplays the server time OK but does not show a busy gif image.
In fact all I get is the red cross box where the file should be
Windows Picture and Fax Viewer displays the moving gif file OK so what am I doing wrong?
I have no prior knowledge of using gif files

Right click on the red cross box and select Properties. The subsequent window will show you where IE is looking for the file. In all possibility, the location may not be correct. Must be a problem with the way you are using relative paths.

Properties shows "Type not available" (but file name is "anim.gif")
File location is OK

Related

INSTALLSHIELD setup User may search for their personal or business logo and apply

Every windows screen in our WPF application displays the ICON in the upper left corner. Numerous users of this program have the expectation of seeing their company logo.
We made the logo.ico file a "always copy" so that it is copied into the bin location along with every build. ICON is referring to the logo.ico file in this case.
The logo.ico file's icon will be reflected on the Windows screen if we go ahead and replace it with any other image.
We cannot expect the customers to accomplish this, so we must make it easier for them to browse the icon file during installation. InstalledShield software is used to prepare the installation setup. If there is a better way, please describe it here. I seek advice on how to accomplish this.
I would like you to check why the icon is getting reflected if you replace it with any other image, windows has some specification on the image size to display the icon/tile on the screen. See whether your icon is meeting all those specification to reflect it on the screen.
https://docs.revenera.com/installshield26helplib/helplibrary/IHelpMarsShortcutProperties.htm#ref-views_3737199233_1323863
you can also find information regarding the icon specification from the Microsoft documentation pages.
Apart from that, if you want to show up a browse dialog during the installation then you need to modify your InstallShield project:
1- To launch a browse dialog from the Basic MSI project:
https://docs.revenera.com/installshield23helplib/helplibrary/FileOpenDialog-HowTo.htm
2- To launch a browse dialog from an InstallScript project:
https://community.flexera.com/t5/InstallShield-Knowledge-Base/Displaying-a-File-Browse-Dialog-in-an-InstallScript-Project/ta-p/3964
But, my preference to you to check why the icon is getting reflected if its replaced with other image, and fix it.

showing multiple shockwave flash swf in wpf vb.net blend

i'm totally new with vb.net and wpf and i'm trying to show multiple .swf file in a wpf program that i'm writing with blend.is it possible to use a single webview to show multiple swf files?i mean placing like 5 buttons near that webview and by clicking each button, a specific .swf file appear in the webview?
thanks in advance.
Try this steps
1.Copy te swf file in bin folder.
2.Select "Add/Remove Items".
3.Select "COM Components" Select "Shockwave Flash Object". Click OK.
4.You can see the Shockwave Flash Object in the tool bar.
Code:
AxShockwaveFlash1.Movie = Application.StartupPath & "\flashfile.swf"
AxShockwaveFlash1.Play()
Read more: http://wiki.answers.com/Q/How_add_swf_file_in_vb.net_forms_which_is_save_in_resources#ixzz1toABaXKF
SWF Object Project if you like to see:
https://code.google.com/p/swfobject/

Internet explorer fails to display local image

I've created a bitmap image in C# and want to display this on a webpage on the local machine (so I can print it easily). The problem is, the Internet Explorer 9 does not display the image, it shows the "broken image" icon instead. Firefox has no problems with the image. I'm using Win7, 64 bit.
In order to narrow down the problem, I tried to just drag (from the file explorer) and drop the image file onto an empty browser window. Same thing: Firefox shows it, IE9 doesn't.
It gets even more weird: If I upload the file somewhere (see http://www.diebreuerei.de/Barcode.bmp), the IE9 does display it, it only doesn't if the file is stored locally.
Thanks in advance
Thanks for the answers, guys.
#Shannon: Nope, the console showed no errors.
#Michael: The Bitmap was directly created in C#, I dunno how to encode it in UTF-8.
But I got a solution: I just save my bitmap in PNG format and the IE9 is happy to display it. So I kinda lost interest in BMP :)
See ya,
Hannes

How to set a placeholder for a Image control (while it downloads)?

I have an app that show a list of images. The image source is set to a http URL, and the images are downloaded and display automatically.
However, while the app is taking time to download, the image control shows nothing. The user experience is not good this way.
How may I display a loading placeholder image, or a loading gauge, for each of the image control?
While an image is loading, it is drawn transparently. You can use this to your advantage to display an element underneath the image while it is loading. For example, you could have a stock image that is bundled with your XAP that represents a default avatar for example. Or you could display a XAML loading animation. Then when the image is finished loading, it will obscure the element behind it.
Mick's suggestion is a good one if you need to minimize your visual tree and if your scenario allows for a code solution. This suggestion is not perfect but it does make it easier to deal with the case where your placeholder image is unscaled/centered but the loaded image is scaled/stretched.
You could set the image source to your placeholder then when ImageOpened fires, change it to the remote url and let that run it's course.
In addition to the 2 other suggestions (from Josh & Mick) you could display a placeholder in the xaml and then, in code, download the actual desired image in the background using HttpWebRequest. Then when the image has fully downloaded save it to isolated storage and then update the source to the displayed image.
Yes this is more complex than the other solutions but would simplify the visual tree and avoid a blank image being displayed while the image is downloaded.
It would also give you offline caching of images too.
Interesting how many options there are for tackling this problem.
You might also like to consider Ben Gracewood's image caching implementation or what appears to be a development on that idea in his blog comments.
One-time Cached Images in Windows Phone 7 « Ben.geek.nz
Peter Nowaks Mobile Blog - “Intelligent” Image Caching for WP 7
Some background on the discussion leading up to this here if it's of interest.
Image control cache duration?

How can I make a Windows Explorer file preview screen in WPF?

I'm working on an application that will have attachments, and I would like to create a type of display like in windows Explorer, where you choose a "Details" view, and also show the preview pane.
I would like to be able to show a thumbnail view of the attached file currently selected, based on the file extension.
Does anyone know where I can start to look for examples on how to pull this off?
I know Outlook 2007 can also do something similar using preview handlers. I think that’s going to be the direction I want to go in, but I'm not sure where to start.
Many thanks.
All Hail the Glory of the Hypnotoad!
While you could do it in WPF, you should not do it.
Seriously: don't do it! - you would break many apps (including one of mine).
To do this without .NET, see here for a nice guide.
I think you can start here
http://blogs.microsoft.co.il/blogs/eyal/archive/2007/07/29/Hosting-vista_2F00_office-2007-previewers-in-winform-application.aspx
(the code is partially black on black, at least for me, but you can disable the styles or just copy it)

Resources