I figured it out. For future reference, here's what I did (this may be painfully
basic and obvious to most of you...)
public int Href_graph_onBeforeHtmlOutputEvent(CSpHtmlOutputEvent event)
{
CSpHref hrf = (CSpHref) event.getSource();
String htmlText = hrf.getHtmlText();
String htmlText2 = CSpUtil.replaceSubstring(htmlText, ">href_test</A>","");
hrf.setHtmlText(CSpUtil.replaceSubstring(htmlText2,"<A HREF=",""));
return (PROCEED);
}
Works like a charm!
Thanks,
josh
[EMAIL PROTECTED] wrote:
>I need to access the value of an Href's URL and edit certain portions of it.>I found
>some examples in the Field Guide for ND 3.1, but none for 4.0.
>
>For example: The current HTML output of the Href is (sorry for the obtrusively long
>URL)
>
><A
>HREF="sqi2/sqi_main.Href_graph_onWebEvent(Href_graph)?dosqi_totals.dbo_sqi_totals_dttm=1999%2d02%2d13+00%3a00%3a00%2e000&dosqi_totals.dbo_sqi_totals_dttm=1999%2d02%2d13+00%3a00%3a00%2e000&~CSpComma
nd.currRowNumber=3&Href_graph=&SPIDERSESSION=%3f%3f%3f%3f%3f%5f%3f%3f%3f%40%5b%3f%3f%3f%3fBOs%5cH%3f%3f%3f%3f%3f%3f%3f%3f%3fL%5eSG%7dLkrgKN%5fo%3f%3f%3fMLSUCsJGqCJQQCbHFh%7bQBcyVOkEXSxSQE%5cLYb%60wS%3f
%7crNcplQOkbGpLHGuGLUEhpGCObAoXWYfHrBF%40MQTcbGQDHGsS%5fZThJBBcU%40eDiGpSXNDhz%5drKLCp%60fEbgkME%5bNDV%5fLNrl%7eOfD%3fHTXlEUOLRs%5f%5fTv%7bk%5eS%40G%5bblERccJGqC%60QQKJIExESOKZVOkcHTXNPF%60F%5erh%7b>
>I need to read the current value of the Href, hack the '<A HREF="' off the front, and
>the '">href_test</A>' off the end,
>then output that string to the browser.
>
>Any examples or tips on which methods to use would be greatly appreciated.
>
>Thanks,
>Josh
>[EMAIL PROTECTED]
_________________________________________________________________________
For help in using, subscribing, and unsubscribing to the discussion
forums, please go to: http://www.netdynamics.com/support/visitdevfor.html
For dire need help, email: [EMAIL PROTECTED]