jqmodal

Detect and handle server errors (404 or 500 responses) when loading AJAX content w/ jqModal?

Using the jqModal plugin [R14], how can I detect if a server error [such as a 404 or 500 response code] occurred while fetching the popup contents via AJAX? Currently, if an error occurs then the popup never loads, and there is no indication of what went wrong. It looks like the plugin is using a hidden iframe to fetch the content... is...

Error calling webservice using JSONP + jquery with IE on remote domain

I have a .Net webservice on my app server that returns data formatted as JSONP. I have an HTML test client on that server which works fine using IE, Firefox, & Chrome. If I copy the same HTML to my workstation or deploy to my webserver it works with Firefox & Chrome but in IE I'm getting two javascript errors. Message: Object doesn't ...

Show jQModal window on page load

Hi there, I'm playing with jQModal plugin and trying to display its window right after the page is loaded. I used this code in $(document).ready(function(): $('#letak').jqm({ overlay: 70, autofire: true }); autofire setting should do the trick but unfortunately it doesn't work. Works perfectly fine when I click at trigger lin...

Modal login popup like digg

Hello guys, I need to add login modal popup in my project like Digg login popup, Please suggest me different modal box popups to achieve this, Any pointer or suggestion without be helpful thanks ...

Focus element inside iframe when iframe attached to Jquery Dialog

Hi, I have a iFrame which i load into jquery dialog. I want to focus an element inside the iFrame whenever the Jquery Dialog is being opened. Here is the code i am using to attach iframe to Dialog. $("<div id=\"srch" + options.winId + "\" title=\"" + options.windowTitle + "\" style=\"padding-left:0px;padding-right:0px;padding-top:0px...

Jqm is not a function

Hi all, I'm having some trouble with Jquery and JqModal, and I hope you are able to help, since I've been struggling for hours.. Having a single button element with an onclick action running my method "test" (shown below): $('#picture_form').jqm({ajax: '/test.php'}); $('#picture_form').jqmShow(); This will load the ajax cont...

jQuery - form loaded via ajax.load not responding to click on submit

I'm seeing a strange problem in my jQuery in a Ruby on Rails application: I'm loading content using ajax.load() into an absolute positioned div (modal). The loaded HTML contains a <form>-element with both action and methodparameters as well as a submit-button (input type=submit). I have another form present in the 'main' document (with ...

jqModal question

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}); showTypes = function(id,projNum) { formData = 'vw=getTypes&ID=...

jQuery jqModal confirm dialog callback issue

Using the code from the jqModal website, section FUN! Overrides: http://dev.iceburg.net/jquery/jqModal/#examples (I edited the code to make use of a callback function) function confirm(msg,callback) { $('#confirm') .jqmShow() .find('p.jqmConfirmMsg') .html(msg) .end() .find(':submit:visible') .click(functio...

JQModal problem using both Inline and AJAX modals on same page

I am using JQModal on an ASP.Net page in two different modes. For some of the modals, I am displaying Inline content from the page. For other modals, I am using the AJAX attribute on JQModal to display content from an external page. I am finding that these two modes seem to be conflicting with one another. For instance, if I open an ...

Show jQModal window on page load using ajax

I saw this question: http://stackoverflow.com/questions/2884185/show-jqmodal-window-on-page-load and works fine when my content is not pulled from a remote source using ajax. How can I use ajax in jqmodal on page load ? ...

jqModal and ad-gallery

I found a great jquery gallery. (http://coffeescripter.com/2009/07/ad-gallery-a-jquery-gallery-plugin/) . I am trying to implement this in a jqmodal window but having some trouble. To hide the jqmodal win, i have a file with: <div id="jqmPix" class="jqmWindow" style="width:730px; display:none;"> on my main page: $('#jqmPix').jqm(...

jqModal jQuery Plugin - How to Set Timeout on Modal Popup?

Hi All, I'm using the jQuery Plugin jqModal. New to it, so i'm still learning its usage. What i'm trying to do is show the popup for say 3 seconds, then automatically close. Basically, here is the flow of events i want: My page loads. Show modal popup saying "Connecting to MySite.." (after 3 seconds) modal popup automatically cl...

jqModal and ASP.NET MVC

Hi everyone! I want to create a simple form for adding new products using jqModal. View / Home / Index.aspx: <script type="text/javascript"> $(document).ready(function () { $('#addProductControlSection').jqm({ modal: true, ajax: '<%: Url.Action("AddProduct", "Home") %>', onHide: myA...

jqModal and ad-gallery

This is just driving me nuts. I am trying jqModal work with jquery.ad-gallery. This is what I have so far: <link rel="stylesheet" type="text/css" href="css/jqModal.css"> <link rel="stylesheet" type="text/css" href="css/jquery.ad-gallery.css"> <script type="text/javascript" src="javascript/jquery-1.4.js"></script> <script type="text/java...

JQModal MVC 2 validation

Hi: I am using jqModal to allow users to create new contacts from a list by poping a jqModal window, but can't seem to get any validation to work within the modal window. I know that the form is failing because in the contoller the model state is invalid and when I re-render the form nothing shows. I am using ajax events to close the mo...

is it possible to get the current location (url) of an external page loaded in a jqModal window?

Dear all, As the title, is it possible to get the current location (url) of an external page loaded in a jqModal window? And further, in the implementation of the jqModal, in where the external page is located? iFrame or div? Thanks for your kindly advise. BRs, William Choi ...

MVC Clientside validation in jqModal window

I have a simple form with standard MVC Clientside Validation (minimalist sample: one text box displayed with standard LabelFor/TextBoxFor/ValidationMessageFor sequence. The model property is marked with the [Required] and [StringLength] attributes.). It works exactly as expected if I navigate to that form (i.e., http://localhost/Batch...

jqModal iframe issue

I have a asp.net page (page1.aspx), inside that I have a iframe, Inside the iframe I am loading another page(page2.aspx). Inside that page(page2.aspx) I have a button. When I click on that button jqModal pops up. It comes up covering the iframe which is in page2.aspx. How can i make the jqModal div to allocate parent page(page1.aspx) ful...

jqModal is trying to run my whole page!

Hello, I just started experimenting with jqModal and am having a strange issue. The modal window is displayed correctly however I get a javascript error when I click anywhere inside it. When I look at the offending line of code, it turns out that jqModal is trying to run my entire page as if it were one big piece of javascript. Since...