CodeCharge Studio
search Register Login  

Visual Web Reporting

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

YesSoftware Forums -> CodeCharge Studio -> PHP

 setup an absolut link

Print topic Send  topic

Author Message
thomas2340

Posts: 55
Posted: 05/10/2004, 8:54 AM

how can i set up an absolut form link, the link i got is only relative, so my link is always at the root dir, ot a new one.

thomas
View profile  Send private message
peterr


Posts: 5971
Posted: 05/10/2004, 12:31 PM

Select "Absolute" in the "Convert URL To" property.
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com
View profile  Send private message
thomas2340

Posts: 55
Posted: 05/10/2004, 12:46 PM

sorry, but it wont work, iget my links from the database.

for example i will have a link to www.google.de

but it get: http://192.168.1.238/websun/www.google.de

where websun is my develover directory ...
View profile  Send private message
peterr


Posts: 5971
Posted: 05/10/2004, 1:13 PM

I see. I didn't know your link structure.
I think that this will work automatically if you set the "Convert URL To" property back to "None", but your links in the database would need to contain the full HTTP address, like http://www.google.de
HTTP is the protocol that allows Web browsers to recognize that this is an external link. Otherwise the browser "thinks" that it should append the new URL to the current URL. This is not CodeCharge specific but this is how browsers handle such links.

You can also take a look at our Portal example that displays such links, also live at http://examples.codecharge.com/Portal/Links.php
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com
View profile  Send private message
thomas2340

Posts: 55
Posted: 05/10/2004, 2:02 PM

oh i see, but its not very useful, for the person who insert the link into the database, because the dont use http:// is there another way to get a solution for that, also what must i do if i want to set a target like _blank ?

View profile  Send private message
peterr


Posts: 5971
Posted: 05/10/2004, 2:44 PM

I agree, especially that some users may enter the full URL and others may not. You may want to require and validate that users enter "http://" when submitting links, or utilize a function in the Before Show of the Link or Label to preprocess the links so that they are displayed with http.

You can enter "_blank" in the target property of your link (Format tab) or edit the HTML.
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com
View profile  Send private message
Errol Taskin
Posted: 05/10/2004, 2:52 PM

I just went through this.. Let me see if I understand you correctly.

You have www.someplace.com in the db rght? but you want to display it as a link?

If so this is how I got it to work.
1. Change the type to link
2. set the HREFTYPE option to Database not page in the properties.
3. make sure you identify the field that contains the link below that in HREF SOURCE
4. set the parm, absolute or whatever to nothing.
5. IN THE HTML at the bottem where you see the field being displayed in the list box it is something like this:

<td class="MailboxDataTD"><a href="{url_Src}" class="MailboxDataLink">{url}</a> </td>

Modify that to this:

<td class="MailboxDataTD"><a href="HTTP://{url_Src}" class="MailboxDataLink">{url}</a> </td>

That is how I got mine to work...

Hope this helps...
peterr


Posts: 5971
Posted: 05/10/2004, 3:01 PM

If I understand correctly Thomas wrote that some users will be entering the links, therefore I think that there is no assurance that all links will start with "www" or with "http" (unless some type of validation is implemented). Therefore I'm assuming that there will be a mix of links in various formats and simply adding "http://" will not work.
Of course I may be wrong since I don't know who and how will be maintaining those links.
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com
View profile  Send private message
thomas2340

Posts: 55
Posted: 05/10/2004, 3:27 PM

errol, thanx its done, i have simply modified the html src, peterr i think its a nice function for future codecharge studio verions.

i use the following code now, i have also added the target value.

<td class="CapuccinoDataTD"><a class="CapuccinoDataLink" href="http://{link_Src}" target="_blank">{link}</a></td>
View profile  Send private message
peterr


Posts: 5971
Posted: 05/10/2004, 5:00 PM

Good enough. Thanks to Errol from me as well.
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com
View profile  Send private message

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.

PHP Reports

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

Home   |    Search   |    Members   |    Register   |    Login


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