CodeCharge Studio
search Register Login  

Web Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> PHP

 setting the target frame in a link object

Print topic Send  topic

Author Message
Danny
Posted: 07/14/2004, 10:10 PM

Hi,

How could I change the target frame in a Link object?
I currently set the link dynamically using the SetLink method but I haven't figured out how to set the target frame as well.

Thanks,

Danny
peterr


Posts: 5971
Posted: 07/14/2004, 10:30 PM

You should be able to add the target by editing the HTML.
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com
View profile  Send private message
klwillis


Posts: 428
Posted: 07/15/2004, 8:22 AM

If you want to do that programatically, use a template variable and
set the value using the SetTag action in the BeforeShow event for
the page (or form) where the link is located.

_________________
Kevin Willis, VP/CIO
HealthCare Information Technology Specialist
http://www.nexushealthcare.com
"Fast - Convenient - Quality-Care"

Medical Software Consulting Services
Email : klwillis@nexushealthcare.com
Skype : klwillis2006
View profile  Send private message
Danny
Posted: 07/15/2004, 2:56 PM

Thanks Peter and klwillis – your replies are pointing me in the right direction.

I have a grid that consists of multiple items per row and multiple rows – each item is a link. What I need is that each link will open into its OWN window when clicked - without replacing other open windows. Any ideas on how to accomplish this. When I follow Peters advice and add a target="newpage" in the html code the result is that all the links open into the SAME new window.

As for klwillis reply. You actually introduced me to the term "template variable". Searching the CodeCharge docs I couldn't find a proper in-depth explanation of what template variables are and how to use them. Following that I started looking at other undocumented issues (at least to me) like the common.php and template.php files just to find a wealth of potentially useful functions with no documentation.

Is there any documentation out there besides the help file that I'm not aware of? Specifically something that explains more about the common.php and template.php files?

Thanks,

Danny
peterr


Posts: 5971
Posted: 07/15/2004, 3:02 PM

That's easy :-)
Quick look on Google and the proper syntax is: target="_blank"
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com
View profile  Send private message
Danny
Posted: 07/15/2004, 4:19 PM

Thanks Peter !!!

That’s just what I needed. And the speed of your replies makes puts the CodeCharge support in a league of its own.

What about my other question regarding additional documentation. It seems like there is so much potential power under the CodeCharge hood that is being wasted for lack of documentation.

Danny
peterr


Posts: 5971
Posted: 07/15/2004, 4:28 PM

You can press F1 to open the Help file and then search for "template NEAR variable". But in a sense such thing doesn't physically exist, except when you create it. Thus if you just enter {SomeText} in curly brackets then you're creating your own template variable.
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com
View profile  Send private message
Danny
Posted: 07/16/2004, 4:37 PM

Hi Peter,

I made a search for "template NEAR variable" and came up with a dozen or so results, none of which seem to explain what a template is in the first place. Could you please refer me to documentation on:

1. What's a template?
2. What's a template variable

Thanks,

Danny
peterr


Posts: 5971
Posted: 07/16/2004, 4:47 PM

I think that template doesn't require explanation - it's just an HTML file. So we could call those "HTML file" and "variable inside HTML file" :-)
Template variable is a word that you type inside HTML and put into curly brackets. See an example at http://docs.codecharge.com/studio/html/ProgrammingTechn...lateBlocks.html
We call it a "variable" because it can be changed, just like a value of a variable can be changed.
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com
View profile  Send private message
peterr


Posts: 5971
Posted: 07/16/2004, 4:50 PM

Oh, but if you wanted to know what is template why haven't you searched for "template"? :-)
The first search result in Help shows the "Terms and Definitions" section which contains some more detailed info about the Template.
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com
View profile  Send private message
datadoit.com
Posted: 07/17/2004, 8:13 AM

Helen at Yes! sent me this link, which I found to be quite informative....

http://support.codecharge.com/kb_article.asp?article_id=56

-MikeR

Danny
Posted: 07/17/2004, 8:49 AM

Thanks to everyone for their help :-)
Damian
Posted: 07/18/2004, 12:08 AM

A slight variation...

I use the following setup so that when the custometr uploads the image and
the link they can also choose the target destination (either _self or
_blank) in the admin pages that I built.

The links database has a field for target.

The codecharge page has a hidden field called hidden_target and I then
manually add this value to the Target variable of the href as in the example
following:

<a href="{link_image}" target="{hidden_target}" alt="{hidden_alt}"><img
alt="{hidden_alt}"
src="thumbnail.php?gd=2&src=link/{link_image_Src}&maxw=100" border="0"></a>

FYI I also added a hidden field called hidden_alt which displays text when
mouse is over the image

link_image: image name pulled from db
hidden_target: target pulled from db
hidden_alt" alt text pulled from db
thumbnail.php is used to ensure page formatting is not screwed by image size

Damian



"Danny" <Danny@forum.codecharge> wrote in message
news:540f611d5132c8@news.codecharge.com...
> Hi,
>
> How could I change the target frame in a Link object?
> I currently set the link dynamically using the SetLink method but I
haven't
> figured out how to set the target frame as well.
>
> Thanks,
>
> Danny
>
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>


Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Web Database

Join thousands of Web developers who build Web applications with minimal coding.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.