I'm using JavaScript to define a SPIN function.
I've created a javascript file that simply returns a string.
I followed all the steps outlined in the "Using JavaScript to define
SPIN/SPARQL Functions" under Help and everything worked fine.
Next I wanted to try a SPIN function that displayed a dialog box.
I tried this with my javascript and it didn't work.
I received the following message ....
Failed to retrieve all query results
Error in JavaScript call: org.mozilla.javascript.EcmaError:
ReferenceError: "prompt" is not defined. (myPrompt.js#1)
This is my function ...
function myPromptTest() {
var a = prompt("What is your name", "Type your name here");
return a ;
}
I'm guessing "prompt" is something not defined/allowed within
Composer.
Is there another way to have a SPIN function launch a dialog?
Barb
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TopBraid Composer Users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/topbraid-composer-users?hl=en
-~----------~----~----~----~------~----~------~--~---