Skip to content

Instantly share code, notes, and snippets.

@Munter
Forked from anonymous/VxS6ZWqg
Created March 19, 2012 14:41
Show Gist options
  • Save Munter/2114673 to your computer and use it in GitHub Desktop.
Save Munter/2114673 to your computer and use it in GitHub Desktop.
a guest on Mar 19th, 2012 - pastebin.com/VxS6ZWqg
function set_new_material(materialObj) {
alert(document.getElementById('paper_finish').value);
document.getElementById('paper_finish').value = materialObj.finish;
}
<script src="external.js"></script>
<script>
var new_materials_screen = open(url, windowname, 'width=1200,height=800,scrollbars=yes,menubar=yes');
</script>
<script src="external.js"></script>
<script>
var materialObj = {
materialid: materialid,
finish: finish,
colour: colour,
adhesive: adhesive,
material: material,
cost: cost,
moq: moq,
vendor_name: vendor_name,
ring_for_price: ring_for_price,
product_id: product_id,
number_of_vendors: number_of_vendors
};
set_new_material(materialObj);
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment