Better way of making a link?

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Better way of making a link?

kimonostereo
Hi all,

When a found set of data is returned, what is the best / secure way to make a link to the details of the individual records in that list?

My old lasso pages have the following:
<ol>
        [Records]
        <li><a href="display.lasso?-KeyValue=[KeyField_Value]">[Field: 'fieldname']</a></li>
        [/Records]
</ol>

Is there a better way to do this?

thanks
\\scott\\
#############################################################
This message is sent to you because you are subscribed to
  the mailing list <[hidden email]>.
To unsubscribe, E-mail to: <[hidden email]>
To switch to the DIGEST mode, E-mail to <[hidden email]>
To switch to the INDEX mode, E-mail to <[hidden email]>
Send administrative queries to  <[hidden email]>

Reply | Threaded
Open this post in threaded view
|

Re: Better way of making a link?

list
Take a look at the knop framework specifically the grid type.

It takes care of all things needed when displaying lists of records including links to details, sorting columns, next - prev paging etc.

Read up on it here:
http://code.google.com/p/knop/

HDB
Jolle

26 okt 2010 kl. 09.09 skrev Scott Yoshinaga:

> Hi all,
>
> When a found set of data is returned, what is the best / secure way to make a link to the details of the individual records in that list?
>
> My old lasso pages have the following:
> <ol>
> [Records]
> <li><a href="display.lasso?-KeyValue=[KeyField_Value]">[Field: 'fieldname']</a></li>
> [/Records]
> </ol>
>
> Is there a better way to do this?
>
> thanks
> \\scott\\



#############################################################
This message is sent to you because you are subscribed to
  the mailing list <[hidden email]>.
To unsubscribe, E-mail to: <[hidden email]>
To switch to the DIGEST mode, E-mail to <[hidden email]>
To switch to the INDEX mode, E-mail to <[hidden email]>
Send administrative queries to  <[hidden email]>

Reply | Threaded
Open this post in threaded view
|

Re: Better way of making a link?

stevepiercy
Scott,

In addition, the link should be protected by some kind of
authentication (Knop has some basic stuff, but you might need
more), and that the authenticated user has permission to get
that asset (Knop does not provide this, although it provides a
framework that you can build on).

This thread discusses some of the concepts:
http://old.nabble.com/Content-Management-System-with-Custom-Web-Applications-to27197671.html#a27249792

--steve


On 10/26/10 at 9:13 AM, [hidden email] pronounced:

>Take a look at the knop framework specifically the grid type.
>
>It takes care of all things needed when displaying lists of
>records including links to details, sorting columns, next -
>prev paging etc.
>
>Read up on it here:
>http://code.google.com/p/knop/
>
>HDB
>Jolle
>
>26 okt 2010 kl. 09.09 skrev Scott Yoshinaga:
>
>>Hi all,
>>
>>When a found set of data is returned, what is the best / secure way to make a link
>to the details of the individual records in that list?
>>
>>My old lasso pages have the following:
>><ol>
>>[Records]
>><li><a href="display.lasso?-KeyValue=[KeyField_Value]">[Field:
>'fieldname']</a></li>
>>[/Records]
>></ol>
>>
>>Is there a better way to do this?
>>
>>thanks
>>\\scott\\
>
>
>
>#############################################################
>This message is sent to you because you are subscribed to
>the mailing list <[hidden email]>.
>To unsubscribe, E-mail to: <[hidden email]>
>To switch to the DIGEST mode, E-mail to <[hidden email]>
>To switch to the INDEX mode, E-mail to <[hidden email]>
>Send administrative queries to  <[hidden email]>
>

-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
-- --
Steve Piercy               Web Site Builder              
Soquel, CA
<[hidden email]>                  <http://www.StevePiercy.com/>


#############################################################
This message is sent to you because you are subscribed to
  the mailing list <[hidden email]>.
To unsubscribe, E-mail to: <[hidden email]>
To switch to the DIGEST mode, E-mail to <[hidden email]>
To switch to the INDEX mode, E-mail to <[hidden email]>
Send administrative queries to  <[hidden email]>

Reply | Threaded
Open this post in threaded view
|

Re: Better way of making a link?

Tim Taplin
In reply to this post by kimonostereo
I would say that your method is just fine.

You have more options that you can choose to take advantage of but this works well. One you may consider is that you can pass any value that you wish to use as a unique identifier of the record and build your query for that record on the response page.

In other words, you do not HAVE to use the -keyvalue=[KeyField_value] method. You could pass it thru as :
           display.lasso?thisrecord=[field: 'idfield']
or
        display.lasso?thisrecord=[$myvar_based_on_unique_fields]
        (optionally encrypt the above var)

or also follow the previous recommendations and read up on link/asset security methods and issues in order to improve the overall security of your site. You could also look into one of the frameworks available as also suggested.

If you do the reading, you should be able to modify your process as you are comfortable with it. The decision to start working with a framework may be appropriate but requires more of a change to how you are working, how you think about your development and will force you to change many things rather than just one.

I would say that knop can be one of the least intrusive frameworks to your work process if you want to try a few features without committing to the whole thing.

Tim Taplin
 
On Oct 25, 2010, at 5:09 PM, Scott Yoshinaga wrote:

> Hi all,
>
> When a found set of data is returned, what is the best / secure way to make a link to the details of the individual records in that list?
>
> My old lasso pages have the following:
> <ol>
> [Records]
> <li><a href="display.lasso?-KeyValue=[KeyField_Value]">[Field: 'fieldname']</a></li>
> [/Records]
> </ol>
>
> Is there a better way to do this?
>
> thanks
> \\scott\\
> #############################################################
> This message is sent to you because you are subscribed to
>  the mailing list <[hidden email]>.
> To unsubscribe, E-mail to: <[hidden email]>
> To switch to the DIGEST mode, E-mail to <[hidden email]>
> To switch to the INDEX mode, E-mail to <[hidden email]>
> Send administrative queries to  <[hidden email]>
>


#############################################################
This message is sent to you because you are subscribed to
  the mailing list <[hidden email]>.
To unsubscribe, E-mail to: <[hidden email]>
To switch to the DIGEST mode, E-mail to <[hidden email]>
To switch to the INDEX mode, E-mail to <[hidden email]>
Send administrative queries to  <[hidden email]>