Hide google Toolbar by javascript - javascript

Is there a way to hide the google toolbar in my browser programmable?

You haven't said which browser you are using so I'm going to assume Internet Explorer* and answer No.
If JavaScript on a web page could manipulate the browser, it would be a serious security hole and could create a lot of confusion for users.
So no... for a good reason: Security.
*. If you were using Firefox, and were talking about JavaScript within an extension to manipulate and theme the window chrome then this would be a different story.

I really think that it is imposible to do that with javascript. This is because javascript is designed to control the behaviour of the site. And the browser is not part of the site.
Of course maby you are talking about some other Google toolbar then the plugin in the browser.

As far as I know, you cannot access these parts of the browser due to security issues. But you can load new browser windows without toolbars as such. I don't know exactly how (hopefully other users will help yout out), but maybe start here: http://www.experts-exchange.com/Web/Web_Languages/JavaScript/Q_20782379.html
(PS: I know, it's experts-exchange, but I'm not going to copy someone elses work, even if it's posted on EE).

Related

Need a creative JavaScript "Hack" - Prepopulating Forms

We have a new client at work that wants our call center to fill out applications on their website. We have all the data for the people calling into the call center and my boss wants me to make their application prepopulate with the name and other info from our database. Problem is their programmer is "under water" and at this time is not able or willing to change their form to help me out in any way.
I know plain old Javasccript can't do it (Same origin policy)..
But I have considered forcing everyone to use FireFox and writing a greasemonkey script.
I have also considered attempting to use PHP's cURL, but I'm not even sure that would work..
Both of those are really dirty solutions though.
Does any one have any creative solutions? I've been looking at this too long and could really use some outside input.
Thanks for looking
EDIT..
I should specify that we would be loading their application in a frame/iframe
Write a script in JavaScript and then run it in Chrome with web security disabled:
http://davfxx.wordpress.com/2012/08/22/how-to-disable-same-origin-policy-security-on-chrome/
You'll have to start Chrome from a terminal, but this can easily be explained in a brief set of instructions. In my experience, it is much easier to disable the same-origin policy on Chrome than on other browsers.

Javascript that Creates an Outlook Appointment - Browser Issue

I was looking into a script embedded in a webpage that creates an Outlook appointment and opens it. I tested a sample appointment shared by Brian White: http://www.winscripter.com/WSH/MSOffice/90.aspx
and embedded it in a sample web page, but here are two problems:
The script works only in IE and not in any other browser.
IE issues a security message about an ActiveX control and asks if to enable it.
Do you have any idea how to make it work in all browsers and not to scare users with the ActiveX warning?
Thank you in advance!
The script you've linked to works by creating an instance of the Outlook ActiveX control. As such, no, there's no way to make this work in browsers that don't support ActiveX, which is effectively all of them except Internet Explorer.
As for not scaring the users with the ActiveX dialog box, that's not in your hands. The warning message is a security feature, part of the browser itself, and can only be disabled by changing the browser's settings - which isn't something you can do through code, for obvious reasons!
If it's appropriate to your situation, rather than do this through client-side javascript your could instead use Exchange Web Services on the server-side. This comes with its own set of limitations and things to be aware of, namely (a) it's obviously impossible to open Outlook with this method, and (b) on the server-side you'd require access to the Exchange server and would need to know the username/password of an Exchange user with permission to write to the relevant calendar (which is only going to happen if we're talking about a corporate environment).
Although I realize it is an old post, I wanted to offer another approach.
I notice your question refers specifically to OUTLOOK appointments, but what about using "iCalendar"?
{http://en.wikipedia.org/wiki/ICalendar}
This could offer a wider solution. Also, a page could offer two alternative icons.
One for Outlook, another one using iCalendar, and let the user choose which one to use.
Hope this helps. Cheers.
Marcelo F.

IE settings through Javascript or jquery

Is there any possibility to set the Internet Explorer settings by running Javascript file..?
I want to set the following settings in IE through javascript/Jquery
Go to, ‘Tools’ -> ’Internet options’.
Under ‘General’ tab, click the ‘Settings’ button in the ‘Browsing History’ section.
Choose the radio button "Every time I visit the webpage".
Click ‘OK’ and restart the IE.
This is not possible - it'd be a bit of a security hole if sites were able to do this...
Firstly, the short answer is no: You can't do what you're asking for.
Javascript within the browser is heavily restricted to only being able to access resources for the actual page being viewed. This is an important security feature.
You cannot access other pages or other tabs. You cannot access parts of the browser UI outside of the page itself. You cannot run external programs.
Even if you could, the way you've described it wouldn't work anyway: The settings page you've described is specific to one particular version of IE. So your hypothetical program wouldn't work in any other browser or even any other version of IE.
However, more importantly, you need to ask yourself why you're asking for this.
The thing is that you're trying to solve a problem with your site. You've found something that resolves it, and you've asked a question about how to automate that. But you need to work backward a bit -- stop trying to work out how to automate this particular solution: you need to ask yourself whether there might be a different way of solving the original problem, which could be automated.
The fact is this: the config setting you're trying to change is for handling how the browser deals with caching of files. There are ways of changing the behaviour of caching that can be scripted by your site. You might want to look at questions like this one for example.
The lesson here is this: Don't simply ask how to do something; explain why you're trying to do it as well. There might be an alternative solution that's better than the one you've thought of.
No, it's not possible to do using JavaScript.
This is not what Javascript designed to do. There is only a way to read browser setting from JS - using signed scripts.

is there a way to disable javascript debugging on a live server

Is there a way to tell debugging tools (firebug and the likes) never to be enabled for your website regardless of user's browser configurations?
no.
client is free to do whatever it sees fit with your javascript. You may try to obfuscate - but this is not effective against determined developers
Scripts, HTML, CSS, Images everything is loaded to the client before the page opens. So he can do anything he likes with what he has in his system. There is no way to disable it.
Even If there is a possibility of doing such, he can remove that as well.
So, basically its a wasted effort.

Internet Explorer minimises on page load

We have a couple of sites that use a bespoke CMS (e.g. www.trident-ha.org.uk). In these sites whenever a link is clicked in Internet Explorer the browser will minimise for no particular reason.
This is obviously very frustrating and although we have found a few mentions from other people with this problem nobody seems to have a solution.
Presumably this is something to do with JavaScript but it has us baffled.
The only code I know to "minimize" a window would be window.blur(), which actually just removes focus from the window. It works across browsers, so is it possible that there's some IE-only script with this included?
FWIW, I suppose it could also be window.resizeTo(), although I suspect you would have set it resizes the window to very small dimensions if that were the case. Really, scan through all the JS files you load looking for any window.* functions, as those will be the culprit. There shouldn't (knock on wood) be that many because they're a pretty heavy-handed way to control the user's experience.

Categories

Resources