How do I build my website in Firefox? - html

Here's an easy question. How do I configure Visual Studio 2008 to build my webpage in a certain browser? I really want to build in all 5 well-known browsers (IE, Firefox, Chrome, Opera, and Safari), but right now I am having to right click the actual html files and open them in different browsers. In dreamweaver, there is a simple dropdownlist for this...what does visual studio have?

Firsty, you don't build your site for each different web browser. You build one website that's standards-compliant and will work in all browsers.
Having said that, you will probably have to use some non-standard "hacks" to get Internet Explorer to behave as the other browsers do because older versions of IE don't follow web standards.
You should setup your website in IIS using IIS Manager. Then you can run your website in whatever browser you like using a URL like http://localhost/YourWebsite/
Here's an article on creating a website in IIS: http://support.microsoft.com/kb/323972
Alternatively if you want to use the web server that's built into Visual Studio you can right-click one of the pages in your project, select Browse with.. and use the Browse With dialog to set the default browser. Once you've done this you can run your site in the default browser by pressing F5.

See this page for switching the default browser. As far as a dropdown to easily switch like Dreamweaver, there may be a plugin.

Right Click on an Aspx page, choose "Browse With...", and set Firefox as Default.

I like the site browsershots.org, submit your URL and it shows how it looks in different browsers on different operating systems. After a minute or 2 I got back 42 different shots.... good to know I look good on FireFox 3.0.4 on MAC OS X 10.6 :).

How to change the default browser to debug in Visual Studio

Related

Visual Studio 2019 Change Viewing Browser

My default browser is Chrome but I want to use Firefox Developer as my browser in Visual Studio 2019 Community edition on web pages I am working on. The HTML menu has "View in browser (Google Chrome)" and I cannot find any option to change this. Searched Microsoft and found nothing pertinent. Stackoverflow has only two related posts, one discusses toggling between Chrome and IE but couldn't see how they did it.
I expect this to be a head-slapper, but I'm stuck. TIA!
I believe all you have to do is download the firefox developer edition and set it as your default browser. Do this and if you have Visual Studio running, close it and reopen. It should be found under the IIS Express dropdown menu where you select the web browser. You may not have to have firefox dev edition set as your default browser but that is what I have running on my end and it works correctly.

User Agent not working

I'm trying to load http://m.zara.com from my desktop browser. I have tried with Chrome developer tools to change the user agent to mobile. I have also installed User-Agent Switcher plugin for Chrome without any success. For some reason it is always redirecting to the desktop version.
Why is this not working? How could I manage to do this?
Checkout the link here
Try to download user-agent extension in chrome browser and then you can use the online parsers available in this blog.
There by the simulation of browsers can happen for cross browser access.

sharepoint 2013 doesn't render html correctly after deployment

I use ASP.Net/MVC (.Net Framework 4.5) to program a Sharepoint 2013 Provider hosted app. If I press F5 to test my application I have no problem with the rendered result.
But if I deploy it onto my iis server and install the package on sharepoint 2013 the html will not be rendered correctly.
The funny thing is that it will still render correctly on any other major browser (Firefox, Opera, Chrome). Since my company uses only ie (people don't have any rights to install additional software) I need to have it render correctly on ie.
Since I found the answer to my own question I want to share it here so if anyone hits the same problem he/she can make use of the answer.
It was a problem with Internet Explorer 11's "Compatibility View settings". I had to uncheck the "Display intranet sites in Compatibility View" checkbox to render the HTML correctly.

Debug Ipad web app on Windows

I've got site that is correctly displayed on desktop version but has few bugs on iPad. What's the simplest way to detect problems if my OS is Windows?
Option 1 - Free, local machine debugging
You may use Safari browser for Windows (download Safari 5.1.7).
Steps
Enabling Develop menu in menu bar (Press 'Alt' key to open menu bar. Then follow to Edit menu > Preferences > Advanced tab. Find this option at the bottom.)
Then, follow through Develop menu > User Agent. Select iPad, iPhone etc.
There are more options in the Develop menu (e.g. Show Web Inspector) to help with your JavaScript etc debugging.
Credits to How to debug iPhone and iPad web applications, using Safari.
Option 2 - Paid, browser-based access to target browser/OS/machine
I've personally used http://www.browserstack.com/ and it lets you test the functionality on a wide combination. However debugging may not be as convenient here as it would be on a local machine.
There may be more companies providing similar services.
Beware of basic online emulators
As mentioned in a comment, be wary of 'emulator' websites. Example: A website I ran into claimed to emulate iPhone, with a picture of iPhone, and inside it was an iframe, being dutifully rendered by the browser I opened that website in (Firefox).
The best way I can think of(depending of your implementation) is to use the firefox plugin
https://addons.mozilla.org/en-US/firefox/addon/user-agent-switcher/
It allows you to switch to all sort of devices and see how they would appear on another device.
Here http://www.ampercent.com/test-website-design-iphone-ipad-mobile-devices/7075/ is a quick guide on getting you started.
There are also user-agent switchers for other browsers than FF like Chrome. Do a google search and try for yourself which one you like.

is there anyway to force a link to open up in IE, even if not the default browser

we have a website with links to a sharepoint. These features in sharepoint only work in IE so i dont want to open up firefox or chrome if that is the default browser. Is there anyway to have a
My Link
force open up in internet explorer ?
You can use javascript to inject the link in your HTML code if the client is IE, and maybe show a warning message if the browser isn't IE. Anyway you can't tell any browser to open a link using another browser.
No, definitely not.
For Firefox users, the best thing that comes to mind is to have them install the IE tab. It allows the opening of pages inside Firefox but using the IE engine - but also requires user action.
If this is run in a windows environment, you could use a PHP script to open Internet Explorer through PHPs support for COM objects.
If you are interested I can provide the script to do this.