Hi Chris,

perhaps you need to escape the returning string because of the value 
containing apostrophes inside the alert function.


Greetings
Marco


On Wednesday, November 13, 2013 10:27:08 PM UTC+1, cjh wrote:
>
> We need a method to test an anchor element in javascript to see if it has 
> been connected to a page or assigned a URL
> In Version 9 We would just assign the anchor element to a javascript 
> variable.
> Something like....
>  
> myAnchor='<%anc_RelatedLink%>';
> if (myAnchor != ' '){
> *[Do something here]*
> }
>  
> This now will cause an ASP error when the page is opened and the anchor is* 
> not* connected to a page.
> It will work if the Achor is referenced to a page or assigend a URL.
> We believe this is possibly due to a change in this element behavior in 
> Version 11 that inserts...
> *href="javascript:alert('No page has been connected to this link.')"*into the 
> anchor tag if it is not connected.
>  
> Does anyone know of a workaround?
> We have unsuccesfully tried a render tag.
>  
> <!! Context:CurrentPage.Elements.GetElement(anc_myAnchor).GetHtml() !!>
>  
>  It either does not return any value or if it does seems to have a caching 
> behavior that maintains an older value.
>  
> Thanks for any advice you can provide,
>  
> Chris
>  
>

-- 
You received this message because you are subscribed to the Google Groups 
"RedDot CMS Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to reddot-cms-users+unsubscr...@googlegroups.com.
To post to this group, send email to reddot-cms-users@googlegroups.com.
Visit this group at http://groups.google.com/group/reddot-cms-users.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to