create a bookmark on the clients-computer

Using Servoy to administrate the content of your website? Discuss all webrelated Servoy topics on this forum!

create a bookmark on the clients-computer

Postby stefanoni » Wed Nov 26, 2014 5:19 pm

I send to my client per email link like this:

http://212.112.253.21:8080/servoy-webcl ... 6a0q6bbis6

the client
- starts the servoy-webclient the first time from email
- receives the firstform and the changed link in the browser, like this:

212.112.253.21:8080/servoy-webclient/?x=r1ZASpseLC9P*60mllEILw

the client
- safes this as a Bookmark
- nextime he startes the webclient from this bookmark he receives a expired-message

Is this possible to create a bookmark on the clients-computer from a servoy-webclient ?
Is this possible to ask servoy to not change the link in the browser ?

thanks for any suggestion
Alessandro Stefanoni ---- gigdoodle.ch ---- stefanoni.ch ----
Stefanoni Informatik Gmbh, CH-8200 Schaffhausen
Switzerland
stefanoni
 
Posts: 313
Joined: Fri Jul 23, 2010 3:17 pm
Location: Switzerland

Re: create a bookmark on the clients-computer

Postby mboegem » Thu Nov 27, 2014 2:45 am

you could create a button in your solution which will generate a bookmark.

the code for this is explained here: http://stackoverflow.com/questions/3024 ... javascript

You only need to reconstruct the url based on the server-address and the arguments you passed in at startup.
_____________________
Marc Boegem
Solutiative / JBS Group, Partner
• Servoy Certified Developer
• Servoy Valued Professional
• Freelance SAN Developer

Image
User avatar
mboegem
 
Posts: 1382
Joined: Sun Oct 14, 2007 1:34 pm
Location: Hoofddorp, The Netherlands

Re: create a bookmark on the clients-computer

Postby stefanoni » Wed Dec 03, 2014 5:43 pm

Thank you mboegem !

With Javascript I'm not able to create a bookmark in the chrome-browser.

That's why I asked the second question before:
Is it possible, to tell servoy, to not change the link in the browser ?
Alessandro Stefanoni ---- gigdoodle.ch ---- stefanoni.ch ----
Stefanoni Informatik Gmbh, CH-8200 Schaffhausen
Switzerland
stefanoni
 
Posts: 313
Joined: Fri Jul 23, 2010 3:17 pm
Location: Switzerland

Re: create a bookmark on the clients-computer

Postby stefanoni » Tue Dec 09, 2014 6:14 pm

I have arround 1000 Users that get migrated from php/mysql to Servoy Webclient.

I'm not able to talle every one how to create manualy a bookmark, go to edit-mode,
then insert the Link.

How can I show a dummy Site, just to let the users create the bookmark ?

Any Ideas ?
Alessandro Stefanoni ---- gigdoodle.ch ---- stefanoni.ch ----
Stefanoni Informatik Gmbh, CH-8200 Schaffhausen
Switzerland
stefanoni
 
Posts: 313
Joined: Fri Jul 23, 2010 3:17 pm
Location: Switzerland

Re: create a bookmark on the clients-computer

Postby stefanoni » Wed Dec 17, 2014 4:55 pm

ok, my workarround:

I redirect all first incoming calls via a apache php mySql system. Bookmarks are possible from
Servoy by redirecting to apache (parameter &showDirl=blabla), set a flag in the DB witch means,
that following php redirect
Code: Select all
            header("Location: " . $_SERVER['PHP_SELF'] . "?Dirl=" . $_GET['Dirl'] );  // Normaler Link ohne nix
            die();

to itself (with no showDirl-Parameter) shows a screen with some instruction and at the same
time a "nice" Link, witch can be bookemarked. Before I reset the flag in the db, what means the
next call leads to an forward to Servoy-Server again.

Example:
Open Servoy, with this URL, then press the yellow Star-Button
http://212.112.253.21:8080/servoy-webclient/ss/s/GigDoodle/m/myDeepLink/a/mao8mt81pdcouppj6a0q6bbis6


If somebody knows an easier way I'm happy to hear about.
Thank you
Alessandro Stefanoni ---- gigdoodle.ch ---- stefanoni.ch ----
Stefanoni Informatik Gmbh, CH-8200 Schaffhausen
Switzerland
stefanoni
 
Posts: 313
Joined: Fri Jul 23, 2010 3:17 pm
Location: Switzerland

Re: create a bookmark on the clients-computer

Postby jdbruijn » Thu Dec 18, 2014 12:17 pm

you can also have a look at the server setting: servoy.webclient.nice.urls
When set to true you will get a URL that can be bookmarked.
But I seem to remember that this might cause issues with certain plugins, maybe Servoy can answer on that.
Jos de Bruijn
Welcome CCS
Servoy Certified Developer
Image
jdbruijn
 
Posts: 445
Joined: Sun Apr 11, 2010 6:34 pm

Re: create a bookmark on the clients-computer

Postby stefanoni » Thu Dec 18, 2014 3:29 pm

WOW ! Thanks !
If it's like this, then exactly what I needed.

Servoy Guys ?
Alessandro Stefanoni ---- gigdoodle.ch ---- stefanoni.ch ----
Stefanoni Informatik Gmbh, CH-8200 Schaffhausen
Switzerland
stefanoni
 
Posts: 313
Joined: Fri Jul 23, 2010 3:17 pm
Location: Switzerland

Re: create a bookmark on the clients-computer

Postby jcompagner » Mon Dec 29, 2014 12:11 pm

that should work fine, but 3th party plugins (like webclients utils) need to take that into account when the are really generating/doing certain stuff.
But i think webclient utils is taken this into account
Johan Compagner
Servoy
User avatar
jcompagner
 
Posts: 7974
Joined: Tue May 27, 2003 7:26 pm
Location: The Internet

Re: create a bookmark on the clients-computer

Postby david » Mon Dec 29, 2014 9:45 pm

The iframe approach works great. At its simplest, set the source of an iframe to your webclient deep link. The html page somewhere in your tomcat directory is your bookmarkable link. At advanced level, you can create an entire router (intelligent URLs) so you can bookmark various locations and records within your app.

Screen Shot 2014-12-29 at 2.44.27 PM.png
Screen Shot 2014-12-29 at 2.44.27 PM.png (478.16 KiB) Viewed 1521 times
David Workman, Kabootit

Image
Everything you need to build great apps with Servoy
User avatar
david
 
Posts: 1723
Joined: Thu Apr 24, 2003 4:18 pm
Location: Washington, D.C.


Return to Web Development

Who is online

Users browsing this forum: No registered users and 1 guest

cron