Siebel Open UI, Tools, Scripting and EAI (MOSC)

MOSC Banner

Cancel in prompt browser Script

edited Oct 4, 2011 1:48AM in Siebel Open UI, Tools, Scripting and EAI (MOSC) 3 commentsAnswered
Hello,

I have written one browser Script,in which I have to take some input from user as follows:

var input = prompt("Please provide input data")

now it is working when i give some input data and click on Ok, but it is not cancelling the operation when i click on Cancel.

By default there is some value in the input as 'Undefined' . So how the logic will work.I tried like

if (input == "True")

{ do this}

if (input == "False")

{ return(CancelOperation)}

bt it always take the value of input as "Undefined" or what i enter in the prompt box, it is not treating the value of input as "True" or "False". Can someone suggest on this.

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center