PDA

View Full Version : Electos 3.0 RC Build 13 - Can't get email link to work in content



BO Lincoln
15-Feb-2007, 06:23 PM
Editing content in Electos Studio, I inserted an email link using the source
view in FSCKeditor like this:
<a href="mailto:alanp@bavauto.com">Alan Pierce</a>
I switched in and out of source view a few times, saved and looked with
source view and the anchor tags are there in the content.
When the page is rendered in the browser, however, the IE "View Source"
reveals that anchor tags are stripped off and only "Alan Pierce" remains.

Why are my anchor tags and href getting removed ?

-BO Lincoln

BO Lincoln
15-Feb-2007, 06:41 PM
I tried to create an email link using the FSCKeditor "Insert/edit link" and
selecting "email address" as the link type but in the browser the anchor
tags and href are still not there.

-BO Lincoln

Thijs Nijhuis
16-Feb-2007, 11:53 AM
Hi Bo,

I haven't been able to reproduce this problem myself. Nor with the
fckeditor, not by adding the code myself.

Which browser do you use? And which build of Electos?

One thing that I did notice is that editing a mail link will result in
'mailto:' as email adress and the eamil addres as subject. We will look into
this.

-Thijs


"David W. Lincoln" <dwl@lincolnsystems.us> wrote in message
news:6udlLrVUHHA.5148@dacmail.dataaccess.com...
>I tried to create an email link using the FSCKeditor "Insert/edit link" and
>selecting "email address" as the link type but in the browser the anchor
>tags and href are still not there.
>
> -BO Lincoln
>

BO Lincoln
17-Feb-2007, 10:27 AM
I found it.

From the Electos Help:
"oPublisher.call - iLetterCount Integer Optional.
Determines maximum number of characters from the
beginning of the element will be returned. Counting
starts at the beginning of the page, which will first
be stripped of HTML-tags. If this parameter is omitted
or set to "0" it will return the entire element."


Of course I read this in the help *after* I had already figured out what was
happening....
How did I figure it out? Read on...

On a simple page or a container page, a manually inserted email/anchor is
sent to the browser and when the link is clicked, the local email client
comes up ed. OK. Fine.

But I am trying to display all the contents of child pages on the container
page! Sort of like a news.asp page that displays the entire text of the
child news page *not* just the first 250 characters. The content of the
parent page has an email/anchor link and the content of the child pages also
have email/anchor links.

If I put an email/anchor link in the text of the parent container, the
email/anchor link comes thru just fine. I augmented the ASP template to
return the value of the page content to a string so I could display the
value in the ASP debugger "Immediate Window"

<%
Dim sParentText
sParentText = oPublisher.call("Get_PrintPageItem", iPageID, "Text")
%>
<% oPublisher.call "Msg_PrintPageItem", iPageID, "Text" %>

In the ASP debugger immediate window:
? sParentText
"To contact us by email <a href=""mailto:dwl@lincolnsystems.org> click
here</a>



Now for displaying the contents of the child pages.....

I had based my custom ASP template on a copy of new.asp. I knew that the
content of the child pages could more 250 characters, so I just changed the
iLetterCount parameter from 250 to 1024. i.e. Load gun, aim at foot.

Again I augmented the ASP template to return the value of the page content
to a string so I could display the value in the ASP debugger "Immediate
Window"

Dim sChildText
sChildText = oPublisher.call("Get_PrintPageItem", iChildPageID, "Text",
1024)

' Prints the item named 'Text'. The number '250' determines that only the
first 250 character of the item will be printed
oPublisher.call "Msg_PrintPageItem", iChildPageID, "Text", 1024

In the ASP debugger immediate window:
? sChildText
"To contact David Lincoln by email click here."

......Insert head scratch here....
Where did the HTML tags for the "click here" link go?

SOooooooo.........
Looking at the difference between the 2 function calls, I inserted this line
in the ASP page (sans iLetterCount parameter):

sChildText = oPublisher.call("Get_PrintPageItem", iChildPageID, "Text")

In the ASP debugger immediate window:
? sChildText
"To contact David Lincoln by email <a href=""mailto:dwl@lincolnsystems.org>
click here</a>

You know the moral to the story.... RTFM.


Red faced but enlightened...

-BO Lincoln





"Thijs Nijhuis" <thijs.nijhuis@dataaccess.nl> wrote in message
news:MeOKvreUHHA.1792@dacmail.dataaccess.com...
> Hi Bo,
>
> I haven't been able to reproduce this problem myself. Nor with the
> fckeditor, not by adding the code myself.
>
> Which browser do you use? And which build of Electos?
>
> One thing that I did notice is that editing a mail link will result in
> 'mailto:' as email adress and the eamil addres as subject. We will look
> into this.
>
> -Thijs
>
>
> "David W. Lincoln" <dwl@lincolnsystems.us> wrote in message
> news:6udlLrVUHHA.5148@dacmail.dataaccess.com...
>>I tried to create an email link using the FSCKeditor "Insert/edit link"
>>and selecting "email address" as the link type but in the browser the
>>anchor tags and href are still not there.
>>
>> -BO Lincoln
>>
>
>