rvera / image-picker

Image Picker is a simple jQuery plugin that transforms a select element into a more user friendly graphical interface.
http://rvera.github.com/image-picker
Other
906 stars 216 forks source link

image picker not working on 2nd page` #63

Closed etype closed 8 years ago

etype commented 8 years ago

good day

thanks for your script it is very cool but now i have this problem i have some files called head.php - where i keep all the css files and scripts getpic.php - works nicely i can choose and submit meds.php - dont know why not working process_selected_mood_message.php - send to screen works perfectly process_selected_meds.php - not working single select not optgroup

i have put all the code for the 5 files and there processor files please can you tell me why the getpic.php file is working perfectly , but the meds.php file has no and does not want to work ? please help me

i will now paste each files code here

head.php

Corcoora
<script src="bootstrap/jquery/jquery.min.js"></script>
<!-- Include all compiled plugins (below), or include individual files as needed -->
<script src="bootstrap/js/bootstrap.min.js"></script>
<script src="bootstrap/js/image-picker.js"></script>
<script src="bootstrap/js/dropzone.min.js"></script>
<script src="bootstrap/js/panelscript.js"></script>

getpic.php

<!DOCTYPE html>


```
``` ##

meds.php

<!DOCTYPE html>


```
``` ##

process_selected_mood_message.php - works fine with optgroup

<?php $moods = $_POST["moods"]; // $result = count($moods); echo exec('sudo -u pi kill $(pgrep mirage) ; export DISPLAY=\':0\' ; export XAUTHORITY=/home/pi/.Xauthority ; sudo -u pi mirage -f /var/www/corcoora/pics/mood/' . $moods[0] . ' & sleep 7 ; sudo -u pi mirage -f /var/www/corcoora/pics/jpg/' . $moods[1] . '');

?>

process_selected_meds.php not sure if its this file or meds.php with problem

<?php $medss = $_POST["medss"]; // $result = count($medss); echo exec('sudo -u pi fbi -noverbose -T 1 -a -u -t 1 /var/www/corcoora/pics/med/' . $medss[0]);

?>

thank you if anyone can help me

etype commented 8 years ago

why is it cutting out my code what must i do

bbashy commented 8 years ago

@etype Use code blocks...

rvera commented 8 years ago

Difficult to test without the code, I assume you change the DOM so you need to re init the plugin.