Skip to Main Content

APEX

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Issue integrating Impromptu with APEX

589859Aug 28 2009 — edited Sep 2 2009
Hi

I have tried to follow Dan Mcghan's example 'Popup in Report' at

http://www.danielmcghan.us/2008/12/popup-in-report.html

however, I am getting the following error:
$.prompt is not a function
[Break on this error] $.prompt(txt,{callback: mycallbackfo...uttons: { Ok: true, Cancel: false }}); 
Within my page header I have the following code:
<link rel="stylesheet" href="#WORKSPACE_IMAGES#adf_region.css" type="text/css" />
<link type="text/css" rel="stylesheet" href="/i/jquery/css/custom-theme/jquery-ui-1.7.custom.css" />

<link href="/i/jquery/impromptu/impromptu.css" type="text/css" rel="stylesheet">  

<script type="text/javascript" src="/i/jquery/js/jquery-1.3.2.min.js"></script>
<script type="text/javascript" src="/i/jquery/development-bundle/ui/ui.core.js"></script>
<script type="text/javascript" src="/i/jquery/development-bundle/ui/ui.tabs.js"></script>
<script type="text/javascript" src="/i/jquery/development-bundle/ui/ui.datepicker.js"></script>  
<script type="text/javascript" src="/i/jquery/development-bundle/ui/jquery.color.js"></script>
<script type="text/javascript" src="/i/jquery/development-bundle/ui/jquery.validate.js"></script>


<script src="/i/jquery/impromptu/jquery.impromptu.js" type="text/javascript"></script>  


 <script type="text/javascript">  
 //<![CDATA[  
   
    var htmldb_delete_message = '"DELETE_CONFIRM_MSG"';  
    var empIDElmt;  
   
    $(document).ready(function(){   
       $('.dtlsEdit').click(function(){  
          empIDElmt = $(this).siblings('input[name="f02"]').get();  
          getDetails();  
       });  
    });  
      
 function getDetails() {  
    var txt = 'Please enter your comment...<br />'  
       + '<textarea id="empDetails" rows="5" cols="45" wrap="virtual">'  
       + $(empIDElmt).siblings('input[name="f06"]').val()  
       + '</textarea>';  
    $.prompt(txt,{callback: mycallbackform, buttons: { Ok: true, Cancel: false }});  
 }  
   
 function mycallbackform(v,m){  
    if (v) {  
       $(empIDElmt).siblings('input[name="f06"]').val(m.children('#empDetails').val());  
    }  
 }  
   
 //]]>  
 </script>  
I have created a tabular form in a region named Tabular Form.

Can anyone offer any advice please?

Many thanks

Paul
This post has been answered by dmcghan on Aug 28 2009
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 30 2009
Added on Aug 28 2009
15 comments
1,747 views