Skip to Main Content

refreshing + javascript

ZiutAug 24 2014 — edited Aug 25 2014

Hi

This thread is follow on thread

https://community.oracle.com/thread/3599765 (moderator decision):

I would like to refresh item properties like font colour or backround.

I try create javascript like this (prototype):

<script type="text/javascript">

function changeColour()

{

  var item = document.getElementById    ("P2_CURRENT_VALUE")

   if(item.color = "green" ) {

     item.color = "red";   (???)

    }

    else {

     item.color = "green";

    }

}

</script>

What I must  change in this definition and in aplication

How to connect this script with item :P2_CURRENT_VALUE and fire it ?

Regards

Ziut

This post has been answered by Denes Kubicek on Aug 24 2014
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked due to inactivity on Sep 22 2014
Added on Aug 24 2014
12 comments
2,712 views