Grid links and session links don't play

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

Grid links and session links don't play

list
I get issues with a grid in a solution where sessions is handled thru links. (Can't use cookies as I usually do.)

It looks like Knop adds the session link to the urls and then Lasso adds it again. Resulting that I get a LOT of session links...
After clicking on next/prev for a couple of times it can look like:
http://mydomain.tld/myplace/?mylist/&-session=VGPG%3aVLTFTHRHAYMFV3QD2119E7BlHKGWNtOKgzdTRU0KllXLMVh6jAv&-session=VGPG%3aVLTFTHRHAYMFV3QD2119E7BlHKGWNtOKgzdTRU0KllXLMVh6jAv&-session=VGPG%3aVLTFTHRHAYMFV3QD2119E7BlHKGWNtOKgzdTRU0KllXLMVh6jAv&-page=2&-session=VGPG:VLTFTHRHAYMFV3QD2119E7BlHKGWNtOKgzdTRU0KllXLMVh6jAv

Any way to get rid of this?

HDB
Jolle

--
#############################################################
This message is sent to you because you are subscribed to
the mailing list <[hidden email]>.
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
List archive http://www.nabble.com/Knop-Framework-Discussion-f29076.html
Project homepage http://montania.se/projects/knop/
Google Code has the latest downloads at http://code.google.com/p/knop/
Reply | Threaded
Open this post in threaded view
|

Re: Grid links and session links don't play

stevepiercy
That looks similar to the file upload issue I experienced.
http://old.nabble.com/Working-Code-Sample-for-field--type%3D%27file%27--to28803713.html#a28841731

What if you modify the source code as indicated here?
http://old.nabble.com/grid-to-edit-detail-error-to30081414.html#a30081843

--steve


On 11/18/10 at 7:04 AM, [hidden email] pronounced:

>I get issues with a grid in a solution where sessions is
>handled thru links. (Can't use cookies as I usually do.)
>
>It looks like Knop adds the session link to the urls and then
>Lasso adds it again. Resulting that I get a LOT of session links...
>After clicking on next/prev for a couple of times it can look like:
><a href="http://mydomain.tld/myplace/?mylist/&-session=VGPG%">http://mydomain.tld/myplace/?mylist/&-session=VGPG%
>3aVLTFTHRHAYMFV3QD2119E7BlHKGWNtOKgzdTRU0KllXLMVh6jAv&-session=VGPG%
>3aVLTFTHRHAYMFV3QD2119E7BlHKGWNtOKgzdTRU0KllXLMVh6jAv&-session=VGPG%
>3aVLTFTHRHAYMFV3QD2119E7BlHKGWNtOKgzdTRU0KllXLMVh6jAv&-page=2&-session=VGPG:
>VLTFTHRHAYMFV3QD2119E7BlHKGWNtOKgzdTRU0KllXLMVh6jAv
>
>Any way to get rid of this?
>
>HDB
>Jolle
>

-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
-- --
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]>
Send administrative queries to  <[hidden email]>
List archive http://www.nabble.com/Knop-Framework-Discussion-f29076.html
Project homepage http://montania.se/projects/knop/
Google Code has the latest downloads at http://code.google.com/p/knop/
Reply | Threaded
Open this post in threaded view
|

Re: Grid links and session links don't play

Johan Solve-2
In reply to this post by list
Hmm, I thiiink this was fixed (-session explicitly excluded from autoparams) but maybe not. The answer is probably in nav -> url around -autoparams

At 07.04 +1000 2010-11-18, [hidden email] wrote:

>I get issues with a grid in a solution where sessions is handled thru links. (Can't use cookies as I usually do.)
>
>It looks like Knop adds the session link to the urls and then Lasso adds it again. Resulting that I get a LOT of session links...
>After clicking on next/prev for a couple of times it can look like:
>http://mydomain.tld/myplace/?mylist/&-session=VGPG%3aVLTFTHRHAYMFV3QD2119E7BlHKGWNtOKgzdTRU0KllXLMVh6jAv&-session=VGPG%3aVLTFTHRHAYMFV3QD2119E7BlHKGWNtOKgzdTRU0KllXLMVh6jAv&-session=VGPG%3aVLTFTHRHAYMFV3QD2119E7BlHKGWNtOKgzdTRU0KllXLMVh6jAv&-page=2&-session=VGPG:VLTFTHRHAYMFV3QD2119E7BlHKGWNtOKgzdTRU0KllXLMVh6jAv
>
>Any way to get rid of this?
>
>HDB
>Jolle
>
>--
>#############################################################
>This message is sent to you because you are subscribed to
>the mailing list <[hidden email]>.
>To unsubscribe, E-mail to: <[hidden email]>
>Send administrative queries to  <[hidden email]>
>List archive http://www.nabble.com/Knop-Framework-Discussion-f29076.html
>Project homepage http://montania.se/projects/knop/
>Google Code has the latest downloads at http://code.google.com/p/knop/


--
     Johan Sölve    [FSA Member, Lasso Partner]
     Web Application/Lasso/FileMaker Developer
     MONTANIA SOFTWARE & SOLUTIONS
http://www.montania.se   mailto:[hidden email]
 (spam-safe email address, replace '-' with 'a')

--
#############################################################
This message is sent to you because you are subscribed to
the mailing list <[hidden email]>.
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
List archive http://www.nabble.com/Knop-Framework-Discussion-f29076.html
Project homepage http://montania.se/projects/knop/
Google Code has the latest downloads at http://code.google.com/p/knop/
Reply | Threaded
Open this post in threaded view
|

Re: Grid links and session links don't play

list
Found it and fixed it.
This line in nav
                #except -> type != 'array' ? #except = array: #except;
is now followed by
                #except -> insert('-session');

HDB
Jolle

On 18 nov 2010, at 07.31, Johan Solve wrote:

> Hmm, I thiiink this was fixed (-session explicitly excluded from autoparams) but maybe not. The answer is probably in nav -> url around -autoparams
>
> At 07.04 +1000 2010-11-18, [hidden email] wrote:
>> I get issues with a grid in a solution where sessions is handled thru links. (Can't use cookies as I usually do.)
>>
>> It looks like Knop adds the session link to the urls and then Lasso adds it again. Resulting that I get a LOT of session links...
>> After clicking on next/prev for a couple of times it can look like:
>> http://mydomain.tld/myplace/?mylist/&-session=VGPG%3aVLTFTHRHAYMFV3QD2119E7BlHKGWNtOKgzdTRU0KllXLMVh6jAv&-session=VGPG%3aVLTFTHRHAYMFV3QD2119E7BlHKGWNtOKgzdTRU0KllXLMVh6jAv&-session=VGPG%3aVLTFTHRHAYMFV3QD2119E7BlHKGWNtOKgzdTRU0KllXLMVh6jAv&-page=2&-session=VGPG:VLTFTHRHAYMFV3QD2119E7BlHKGWNtOKgzdTRU0KllXLMVh6jAv
>>
>> Any way to get rid of this?
>>
>> HDB
>> Jolle
>>
>> --
>> #############################################################
>> This message is sent to you because you are subscribed to
>> the mailing list <[hidden email]>.
>> To unsubscribe, E-mail to: <[hidden email]>
>> Send administrative queries to  <[hidden email]>
>> List archive http://www.nabble.com/Knop-Framework-Discussion-f29076.html
>> Project homepage http://montania.se/projects/knop/
>> Google Code has the latest downloads at http://code.google.com/p/knop/
>
>
> --
>     Johan Sölve    [FSA Member, Lasso Partner]
>     Web Application/Lasso/FileMaker Developer
>     MONTANIA SOFTWARE & SOLUTIONS
> http://www.montania.se   mailto:[hidden email]
> (spam-safe email address, replace '-' with 'a')
>
> --
> #############################################################
> This message is sent to you because you are subscribed to
> the mailing list <[hidden email]>.
> To unsubscribe, E-mail to: <[hidden email]>
> Send administrative queries to  <[hidden email]>
> List archive http://www.nabble.com/Knop-Framework-Discussion-f29076.html
> Project homepage http://montania.se/projects/knop/
> Google Code has the latest downloads at http://code.google.com/p/knop/
>
>



--
#############################################################
This message is sent to you because you are subscribed to
the mailing list <[hidden email]>.
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
List archive http://www.nabble.com/Knop-Framework-Discussion-f29076.html
Project homepage http://montania.se/projects/knop/
Google Code has the latest downloads at http://code.google.com/p/knop/
Reply | Threaded
Open this post in threaded view
|

Re: Grid links and session links don't play

list
In reply to this post by Johan Solve-2
I think I can't update to the repository. So here's my tweaked nav file for those interested.

HDB
Jolle

--
#############################################################
This message is sent to you because you are subscribed to
the mailing list <[hidden email]>.
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
List archive http://www.nabble.com/Knop-Framework-Discussion-f29076.html
Project homepage http://montania.se/projects/knop/
Google Code has the latest downloads at http://code.google.com/p/knop/

nav.inc (97K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Grid links and session links don't play

Johan Solve-2
I've committed these changes and a few more I had locally.

At 07.47 +1000 2010-11-18, [hidden email] wrote:

>I think I can't update to the repository. So here's my tweaked nav file for those interested.
>
>HDB
>Jolle
>
>Attachment converted: MacBook Pro:nav 5.inc (    /    ) (007D8ECF)
>--
>#############################################################
>This message is sent to you because you are subscribed to
>the mailing list <[hidden email]>.
>To unsubscribe, E-mail to: <[hidden email]>
>Send administrative queries to  <[hidden email]>
>List archive http://www.nabble.com/Knop-Framework-Discussion-f29076.html
>Project homepage http://montania.se/projects/knop/
>Google Code has the latest downloads at http://code.google.com/p/knop/


--
     Johan Sölve    [FSA Member, Lasso Partner]
     Web Application/Lasso/FileMaker Developer
     MONTANIA SOFTWARE & SOLUTIONS
http://www.montania.se   mailto:[hidden email]
 (spam-safe email address, replace '-' with 'a')

--
#############################################################
This message is sent to you because you are subscribed to
the mailing list <[hidden email]>.
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
List archive http://www.nabble.com/Knop-Framework-Discussion-f29076.html
Project homepage http://montania.se/projects/knop/
Google Code has the latest downloads at http://code.google.com/p/knop/
Reply | Threaded
Open this post in threaded view
|

Re: Grid links and session links don't play

Johan Solve-2
In reply to this post by list
These changes along with Steve's and a few local fixes I've made along the way are finally in the trunk of the repository now.

Steve, keep in mind that the trunk has the Knop version with syntax adjustments for L9, but your changes came from a pure L8 version. I've taken that into account when merging in the changes.
The trunk is not an L9 version, it's merely an early effort to make the code compile in L9. I'd like to roll back those syntax adjustments since it wasn't of any real use, but it's a bit larger job.


At 07.47 +1000 2010-11-18, [hidden email] wrote:

>I think I can't update to the repository. So here's my tweaked nav file for those interested.
>
>HDB
>Jolle
>
>Attachment converted: MacBook Pro:nav 5.inc (    /    ) (007D8ECF)
>--
>#############################################################
>This message is sent to you because you are subscribed to
>the mailing list <[hidden email]>.
>To unsubscribe, E-mail to: <[hidden email]>
>Send administrative queries to  <[hidden email]>
>List archive http://www.nabble.com/Knop-Framework-Discussion-f29076.html
>Project homepage http://montania.se/projects/knop/
>Google Code has the latest downloads at http://code.google.com/p/knop/


--
     Johan Sölve    [FSA Member, Lasso Partner]
     Web Application/Lasso/FileMaker Developer
     MONTANIA SOFTWARE & SOLUTIONS
http://www.montania.se   mailto:[hidden email]
 (spam-safe email address, replace '-' with 'a')

--
#############################################################
This message is sent to you because you are subscribed to
the mailing list <[hidden email]>.
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
List archive http://www.nabble.com/Knop-Framework-Discussion-f29076.html
Project homepage http://montania.se/projects/knop/
Google Code has the latest downloads at http://code.google.com/p/knop/
Reply | Threaded
Open this post in threaded view
|

Re: Grid links and session links don't play

stevepiercy
In reply to this post by Johan Solve-2
Would you please commit these changes?

(1)  Add series as allowable type for form -options for fields
of type select, radio, and checkbox
http://old.nabble.com/series-not-acceptable-options-for-field-type-select--to29196483.html#a29196483

(2)  Add this to grid so the footer displays properly for one or
more pages. Original omitted a found_page string:

     #lang -> (addlanguage: -language='en', -strings=(map:
...
         'found_page'='Page', // NEW
...

             #output += #db -> found_count + ' ' + (#lang ->
footer_found) + ' — ' + (#lang -> found_page) +': ';

(3)  Finally we had a discussion about allowing JOINs, and I've
implemented the changes in all my Knop sites without problems.  
I don't know whether you want to include them, due to the
possibility of breaking functionality where fields may include
periods in their names.

http://old.nabble.com/grid-with-join--to27742693.html#a27742693

--steve


On 11/18/10 at 8:42 AM, [hidden email] (Johan Solve) pronounced:

>I've committed these changes and a few more I had locally.
>
>At 07.47 +1000 2010-11-18, [hidden email] wrote:
>>I think I can't update to the repository. So here's my tweaked nav file for those interested.
>>
>>HDB
>>Jolle
>>
>>Attachment converted: MacBook Pro:nav 5.inc (    /    ) (007D8ECF)
>>--
>>#############################################################
>>This message is sent to you because you are subscribed to
>>the mailing list <[hidden email]>.
>>To unsubscribe, E-mail to: <[hidden email]>
>>Send administrative queries to  <[hidden email]>
>>List archive http://www.nabble.com/Knop-Framework-Discussion-f29076.html
>>Project homepage http://montania.se/projects/knop/
>>Google Code has the latest downloads at http://code.google.com/p/knop/
>
>
>--
>Johan Sölve    [FSA Member, Lasso Partner]
>Web Application/Lasso/FileMaker Developer
>MONTANIA SOFTWARE & SOLUTIONS
>http://www.montania.se   mailto:[hidden email]
>(spam-safe email address, replace '-' with 'a')
>

-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
-- --
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]>
Send administrative queries to  <[hidden email]>
List archive http://www.nabble.com/Knop-Framework-Discussion-f29076.html
Project homepage http://montania.se/projects/knop/
Google Code has the latest downloads at http://code.google.com/p/knop/
Reply | Threaded
Open this post in threaded view
|

Re: Grid links and session links don't play

Johan Solve-2
I had 1 and 3 didn't I? Forgot about 2 though. Maybe that's a matter of taste. Please provide example output before and after so I understand it better.


At 00.18 -0800 2010-11-18, Steve Piercy - Web Site Builder wrote:

>Would you please commit these changes?
>
>(1)  Add series as allowable type for form -options for fields of type select, radio, and checkbox
>http://old.nabble.com/series-not-acceptable-options-for-field-type-select--to29196483.html#a29196483
>
>(2)  Add this to grid so the footer displays properly for one or more pages. Original omitted a found_page string:
>
>     #lang -> (addlanguage: -language='en', -strings=(map:
>...
>         'found_page'='Page', // NEW
>...
>
>             #output += #db -> found_count + ' ' + (#lang ->
>footer_found) + ' - ' + (#lang -> found_page) +': ';
>
>(3)  Finally we had a discussion about allowing JOINs, and I've implemented the changes in all my Knop sites without problems.  I don't know whether you want to include them, due to the possibility of breaking functionality where fields may include periods in their names.
>
>http://old.nabble.com/grid-with-join--to27742693.html#a27742693
>
>--steve
>
>
>On 11/18/10 at 8:42 AM, [hidden email] (Johan Solve) pronounced:
>
>>I've committed these changes and a few more I had locally.
>>
>>At 07.47 +1000 2010-11-18, [hidden email] wrote:
>>>I think I can't update to the repository. So here's my tweaked nav file for those interested.
>>>
>>>HDB
>>>Jolle
>>>
>>>Attachment converted: MacBook Pro:nav 5.inc (    /    ) (007D8ECF)
>>>--
>>>#############################################################
>>>This message is sent to you because you are subscribed to
>>>the mailing list <[hidden email]>.
>>>To unsubscribe, E-mail to: <[hidden email]>
>>>Send administrative queries to  <[hidden email]>
>>>List archive http://www.nabble.com/Knop-Framework-Discussion-f29076.html
>>>Project homepage http://montania.se/projects/knop/
>>>Google Code has the latest downloads at http://code.google.com/p/knop/
>>
>>
>>--
>>Johan Sölve    [FSA Member, Lasso Partner]
>>Web Application/Lasso/FileMaker Developer
>>MONTANIA SOFTWARE & SOLUTIONS
>>http://www.montania.se   mailto:[hidden email]
>>(spam-safe email address, replace '-' with 'a')
>>
>
>-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
>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]>
>Send administrative queries to  <[hidden email]>
>List archive http://www.nabble.com/Knop-Framework-Discussion-f29076.html
>Project homepage http://montania.se/projects/knop/
>Google Code has the latest downloads at http://code.google.com/p/knop/


--
     Johan Sölve    [FSA Member, Lasso Partner]
     Web Application/Lasso/FileMaker Developer
     MONTANIA SOFTWARE & SOLUTIONS
http://www.montania.se   mailto:[hidden email]
 (spam-safe email address, replace '-' with 'a')

--
#############################################################
This message is sent to you because you are subscribed to
the mailing list <[hidden email]>.
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
List archive http://www.nabble.com/Knop-Framework-Discussion-f29076.html
Project homepage http://montania.se/projects/knop/
Google Code has the latest downloads at http://code.google.com/p/knop/
Reply | Threaded
Open this post in threaded view
|

Re: Grid links and session links don't play

stevepiercy
Ah, looks like (1) and (3) just came through.  Crossed emails
and repos.  Thank you!

To elaborate on (2)--which is merely a matter of preference--if
you use grid->renderhtml(-numbered), then you get this in the
header and footer of the grid:

     115 found   << 1 2 3 4 5 6 >>

Most of my users did not understand the pagination navigation.  
To disambiguate the numbers and << and >>, I made a change to
get this:

     115 found — Page: << 1 2 3 4 5 6 >>

I think with some creative CSS, I can work this out to something
without modifying Knop for this preference.  Then I'll be 100% compliant.
http://www.smashingmagazine.com/2007/11/16/pagination-gallery-examples-and-good-practices/

However, I just now realized that grid->renderhtml(-numbered)
lacks the first and last links.  I fixed that.  Here is the
relevant block of code that adds the first and last links.

         if: #numberedpaging;
             local: 'page_from'=1,
                 'page_to'=#lastpage;
             if: #lastpage > #numberedpaging;
                 #page_from=#page - (#numberedpaging/2 - 1);
                 #page_to=#page + (#numberedpaging/2);
                 if: #page_from < 1;
                     #page_to += (1 - #page_from);
                     #page_from = 1;
                 /if;
                 if: #page_to > #lastpage;
                     #page_from = #lastpage - (#numberedpaging - 1);
                     #page_to = #lastpage;
                 /if;
             /if;
             #output += #db -> found_count + ' ' + (#lang ->
footer_found) + '&nbsp;&nbsp;';
             if: #page > 1;
                 if: #url_cached -> size;
                     #url_cached_temp=#url_cached;
                     #url_cached_temp ->
replace('-page=###page###', '-page=' + 1);
                     /*#output += ' <a href="' + #nav ->
url(-autoparams, -getargs, -except=(array: -page, -path),
                         -urlargs='-page=' + (#page - 1)) + '"
class="prevnext prev"'
                         + ' title="' + (#lang ->
linktitle_goprev) + '">' + (#lang -> linktext_prev) + '</a> ';*/
                     #output += ' <a href="' + #url_cached_temp
+ '" class="prevnext first"'
                         + ' title="' + (#lang ->
linktitle_gofirst) + '">' + (#lang -> linktext_first) + '</a> ';

                     #url_cached_temp=#url_cached;
                     #url_cached_temp ->
replace('-page=###page###', '-page=' + (#page - 1));
                     #output += ' <a href="' + #url_cached_temp
+ '" class="prevnext prev"'
                         + ' title="' + (#lang ->
linktitle_goprev) + '">' + (#lang -> linktext_prev) + '</a> ';
                 else;
                     #output += ' <a href="./?' + (self ->
(urlargs: -except=(array: -page, -path), -suffix='&amp;'))
                         + '-page=1" class="prevnext first"'
                         + ' title="' + (#lang ->
linktitle_gofirst) + '">' + (#lang -> linktext_first) + '</a> ';
                     #output += ' <a href="./?' + (self ->
(urlargs: -except=(array: -page, -path), -suffix='&amp;'))
                         + '-page=' + (#page - 1) + '"
class="prevnext prev"'
                         + ' title="' + (#lang ->
linktitle_goprev) + '">' + (#lang -> linktext_prev) + '</a> ';
                 /if;
             else;
                 //#output += ' <span class="prevnext prev
dim">' + (#lang -> linktext_prev) + '</span> ';
             /if;
             if: #page_from > 1;
                 if: #url_cached -> size;
                     #url_cached_temp=#url_cached;
                     #url_cached_temp ->
replace('-page=###page###', '-page=' + 1);
                     /*#output += ' <a href="' + #nav ->
url(-autoparams, -getargs, -except=(array: -page, -path),
                         -urlargs='-page=1') + '"
class="prevnext numbered first">1</a>';*/
                     #output += ' <a href="' + #url_cached_temp
+ '" class="prevnext numbered first">1</a>';
                 else;
                     #output += ' <a href="./?' + (self ->
(urlargs: -except=(array: -page, -path), -suffix='&amp;'))
                         + '-page=1" class="prevnext numbered
first">1</a> ';
                 /if;
                 if: #page_from > 2;
                     #output +='...';
                 /if;
             /if;
             loop: -from=#page_from, -to=#page_to;
                 if: loop_count == #page;
                     #output += ' <span class="numbered
current">' + loop_count + '</span> ';
                 else;
                     if: #url_cached -> size;
                         #url_cached_temp=#url_cached;
                         #url_cached_temp ->
replace('-page=###page###', '-page=' + loop_count);
                         /*#output += ' <a href="' + #nav ->
url(-autoparams, -getargs, -except=(array: -page, -path),
                             -urlargs='-page=' + loop_count) +
'" class="prevnext numbered">' + loop_count + '</a> ';*/
                         #output += ' <a href="' +
#url_cached_temp + '" class="prevnext numbered">' + loop_count +
'</a> ';
                     else;
                         #output += ' <a href="./?' + (self ->
(urlargs: -except=(array: -page, -path), -suffix='&amp;'))
                             + '-page=' + loop_count + '"
class="prevnext numbered">' + loop_count + '</a> ';
                     /if;
                 /if;
             /loop;
             if: #page_to < #lastpage;
                 if: #page_to < (#lastpage - 1);
                     #output += '...';
                 /if;
                 if: #url_cached -> size;
                     #url_cached_temp=#url_cached;
                     #url_cached_temp ->
replace('-page=###page###', '-page=' + #lastpage);
                     /*#output += ' <a href="' + #nav ->
url(-autoparams, -getargs, -except=(array: -page, -path),
                         -urlargs='-page=' + #lastpage) + '"
class="prevnext numbered last">' + #lastpage + '</a> ';*/
                     #output += ' <a href="' + #url_cached_temp
+ '" class="prevnext numbered last">' + #lastpage + '</a> ';
                 else;
                     #output += ' <a href="./?' + (self ->
(urlargs: -except=(array: -page, -path), -suffix='&amp;'))
                         + '-page=' + #lastpage + '"
class="prevnext numbered last">' + #lastpage + '</a> ';
                 /if;
             /if;

             if: #page < #lastpage;
                 if: #url_cached -> size;
                     #url_cached_temp=#url_cached;
                     #url_cached_temp ->
replace('-page=###page###', '-page=' + (#page + 1));
                     /*#output += ' <a href="' + #nav ->
url(-autoparams, -getargs, -except=(array: -page, -path),
                         -urlargs='-page=' + (#page + 1)) + '"
class="prevnext next"'
                         + ' title="' + (#lang ->
linktitle_gonext) + '">' + (#lang -> linktext_next) + '</a> ';*/
                     #output += ' <a href="' + #url_cached_temp
+ '" class="prevnext next"'
                         + ' title="' + (#lang ->
linktitle_gonext) + '">' + (#lang -> linktext_next) + '</a> ';

                     #url_cached_temp=#url_cached;
                     #url_cached_temp ->
replace('-page=###page###', '-page=' + #lastpage);
                     #output += ' <a href="' + #url_cached_temp
+ '" class="prevnext last"'
                         + ' title="' + (#lang ->
linktitle_golast) + '">' + (#lang -> linktext_last) + '</a> ';
                 else;
                     #output += ' <a href="./?' + (self ->
(urlargs: -except=(array: -page, -path), -suffix='&amp;'))
                         + '-page=' + (#page + 1) + '"
class="prevnext next"'
                         + ' title="' + (#lang ->
linktitle_gonext) + '">' + (#lang -> linktext_next) + '</a> ';
                     #output += ' <a href="./?' + (self ->
(urlargs: -except=(array: -page, -path), -suffix='&amp;'))
                         + '-page=' + (#page + 1) + '"
class="prevnext last"'
                         + ' title="' + (#lang ->
linktitle_golast) + '">' + (#lang -> linktext_last) + '</a> ';
                 /if;
             else;
                 //#output += ' <span class="prevnext next
dim">' + (#lang -> linktext_next) + '</span> ';
             /if;



         else;  // regular prev/next links


--steve




On 11/18/10 at 9:42 AM, [hidden email] (Johan Solve) pronounced:

>I had 1 and 3 didn't I? Forgot about 2 though. Maybe that's a
>matter of taste. Please provide example output before and after
>so I understand it better.
>
>
>At 00.18 -0800 2010-11-18, Steve Piercy - Web Site Builder wrote:
>>Would you please commit these changes?
>>
>>(1)  Add series as allowable type for form -options for fields of type select,
>radio, and checkbox
>>http://old.nabble.com/series-not-acceptable-options-for-field-type-select--
>to29196483.html#a29196483
>>
>>(2)  Add this to grid so the footer displays properly for one or more pages.
>Original omitted a found_page string:
>>
>>#lang -> (addlanguage: -language='en', -strings=(map:
>>...
>>'found_page'='Page', // NEW
>>...
>>
>>#output += #db -> found_count + ' ' + (#lang ->
>>footer_found) + ' - ' + (#lang -> found_page) +': ';
>>
>>(3)  Finally we had a discussion about allowing JOINs, and I've implemented the
>changes in all my Knop sites without problems.  I don't know
>whether you want to include them, due to the possibility of
>breaking functionality where fields may include periods in
>their names.
>>
>>http://old.nabble.com/grid-with-join--to27742693.html#a27742693
>>
>>--steve
>>
>>
>>On 11/18/10 at 8:42 AM, [hidden email] (Johan Solve) pronounced:
>>
>>>I've committed these changes and a few more I had locally.
>>>
>>>At 07.47 +1000 2010-11-18, [hidden email] wrote:
>>>>I think I can't update to the repository. So here's my tweaked nav file for those
>interested.
>>>>
>>>>HDB
>>>>Jolle
>>>>
>>>>Attachment converted: MacBook Pro:nav 5.inc (    /    ) (007D8ECF)
>>>>--
>>>>#############################################################
>>>>This message is sent to you because you are subscribed to
>>>>the mailing list <[hidden email]>.
>>>>To unsubscribe, E-mail to: <[hidden email]>
>>>>Send administrative queries to  <[hidden email]>
>>>>List archive http://www.nabble.com/Knop-Framework-Discussion-f29076.html
>>>>Project homepage http://montania.se/projects/knop/
>>>>Google Code has the latest downloads at http://code.google.com/p/knop/
>>>
>>>
>>>--
>>>Johan Sölve    [FSA Member, Lasso Partner]
>>>Web Application/Lasso/FileMaker Developer
>>>MONTANIA SOFTWARE & SOLUTIONS
>>>http://www.montania.se   mailto:[hidden email]
>>>(spam-safe email address, replace '-' with 'a')
>>>
>>
>>-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
>>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]>
>>Send administrative queries to  <[hidden email]>
>>List archive http://www.nabble.com/Knop-Framework-Discussion-f29076.html
>>Project homepage http://montania.se/projects/knop/
>>Google Code has the latest downloads at http://code.google.com/p/knop/
>
>
>--
>Johan Sölve    [FSA Member, Lasso Partner]
>Web Application/Lasso/FileMaker Developer
>MONTANIA SOFTWARE & SOLUTIONS
>http://www.montania.se   mailto:[hidden email]
>(spam-safe email address, replace '-' with 'a')
>

-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
-- --
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]>
Send administrative queries to  <[hidden email]>
List archive http://www.nabble.com/Knop-Framework-Discussion-f29076.html
Project homepage http://montania.se/projects/knop/
Google Code has the latest downloads at http://code.google.com/p/knop/
Reply | Threaded
Open this post in threaded view
|

Re: Grid links and session links don't play

stevepiercy
I apologize for my fickle posting behavior.  Actually, after
looking at that article on pagination UI, I think it would be
useful to add a language string "Go to page" to knop_grid to
disambiguate numbered page navigation.  Here is my revised
snippet in knop_grid:

         'footer_found'='found',
         'gotopage'='Go to page',    // NEW
         'linktitle_gonext' = 'Go to next page',


         if: #numberedpaging;
             local: 'page_from'=1,
                 'page_to'=#lastpage;
             if: #lastpage > #numberedpaging;
                 #page_from=#page - (#numberedpaging/2 - 1);
                 #page_to=#page + (#numberedpaging/2);
                 if: #page_from < 1;
                     #page_to += (1 - #page_from);
                     #page_from = 1;
                 /if;
                 if: #page_to > #lastpage;
                     #page_from = #lastpage - (#numberedpaging - 1);
                     #page_to = #lastpage;
                 /if;
             /if;
             #output += #db -> found_count + ' ' + (#lang ->
footer_found) + ' &#8212; ' + (#lang -> gotopage) + ':
';           // MODIFIED

--steve


On 11/18/10 at 1:56 AM, [hidden email] (Steve Piercy - Web
Site Builder) pronounced:

>Ah, looks like (1) and (3) just came through.  Crossed emails and repos.  Thank you!
>
>To elaborate on (2)--which is merely a matter of preference--if
>you use grid->renderhtml(-numbered), then you get this in the
>header and footer of the grid:
>
>115 found   << 1 2 3 4 5 6 >>
>
>Most of my users did not understand the pagination navigation.  
>To disambiguate the numbers and << and >>, I made a change to
>get this:
>
>115 found — Page: << 1 2 3 4 5 6 >>
>
>I think with some creative CSS, I can work this out to
>something without modifying Knop for this preference.  Then
>I'll be 100% compliant.
>http://www.smashingmagazine.com/2007/11/16/pagination-gallery-examples-and-good-
>practices/
>
>However, I just now realized that grid->renderhtml(-numbered)
>lacks the first and last links.  I fixed that.  Here is the
>relevant block of code that adds the first and last links.
>
>if: #numberedpaging;
>local: 'page_from'=1,
>'page_to'=#lastpage;
>if: #lastpage > #numberedpaging;
>#page_from=#page - (#numberedpaging/2 - 1);
>#page_to=#page + (#numberedpaging/2);
>if: #page_from < 1;
>#page_to += (1 - #page_from);
>#page_from = 1;
>/if;
>if: #page_to > #lastpage;
>#page_from = #lastpage - (#numberedpaging - 1);
>#page_to = #lastpage;
>/if;
>/if;
>#output += #db -> found_count + ' ' + (#lang -> footer_found) + '&nbsp;&nbsp;';
>if: #page > 1;
>if: #url_cached -> size;
>#url_cached_temp=#url_cached;
>#url_cached_temp -> replace('-page=###page###', '-page=' + 1);
>/*#output += ' <a href="' + #nav -> url(-autoparams, -getargs,
>-except=(array: -page, -path),
>-urlargs='-page=' + (#page - 1)) + '" class="prevnext prev"'
>+ ' title="' + (#lang -> linktitle_goprev) + '">' + (#lang ->
>linktext_prev) + '</a> ';*/
>#output += ' <a href="' + #url_cached_temp + '" class="prevnext first"'
>+ ' title="' + (#lang -> linktitle_gofirst) + '">' + (#lang ->
>linktext_first) + '</a> ';
>
>#url_cached_temp=#url_cached;
>#url_cached_temp -> replace('-page=###page###', '-page=' +
>(#page - 1));
>#output += ' <a href="' + #url_cached_temp + '" class="prevnext prev"'
>+ ' title="' + (#lang -> linktitle_goprev) + '">' + (#lang ->
>linktext_prev) + '</a> ';
>else;
>#output += ' <a href="./?' + (self -> (urlargs: -except=(array:
>-page, -path), -suffix='&amp;'))
>+ '-page=1" class="prevnext first"'
>+ ' title="' + (#lang -> linktitle_gofirst) + '">' + (#lang ->
>linktext_first) + '</a> ';
>#output += ' <a href="./?' + (self -> (urlargs: -except=(array:
>-page, -path), -suffix='&amp;'))
>+ '-page=' + (#page - 1) + '" class="prevnext prev"'
>+ ' title="' + (#lang -> linktitle_goprev) + '">' + (#lang ->
>linktext_prev) + '</a> ';
>/if;
>else;
>//#output += ' <span class="prevnext prev dim">' + (#lang ->
>linktext_prev) + '</span> ';
>/if;
>if: #page_from > 1;
>if: #url_cached -> size;
>#url_cached_temp=#url_cached;
>#url_cached_temp -> replace('-page=###page###', '-page=' + 1);
>/*#output += ' <a href="' + #nav -> url(-autoparams, -getargs,
>-except=(array: -page, -path),
>-urlargs='-page=1') + '" class="prevnext numbered first">1</a>';*/
>#output += ' <a href="' + #url_cached_temp + '" class="prevnext
>numbered first">1</a>';
>else;
>#output += ' <a href="./?' + (self -> (urlargs: -except=(array:
>-page, -path), -suffix='&amp;'))
>+ '-page=1" class="prevnext numbered first">1</a> ';
>/if;
>if: #page_from > 2;
>#output +='...';
>/if;
>/if;
>loop: -from=#page_from, -to=#page_to;
>if: loop_count == #page;
>#output += ' <span class="numbered current">' + loop_count +
>'</span> ';
>else;
>if: #url_cached -> size;
>#url_cached_temp=#url_cached;
>#url_cached_temp -> replace('-page=###page###', '-page=' + loop_count);
>/*#output += ' <a href="' + #nav -> url(-autoparams, -getargs,
>-except=(array: -page, -path),
>-urlargs='-page=' + loop_count) + '" class="prevnext
>numbered">' + loop_count + '</a> ';*/
>#output += ' <a href="' + #url_cached_temp + '" class="prevnext
>numbered">' + loop_count + '</a> ';
>else;
>#output += ' <a href="./?' + (self -> (urlargs: -except=(array:
>-page, -path), -suffix='&amp;'))
>+ '-page=' + loop_count + '" class="prevnext numbered">' +
>loop_count + '</a> ';
>/if;
>/if;
>/loop;
>if: #page_to < #lastpage;
>if: #page_to < (#lastpage - 1);
>#output += '...';
>/if;
>if: #url_cached -> size;
>#url_cached_temp=#url_cached;
>#url_cached_temp -> replace('-page=###page###', '-page=' + #lastpage);
>/*#output += ' <a href="' + #nav -> url(-autoparams, -getargs,
>-except=(array: -page, -path),
>-urlargs='-page=' + #lastpage) + '" class="prevnext numbered
>last">' + #lastpage + '</a> ';*/
>#output += ' <a href="' + #url_cached_temp + '" class="prevnext
>numbered last">' + #lastpage + '</a> ';
>else;
>#output += ' <a href="./?' + (self -> (urlargs: -except=(array:
>-page, -path), -suffix='&amp;'))
>+ '-page=' + #lastpage + '" class="prevnext numbered last">' +
>#lastpage + '</a> ';
>/if;
>/if;
>
>if: #page < #lastpage;
>if: #url_cached -> size;
>#url_cached_temp=#url_cached;
>#url_cached_temp -> replace('-page=###page###', '-page=' +
>(#page + 1));
>/*#output += ' <a href="' + #nav -> url(-autoparams, -getargs,
>-except=(array: -page, -path),
>-urlargs='-page=' + (#page + 1)) + '" class="prevnext next"'
>+ ' title="' + (#lang -> linktitle_gonext) + '">' + (#lang ->
>linktext_next) + '</a> ';*/
>#output += ' <a href="' + #url_cached_temp + '" class="prevnext next"'
>+ ' title="' + (#lang -> linktitle_gonext) + '">' + (#lang ->
>linktext_next) + '</a> ';
>
>#url_cached_temp=#url_cached;
>#url_cached_temp -> replace('-page=###page###', '-page=' + #lastpage);
>#output += ' <a href="' + #url_cached_temp + '" class="prevnext last"'
>+ ' title="' + (#lang -> linktitle_golast) + '">' + (#lang ->
>linktext_last) + '</a> ';
>else;
>#output += ' <a href="./?' + (self -> (urlargs: -except=(array:
>-page, -path), -suffix='&amp;'))
>+ '-page=' + (#page + 1) + '" class="prevnext next"'
>+ ' title="' + (#lang -> linktitle_gonext) + '">' + (#lang ->
>linktext_next) + '</a> ';
>#output += ' <a href="./?' + (self -> (urlargs: -except=(array:
>-page, -path), -suffix='&amp;'))
>+ '-page=' + (#page + 1) + '" class="prevnext last"'
>+ ' title="' + (#lang -> linktitle_golast) + '">' + (#lang ->
>linktext_last) + '</a> ';
>/if;
>else;
>//#output += ' <span class="prevnext next dim">' + (#lang ->
>linktext_next) + '</span> ';
>/if;
>
>
>
>else;  // regular prev/next links
>
>
>--steve
>
>
>
>
>On 11/18/10 at 9:42 AM, [hidden email] (Johan Solve) pronounced:
>
>>I had 1 and 3 didn't I? Forgot about 2 though. Maybe that's a
>>matter of taste. Please provide example output before and
>>after so I understand it better.
>>
>>
>>At 00.18 -0800 2010-11-18, Steve Piercy - Web Site Builder wrote:
>>>Would you please commit these changes?
>>>
>>>(1)  Add series as allowable type for form -options for fields of type select,
>>radio, and checkbox
>>>http://old.nabble.com/series-not-acceptable-options-for-field-type-select--
>>to29196483.html#a29196483
>>>
>>>(2)  Add this to grid so the footer displays properly for one or more pages.
>>Original omitted a found_page string:
>>>
>>>#lang -> (addlanguage: -language='en', -strings=(map:
>>>...
>>>'found_page'='Page', // NEW
>>>...
>>>
>>>#output += #db -> found_count + ' ' + (#lang ->
>>>footer_found) + ' - ' + (#lang -> found_page) +': ';
>>>
>>>(3)  Finally we had a discussion about allowing JOINs, and I've implemented the
>>changes in all my Knop sites without problems.  I don't know
>>whether you want to include them, due to the possibility of
>>breaking functionality where fields may include periods in
>>their names.
>>>
>>>http://old.nabble.com/grid-with-join--to27742693.html#a27742693
>>>
>>>--steve
>>>
>>>
>>>On 11/18/10 at 8:42 AM, [hidden email] (Johan Solve) pronounced:
>>>
>>>>I've committed these changes and a few more I had locally.
>>>>
>>>>At 07.47 +1000 2010-11-18, [hidden email] wrote:
>>>>>I think I can't update to the repository. So here's my tweaked nav file for
>those
>>interested.
>>>>>
>>>>>HDB
>>>>>Jolle
>>>>>
>>>>>Attachment converted: MacBook Pro:nav 5.inc (    /    ) (007D8ECF)
>>>>>--
>>>>>#############################################################
>>>>>This message is sent to you because you are subscribed to
>>>>>the mailing list <[hidden email]>.
>>>>>To unsubscribe, E-mail to: <[hidden email]>
>>>>>Send administrative queries to  <[hidden email]>
>>>>>List archive http://www.nabble.com/Knop-Framework-Discussion-f29076.html
>>>>>Project homepage http://montania.se/projects/knop/
>>>>>Google Code has the latest downloads at http://code.google.com/p/knop/
>>>>
>>>>
>>>>--
>>>>Johan Sölve    [FSA Member, Lasso Partner]
>>>>Web Application/Lasso/FileMaker Developer
>>>>MONTANIA SOFTWARE & SOLUTIONS
>>>>http://www.montania.se   mailto:[hidden email]
>>>>(spam-safe email address, replace '-' with 'a')
>>>>
>>>
>>>-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
>>>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]>
>>>Send administrative queries to  <[hidden email]>
>>>List archive http://www.nabble.com/Knop-Framework-Discussion-f29076.html
>>>Project homepage http://montania.se/projects/knop/
>>>Google Code has the latest downloads at http://code.google.com/p/knop/
>>
>>
>>--
>>Johan Sölve    [FSA Member, Lasso Partner]
>>Web Application/Lasso/FileMaker Developer
>>MONTANIA SOFTWARE & SOLUTIONS
>>http://www.montania.se   mailto:[hidden email]
>>(spam-safe email address, replace '-' with 'a')
>>
>
>-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
>Steve Piercy               Web Site Builder               Soquel, CA
><[hidden email]>                  <http://www.StevePiercy.com/>
>
>

