Discussion

how to call text file on click of button

could any one here can help me out....i need to run the javascript  on click of button .i tried with run script but unble to give the java script file name in that(as it is asking for function name).is there any other way to do this

**Moderation Team has archived post**

This post has been archived for educational purposes. Contents and links will no longer be updated. If you have the same/similar question, please write a new post.

Comments

Keep up to date on this post and subscribe to comments

November 10, 2013 - 10:08pm

Hi Anusha,

 

Keep the javascript in one html fragment and include that at the top of section. Then call function in that script through button.

 

Thanks,

Kartheek

November 11, 2013 - 1:52am

Hi Kartheek,

Thanks

I tried ur suggestion.

But one more error.

While calling this Html frgament

<pega:include name="HtmlCode"  /> ,at starting of html tab in section , it throws an error.

the error is

Test compilation failed: ----------
1. ERROR in Rule_HTML_Section_Data_Portal_UserSelection_Stream_20131111T060755_705_GMT.java (at line 139)
	pxButton_1();
	^^^^^^^^^^
The method pxButton_1() is undefined for the type Rule_HTML_Section_Data_Portal_UserSelection_Stream_20131111T060755_705_GMT
----------
1 problem (1 error)

 

 

Please help..it is not saving.