cancel
Showing results for 
Search instead for 
Did you mean: 

onload in hbj:form

0 Kudos

Hi

I have a html:form and a javascript function

where can i put the javascript function in order to the called when the form loads???

Thanks in advance

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

The scriptlet has to be placed in the tag body of the HTMLB control. The scriptlet starts with <% and ends with %>. .

Refer to the below link

http://help.sap.com/saphelp_nw2004s/helpdata/de/71/4ef3408e9e712ae10000000a155106/content.htm

0 Kudos

it is not a scriplet its a javascript function

0 Kudos

Hi,

As there is no onload possible on hbj/html form, you can use

window_document_body_onload = yourFunction;

Or

window_onload = yourFunction;

In the above both statements replace '_' with '.', I could not post the right statements as forum has problems to post.

Regards,

Praveen Gudapati

0 Kudos

where must i put this code??

0 Kudos

Hi,

Have a script tag and add this code to it.

<

script>

//your code goes here

</script

>

Regards,

Praveen Gudapati

0 Kudos

when is this script executed?

srinivas_sistu
Active Contributor
0 Kudos

sd

0 Kudos

Hi,

Check this:

http://javascript.about.com/library/blonload.htm

Do some googling for more informations.

Regards,

Praveen Gudapati

0 Kudos

Oh you are a genious

Ten points

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Julio,

Check this blog..

Regards,

Uday.