-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
-- --
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]>
Send administrative queries to  <[hidden email]>
List archive http://www.nabble.com/Knop-Framework-Discussion-f29076.html
Project homepage http://montania.se/projects/knop/
Google Code has the latest downloads at http://code.google.com/p/knop/
Reply | Threaded
Open this post in threaded view
|

Re: Grid links and session links don't play

list
In reply to this post by Johan Solve-2
I strongly suggest that code changing present behavior and looks are inserted as optional. Activated by some optional param.
I did a similar change to the grid, that I haven't posted, that moved the top footer above the column headings. To activate it I use grid -> renderhtml(-startwithfooter)
This way it's not in the way for anyone who's using grid right now and likes the default look.

HDB
Jolle

On 18 nov 2010, at 18.42, Johan Solve wrote:

> I had 1 and 3 didn't I? Forgot about 2 though. Maybe that's a matter of taste. Please provide example output before and after so I understand it better.



--
#############################################################
This message is sent to you because you are subscribed to
the mailing list <[hidden email]>.
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
List archive http://www.nabble.com/Knop-Framework-Discussion-f29076.html
Project homepage http://montania.se/projects/knop/
Google Code has the latest downloads at http://code.google.com/p/knop/
Reply | Threaded
Open this post in threaded view
|

Re: Grid links and session links don't play

