Ok so I have found a number of tutorials online and have followed each of them step by step. My problem is that I know javascript/jQuery much better than I know PHP and I cannot figure out how to even debug what is going wrong in that section. Basically I have a bunch of buttons and a from and when
Tag: php
Why are two functions running on button click instead of just one?
I have 2 buttons in a page. One of the buttons saves a date that is input via 3 textboxes. The other one calls a function that does some data manipulation. This is what I have from the first button referred above. And this is the respective code from the second button So, my problem is that whenever I click
Not sure why the method is not returning any value
I know I already have a similar post, but I can’t for the life of me work out what is different between the two snippets – as I can only get the return value from the first example – but not the second example; both methods in the examples return a value. What is even more bizarre (or frustrating) is
Styling a voting system
I have made a sample voting system here: Sample Voting System However after repeated attempts I couldn’t get it to style the way I want because the developer has used way too many divs here. Either the font becomes too big or gets overlapped with the number or goes out of proportion, etc. I want it to look something like
Magento Add to Cart not working
“add to cart” is not working in my Magento Mobile version. Its build up of Jquery-Mobile. Javascript console says Uncaught TypeError: Cannot call method ‘submit’ of undefined I searched the code for a long time but couldnt find out the error. I am a little bit new to magento and Jquery- mobile versions. Please help. I will share my codes
How to create a timer
I have a $dbSessionDuration variable where by using mysqli, it is able to bind the result of data from the query into this variable. The $dbSessionDuration variable holds time so the variable has a time format as below: 01:30:10 Now that means 1 hour 30 mins and 10 seconds. What I want to do is display $dbSessionDuration value in a
How do I implement JavaScript onmouseover in CakePHP?
What I want to do is convert the following to work with CakePHP: I have the following so far: The problem are the onmouseover & onmouseout event lines. I need to tell cake to somehow use the helper method otherwise it just selects no image. I don’t want to have to put the entire address in as the is a
Dynamic textbox creation with db using ajax/javascript/php
I have two tables. company_details and company_specials. Each company_details can have multiple specials. I display the company details at http://eurothermwindows.com/ed/admin.php The first row and fourth row that has the 0 in the active column is from company_details and the rows below are from company_specials. Currently the code allows for dynamic modification of the company_details rows as denoted by the compid
Pushing an array in js doesn’t look to work properly
I have this array from my controller which is passed to my twig where I execute the below code to parse it into a js array: The problem is that $flight.length returns 4 instead of 2, the ReturnFlightSegmentDetails is considered like an object instead to be an attribute for a flight. Answer You need to build the “flight” object differently;
JQuery Ajax Tagit Array to PHP returning [object Object]
I’ve tried to implement Tagit to my website, but I can’t get the array of tags to behave in a way I want it to… I’ve googled and tried a bunch of different things but cant get it to work. This is my JavaScript function: Console.debug showed me that the “tags” array looks like this: It posts to my ajaxController