This topic is locked
[SOLVED]

 Text box font size and color in editpages

7/19/2010 5:08:39 AM
ASPRunnerPro General questions
E
erdinoxyz author

Hello

I like change text box font size and color in editpages.

For exsample: data("Price") is textbox in editpage.

what i change font size and font color?

You say: "change it commonfunctions.asp page"

I find in include/commonfunctions.asp. But in where in BuiltEditControl in commonfuntcion.asp page?

Do you an example?

Thanks.(I apologize. My English so!)

A
ann 7/19/2010

Hi,
you can change font on the edit page using JavaScript Onload event:

var ctrl = Runner.getControl(pageid, 'FieldName');

ctrl.addStyle("color:red; font-size:12pt");



where FieldName is your actual field name.

E
erdinoxyz author 7/19/2010



Hi,
you can change font on the edit page using JavaScript Onload event:

var ctrl = Runner.getControl(pageid, 'FieldName');

ctrl.addStyle("color:red; font-size:12pt");



where FieldName is your actual field name.


I'm sorry this your codes Not working asprunner 6.0

A
ann 7/20/2010

Hi,
JavaScript Onload event was added in the version 6.2 only. To make it work in version 6.0 proceed to the Visual Editor tab, switch to the HTML mode and add at the end of the page:

<script>

document.getElementById("value_FieldName_1").style.color='red';

document.getElementById("value_FieldName_1").style.font="italic bold 12px arial,serif";

</script>



where FieldName is your actual field name.

E
erdinoxyz author 7/20/2010



Hi,
JavaScript Onload event was added in the version 6.2 only. To make it work in version 6.0 proceed to the Visual Editor tab, switch to the HTML mode and add at the end of the page:

<script>

document.getElementById("value_FieldName_1").style.color='red';

document.getElementById("value_FieldName_1").style.font="italic bold 12px arial,serif";

</script>



where FieldName is your actual field name.



Very thanks Bottom code good working.

<script>

document.getElementById("value_FieldName").style.color='red';

document.getElementById("value_FieldName").style.font="italic bold 12px arial,serif";

</script>