Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function generateImage() {
- Imagedata = {
- product_id:1,
- product_type_id:"type",
- };
- $.ajax({
- url: 'index.php?route=product/generator/createImage&token=<?php echo $token; ?>',
- data: Imagedata ,
- dataType: 'JSON',
- contentType: "application/json",
- method:'POST',
- async: false
- }).done(function (data) {
- alert('generated image');
- });
- }
- //async because we want this to block, in this particular use case
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement