Web page anchors

Forum to discuss the Web client version of Servoy.

Web page anchors

Postby aalonzo » Mon May 07, 2007 11:22 pm

Is there a way to create a web page anchor that will allow you to return to a location on the web page after a refresh? At the moment when I do a refresh I go back to the top of the page.
Armando Alonzo
Senior Developer
Waves in Motion/
WorqSmart
User avatar
aalonzo
 
Posts: 36
Joined: Thu Nov 09, 2006 9:06 pm
Location: Phoenix, AZ

Is this a bad question?

Postby aalonzo » Fri Jun 08, 2007 11:36 pm

I have posted this twice and never get a response. I this a really dumb question and too basic to answer or there is no answer to this Question?

If someone knows how to do this it would really help me!

:)
Armando Alonzo
Senior Developer
Waves in Motion/
WorqSmart
User avatar
aalonzo
 
Posts: 36
Joined: Thu Nov 09, 2006 9:06 pm
Location: Phoenix, AZ

Postby ROCLASI » Sat Jun 09, 2007 12:48 pm

Hi Armando,

I believe the only way to do this is to edit the jsp that Servoy produces.
Of course that means the jsp is no longer dynamic and any changes to your solution won't translate automatically to your jsp.


Hope this helps.
Robert Ivens
SAN Developer / Servoy Valued Professional / Servoy Certified Developer

ROCLASI Software Solutions / JBS Group, Partner
Mastodon: @roclasi
--
ServoyForge - Building Open Source Software.
PostgreSQL - The world's most advanced open source database.
User avatar
ROCLASI
Servoy Expert
 
Posts: 5438
Joined: Thu Oct 02, 2003 9:49 am
Location: Netherlands/Belgium

Postby bcusick » Mon Jun 11, 2007 6:03 pm

Fresh from the DEV team:

You can place a label with an html anchor like "<html><a name='bla'>" and refer to it with a label showing a link with "<html><a href='#bla'>scrolldown</a>" just as in normal html!
Bob Cusick
bcusick
 
Posts: 1255
Joined: Wed Apr 23, 2003 11:27 pm
Location: Thousand Oaks, CA USA

Thnaks

Postby aalonzo » Thu Jun 14, 2007 6:18 pm

Thanks Bob

Let me make sure I get this. I'm going to create two labels, one that is an anchor and one that calls the anchor, right?

Can I set the call label dynamically, by set global field, g_anchorCall, with the html call? That way when you first load the page it starts at the top because the global default is empty, then when you call the refresh method it sets the global and take you back to that spot on the page where the anchor is set. Does that make sense?

I really appreciate the Servoy community, for all the help.
Armando Alonzo
Senior Developer
Waves in Motion/
WorqSmart
User avatar
aalonzo
 
Posts: 36
Joined: Thu Nov 09, 2006 9:06 pm
Location: Phoenix, AZ

Postby bcusick » Thu Jun 14, 2007 6:38 pm

Yes, that's my understanding. Give it a shot!
Bob Cusick
bcusick
 
Posts: 1255
Joined: Wed Apr 23, 2003 11:27 pm
Location: Thousand Oaks, CA USA


Return to Servoy Web Client

Who is online

Users browsing this forum: No registered users and 25 guests