NetTalk Central
NetTalk Web Server => Web Server - Ask For Help => Topic started by: Gordon Holfelder on February 02, 2011, 08:15:18 PM
-
Hi All-
I'd like to create a series of hyperlinks as part of the text that is being displayed in a browse. There may be one or more of these. They are currently stored in a child table. Each of these child records contains the text and the blob that is to be displayed when the hyperlink is pressed.
Now the question; do any of the examples show something like this? Any suggestions where to start?
Thanks in advance for the help.
Gordon
-
Are you hyper linking to a new page? If so you should be able to add extra parameters to the hyperlink so the page you are calling can display the correct info.
I do a similar thing but found Firefox is VERY slow hyperlinking to a _self page. Other browsers are fine and Firefox is also ok to _blank.
-
Hi Gordon,
Is this sort of like a "more info" link?
Where the user clicks on the link, and up pops a dialog with the expanded information?
cheers
Bruce
-
Hi All, and thanks for replying-
I've got the browse to work in generating the link. The links are to additional documents that are PDF's that have been stored as blobs in the database. The code I'm using is something like:
SET(AFpicView)
LOOP
NEXT(AFpicView)
IF ERRORCODE()
BREAK
END
IF loc:Links
loc:Links = loc:Links & ', '
END
loc:Links = loc:Links & |
p_web.CreateHyperLink(AFpic.Description, |
'HTTP://' & CLIP(p_web.RequestHost) & |
'/ViewAttachment' & |
'?Type=Item' & |
'?ID=' & PResi:SelfServiceItemID & |
'?Row=' & AFpic.Order, |
'_blank')
END
Then I display the loc:Links field (making sure to turn on the XHTML option).
Now I'm trying to get the ViewAttachment procedure written. In this procedure I plan on transferring the Blob to a file using the arguments that are on the link. I've created a NewWebPage procedure where I'll trap the arguments and build the PDF. Still working on the learning curve...
Thanks,
Gordon