Action callback - Duh!
-
Just occurred to me that I don't need to use java to add callbacks to ruby from webdialogs.
This works just as well:
<body> <a href="skp;foo@bar">Hello World</a> </body> -
Would you care to further explain, please ?
This looks intresting BTW, just in time..
Edit: Ok. gives you "bar" in callback value (key, value).
So what the difference VS window.location.href = whatever.. ?
Have you found something to adress the sync issue ???Or are you making tabs, heh
? -
I've normally attached a JS event which calls:
window.location = 'skp:foo@bar';for all event callbacks from JS to Ruby. Even for links. But it's not needed at all as only activates the custom skp: protocol.Still need to use JS for buttons etc - but for <A> elements that triggers callback it can be simplified by adding directly into the HREF attribute.
-
I see.
Clever solution, anyway. Save's some code.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better π
Register LoginAdvertisement