How do you enable hyperlinks to be clickable within a chrome extension? Do you have to create an event as described here? I'm outputting a list of urls within a popout page, and while the html output is correct, nothing happens when I click them.
Yeah, you do because a popup is like a page I guess so you have to use createTab in an onclick event.
Change your output to something like this....
Bunyips!
...dont forget to add tabs to your permissions in the manifest.
http://code.google.com/chrome/extensions/tabs.html
It looks like a straight forward thing. you just use link to insert a link into page.
you might want to paste the source code maybe there is something that would help.
Related
I'm trying to get full screenshot of HTML mail on Gmail.
Chrome extensions which like Screen Capture (by Google) does't work enough.
What should I do?
You'll not be able to take the complete screenshot of an email in Gmail default window. You need to take a different route to accomplish this i.e.
Click on the Print, it will open a new tab with Print dialogue.
Close/Cancel the Print dialogue (don't close the new tab).
Use Nimbus Screenshot or any other extension to take the screenshot of the HTML email.
Yes, Screen Capture by Google doesn't work for a long time. I recommend you Nimbus Screenshot. It is also a Chrome screenshot extension. And I just used it to get a full screenshot of HTML mail on Gmail. Hope it works for you.
I have tried everything with Nimbus but it simply wont work. Fragment Area takes the entire screenshot but only the visible part is saved rest image is blank.
Instead try clicking on the 'Print' icon on the upper right corner of your mail and save it as PDF.
Our web application is designed such that the text transform is picked from CSS.
There are multiple links on a webpage; hence i will take example of a Next link.
When i hover the mouse over Next link in FF, it shows the below code:
_click(_link("Next"));
Similarly when i hover the mouse over the same link in Chrome, it shows the below code:
_click(_link("NEXT"));
When the script is recorded in FF and executed in chrome, it fails at the location because "Next" link is unavailable. This is one example of a link and there are multiple links and multiple pages. For this scenario, do i need to verify the text for each link or is there a universal way i.e. toLowercase method that can help me.
Thanks.
As Kshitij pointed out, you can get this working by using a regular expression as your accessor... but you might also check the Alternatives pulldown in the Controller. Perhaps there's an alternative accessor that is better suited for both browsers.
I think, the question should be how can Sahi identify the element with text by ignoring the case-sensitivity.
Any tool can only record the attributes which is available on the browser at that time.
You can use the following code to achieve the functionality:
_click(_link("/Next/i"));
I have created a hyperlink field and provide the following List edit URL.
$http://SPS2010/Lists/TestList/Item/editifs.aspx?ID=4&IsDlg=1
But when I am clicking on the hyper link with the above value(editifs.aspx?ID=4&IsDlg=1), It simply opens in a new page rather than opening in modal popup .
If we normaly click on the edit link of the List item with the same URL it will opens up in Modal popup.
Please suggest, where we are wrong.
thanks in advance...
Regards,
Kamal Pundir
It is not that simple as you would like it to be.
See the article that will help you understand how to open a dialog.
In order to open a hyperlink field link in a new window you will have to use javascript to modify your tag to launch you javascript function instead of navigating to an url. see this.
Good luck.
I'm using a standard link list web part. What I want to achieve is before my users click on the link a pop-up javascript warning box will display, stating that they are leaving the domain. In regular anchor tag I would preceed the URL with javascript:ShowWarning('http://www.youtube.com');.
I've search the AllLinks table in the database but did not find the links was looking for.
Where or how are these stored?
Thanks,
Risho
Firstly, editing the SharePoint database directly is a really bad idea. You shouldn't do it unless you really, really know what you are doing, and even then you will probably break the system.
Secondly, any change made in the data will be what shows up in the editor, and I don't think the editor supports links that don't start with "http://".
A better approach is to use jquery to add the popup behaviour to the links when the page is loaded.
How do you format HTML A tag (when clicked) to make any browser to open it in a new tag, while retaining the focus on the current/parent page?
I know in Firefox, there is an option that says 'When I Open a link in a new tab, switch to the new tab immediately' .. but I want the opposite of this. When a new tab is opened, do not switch. Regardless I check or uncheck this option, it still behaves as I described above.
Anybody faced this before?
Cheers and thanks in advance for your answers,
Lasker
This is a browser setting and you cannot override this from your code and the main thing is
Don't do this.