cancel
Showing results for 
Search instead for 
Did you mean: 

alert in BSP

Former Member
0 Kudos
369

Hi,

I am developing a BSp application. the scenario goes likes this.

i have a button (submit) on clicking this the event is handled in OnInputProcessing() where in a page attribute entry is filled with a value. am passing this attribute like this

<htmlb:button id = "Submit"

text = "Submit"

onClientClick = "onSubmit(<%= entry %>)"

design = "EMPHASIZED"/>

and the function is written is:

function onSubmit(mess)

{

alert(mess);

}

am running this application in portal. On clicking the button i get nothing , the values is undefined. Let me know wats wrong here

Thanks in advance,

Shailaja

Accepted Solutions (0)

Answers (1)

Answers (1)

athavanraja
Active Contributor
0 Kudos

do you mean the javascript alert is not working?

check out the below code

<htmlb:button id = "Submit"

text = "Submit"

onClientClick = "onSubmit('<%= entry %>');"

design = "EMPHASIZED"/>

you missed the single quote for <%= entry %>

Regards

Raja

Former Member
0 Kudos

alert box is shown but no text in it or it says undefined.

thanks,

Shailaja

Former Member
0 Kudos

Hello Raja,

I solved the problem. I took out the code where entry is filled from OnInputProcessing. It worked.

Thanks for your help.

Shailaja

athavanraja
Active Contributor
0 Kudos

with the code sample you had posted, we would not have figured out that issue at all.

Anyhow good to hear that its resolved and thanks for taking time to update the status.

All the best

Regards

Raja