click icon and open target directly - mediawiki

I have a table in my wiki as below. Right now when I click on the red pdf icon it takes me to the file description page for the target file, myfile.pdf.
Instead, I want it to immediately open the myfile.pdf, not require 2 clicks to get it open.
Below is what that table cell entry looks like (1st row, 2nd col in the table). How do I modify it to do what i want?
[[Image:Pdf_icon.png|20px|link=File:myfile.pdf]]

You can use one of the following methods:
[[Image:Pdf_icon.png|20px|link=Special:FilePath/myfile.pdf]]
or
[[Image:Pdf_icon.png|20px|link={{filepath:myfile.pdf}}]]
The slight difference is that the first method links to an internal special page that automatically redirects to the file, and the second method generates a direct link to the file.

Related

Hyperlink box (txtbox) on Access Form won't allow drop

I have a MS Access form that is bound to a query in the database. I added a textbox and added a row source to a Hyperlink datafield in the query. When I open the form, it won't allow me to drop a file into the textbox.
Here's the deal. When I follow this EXACT same process on a new form, it works perfectly. That is, I open a blank form and I bind the form to some new query, let's say qryNewIdeas. Then on the blank form i add a textbox, let's say Text0. Then, when I select Text0, I go to the data tab - row source and choose the dropdown arrow to select the hyperlink field, lets say NewIdeasAddress. I click SAVE and open the form. It works PERFECTLY.
BUT, when I repeat this on an existing form (the one where I need the thing to actually work), it does nothing. It adds and changes the textbox to a hyperlink box (I note this because of the blue underlined word that appears in the box). But it won't allow me to drop files to this location.
I tried commenting out ALL of my VBA code to try to make sure that something wasn't hindering it (say in an OnLoad event) AND I've checked all of the form and control box properties and they seem to be the same in both the existing form and the test form.
I can't determine why it works on one form and not the other; Solution needed.
If you have access to "the data tab - row source ..", you are in design view.
When you later open the form, you are in form view, a completely different animal which specifically prohibits design changes.
It sounds like you will have to rethink your concept.

click through several links on webpage and extract information from each?

I have access a webpage with a list of several hyperlinks, each of which are unique. This is it:
webpage I have access to that lists names from top to bottom. Each name is unique and is a hyperlink. I would like to click on these hyperlinks one by one and extract info from the resulting webpage.
Say I click the first name, say Adam, it then brings me to the following webpage:
alt:this is a page of the user's profile and includes info such as name, email status and more
My goal is to create a program that clicks the name at the top, and then takes the email address and puts it in an excel spreadsheet on my local machine. And then goes back to the original page, clicks on the name directly below the name that was previously clicked on, and then takes this names resulting email and throws it in the spreadsheet.
for those looking at the pictures, i would like to click on 'Adam' and then put his email into a spreadsheet, then go back, and then click on 'Adrian' and then put his email into a spreadsheet, and so on and so forth down the list.
What do I need to do/learn to create a tool that will do this for me?
I know a bit of Java and a tiny bit of html. I've been trying to look for a solution but the most I can get is excel vba to click on the first name, but not much more. Even if I got the vba to click on all the names, it seems I would have to type in an instruction for the vba to find each unique name, and I dont see much point in doing that since its probably faster to just do this manually then.
As i'm not a programmer (but would like to be soon :)) I have had some trouble asking this question since I don't know any technical terms.
Any thoughts/advice on how to do this?
With javascript and a little php you could make this happen. Since it appears this is something running in the browser it would probably be your best bet.
Make your program click links js has the ability to activate links. You could
click on body load
the first link on the page,
then have a counter that counts each time you click a link.
`Find out how many links there are in the document:`
var x = document.links.length;`
`Get the URL of the first link (index 0) in the document:`
`var x = document.links[0].href;`
Click the link you want to click
$(function(){
$('#myLink').trigger('click');
})
now that your on the next page you need to grab the email address that is on this page. If you know the css just grab the string that is in the element. at this point you can use javascript to go back to the previous page.
<button onclick="goBack()">Go Back</button>
Now you are on the original page. Your counter is one number higher. Use the counter to click the next link and your program will repeat the process pushing the new email to your array.
var fruits = ["Banana", "Orange", "Apple", "Mango"];
fruits.push("Kiwi");
once the program runs out of links to click or hits the limit of your counter you will need to create a txt file with javascript. write your array to the file with PHP. You can do this with an ajax call.
make an AJAX call to your php file passing the array. php can then write to the file.
Here is an example of making a text file and writing to it with javascript
Following this logic you can fairly easy make an application that activates the links in order of a page, pushes the email address to an array as a string. Goes back to the previous page and continues the process till you have all the links. At this point your program will write all the data in the array to a file.

Display hyperlinks to a webpage in each cell as a button in Access 2010

I have a table in Access 2010 called Table1. Column NCBI contains hyperlinks to webpages. I would like to display each hyperlink as a button in each cell and the caption for that button to be the field value from the same row one column to the left, the column Gene.
Does anyone know how to accomplish this?
First you must have the table containing the website information. In my example I have a table called Websites. In the table there is two fields: URL which contains the direct URL such as http://google.com and WEBSITE_NAME which is simply the name of the website "Google".
Create the form however you would like it to look using whatever Default View that you would like, however make sure that the Record Source is set to the table containing the website name's and URL's. In my test one I used Datasheet.
On that form make sure at least the WEBSITE_NAME field is showing on form in a textbox, in mine I called it txtWEBSITE_NAME. There is a property that belongs to the txtWEBSITE textbox called Display as Hyperlink set that to "Screen Only".
Then go to the events tab of the txtWEBSITE, go to the On Click event and click the three dots and add this code to the sub procedure:
Private Sub txtWEBSITE_Click()
If Nz(Me.URL, "") <> "" Then
Application.FollowHyperlink Me.URL, , True
End If
End Sub
The Me.URL basically just says to use the URL that corresponds to the Website that was clicked. The Nz() function basically just checks to make sure that there is actually a URL that belongs to the website that was clicked.
You can add in your own error handling or validation checks but this is the barebones system that you can use to do what you were looking for.

How to make a button in ssrs

There is a report contains 1000s of pages of data.Is there any way to make a button on the first page of the report so that ,if click on the button it goes to the end of the pages.
Is there any expression to be written,with out writing the vb.net code?
There is a button like that in SSRS (you can also type page number in the box and press enter):
EDIT:
You can add a bookmark at the end of your report and then make a textbox which will jump to it (textbox properties->Action->mark "go to bookmark" and select the bookmark you made. I am not sure, however, if it works well in excel.
Web viewer control, this button already exists.
I don't believe you can add a button to SSRS and export to Excel to go to last row.
You can use Excel command to go to last cell which should work.
Refer to [http://office.microsoft.com/en-ca/excel-help/excel-shortcut-and-function-keys-HP010073848.aspx][1]
CTRL+G
Displays the Go To dialog box.
F5 also displays this dialog box.
Click on "Special..." button and select "Last Cell" option and click OK
Sorry .. Tried posting images for you but not enough points to do so.
There are 2 ways of reaching the last page or the data on the last page:
Sol 1. #kyooryu has already mentioned above in his solution along with a screenshot.
Sol 2. You can freeze the header and set the display result to show the data on a single page. This way you will not have multiple pages and you can directly hit the end button from keyboard on the report manager to reach the bottom result set. Freezing the header will help you in identifying the column names.

clicking a href does not work second time

I write 2 examples. at 1st example I can click a lot of time. But at 2nd example clicking does not work at second time . I mean clicking only possible 1 time.
Click me
Click me
This is the browser's behavior. When a browser sees a hashtag fragment at the end of the URL for the page it's currently on, it attempts to go to that place in the document rather than reloading the page again. It should jump to whatever element has the ID "menu" on it, or do nothing if that element is not found.
If the #menu part is meant to be the value of your location variable int he query string, you need to escape the hashtag so it is not treated as the fragment. Otherwise, your location variable is being set to empty and the entire #menu is being treated as the fragment.
Click me
In this case, however, I would recommend excluding the hashtag (#) from your values to avoid confusion.