Your SAS programs, embedded in web apps and elsewhere

stored process in a DIV

Reply
Contributor
Posts: 24

stored process in a DIV

Hi,

I am working on a simple web application for my customers to let them run some stored processes. The layout is very simple, I have a left DIV which is a menu to select the stored process and a right DIV to display the form and the output of the stored process.

I am able to create some custom input forms in HTML and use ajax and serialize() to read the data and generate the output in the corresponding DIV. it works great but I need to develop the HTML code for the form.

Now I am trying to do something similar but instead of developing HTML code for the input, I want to use the prompt features from EG. I added the prompt and I am able to run the stored process when I enter the URL in IE:

http://myserver.com:8080/SASStoredProcess/do?_action=form,properties,execute,nobanner,newwindow&_pro...

However, when I try to use my web page (with the menu in left DIV and output/input in right DIV), I get an error in IE. What is driving me crazy is that it is working fine in firefox or chrome ( I have to use IE for this project).

  <script>

$(document).ready(function() {

    $("#container").load("http://myserver:8080/SASStoredProcess/do?_action=form,properties,execute,nobanner,newwindow&_program...");

   

   

});  

</script>

<body>

<div id="menu" >

<b >item1</b><br>

</div>

<div id="container" style="margin-left: 230px; width: 100%; height:100%; ">

</div>

</body>

</html>

The page load without any issusde and I see the prompt created in EG. But when I click on RUN,  I get the following error :

Line: 526546630

Error: Object doesn't support this property or method

SAS Employee
Posts: 286

Re: stored process in a DIV

My guess is that jQuery, or whatever package you're using, contains some code that's not supported by your version of Internet Explorer.

Vince DelGobbo

SAS R&D

New User
Posts: 1

Re: stored process in a DIV

Does anyone have a working script for executing a SAS Stored Process using jquery and displaying the results in a DIV.

I have a working example but the output is currently displayed in a new window.

I'm a beginner in using jquery so any help will be appreciated.

 

I came across the below solution but it did not work for me. Not sure if I missed to include something else ...

 

<script>

$(document).ready(function() {

    $("#container").load("http://myserver:8080/SASStoredProcess/do?_action=form,properties,execute,nobanner,newwindow&_program...");

}); 

</script>

<div id="container" style="margin-left: 230px; width: 100%; height:100%; ">

 

Thanks,

Ask a Question
Discussion stats
  • 2 replies
  • 867 views
  • 0 likes
  • 3 in conversation