here is the sample code in one of my page:-
external url in the studio is set to
http://??email
//[[SPIDER_EVENT<hrefResumeText_onBeforeHtmlOutputEvent>
public int hrefResumeText_onBeforeHtmlOutputEvent(CSpHtmlOutputEvent event)
{
String sTextFileName = cCandidate.nm_rffl.stringValue();
// CUtility.debug("cCandidate.nm_rifl.stringValue() = " +
sImageFileName );
if ( sTextFileName.equals("") ) return (SKIP);
String sPath = CParameter.sTextPath;
String sDisplay =
CSpider.getWebEnvVar(CSpVars.SERVER_NAME).stringValue();
String sOldText = ((CSpDisplayField)event.getSource()).getHtmlText();
// CUtility.debug(" sOldText = " + sOldText );
int iIndex1 = sOldText.indexOf("??email/");
// CUtility.debug(" iIndex1 hrefResumeImage1 = " + iIndex1 );
String sNewText = sOldText.substring(0,iIndex1) + sDisplay + sPath +
sTextFileName + ".txt"
+ sOldText.substring(iIndex1 + 8);
// CUtility.debug(" sNewText hrefResumeImage1 = " + sNewText );
int iIndex2 = sNewText.indexOf("IMG");
// CUtility.debug(" iIndex2 hrefResumeImage1 = " + iIndex2 );
String sNextText = sNewText.substring(0,iIndex2) + "IMG BORDER=0" +
sNewText.substring(iIndex2 + 3);
// CUtility.debug(" sNextText hrefResumeImage1 = " + sNextText );
((CSpDisplayField)event.getSource()).setHtmlText(sNextText);
return (PROCEED);
}
//]]SPIDER_EVENT<hrefResumeText_onBeforeHtmlOutputEvent>
Gueorgui Nikolov Popov <[EMAIL PROTECTED]> wrote:
>This is a multi-part message in MIME format.
>--------------094FF7032DB26298C3D415D4
>Content-Type: text/plain; charset=us-ascii
>Content-Transfer-Encoding: 7bit
>
>Hi, thank you for helping me.
>
>I have a problem:
>
>I have a href with an image, but i want to set border="0" alt="an
>something else" in the <img src> tag of the href.
>
>How can i add this properties with its values to the img tag ?
>I think that there is an event in which i can change this.
>Thank you again for helping me.
>
>
>--------------094FF7032DB26298C3D415D4
>Content-Type: text/x-vcard; charset=us-ascii;
> name="gueorgui.vcf"
>Content-Transfer-Encoding: 7bit
>Content-Description: Card for Gueorgui Nikolov Popov
>Content-Disposition: attachment;
> filename="gueorgui.vcf"
>
>begin:vcard
>n:Nikolov Popov Karadjov;Gueorgui
>tel;pager:5-1715984
>tel;home:5-6436595
>tel;work:3250505 ext. 2322
>x-mozilla-html:TRUE
>org:Grupo Financiero Inbursa;Sistemas - Internet / Intranet
>adr:;;Av Insurgentes Sur 3500. Col. Pe�a Pobre;Mexico;Mexico D.F.;14060;Mexico
>version:2.1
>email;internet:[EMAIL PROTECTED]
>title:Lic.
>fn:Gueorgui Nikolov Popov Karadjov
>end:vcard
>
>--------------094FF7032DB26298C3D415D4--
>
_________________________________________________________________________
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]