Word add in: how to activate task pane by click on hyperlink in document - ms-word

I develop a word add in using the javascript Word API. I would like to know how I can show some content in the task pane when the user clicks a hyperlink in the document. Is that possible from hyperlinks or perhaps by some other means?
1) User click hyperlink in document
2) I capture that event (by some unknown means) and something happens in the taskpane, e.g. write the text "you clicked my friend" in the taskpane

Related

How to drag content of document from task pane to word

I have created a word add-in. In the add-in there is a list of documents available. I just want to implement drag and drop functionality in the add-in. like when user drag the document from task pane to word then content of document should be display in the word.
I have checked the documents online but there is nothing about this functionality.
Is drag and drop is possible in the word add-in?
For directly realizing the drag and drop event, I think we don't provide such an API to detect the drop event in doc. But as a workaround, maybe we can implement a "+" button to insert the content to the selection.
For inserting the content in document, we have such JS API called Body.insertFileFromBase64()

When Browsing carousel is clicked it will open the browser. How can I return to my Action?

I have a Browsing carousel in my Action that opens a new page. From that page, I want to give the user an option to either continue on the website or to close the website and go back to the Action.
If they select the option to go back - how can I send them back to the Action?
You can't "go back" to the Action in the same way as if you clicked on a back button in the browser.
However, you can create a link on the page that you're showing the user that will re-start the Action or re-start it with a particular "deep linked" Intent. If you maintain the state of the user when they leave your Action, you can restore that state when they return, but that is up to you to manage.
To create a link to start the Action go to your Action console, select the "Actions" navigation on the left, and then the right arrow for the Intent that you want to be able to link to.
Towards the bottom of the screen that comes up, you may need to click on the "Links" header to expand that section, and then turn the switch on for "Would you like to enable a URL for this Action?"
The section will expand to prompt you for a Link Title (which is required, but not really used for anything) and will show you an HTML code snippet with the link. You are allowed to change this link however you want, but you must use a link - you can't do something clever like try to redirect to that page.

CMS Made Simple Link

I would like to set up links though my site to make it easier to type long urls to external sites, How would I set up CMS Made Simple to link from one internal URL to a exteral one IE mydomain.com/fb to facebook.com/mycompany/ ?
In your (V1.x) admin area, try:
Content > Pages > Add new content
Content type: Redirecting link
Options tab:
Page alias: "fb"
If you don't want it to show in menu untick "Show in menu"
Main tab:
Fill in title and menu
In URL: "facebook.com/mycompany/"
That should do it.
To redirect to an external URL (or even content within your domain that is not managed by CMSMS), you can use the Content Type "Redirecting Link".
Since maidbloke already covered CMSMS 1.x, I'll cover CMSMS 2.x.
Creating the Redirecting Link
Start at the CMSMS admin area's "Home" page (the default page loaded in the admin area).
Under the "Content" item, click the "Content Manager" subitem. You could also, instead, open the "Content" menu on the left by clicking "Content" in the left hand menu, and then click the "Content Manager" subitem.
Click "Add New Content" in the upper left of the Content Manager area.
In the "Main" tab, change the Content Type to "Redirecting Link".
Fill in the "Title" field.
Fill in the "URL" field (something like "https://www.facebook.com/mycompany" without quotes).
Click on the "Navigation" tab.
Fill in the "Menu Text" field.
If you don't want the link to show in your menus, uncheck the "Show in Menu" option.
If you set the "Title" to something other than "fb"...
Click on the "Options" tab.
Fill in the "Alias" field with "fb".
At the top of this page, click the "Submit" button to save your new content.
Now the redirecting link is set up! Next, we'll cover how to use it.
Using the Redirecting Link
There are a few ways you can use it.
Without MicroTiny
If you're not using MicroTiny or some other WYSIWYG editor:
A. You can use raw HTML:
Our Facebook Page
Our Facebook Page
Our Facebook Page
Our Facebook Page
B. You can use the cms_selflink tag:
{cms_selflink page="fb" text="Our Facebook Page"}
You can still use this method from within MicroTiny as well.
With MicroTiny
If you're using MicroTiny:
C. You can insert a CMSMS page link:
Click the "Insert" menu.
Click "Link to CMSMS Page".
Fill out the "Enter Page title" field with the value you used when you created the Redirecting Link (Creating the Redirecting Link, Step 5).
Fill out the "Text to display" field.
Click the "Ok" button.
There is also a button in MicroTiny toolbar that can be used to replace steps 1 and 2.
D. You can insert a regular link:
Click the "Insert" menu.
Click "Insert/edit link".
Fill in the "Url" field, probably with one of the URLs shown in option A.
Fill in the "Text to display" field.
Fill in the "Title" field.
Click the "Ok" button.
There is also a button in MicroTiny toolbar that can be used to replace steps 1 and 2. You could also press the Control and K keys together to insert a regular link.

Save and Continue option while editing forms in MediaWiki

I have created a form using the "Create Form" option in MediaWiki with few text areas to fill in by the user. I wanted to enable the option of save and continue wherein a user can save the form after filling it partially, and then continue adding/editing the information.
I used the Extension:Checkpoint to fulfill the same. The extension provides the option when creating/editing a normal page in mediawiki, but not when
Adding new information in a form or
editing old form using "Edit with Form" option
Searched a lot on ways to be able to use the same, but failed. Also tried using the standard input tag: save and continue, but it just creates text, and no button.
Is there a way to get the functionality to work (did I miss something), or implement it in another way?
Thanks in advance.
The Save and Continue option as a matter of fact can be easily implemented without the use of the Extension:Checkpoint.
The standart input tag is defined within mediawiki which provides the user to provide different input options at the end of a page or a form.
The following different tag values are allowed:
"save" (for the "Save page" button)
"preview" (for the "Show preview" button)
"save and continue" (for the "Save and continue" button - this lets users
save the page without leaving the form)
"changes" (for the "Show changes" button)
"summary" (for the "Summary" text field)
"minor edit" (for the "This is a minor edit" checkbox)
"watch" (for the "Watch this page" checkbox)
"cancel" (for the "Cancel" link)
"run query" (for the "Run query" button in query forms)
The save and continue option can be easily used as follows:
{{{standard input|save and continue}}}
at the end of the page where you want the option.
It works as follows:
the button is not activated (appears as normal text) unless you type or change something in the form or page. As soon as you make even a slight change, the button is activated, to function just as every other button.
hence it might look as if the tag didn't work when it actually does. :)
PS: I still can't understand why the extension doesn't work on forms when it was designed keeping in mind the option of 'editing forms'.

How do I create an "iframe popup" when I hover over an <a> tag?

Here is the scenario: a User will see a list of company names, each wrapped in an tag. He is able to see dynamic information and as he hover over each name and then make a request.
So Given a list of companies, each wrapped in an tag.
When the cursor hovers over an tag
Then a "pop-up" appears that contains an -based, dynamic content.
Given the pop-up
When the User clicks on the "submit" button in the pop-up
Then the form (based on the framework" is submitted and ajax displays "request succesful"
So, because I am using a php-framework, I'd like to use iframe to contain the form.
Some challenges:
When the cursor is no longer hovering over the tag, the hover disappears. How do I keep it operating?
How do I make it appear in an so I can have full form-submission and POST-ing dynamic values through the URL?
How do the "popup" disappear when the cursor is no longer on either the -tag or the pop-up itself?
Can I do it without loading a bunch of 's onto the page, because the list of companies could be long.
for an example:
http://browseusers.myspace.com/Browse/Browse.aspx hover over one of the link.
jQuery with the clueTip plugin is something I have used for this in the past.