PDA

View Full Version : WebReport Previous Page Not Working



Peter A Donovan
26-Dec-2005, 02:59 PM
Hi,
My link to the previous page of a webreport v9.1 is not working (just
discovered this). All my reports have links to previous page at 50 records
per page and none of them work. By "not working" I mean they simply display
the same page again.

Syntax used is studio wizard generated code:
<% If StartRecId > 0 Then %>
<A Href="#" OnClick="History.Go(-1);Return False;">Previous
Page</A>&Nbsp;
<% End If %>

Help anyone?
This all started when I changed the &Nbsp to "&nbsp" and now it won't go
back to the previous page no matter what the syntax.

TIA,
Peter Donovan
Sonata Software

Garret Mott
26-Dec-2005, 05:43 PM
Peter -

A modification of my response over the phone:

re: "By "not working" I mean they simply display the same page again."

If you rename the link to "Same Page" it'll do exactly what it says. Problem
solved.

HTH <g>

Garret

"Peter A Donovan" <SonataSoftwareUS@Yahoo.Com> wrote in message
news:9gY%23UalCGHA.3096@dacmail.dataaccess.com...
> Hi,
> My link to the previous page of a webreport v9.1 is not working (just
> discovered this). All my reports have links to previous page at 50
> records per page and none of them work. By "not working" I mean they
> simply display the same page again.
>
> Syntax used is studio wizard generated code:
> <% If StartRecId > 0 Then %>
> <A Href="#" OnClick="History.Go(-1);Return False;">Previous
> Page</A>&Nbsp;
> <% End If %>
>
> Help anyone?
> This all started when I changed the &Nbsp to "&nbsp" and now it won't go
> back to the previous page no matter what the syntax.
>
> TIA,
> Peter Donovan
> Sonata Software
>
>

Peter A Donovan
26-Dec-2005, 10:56 PM
PS:
This is both at the development site and my deploy site too.

Knut Sparhell
26-Dec-2005, 11:33 PM
Peter A Donovan wrote:

> My link to the previous page of a webreport v9.1 is not working (just
> discovered this). All my reports have links to previous page at 50 records
> per page and none of them work. By "not working" I mean they simply display
> the same page again.
>
> Syntax used is studio wizard generated code:
> <% If StartRecId > 0 Then %>
> <A Href="#" OnClick="History.Go(-1);Return False;">Previous
> Page</A>&Nbsp;
> <% End If %>
>
> Help anyone?
> This all started when I changed the &Nbsp to "&nbsp" and now it won't go
> back to the previous page no matter what the syntax.

You are aware that Javascript is a case sensitive language? My Firefox
Javascript console tells me that Histry.Go is not a function. My
Internet Explorer tells me that History is undefined. When I use
history.go(-1) it works as expected.

You should also use return false (not Return False).

--
Knut Sparhell, Norway

Peter A Donovan
27-Dec-2005, 04:38 AM
Thanks for the ideas Knut, but no go.

Now I have:
<A Href="#" OnClick="history.go(-1);return false;">Previous Page</A>&nbsp;

Symptoms:
The report thinks that it went back to the previous page since the "Previous
Page" hotlink does not appear, but the display action simply refreshes the
same page.

??
Regards,
Peter

"Knut Sparhell" <knut@sparhell.no> wrote in message
news:AePDj6pCGHA.5164@dacmail.dataaccess.com...
> Peter A Donovan wrote:
>
>> My link to the previous page of a webreport v9.1 is not working (just
>> discovered this). All my reports have links to previous page at 50
>> records per page and none of them work. By "not working" I mean they
>> simply display the same page again.
>>
>> Syntax used is studio wizard generated code:
>> <% If StartRecId > 0 Then %>
>> <A Href="#" OnClick="History.Go(-1);Return
>> False;">Previous Page</A>&Nbsp;
>> <% End If %>
>>
>> Help anyone?
>> This all started when I changed the &Nbsp to "&nbsp" and now it won't go
>> back to the previous page no matter what the syntax.
>
> You are aware that Javascript is a case sensitive language? My Firefox
> Javascript console tells me that Histry.Go is not a function. My Internet
> Explorer tells me that History is undefined. When I use history.go(-1) it
> works as expected.
>
> You should also use return false (not Return False).
>
> --
> Knut Sparhell, Norway

Peter A Donovan
27-Dec-2005, 04:43 AM
Hold On.... Got It.

<% If StartRecId > 0 Then %>
<a href="#" onclick="history.go(-1);return false;">Previous
Page</a>&nbsp;
<% End If %>

All lower case.
Thank you very much. Now the tedious replace and check results.

Great: Happy programmer :)
Peter



"Peter A Donovan" <SonataSoftwareUS@Yahoo.Com> wrote in message
news:hBcuEksCGHA.5164@dacmail.dataaccess.com...
> Thanks for the ideas Knut, but no go.
>
> Now I have:
> <A Href="#" OnClick="history.go(-1);return false;">Previous Page</A>&nbsp;
>
> Symptoms:
> The report thinks that it went back to the previous page since the
> "Previous Page" hotlink does not appear, but the display action simply
> refreshes the same page.
>
> ??
> Regards,
> Peter
>
> "Knut Sparhell" <knut@sparhell.no> wrote in message
> news:AePDj6pCGHA.5164@dacmail.dataaccess.com...
>> Peter A Donovan wrote:
>>
>>> My link to the previous page of a webreport v9.1 is not working (just
>>> discovered this). All my reports have links to previous page at 50
>>> records per page and none of them work. By "not working" I mean they
>>> simply display the same page again.
>>>
>>> Syntax used is studio wizard generated code:
>>> <% If StartRecId > 0 Then %>
>>> <A Href="#" OnClick="History.Go(-1);Return
>>> False;">Previous Page</A>&Nbsp;
>>> <% End If %>
>>>
>>> Help anyone?
>>> This all started when I changed the &Nbsp to "&nbsp" and now it won't go
>>> back to the previous page no matter what the syntax.
>>
>> You are aware that Javascript is a case sensitive language? My Firefox
>> Javascript console tells me that Histry.Go is not a function. My
>> Internet Explorer tells me that History is undefined. When I use
>> history.go(-1) it works as expected.
>>
>> You should also use return false (not Return False).
>>
>> --
>> Knut Sparhell, Norway
>
>

Peter A Donovan
27-Dec-2005, 06:22 AM
PS: The 9.1 studio created the code that now does not work. Just a FYI for
anyone with a 9.1 webapp running.
Time to upgrade to 11.

Knut Sparhell
27-Dec-2005, 10:33 AM
Peter A Donovan wrote:
> Hold On.... Got It.
>
> <% If StartRecId > 0 Then %>
> <a href="#" onclick="history.go(-1);return false;">Previous
> Page</a>&nbsp;
> <% End If %>
>
> All lower case.
> Thank you very much. Now the tedious replace and check results.

HTML 4.0 (including all tag names and attribute names, like "onclick" is
not case sensitive. You don't need to change them, only the Javascript
itself.

But you shuld prefer lowercase i HTML too, as this makes it easier to go
XHTML.

--
Knut Sparhell, Norway