ArnisR Posted August 19, 2010 Report Posted August 19, 2010 (edited) Kā no šī linka GET mainīgo "id" ienest jQuery mainīgajā: index.php?action=delete&id=1 Edited August 19, 2010 by ArnisR Quote
0 rATRIJS Posted August 19, 2010 Report Posted August 19, 2010 http://www.google.com/search?sourceid=chrome&ie=UTF-8&q=jquery+parse+query+string Un nav taads jQuery mainiigais - ir javascript mainiigie. Quote
0 codez Posted August 19, 2010 Report Posted August 19, 2010 getQueryVariable(variable) { var query = window.location.search.substring(1); var vars = query.split("&"); for (var i=0;i<vars.length;i++) { var pair = vars[i].split("="); if (pair[0] == variable) { return pair[1]; } } } Quote
0 Grey_Wolf Posted August 19, 2010 Report Posted August 19, 2010 ja tiek izmantots PHP tad var shaadi <script> var JS_mainigais='<?php echo $_GET['id'];?>'; </script> Quote
0 Kavacky Posted August 19, 2010 Report Posted August 19, 2010 Tikai neaizmirstot par aizsardzību pret ļauno kodu. Quote
Question
ArnisR
Kā no šī linka GET mainīgo "id" ienest jQuery mainīgajā:
index.php?action=delete&id=1
Edited by ArnisR4 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.