CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> Archive -> CodeChargeStudio.Discussion

 After Search, Auto-Scroll Results Window To 1st Line In Grid?

Print topic Send  topic

Author Message
Chris Moore
Posted: 08/22/2003, 8:57 AM

I have a search & results search page. After the user press's the Search
button, I would like the Window (when refreshed to show the results grid)
to be positioned so that the 1st record in the results is at the top of the
browser Window. How can I force this? It would be just like a bookmark.

Thanks

Chris
Juan Domingo Herrera
Posted: 08/22/2003, 10:26 AM

Hi Chris,

Use some javascript with a bookmark.
The bookmark should be at the top of the list/page and you have to code on
the body tag
onload="#BOOKMARK"

--
Regards,
Juan Domingo Herrera
SoftMasters - http://www.softmasters.com.ar
Buenos Aires - Argentina


"Chris Moore" <chris@dblayout.com> escribió en el mensaje
news:Xns93DF6FECE15B9cabubba@66.180.229.147...
> I have a search & results search page. After the user press's the Search
> button, I would like the Window (when refreshed to show the results grid)
> to be positioned so that the 1st record in the results is at the top of
the
> browser Window. How can I force this? It would be just like a bookmark.
>
> Thanks
>
> Chris

Chris Moore
Posted: 08/22/2003, 10:53 AM

The problem I see with that is the results grid is on the same page as my
search. The Grid is hidden when the search screen first opens and is only
displayed IF there are results to show the user. I tried adding the
onload to the BODY but that didn't work. Can you please guide me a bit
more?

thanks

Chris


"Juan Domingo Herrera" <juandherrera@hotmail.com> wrote in
news:bi5jnd$shp$1@news.codecharge.com:

> Hi Chris,
>
> Use some javascript with a bookmark.
> The bookmark should be at the top of the list/page and you have to
> code on the body tag
> onload="#BOOKMARK"
>
Juan Domingo Herrera
Posted: 08/22/2003, 11:59 AM

You should add the bookmark at the search grid so that bookmark should exist
only when the grid is visible, after that use the following code on the
onload event
at the body:

onload="javascript:document.location='#BOOKMARK'"


--
Regards,
Juan Domingo Herrera
SoftMasters - http://www.softmasters.com.ar
Buenos Aires - Argentina



"Chris Moore" <chris@dblayout.com> escribió en el mensaje
news:Xns93DF8381FB648cabubba@66.180.229.147...
> The problem I see with that is the results grid is on the same page as my
> search. The Grid is hidden when the search screen first opens and is only
> displayed IF there are results to show the user. I tried adding the
> onload to the BODY but that didn't work. Can you please guide me a bit
> more?
>
> thanks
>
> Chris
>
>
> "Juan Domingo Herrera" <juandherrera@hotmail.com> wrote in
>news:bi5jnd$shp$1@news.codecharge.com:
>
> > Hi Chris,
> >
> > Use some javascript with a bookmark.
> > The bookmark should be at the top of the list/page and you have to
> > code on the body tag
> > onload="#BOOKMARK"
> >
>

Chris Moore
Posted: 08/22/2003, 12:57 PM

That did it. I left off the "javascript:document.location=" part.

Thanks again.

Chris


"Juan Domingo Herrera" <juandherrera@hotmail.com> wrote in
news:bi5p6b$444$1@news.codecharge.com:

> You should add the bookmark at the search grid so that bookmark should
> exist only when the grid is visible, after that use the following code
> on the onload event
> at the body:
>
> onload="javascript:document.location='#BOOKMARK'"
>
>

   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Web Database

Join thousands of Web developers who build Web applications with minimal coding.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


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