Skip to content

Commit 4b8bb22

Browse files
author
Rafael J. Staib
committed
Add iframe demo
1 parent 7a29665 commit 4b8bb22

File tree

4 files changed

+7
-5
lines changed

4 files changed

+7
-5
lines changed

downloads/jquery.steps.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -735,6 +735,7 @@
735735
}
736736

737737
refreshActionState(wizard);
738+
loadAsyncContent(wizard);
738739
}
739740
}
740741

@@ -809,7 +810,7 @@
809810
switch (getValidEnumValue($.fn.steps.contentMode, state.currentStep.contentMode))
810811
{
811812
case $.fn.steps.contentMode.iframe:
812-
$(".content > .body", wizard).eq(state.currentIndex)
813+
$(".content > .body", wizard).eq(state.currentIndex).empty()
813814
.html($("<iframe src=\"" + state.currentStep.contentUrl + "\" />"))
814815
.data("loaded", "1");
815816
break;

iframe.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@
1414
<link rel="stylesheet" href="stylesheets/jquery.steps.css">
1515

1616
<script src="javascripts/jquery-1.9.1.min.js"></script>
17-
<script src="javascripts/jquery.steps.min.js"></script>
17+
<!--script src="javascripts/jquery.steps.min.js"></script-->
18+
<script src="downloads/jquery.steps.js"></script>
1819
<!--[if lt IE 9]>
1920
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
2021
<![endif]-->

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ <h3>Overview</h3>
3636
<ul>
3737
<li><a href="basic.html">Basic Example</a></li>
3838
<li>Async Example</li>
39-
<li>Embedded Iframe Example</li>
39+
<li><a href="iframe.html">Embedded Iframe Example</a></li>
4040
<li>Basic Form Example</li>
4141
<li>Advanced Form Example</li>
4242
<li><a href="add-remove.html">Dynamic Manipulation Example</a></li>

stylesheets/jquery.steps.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,8 +121,8 @@
121121
.wizard > .content > .body > iframe
122122
{
123123
border: 0 none;
124-
width: 100%;
125-
height: 200px;
124+
width: 580px;
125+
height: 280px;
126126
}
127127

128128
.wizard > .actions

0 commit comments

Comments
 (0)