开发者

jqModal question

开发者 https://www.devze.com 2023-01-05 19:12 出处:网络
I am trying to implement a modal window using jqModal plug-in. I make an ajax call to populate a div with tabular data. In there, there is a clickable progress bar.

I am trying to implement a modal window using jqModal plug-in. I make an ajax call to populate a div with tabular data. In there, there is a clickable progress bar.

In my script, I have

    $(document).ready(function() {

$('#jqmRTypes').jqm({modal:true});


       开发者_如何学PythonshowTypes = function(id,projNum) {
       formData = 'vw=getTypes&ID='+id+'&project_number='+projNum;
       alert(formData);
       $.ajax({
          type: "get",        
          url: "<cfoutput>#actURL#</cfoutput>",
          data: formData,        
          cache: false,       
           success: function(result) { 
               $("#jqmRTypesText").html(result);
               $('#jqmRTypes').jqmShow();
            },
           error: function(xmlHttpRequest, status, err) {
            confirm('Error!' + err );
           }
        }); 
   }

I don't know why but I keep getting an error in firebug (no description and points to $('#jqmRTypes').jqmShow();) I can put show() instead of jqmShow() and i will see the window, but it's no longer modular.

It's driving me nuts. Any help will be appreciated.

thanks


grrr. I wrote a custom tag to display a progress bar. Depending on the work completed, it displays a bar with a percentage. Within this tag, I had:

 <script type="text/javascript" src="scripts/jquery-1.4.js"></script>

Once I removed this line, it worked perfectly fine.

0

精彩评论

暂无评论...
验证码 换一张
取 消