Skip to content

Instantly share code, notes, and snippets.

@JonCrawford
Created September 5, 2008 02:03
Show Gist options
  • Save JonCrawford/8912 to your computer and use it in GitHub Desktop.
Save JonCrawford/8912 to your computer and use it in GitHub Desktop.
<div class="product_row add_new_product" id="new_design">
<a href="#" onclick="try {
new Insertion.Before(&quot;new_design&quot;, &quot;\n&lt;div class=\&quot;product_row add_new_product\&quot; id=\&quot;new_product\&quot;&gt;\n &lt;a href=\&quot;#\&quot; onclick=\&quot;try {\nnew Insertion.Before(&quot;new_product&quot;, &quot;&lt;p&gt;This works.&lt;/p&gt;&quot;);\n} catch (e) { alert('RJS error:\\n\\n' + e.toString()); alert('new Insertion.Before(\\&quot;new_product\\&quot;, \\&quot;&lt;p&gt;This works.&lt;/p&gt;\\&quot;);'); throw e }; return false;\&quot;&gt;Add another product&lt;/a&gt;&lt;/div&gt;&quot;);
} catch (e) { alert('RJS error:\n\n' + e.toString()); alert('new Insertion.Before(\&quot;new_design\&quot;, \&quot;\\n&lt;div class=\\\&quot;product_row add_new_product\\\&quot; id=\\\&quot;new_product\\\&quot;&gt;\\n &lt;a href=\\\&quot;#\\\&quot; onclick=\\\&quot;try {\\nnew Insertion.Before(&quot;new_product&quot;, &quot;&lt;p&gt;This works.&lt;/p&gt;&quot;);\\n} catch (e) { alert(\'RJS error:\\\\n\\\\n\' + e.toString()); alert(\'new Insertion.Before(\\\\&quot;new_product\\\\&quot;, \\\\&quot;&lt;p&gt;This works.&lt;/p&gt;\\\\&quot;);\'); throw e }; return false;\\\&quot;&gt;Add another product&lt;/a&gt;&lt;/div&gt;\&quot;);'); throw e }; return false;">Add another design to this order</a> </div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment