Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsForm and ListForm and ListHelp! Using Calculated Column with <a href=""></a>Help! Using Calculated Column with
Previous
 
Next
New Post
1/18/2007 11:08 PM
 
I'm trying to do something similar for my page, using XSL instead of a calculated column. Basically I'd like to access the actual image URL (instead of the MakeThumbnail string) so that I can have the image call a popup of a larger version from the thumbnail. Here's what I have so far:

function popup(target) {
 window.open(target, "Closeup");
}

              <script type="text/javascript">
                source="<xsl:value-of select="udt:Photo1_UDT_Original" />";
              </script>
                 <a href=" popup(source)">
                   <xsl:value-of select="udt:Photo1" disable-output-escaping="yes" />
                 </a>

These are just excerpts from the larger XSL file, with the lines in question. I think the problem is with the Photo1 XSL call, I've tried all of the variants listed here and none of them have worked. Currently, nothing is getting stored in the "source" variable, so nothing gets passes to the function.

Does anyone have any suggestions?
 
New Post
1/19/2007 6:45 AM
 

Perhaps. There was a typo in the udt source, please use udt:Photo1_UDT_Orginal instead of udt:Photo1_UDT_Original.

This is corrected in the upcoming release, but still wrong in the current one. Sorry for this issue.

 

 
New Post
1/19/2007 9:25 AM
 
That helped, thanks!

It's still not quite working, but that's entirely due to my own programming, as the value is getting stored now.
 
New Post
1/19/2007 11:31 AM
 
You surely want:
<a>
  <xsl:attribute name="href">popup(<xsl:value-of select="udt:Photo1_UDT_Original" />)</xsl:attribute>
  <xsl:value-of select="udt:Photo1" disable-output-escaping="yes" />
</a>
 
New Post
1/19/2007 12:17 PM
 
That also helps, thanks you!

Only things were I had to change the spelling of "original" again ;)
and also, as written above, the link gave me a full URL with the word "popup()" at the end. So I changed it to popup(<xsl....

The link is displaying correctly (example: " popup(photo.jpg)"), now I just have to figure out what else is breaking. I strongly suspect that it's due to the fact that my users have been putting spaces in their photo names, which is confusing javascript.

Thanks again!
 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsForm and ListForm and ListHelp! Using Calculated Column with <a href=""></a>Help! Using Calculated Column with


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out