BS Media change value & header at runtime


#1

Hy ,

I am using the following:

      btnListSMS.onclick=function(){
      mediaData.value = ' sdfsdfsdfsdfsdfs';
      alert(mediaData.value);
     //listSMS(); 
      }

      mediaData.onclick=function(){
      alert(mediaData.value);
      }

The media component has a value in at designtime
The first onClick event produces ‘undefined’.
btnListSMS.onclick
alerts the new value but this is not reflected in the media component.

How do I change this please?

Cheers

Steve Warby


#2

Changing it at runtime is not documented.

Here’s how to change the heading:

$("#MediaData h4").text("George")

The detail text is not as easy to change without changing AppStudio.


#3

Another property I can’t seem to change at run time:
The rows value.
I am trying to get the BS textArea to auto expand using:

                      txtRoom1.value = txtRoom1.value+'\n'+JSON.stringify(data);
                      var txtRoom1Rows = txtRoom1.value.split("\n").length;
                      $.jGrowl('txtRoom1 lebgth = '+txtRoom1Rows);
                      txtRoom1.rows = txtRoom1Rows;
                      document.getElementById("txtRoom1").rows = txtRoom1Rows;

both fail.
It works here https://www.w3schools.com/jsref/tryit.asp?filename=tryjsref_textarea_rows2

Cheers

Steve Warby


#4

Another issue in the same area ( hence keeping in the same thread)

With bootstrap buttons on mobile they stay ’ clicked down’ and don’t ‘come up’ until you manually click elsewhere.

I have done some searching but all these attempts fail

    $(".btn").mouseup(function() {
    $.jGrowl(' did it happen');
    // Removes focus of the button. to make th button in mobole come back up
    $(this).blur();  // should remove the focus on the selected button
    $(Button1).blur(); 
    $( "#btnJoinRoom1" ).trigger( "click" ); //set the focus elsewhere 
    $( "#txtFingerPrint" ).focus(); //set the focus elsewhere 
    $( "#txtFingerPrint" ).keydown(); //set the focus elsewhere 
    });

Cheers

Steve Warby


#5

Could you put this into its own thread? This is about BS TextArea, not BS Media.


#6

Could you put this into its own thread? This is about BS Buttons, not BS Media.


#7

Done.

Cheers

Steve Warby