Timeline for PHP code in JavaScript to get variable
Current License: CC BY-SA 3.0
8 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Dec 9, 2012 at 4:14 | vote | accept | blsn | ||
| Dec 9, 2012 at 3:54 | comment | added | techfoobar |
Have posted a sample impl using jquery. See my edit. Inside yourserver.com/getclickedtag.php, you'll get the required value as $_POST['clicked_tag']
|
|
| Dec 9, 2012 at 3:53 | comment | added | blsn | Thx. can I get a small tip of the implementation process for this with AJAX? | |
| Dec 9, 2012 at 3:51 | comment | added | techfoobar | See my edit, assumes jQuery. But be done just as easily without too. | |
| Dec 9, 2012 at 3:50 | history | edited | techfoobar | CC BY-SA 3.0 |
added 347 characters in body
|
| Dec 9, 2012 at 3:48 | comment | added | techfoobar | Yes, you can send it to your server via AJAX | |
| Dec 9, 2012 at 3:48 | comment | added | blsn | So I can understand that it is not possible to include PHP in JavaScript, but is there any other way to get this ID of the clicked ‘href’ tag? | |
| Dec 9, 2012 at 3:42 | history | answered | techfoobar | CC BY-SA 3.0 |