I do get the right div but i can't get the randomID new Ajax.Updater('div-'+randomIDValue, '/edit-file.php', { method: 'post' , parameters: {randomID: '+randomIDValue+'}}); Code (markup): any suggestions?
new Ajax.Updater( \'div-\'+randomID, \'/edit-file.php\', { method: \'post\' , parameters: \'randomID=\'+randomIDValue }); Code (markup):
urm ... new Ajax.Updater( 'div-'+randomIDValue, '/edit-file.php', { method: 'post', parameters: { randomID: randomIDValue } } ); HTML:
@krokjoe, maybe i should have told you the code i posted is in php. So <?php $header .= ' ...here the ajax javascript code.... ' ?> That's why i needed to escape ' and had problems with setting the parameters.