« first day  last day (14 days later) » 

12:07 AM
Hi
 
hello
 
Let me show you why I cannot exactly separate the JS and PHP
 
Newest code no luck with?
okay
 
no I can't even test it
whole thing is inside function
ctrl+F:$rating_boxes and you find the location where it is inside the function
 
Yea, I see it
 
12:10 AM
very bottom it is returning everything
 
Ii could be modified though to act as my code does
where is the form
movie_rating_vote_form
 
I kinda starting to think that via ajax it would be much easier.. if current solution is such a pain to implement :D
 
With the current approach you have to account for double encoding which is always a pain
or maybe even triple encoding
 
originally I thought this way was easier and possible to save space by not creating if($_POST) to every number from 1-10
 
You need the PHP to handle the quotes on that side, then the browser to handle the attributes, then jquery to handle the function values
You can make the POST an array
 
12:15 AM
I have done similar thing with ajax already..I guess Ill try that one..
put it inside different function and call it in
Thanks for your help :)
 
good luck. It's also possible someone else will have another approach
ill delete my answer
 
okay.. np :)
 
1:13 AM
If you see this then I wanted to let you know that I managed to create a working solution without ajax after all :)
 

« first day  last day (14 days later) »