Get dropdown menu in google extensions popup - javascript

I try create extension to google chrome - this extension must create button, that will show popup when pressed. That popup will contain input form, i think, and when i start inputting request string that will show dropdown menu with 'fast results' of search. So.. i can't find way to do it. I have one idea - i create and and connect them. With help of JS i add s of received data from google. But, this is do not work if packed as google extension (see proof: https://code.google.com/p/chromium/issues/detail?id=161302 ). Have you any idea?
P.S. Sorry me for two points: my bad english (not my native language) and, maybe, bad question - i just trying to start work with JS and google extensions. Thx for all.

You see in that bug that it is marked as fixed in June. This means it's fixed in whatever was the development version then. It will take some time until it reaches Stable.

Related

Windows with space to write text dont appear AJS

I have created custom Issue Tab Panel with field, where I can add comment when Ill press my custom button “add comment”
In my VM template I have
AJS.$("#add-comment-button").click(function(e) {
e.preventDefault();
AJS.dialog2("#add-status-comment").show();
});
This button works fine and window to write text appears, but… In other section in Issues --> Current Search —> Views (Detail Views), windows with space to write text dont appear when I click button “add comment”. It only appers in normal view of issue… Whats problem?
I'm not sure if I understand your question right so I'll give it a try. Maybe it helps in one or the other way.
As you didn't provide the code affecting the window I assume it is possible you are retrieving the issue key or issue id. There are some Jira JS calls that don't work in every view. The reason is unknown to me, but maybe if you use different calls it will work.
Here is the question and answer to this field availability problem on the atlassian community: https://community.atlassian.com/t5/Jira-questions/Get-issueID-in-JavaScript-in-Project-Screen-viewing-issue/qaq-p/824175
Otherwise you should provide some more information.
Regards
Chris

Hotlinks in JavaScript

I've been developing graphics in a graphics editor and I was able to add hot links to navigate through to different graphics, by entering the pathway to the graphic file. However there is now a new version of editor makes you publish the graphics online and view them from the web and the hotlink option is replaced with a button option. Instead of being able to enter the pathway of the graphic file I want to link to I have to enter a JavaScript script, that will run on click, and I have no clue how to get the JavaScript to work like the hotlink was working.
I have looked up tutorials on JavaScript but cant get any of the code to work on my button even simple things like alerts and prompts. If anyone has any idea how to these buttons work or if its possible for them to behave like the hotlinks from before that would be great.
Well it largely depends on your software, which you didn't mention here. However, if in the end it will be displayed in browser, you can try something like this:
For link, use javascript: alert('test'); and see if that gives you an alert box when you click it. If it does, problem solved.
If not, I am affraid you'll have to provide more information about your software before someone can offer some advice.

Why are my JQuery Modal boxes not in there default position?

Until recently any modal box I displayed was dead center in the page. Which I assume is the default and is what I wanted.
Recently some change I made someplace in my code is causing the modal to open on the left bottom of the page, just poking up above the bottom of the screen.
I've explored all the code I've changed in the past weeks and can't find it. I also had updated the 'jquery.modal.min.css' file to the current version v0.9.1 so replaced that with the previous version. But that didn't fix it either.
I'm the first to admit I do not understand how to use the 'Web Inspector' effectively. If this is how I can track down the issue please be specific on its use.
well, you need to provide a fiddle so we can see any example of your code. That been said:
do you use GIT( you might be able to version back ALL files that might have been touched, keep in mind any new changes are gone).
are you the only Developer working on this? is there another developer, who could have added something locally with a !important? May be someone forgot to open or close a bracket, in your css/html/structure
my 2 cents

Hiding Link In SharePoint Quicklaunch Based On Permissions

I am trying to figure out a way to hide a specific link from the Quicklaunch navigation bar on one of my sites in SharePoint 2013 and am having some trouble. Basically I am trying to make it so that a link is only visible to users within a specific group and any other users that are not part of this group will not see the Quicklaunch link. I have been reading up on how to implement this via css and javascript within the default master page but do not seem to be having any luck. I was using SPServices to get the group membership for the currently logged in user and based on there membership either hiding or showing the specific Quicklaunch item. I implemented this code into the master page and I though I had it working, however upon navigating to a different page, list, or library within the site the given link reappears. I do not know if I am doing something wrong but as a last resort I have come here for answers. If anyone could point me in the right direction I would greatly appreciate it.
Bellow is a screenshot to get a better understanding of what it is I am trying to do...
Security trimming should be automatic for the quick launch. Users not being able to see the list, should not see the quicklaunch entry. One thing i experienced in the past is that the security trimming does not work if your quick launch URL looks like this
https://url/sites/sc/Lists/internallistname
but will work if you include the aspx-page
https://url/sites/sc/Lists/internallistname/AllItems.aspx
Don't know about foundation but it's worth a try...

replacing showModalDialog causes loss of form post functionality

I am replacing the showModalDialog function which no longer works in Chrome and FF. We have many applications using that. The problem is, pop up windows do post instructions to the web server and update the database. For instance if there's a list of accounts on screen and edit is clicked on one of the accounts, an edit page appears as a pop up, posts changes back to the web server, then the list is refreshed with changes. The entire list may be refreshed or just text that changed.
I made a javascript function to do pop up content using overlays. I thought it would be simple to replace showModalDialog calls with the javascript function, but I did not consider post instructions sent by the pop up page to update the database, and complexity to facilitate that. Posting can be done via ajax-like functionality, encapsulated in a set of functions. Before I start writing code to do this I'd like to know what other people have done in this circumstance. Thanks
I wrote some javascript to do everything I want. Since my pop up windows had javascript, I needed to run javascript upon rendering modal content, and also when the modal content went away. This will produce any number of overlays on top of each other, managing each. Content can optionally appear in a frame with a title bar, closely matching the functionality of showModalDialog.
Download at http://bikehappy.org/modal.html . If used, please give feedback saying if it works and provide update suggestions.

Categories

Resources