chrome frame - not working in local machine - google-chrome

I have installed chrome frame in IE 8. Then in the HTML page I added the below meta tag
This works fine when I upload the HTML page online and tested. But when I test the same locally it is not working.
Please advise how to solve this.
Thanks

What you have to do is create a new registry entry that will allow you to prefix any URL with "gcf:".
You can find the instructions here: http://www.chromium.org/developers/how-tos/chrome-frame-getting-started#TOC-Testing-Your-Sites
Once you have created the registry entry, you can now force IE to use Chrome Frame by prefixing the URL like so:
gcf:http://www.google.com
or
gcf:C:\tests\chromeFrameTest.html

Related

windows desktop url shortcuts adding characters in chrome

Newbie programmer here. I recently started to have an issue opening desktop shortcuts in chrome. We have a internal web page that opens in chrome on the desktop. The path to the page is correct in the shortcut properties. The url looks like this:
path to some local server\name of some file.asp
Recently if the desktop short cuts are opened in chrome the url will show added characters which will look simliar to this:
path to some local server\name of some file.asplocations=2xsomeotherstuff
or we will find a single quotation mark at the end of the url. If the unneeded information is deleted the url opens just fine. How is the url change being injected? How can we alleviate this problem? can we set the amount of characters the url can be?can any kind of programming restrictions be implemented?If so how would they be implemented? Any help is appreciated.
steps taken:
1. clean pc
2. uninstall chrome and left over files
3. reinstall chrome
4. check for adware
5. retype the url in the shortcut properties
I would suggest 3 possible solutions:
1) Disable location sharing setting in chrome
http://www.wikihow.com/Change-Your-Location-Sharing-Setting-in-Google-Chrome
2) End the url with a ?
3) Try using a shortcut as an application launcher:
path/to/chrome.exe ""
or
path/to/chrome.exe --app=

How to open a windows folder when clicking on some link on a HTML page using Python

I am writing following program :
***import os
filepath=r'C:\TestData\openfolder.html'
abc=open(filepath,'w')
abc.writelines('<html><head></head><body>')
abc.writelines('First Link\n')
abc.writelines('</body></html>')***
What I want to do is if I click First Link on a browser, I should be able to open the folder having path as "Filepath". os.startfile works perfect for opening a folder but I don't know how to implement this inside some link.
Thanks.
Try to use URI with file: scheme like file:///C:/TestData/openfolder.html in your html:
Link to test data
Here is article on using file URIs in Windows.
UPD (extraction from comments): Each browser has its own way to handle such urls. At least Internet Explorer 8 under Windows 7 opens links in Windows Explorer as was required by jags.
Finally, for dynamic pages the web server is required. If one is needed take a look at discussion on creating simple web services using python.
You can't. Clicking a link to a file in a browser will not launch the application associated with that file type on the OS. You can apparently do some funky stuff with JavaScript to launch particular filetypes with particular applications (see here: http://forums.devshed.com/asp-programming-51/launching-ms-word-to-open-file-from-a-hyperlink-55714.html) but apart from that the web browser is not the file browser.
Link Text
Replace FOLDER_PATH with the path of the folder you want to open in explorer.
Alain's answer works.
<'a href="FOLDER_PATH" target="_explorer.exe">Link Text<'/a>
I removed the tick marks at the beginning and end, and found that it works in
Internet Explorer - opens a Windows Explorer window
Firefox (Windows and Linux), but opens a new tab - same as target="_blank"
Chrome - opens a new tab like Firefox
I also noticed that / and \ (forward and backward slashes) are equal in html links - they can even be mixed.

HTMl anchor link to local file

I'm testing a locally run web app and am trying to use anchor tags to link to log file output on my C: drive. The href value that's generated for the anchor is in the standard URI format "file:///C:/outbox/myLog.txt". But, when I try to click the anchor, the link doesn't go anywhere, I have to right-click and copy the link into the address bar or to a new tab. I'm not sure why copying the link works whereas the link itself isn't clickable. Any help is appreciated.
Is this the case on different browsers? What is your browser / OS? We've seen this as a fault on Windows XP on both IE and Firefox browsers and may be nothing to do with your code
From my understanding, you can't link to file:/// from an HTML doc for security reasons. You might want to try this chrome extension.

IE 7 and 8 SSL download from simple HTML page not working, tomcat server

I have a simple HTML file which has one link to a file kept for download. The site uses SSL (self signed cert). When I click on the file to be downloaded in FF or Chrome, it works fine and saves the file on to disk.
Here is the code-
<html><body> download from here</body></html>
When I open the same page with IE 7/8, and click on the link, it gives an error saying "Internet Explorer cannot open hello.tar.gz from server"
Edit: Forgot to mention that IE 7 / 8 works fine without SSL.
Please help!
-Keshav
UPDATE: Solved the problem with a tomcat 6 configuration. Here is the link that helped me solve the problem-
http://community.eapps.com/showthread.php?p=461
IE normally downloads attachments into its "Temporary Internet Files" folder, however when the site is in HTTPS mode the attachments will not be downloaded.
Theres detailed explanation in this article.
IE and HTTPS for the whole site with a '/' as the url-pattern
Hope this helps.
Have you configured the MIME types for the file extension *.gz (or *.tar.gz)?
It sounds like IE is trying to interpret the file as gzipped HTML, instead of prompting to download it.

Launch file:// from Firefox or Chrome

I am looking for a way to launch a file located on our local file network for use via our local intranet using Firefox or Chrome.
The link works well in IE:
View Report
but in Firefox it shows:
View Report
is there a way to get the link to render properly?...Just a simple click from a href tag.
For Chrome, a new extension was just posted today! It's called LocalLinks and it replicates the functionality of the locallink add-on for Firefox! You'll find it on the Google Extensions page, or you can get to it directly here:
https://chrome.google.com/extensions/detail/jllpkdkcdjndhggodimiphkghogcpida
Enjoy!
This is not enabled in firefox for security reasons (remember that most computers have files and applications of a sensitive nature located in similar locations, like C:\System\Windows)
you can try adding this to the user.js file for any user that needs to be able to access these links:
user_pref("capability.policy.policynames", "localfilelinks");
user_pref("capability.policy.localfilelinks.sites", "file:///[[PUT SERVER NAME HERE]]";);
user_pref("capability.policy.localfilelinks.checkloaduri.enabled", "allAccess");
Just remember that this is a security risk.
Firefox seems to want file://///Start/Of/My/Network/file.xlsx
Chrome and IE handles that too.
file://Start/Of/My/Network/file.xlsx appears to work in Chrome as well, sometimes firefox hics up on it..
There is the LocalLink add-on for firefox. It uses a context menu though...
Use IE tab (available for Chrome and Firefox) and set that to handle all links of the form file:/// by adding an autourls entry like this:
r/file:///.*
Technically this isn't opening the file in the original browser, but it gives you all the windows explorer integration you'd expect from whatever IE version you've got installed when dealing with local file links. I would advise against doing this except in cases when the browser isn't being used to access the web - e.g. for viewing internal wiki or intranet pages, due to the obvious security risk.