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.
Advertisement