www.webdeveloper.com

Search:

Type: Posts; User: AMS

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. AJAX You have to pay special attention to the...

    You have to pay special attention to the UploadedFile::deleteUploadedFiles() function.

    I guess it'll be a question of rights. Check if you have delete rights for the image directory.
  2. AJAX You have to get the names of the images stored in...

    You have to get the names of the images stored in your database. Example:


    $itemId = mysql_real_escape_string($itemId);

    $sql = '
    SELECT image1, image2, image3
    FROM items_with_images...
  3. AJAX Sorry, didn't understand well. If you want to...

    Sorry, didn't understand well.

    If you want to see where the images loop is performed to store them into the database, you have to follow the configuration variable...
  4. AJAX Sorry for the delay, too busy. You have to set...

    Sorry for the delay, too busy.

    You have to set the configuration variable "formsCount" to 1. Thus you'll have just 1 file field.

    I guess, the only thing you need to adapt is the $previewDiv...
  5. AJAX Gracias, bullseye2346. Short answer is: yes,...

    Gracias, bullseye2346.

    Short answer is: yes, it can be done.

    How to do it is a little bit more complicated. You'll need to modify the javascript file to remove the multiple forms and leave just...
  6. AJAX The 'localhost/' path is relative and was being...

    The 'localhost/' path is relative and was being appending to the root one, 'http://localhost'. That's why I suggested a path from the root (with a preceding slash), '/localhost/', or a complete path,...
  7. AJAX Hi Paul, Maybe you should place a '/' before...

    Hi Paul,

    Maybe you should place a '/' before your path. Try 'urlRoot' => '/localhost/'.

    You can also try with complete url 'urlRoot' => 'http://localhost/'.
  8. AJAX Here I place a function to update uploaded images...

    Here I place a function to update uploaded images with no loop.

    It takes two arrays, one with the images comming from the form (which may contain some changes or not) and one with the images...
  9. AJAX Glad to hear it :) Check the Initialize...

    Glad to hear it :)



    Check the Initialize forms to update files section in the documentation (http://dondedeportes.es/uploader-previewer). There you can see:



    <div class="imageForms"...
  10. AJAX You are welcome :)

    You are welcome :)
  11. AJAX Hi, You are right, sometimes the dialog box...

    Hi,

    You are right, sometimes the dialog box after saving has no sense. That's why I've developed a new version of the plugin including two new configuration variables:


    savingDialogMessage
    ...
  12. AJAX Thanks for that :) Hope everything goes ok,...

    Thanks for that :)

    Hope everything goes ok, but if you have any issues, please let me know.
  13. AJAX The very first version of the plugin is...

    The very first version of the plugin is deprecated. Please, download the one from the demo:

    http://dondedeportes.es/uploaderPreviewer

    You can reach it also from the official jQuery plugins...
  14. AJAX Hi rodneymonteiro, Thanks for using this...

    Hi rodneymonteiro,

    Thanks for using this plugin.

    You can configure the image sizes with the variable $uploadData, in /php/configuration.php.

    There you may add or remove resizing groups...
  15. AJAX Hi, I have uploaded a online demo of the...

    Hi,

    I have uploaded a online demo of the plugin here

    http://dondedeportes.es/uploaderPreviewer

    Hope it is useful for anyone.

    If you have any comments, please post them on this forum.
  16. AJAX Hi SpitFire, In order to trigger the save()...

    Hi SpitFire,

    In order to trigger the save() function, you must bind the function (or any function that calls it) to the click event of the button. It is done within the $(document).ready()...
  17. AJAX Hi Fire, The functions for the form are in...

    Hi Fire,

    The functions for the form are in itemForm.js. I'll explain the code flow to submit a form:

    1 - When the button "save" is clicked, the function itemForm.js > save() is triggered.

    2...
  18. AJAX Great, I hope you have everything running now :)

    Great, I hope you have everything running now :)
  19. AJAX I think I haven't understood the question. Do...

    I think I haven't understood the question.

    Do you ask for the structure of the array? Or are you asking how can you call a function that inserts the uploaded images in a database?
  20. AJAX As already said: Glad to be able to help :)

    As already said: Glad to be able to help :)
  21. AJAX Glad to be able to help :) A unique...

    Glad to be able to help :)



    A unique filename is generate by the function uploadedFile.php > getDescriptiveUniqueFilename(). A filename is generated with the given keywords. Three of these...
  22. AJAX Hi Fire. I have developed a new version of the...

    Hi Fire.

    I have developed a new version of the plugin to support dynamic resizing groups. You can find it attached.

    All you have to do now is to configure the variable $uploadData, in...
  23. AJAX Hi Fire, I'm afraid I haven't understood the...

    Hi Fire,

    I'm afraid I haven't understood the issue correctly. But if what you want is to give the possibility of selecting a resizing dimension, you should do it in html, and then pass the value...
  24. AJAX Yes, that is right, with javascript the files...

    Yes, that is right, with javascript the files must be sent to the server side in order to be managed. The reason is that javascript cannot interact with the user filesystem, because of security...
  25. AJAX I am not sure if I have understood the question....

    I am not sure if I have understood the question. An ajax request can send GET or POST parameters, the same as a html form.

    Does this answer your question?
Results 1 to 25 of 40
Page 1 of 2 1 2
HTML5 Development Center



Recent Articles