<?xml version="1.0" encoding="UTF-8"?> <rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Wijmo  &#187;  Topic: Programmatically add a step to the wizard?</title> <atom:link href="http://wijmo.com/topic/programmatically-add-a-step-to-the-wizard/feed/" rel="self" type="application/rss+xml" /><link>http://wijmo.com/topic/programmatically-add-a-step-to-the-wizard/feed/</link> <description></description> <pubDate></pubDate> <generator>http://bbpress.org/?v=2.0.2</generator> <language>en</language> <item> <guid>http://wijmo.com/topic/programmatically-add-a-step-to-the-wizard/#post-4489</guid><title><![CDATA[Programmatically add a step to the wizard?]]></title><link>http://wijmo.com/topic/programmatically-add-a-step-to-the-wizard/#post-4489</link> <pubDate>Fri, 20 Apr 2012 17:21:55 +0000</pubDate> <dc:creator>theGleep</dc:creator><description> <![CDATA[<p>I&#8217;m in a bit of an odd situation &#8211; I need to add a step to the wizard *after* it&#8217;s rendered.</p><p>I&#8217;ve figured out how to use the &#8220;add()&#8221; method to get the tab, but when the tab is selected, I have no &#8220;page body&#8221;!  How do I add content &#8211; the part that shows up when the tab is clicked &#8211;  for the tab?</p><p>Thanks</p> ]]> </description> </item> <item> <guid>http://wijmo.com/topic/programmatically-add-a-step-to-the-wizard/#post-4490</guid><title><![CDATA[Reply To: Programmatically add a step to the wizard?]]></title><link>http://wijmo.com/topic/programmatically-add-a-step-to-the-wizard/#post-4490</link> <pubDate>Fri, 20 Apr 2012 18:33:10 +0000</pubDate> <dc:creator>theGleep</dc:creator><description> <![CDATA[<p>Did you ever notice that printing your source code relaxes your brain enough that you figure out your answer?  Starting this thread had the same effect. <img src='http://wijmo.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p><p>So &#8211; for posterity &#8211; here&#8217;s what I&#8217;ve done.</p><p>step 1 &#8211; create the html for the tab as a string.<br /> step 2 &#8211; get the *current* count of tabs; after step 3, this will be the index of the added tab<br /> step 3 &#8211; call the &#8220;add&#8221; function (I do this with<pre class="brush: js">$(selector).wijwizard(&#8220;add&#8221;, undefined, {title html}, {subject html})</pre><p>)</p><p>any time later&#8230;<br /> step 4 &#8211; get the &#8220;display pane&#8221; (I use<pre class="brush: js">$({selector for the tab that *precedes* the added tab}).next()</pre><p>)<br /> steps 5 through {n} &#8211; render the content for the added tab<br /> step {n + 1} &#8211; show the pane for the added tab (I did<pre class="brush: js">$(wizardselector).wijwizard(&#8220;show&#8221;, {value captured in step 2})</pre><p>)</p><p>(Since I can&#8217;t find a &#8220;preview&#8221; option for my post&#8230;I hope it&#8217;s at least legible!)</p> ]]> </description> </item> </channel> </rss>
<!-- Served from: wijmo.com @ 2013-05-19 03:28:46 by W3 Total Cache -->