how to use JavaScript to hover a container?

Hi there,

I need to know, how can i do to when the user move mouse over a container and up it.
i tried use JavaScript, but i' not sure that.

I'm not sure, if I get your question. 

Is it how to do mouseover using javascript?

Solution

In the container, you can use in extend property :

Script = document.getElementById("myBtn").onclick = displayDate;

with the logic you want!

you can use JavaScritp to do that, follow the link bellow and see this post:


https://www.outsystems.com/forums/discussion/32992/javascript-on-button/


Solution

Swatantra Kumar wrote:

I'm not sure, if I get your question. 

Is it how to do mouseover using javascript?

Yes! 


Tiago Venancio wrote:

In the container, you can use in extend property :

Script = document.getElementById("myBtn").onclick = displayDate;

with the logic you want!

you can use JavaScritp to do that, follow the link bellow and see this post:


https://www.outsystems.com/forums/discussion/32992/javascript-on-button/


Thank you!!


ELLEGANCE MANAGE wrote:

Hi there,

I need to know, how can i do to when the user move mouse over a container and up it.
i tried use JavaScript, but i' not sure that.

Hi Ellegance,

I created a small demo app using jQuery - more specific to what you asked for. See below link

Sample Demo Link: Sample App


jQuery Sample Code:

SyntaxEditor Code Snippet

"<script>
    $('#' + '" + MagicCntr.Id + "').hover(function() {
        $(this).css('background', 'yellow');
    }, function() {
    $(this).css('background', 'pink');
});
</script>"


Prototype: Calling $(selector).hover(handlerIn, handlerOut)


Regards,

Benjith Sam