We have added search box. Key in SAP issue keyword to search
TopBottom

Announcement: wanna exchange links? contact me at sapchatroom@gmail.com.

[sap-abap] Bsp and JavaScript - Retrieving a Value from a JavaScript

Posted by Admin at
Share this post:
Ma.gnolia DiggIt! Del.icio.us Yahoo Furl Technorati Reddit

Question from Marcospadaro on Jun 26 at 7:41 PM
Hey folks,
I'm trying to deal with a JavaScript value in bsp. I'm retrieving a value from a JavaScript with this function:

<script language="javascript">
function pass()
{
txt1 = document.getElementById("messageHTML");
txt1.value = messageHTML ;
}
</script>

<script>
$( document ).ready(function() {
CKEDITOR.replace('news_editor');
$('#inviaDati').on('click',function(){
var message = $('.cke_wysiwyg_frame').contents().find('body');
<%-- Appendere metadati --%>
message.append('<meta aggiuntdesso="" name=viewport content=width=400, initial-scale=0.45, minimum-scale=0.45/>');
alert(message.html());
var messageHTML = message.html();
pass();
});
});// .ready() END
</script>
and in my bsp I have form with a hidden field who is supposed to content the script value
<input type="hidden" name="messageHTML" id="messageHTML" value="<%= messageHTML %>" />

in the event handler I'm trying this:
navigation->set_parameter( name = 'messageHTML' ).
v_content = navigation->get_parameter( name = 'messageHTML' ).
I have to issue, the first an CX_SY_DYN_CALL_ILLEGAL_TYPE
and the second is that v_content is empty.
What do I miss?
P.s: data v_content type string.
 
Reply to this email to post your response.
 
__.____._
Manage Settings | Unsubscribe | Create FAQ | Send Feedback
  
Copyright © 2014 Ziff Davis, LLC. and message author.
Ziff Davis, LLC. 28 E 28th Street New York, NY 10016
Marcospadaro  
 
View this online
Ask a new question
 
In the Spotlight
Become a blogger at Toolbox.com and share your expertise with the community. Start today.

_.____.__

0 comments:

Post a Comment

T r a n s l a t e to your language