Prefetched dialog not rendered #2335

Closed
sustainablepace opened this Issue Aug 25, 2011 · 6 comments

Comments

Projects
None yet
6 participants
@sustainablepace

Beta 2: When I link to a dialog via data-rel="dialog" and also apply the data-prefetch attribute, the dialog is not rendered with rounded corners and close button. If the data-prefetch attribute is removed, everything works as expected.

@toddparker

This comment has been minimized.

Show comment
Hide comment
@toddparker

toddparker Sep 5, 2011

Contributor

I was able to reproduce a while ago, but can you post a test page on jsbin or jsfiddle? I don't know if this is a technical limitation or just something we missed int he recent refactors.

Contributor

toddparker commented Sep 5, 2011

I was able to reproduce a while ago, but can you post a test page on jsbin or jsfiddle? I don't know if this is a technical limitation or just something we missed int he recent refactors.

@ghost ghost assigned gseguin Sep 5, 2011

@john-hughes

This comment has been minimized.

Show comment
Hide comment
@john-hughes

john-hughes Sep 8, 2011

I am seeing this same issue.

It also happens when you use javascript to preload the page: $.mobile.loadPage("page.htm");

I am seeing this same issue.

It also happens when you use javascript to preload the page: $.mobile.loadPage("page.htm");

@toddparker

This comment has been minimized.

Show comment
Hide comment
@toddparker

toddparker Sep 9, 2011

Contributor

Hi guys - if you can post a test page in jsbin or jsfiddle using the latest build, we'll take a look.

Contributor

toddparker commented Sep 9, 2011

Hi guys - if you can post a test page in jsbin or jsfiddle using the latest build, we'll take a look.

@ghost

This comment has been minimized.

Show comment
Hide comment
@ghost

ghost Sep 10, 2011

I'm having the same issue too. Here's an example http://jsfiddle.net/Y7Lcz/3/

As soon as you remove the data-prefetch from the link, everything looks perfect.

Thanks!

ghost commented Sep 10, 2011

I'm having the same issue too. Here's an example http://jsfiddle.net/Y7Lcz/3/

As soon as you remove the data-prefetch from the link, everything looks perfect.

Thanks!

@ghost

This comment has been minimized.

Show comment
Hide comment
@ghost

ghost Sep 10, 2011

Hello again - I just figured out how to make it work correctly. You have to make sure to set data-role='dialog' for the page you want to act like a dialog. It seems like you only need to do this when you prefetch a page that has data-rel='dialog'.

ghost commented Sep 10, 2011

Hello again - I just figured out how to make it work correctly. You have to make sure to set data-role='dialog' for the page you want to act like a dialog. It seems like you only need to do this when you prefetch a page that has data-rel='dialog'.

@ghost

This comment has been minimized.

Show comment
Hide comment
@ghost

ghost Sep 10, 2011

Actually, I just noticed the styling is really off when you do that... hmmm :/

ghost commented Sep 10, 2011

Actually, I just noticed the styling is really off when you do that... hmmm :/

@ghost ghost assigned jblas Sep 22, 2011

@ghost ghost assigned johnbender Oct 11, 2011

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment