Jump to content



Photo

need help with AJAX (other)


  • Please log in to reply
2 replies to this topic

#1 Original Poster

Original Poster

    Systems Developer

  • Tech Issues Solved: 1
  • Joined: 15-July 08
  • Location: my room
  • OS: windows 7/8, Kali, ubuntu, OSx 10.9
  • Phone: Android

Posted 18 April 2013 - 03:12

[object HTMLInputElement]


this is what i get as the input when i do this

<td> <input type='checkbox' name='delete[]' id='". $id ."' value='". $id ."' onclick='deleteBox(". $id .")' /></td>

why ??? :(

I got it partially working

in my ajax i put a .value after the variable BUT i am only getting the first character of the 9 character ID....?? help?


#2 OP Original Poster

Original Poster

    Systems Developer

  • Tech Issues Solved: 1
  • Joined: 15-July 08
  • Location: my room
  • OS: windows 7/8, Kali, ubuntu, OSx 10.9
  • Phone: Android

Posted 18 April 2013 - 04:01

fixed it my self... >_>

#3 +Seahorsepip

Seahorsepip

    http://seapip.com

  • Tech Issues Solved: 27
  • Joined: 23-January 11
  • Location: Netherlands
  • OS: Windows 8.1 Pro
  • Phone: Nexus 5

Posted 18 April 2013 - 09:39

I guess you forgot script tags around variables :p or did a js echo with this as plain text xD