javascriptSupport.require( "" ).with( ) - if your
module returns a function
javascriptSupport.require( "" ).invoke( ""
).with( "" ) if your module export named functions
Take a look at the t5 sources to see how things are used.
--
Chris
On Wed, Aug 31, 2016 at 9:36 AM, Qbyte Consulting wrote:
How can I trigger the locate function from the component Java after login
success, what replaces .addScript?
Sent from my iPhone
> On 31 Aug 2016, at 08:07, Chris Poulsen wrote:
>
> The javaScriptSupport.addScript is deprectated in 5.4 iirc.
>
> Instead I would use a module for the locate fun
Thank you. Where can I find sample code implementing these suggestions or
similar?
Sent from my iPhone
> On 31 Aug 2016, at 08:07, Chris Poulsen wrote:
>
> The javaScriptSupport.addScript is deprectated in 5.4 iirc.
>
> Instead I would use a module for the locate function, the url can be pass
The javaScriptSupport.addScript is deprectated in 5.4 iirc.
Instead I would use a module for the locate function, the url can be passed
as an init parameter to require or stored somewhere in the DOM (the former
probably makes the most sense in this case.
Also I would use the tapestry ajax module
I could not get the form method to work, so ended up passing an eventlink
url to my javascript and adding parameters to it. Works a treat and simple.
Link link =
componentResources.createEventLink("geolocation", null);
final String eventLinkURI = link.toAbsoluteURI(
Use a form, request parameters or url context - The usual way of sending
data to the server.
--
Chris
On Tue, Aug 30, 2016 at 11:56 AM, Qbyte Consulting <
qbyteconsult...@gmail.com> wrote:
> I get JS to populate the hidden form fields, they are passed as parameters
> to the page, but they are e
I get JS to populate the hidden form fields, they are passed as parameters
to the page, but they are empty strings?
function locate() {
//Geolocation
if (navigator.geolocation) {
navigator.geolocation
.getCurrentPosition(function (position)
{
Thanks Nathan,
I want to drive the process from the submission of the login form, not from
the render process. So I could fire some JavaScript after the login
succeeds but how does the JS push the data to the page? Maybe I could use
an entirely hidden form and submit it from the JS?
John
On Tue,
Hi
I guess you could do something like the following:
Create a component just containing two hidden fields and in the after
render event of this component run a javascript module where you get the
longitude and latitude and set these values to your hidden fields.
Add two parameters (latitude a
Hi,
Does anyone have an idea how to pass latitude and longitude as hidden
values in a login for with T5.4, or any other tricks to get this data into
a component?
John
10 matches
Mail list logo