For Web Developers

Maintenance-free Text Only links on your pages

TextOnly

Textise offers an easy method for creating real-time text-only versions of web pages without having to create and maintain separate code. Just include the following in your pages:

computer

<a href="javascript:location.href = 'https://www.textise.net/showText.aspx?strURL=' + escape(escape(location.href))" class="cTextise">Text-Only Version</a>

If you’d like the text only page to appear in a new tab or page, use:

computer

<a href="javascript:var url = 'https://www.textise.net/showText.aspx?strURL=' + escape(escape(location.href));var win = window.open(url, '_blank');win.focus();" class="cTextise">Text-Only Version</a>

The Textise web service

Alternatively, the core Textise code is exposed as a web service:

computer

https://www.textise.net/textiseService/Service1.asmx/stripHTML
?strURL=https://textise.wordpress.com
&linkStyle=0
&guid=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
&strContent=
&retainFrm=0
&retainTbl=0
&retainScr=0
&retainStandard=0

Replace https://textise.wordpress.com with a URL of your choice, add your GUID* and you’re off. The final 5 params have been implemented for Textise Pro and should be left as is for normal use, but feel to free to experiment with them. strContent, for example, allows you to send a string of HTML for conversion rather than a URL.

linkStyle values are as follows:

computer

0 = "Textised" links (lead to text-only pages)
1 = "Original" links (lead to non-Textised pages)
2 = All links converted to plain text

From an IDE like Visual Studio, you’ll need to add a web reference to the service:

computer

https://www.textise.net/textiseService/Service1.asmx?WSDL

*If you don’t have a GUID, write to me via the Contact Page, with some details on how to intend to use the web service, and I’ll send you one.


4 thoughts on “For Web Developers

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s