Created
September 5, 2008 02:03
-
-
Save JonCrawford/8912 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="product_row add_new_product" id="new_design"> | |
<a href="#" onclick="try { | |
new Insertion.Before("new_design", "\n<div class=\"product_row add_new_product\" id=\"new_product\">\n <a href=\"#\" onclick=\"try {\nnew Insertion.Before("new_product", "<p>This works.</p>");\n} catch (e) { alert('RJS error:\\n\\n' + e.toString()); alert('new Insertion.Before(\\"new_product\\", \\"<p>This works.</p>\\");'); throw e }; return false;\">Add another product</a></div>"); | |
} catch (e) { alert('RJS error:\n\n' + e.toString()); alert('new Insertion.Before(\"new_design\", \"\\n<div class=\\\"product_row add_new_product\\\" id=\\\"new_product\\\">\\n <a href=\\\"#\\\" onclick=\\\"try {\\nnew Insertion.Before("new_product", "<p>This works.</p>");\\n} catch (e) { alert(\'RJS error:\\\\n\\\\n\' + e.toString()); alert(\'new Insertion.Before(\\\\"new_product\\\\", \\\\"<p>This works.</p>\\\\");\'); throw e }; return false;\\\">Add another product</a></div>\");'); 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