stevepiercy
DO WANT!  please.

This is disjointed:

    ID  Title   Key
    20 found — Go to page: 1 2 >> >|
    1   San Francisco Soccer Referee Association    root
    2   Home    main
    3   Assignment  assignment
    ...
    20 found — Go to page: 1 2 >> >|

This would be a nice option:

    20 found — Go to page: 1 2 >> >|
    ID  Title   Key
    1   San Francisco Soccer Referee Association    root
    2   Home    main
    3   Assignment  assignment
    ...
    20 found — Go to page: 1 2 >> >|

--steve


On 11/19/10 at 7:15 AM, [hidden email] (Jolle Carlestam) pronounced:

> I strongly suggest that code changing present behavior and looks are inserted as
> optional. Activated by some optional param.
> I did a similar change to the grid, that I haven't posted, that moved the top footer
> above the column headings. To activate it I use grid -> renderhtml(-startwithfooter)
> This way it's not in the way for anyone who's using grid right now and likes the
> default look.
>
> HDB
> Jolle
>
> On 18 nov 2010, at 18.42, Johan Solve wrote:
>
> > I had 1 and 3 didn't I? Forgot about 2 though. Maybe that's a matter of taste.
> Please provide example output before and after so I understand it better.
>
>
>

-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
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]>
Send administrative queries to  <[hidden email]>
List archive http://www.nabble.com/Knop-Framework-Discussion-f29076.html
Project homepage http://montania.se/projects/knop/
Google Code has the latest downloads at http://code.google.com/p/knop/
Reply | Threaded
Open this post in threaded view
|

Re: Grid links and session links don't play

list
On 19 nov 2010, at 10.04, Steve Piercy - Web Site Builder wrote:

> DO WANT!  please.

Then be my guest.
Here's a grid type than combines my add-ons with Steves.
You call the grid render like this $Grid -> renderhtml(-startwithfooter) if you want the top footer to be inserted before the column headings. If you want the default then just omit the param.

HDB
Jolle



--
#############################################################
This message is sent to you because you are subscribed to
the mailing list <[hidden email]>.
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
List archive http://www.nabble.com/Knop-Framework-Discussion-f29076.html
Project homepage http://montania.se/projects/knop/
Google Code has the latest downloads at http://code.google.com/p/knop/

grid.inc (76K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Grid links and session links don't play

list
On 19 nov 2010, at 10.25, <[hidden email]>
 wrote:

> On 19 nov 2010, at 10.04, Steve Piercy - Web Site Builder wrote:
>
>> DO WANT!  please.
>
> Then be my guest.
> Here's a grid type than combines my add-ons with Steves.
> You call the grid render like this $Grid -> renderhtml(-startwithfooter) if you want the top footer to be inserted before the column headings. If you want the default then just omit the param.

A small correction.
> I think this got lost in another thread, so I'm reposting.
>
> grid->renderhtml(-numbered) lacks the first and last links.  I fixed that.  Code below.

Is not implemented in the grid type I sent. But looks like a needed addition.

HDB
Jolle

--
#############################################################
This message is sent to you because you are subscribed to
the mailing list <[hidden email]>.
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
List archive http://www.nabble.com/Knop-Framework-Discussion-f29076.html
Project homepage http://montania.se/projects/knop/
Google Code has the latest downloads at http://code.google.com/p/knop/
Reply | Threaded
Open this post in threaded view
|

Re: Grid links and session links don't play

list
On 19 nov 2010, at 10.33, <[hidden email]>
 wrote:

> On 19 nov 2010, at 10.25, <[hidden email]>
> wrote:
>
>> On 19 nov 2010, at 10.04, Steve Piercy - Web Site Builder wrote:
>>
>>> DO WANT!  please.
>>
>> Then be my guest.
>> Here's a grid type than combines my add-ons with Steves.
>> You call the grid render like this $Grid -> renderhtml(-startwithfooter) if you want the top footer to be inserted before the column headings. If you want the default then just omit the param.
>
> A small correction.
>> I think this got lost in another thread, so I'm reposting.
>>
>> grid->renderhtml(-numbered) lacks the first and last links.  I fixed that.  Code below.
>
> Is not implemented in the grid type I sent. But looks like a needed addition.
New attempt.
Here's a grid type that also incorporates Steves adjusted numbered code.

HDB
Jolle

--
#############################################################
This message is sent to you because you are subscribed to
the mailing list <[hidden email]>.
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
List archive http://www.nabble.com/Knop-Framework-Discussion-f29076.html
Project homepage http://montania.se/projects/knop/
Google Code has the latest downloads at http://code.google.com/p/knop/

grid.inc (77K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Grid links and session links don't play

list
On 19 nov 2010, at 10.42, <[hidden email]>
 wrote:

> New attempt.
> Here's a grid type that also incorporates Steves adjusted numbered code.

Works like a charm by the way. Thanks, Steve!
Rick was just commenting yesterday that the navigation lacked first and last page links. Your code came in very handy. As Rick happens to not subscribe to the Knop list I can take credit for the fix... ;-)

HDB
Jolle

--
#############################################################
This message is sent to you because you are subscribed to
the mailing list <[hidden email]>.
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
List archive http://www.nabble.com/Knop-Framework-Discussion-f29076.html
Project homepage http://montania.se/projects/knop/
Google Code has the latest downloads at http://code.google.com/p/knop/
Reply | Threaded
Open this post in threaded view
|

Re: Grid links and session links don't play

list
On 19 nov 2010, at 10.47, <[hidden email]>
 wrote:

> Works like a charm by the way. Thanks, Steve!

Ah... Almost. I did find a small bug that didn't give the correct value for the last page link. Hopefully corrected now. So here's another version...

HDB
Jolle

--
#############################################################
This message is sent to you because you are subscribed to
the mailing list <[hidden email]>.
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
List archive http://www.nabble.com/Knop-Framework-Discussion-f29076.html
Project homepage http://montania.se/projects/knop/
Google Code has the latest downloads at http://code.google.com/p/knop/

grid.inc (77K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Grid links and session links don't play

stevepiercy
In reply to this post by list
On 11/19/10 at 11:01 AM, [hidden email] pronounced:

>On 19 nov 2010, at 10.47, <[hidden email]>
>wrote:
>
>>Works like a charm by the way. Thanks, Steve!
>
>Ah... Almost. I did find a small bug that didn't give the
>correct value for the last page link. Hopefully corrected now.
>So here's another version...

This looks good.  Thank you!

I don't understand why you added an id to the grid table,
quicksearch and quicksearch_reset objects.  Did you do it to get
better control over the styles, or something else?

Also for my personal enlightenment, why did you do this:

         #output += self -> 'footer' + '</table>\n';

changing it from the original?

         #output += #footer + '</table>\n';

--steve

-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
-- --
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]>
Send administrative queries to  <[hidden email]>
List archive http://www.nabble.com/Knop-Framework-Discussion-f29076.html
Project homepage http://montania.se/projects/knop/
Google Code has the latest downloads at http://code.google.com/p/knop/
Reply | Threaded
Open this post in threaded view
|

Re: Grid links and session links don't play

stevepiercy
In reply to this post by list
On 11/19/10 at 10:47 AM, [hidden email] pronounced:

>Rick was just commenting yesterday that the navigation lacked
>first and last page links. Your code came in very handy. As
>Rick happens to not subscribe to the Knop list I can take
>credit for the fix... ;-)

Too bad the list is archived.  ;P

--steve

-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
-- --
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]>
Send administrative queries to  <[hidden email]>
List archive http://www.nabble.com/Knop-Framework-Discussion-f29076.html
Project homepage http://montania.se/projects/knop/
Google Code has the latest downloads at http://code.google.com/p/knop/
12