Welcome Guest, Not a member yet? Register   Sign In
Dynamic image generation
#8

[eluser]Mat-Moo[/eluser]
Code:
set_message("ok","Creating preview, please wait...");
$.ajax({
    'type' : 'post',
    'dataType' : 'text',
    'data' : {
        'font' : $('#font').val(),
        'topline' : $('#topline').attr('value'),
        'topcolour' : $('#topcolour').attr('value'),
    },
    'url' : '<?=site_url("/photos/jquery_make_preview")?>',
    'success' : function(afile) {
        $('#dynamic_image').html("<img src='"+afile+"' />");
        clear_message();
    }
Ended up using this, pretty much the same thing, afile is returned with a ?uniquenumber to stop cacheing issues. Thanks for your pointers, mose helpful, just a shame I couldn't do this without saving to disk.


Messages In This Thread
Dynamic image generation - by El Forum - 04-18-2010, 03:59 PM
Dynamic image generation - by El Forum - 04-18-2010, 08:12 PM
Dynamic image generation - by El Forum - 04-19-2010, 02:41 AM
Dynamic image generation - by El Forum - 04-19-2010, 02:51 AM
Dynamic image generation - by El Forum - 04-19-2010, 02:59 AM
Dynamic image generation - by El Forum - 04-19-2010, 03:12 AM
Dynamic image generation - by El Forum - 04-19-2010, 03:39 AM
Dynamic image generation - by El Forum - 04-19-2010, 12:36 PM
Dynamic image generation - by El Forum - 04-19-2010, 01:55 PM
Dynamic image generation - by El Forum - 04-19-2010, 02:02 PM
Dynamic image generation - by El Forum - 04-19-2010, 02:06 PM
Dynamic image generation - by El Forum - 04-19-2010, 06:09 PM
Dynamic image generation - by El Forum - 04-20-2010, 08:21 AM
Dynamic image generation - by El Forum - 04-20-2010, 01:57 PM
Dynamic image generation - by El Forum - 04-20-2010, 02:03 PM



Theme © iAndrew 2016 - Forum software by © MyBB