About CFX_PageRank is a ColdFusion CFX Tag that gives your application the ability to retrieve the Google PageRank of a website.
Example
<cfx_PageRank URL="www.example.com">
<cfif PageRankReturn neq "NA"> <cfoutput>Your PageRank is #PageRankReturn#</cfoutput> <cfelse> <cfoutput>Website not found.</cfoutput> </cfif>
Installing CFX_PageRank
- Copy the PageRank.class file into your ColdFusion java classes folder. On Windows, this folder is usually located at: CFusion/CFX/Java
- Go to ColdFusion Administrator in your web browser, then click on 'CFX Tags' (under Extensions)
- Click 'Register Java CFX'
- For Tag Name, type: CFX_PageRank For Class Name, type: PageRank
- Submit Changes
- You may need to restart your ColdFusion server
Syntax
<CFX_PageRank URL = "string">
Attributes
URL Required. The URL that you wish to return the PageRank of. The http:// is not necessary. Example: URL = "www.example.com"
Return Variables
PageRankReturn Contains the Google PageRank of the website you placed in URL or 'NA' if the website does not exist.
PageRankMessage Will return 'OK' if successful, empty string if failed.
|