i narrowed the problem down to two things.. out of six.
i have code to create a select list.
this select list is populated by db query
i have two pieces of code i need looked at to fix the problem
echo "<select name='LearnedJutsus' id='YourJutsu' onchange='return jutsu()' >"...
sorry i meant to edit the previous post before posting it.
that is the code as it stands now. i did more spot troubleshooting and traced it back to the line that sends the url. the url is correct because it's on a localhost.
function jutsu()
{
var selection=document.getElementById("SelectedJutsu").options[document.getElementById("SelectedJutsu").selectedIndex].value;
var xmlhttp;//create a var for the obj
if (window.XMLHttpRequest)//if requesting an obj...
{
// code for IE7+, Firefox, Chrome, Opera, Safari...
i appreciate the replies. i did make sure all the code works before i posted here.
ALL of the code works except for the part that passes the information to the PHP file, which is why i posted. i even made sure by giving the page a value within my database.
i believe aside from those problems...
no errors popped up simply because i am using ajax. the page is a combination of php making it necessary to use ajax.
i've been working on it since then. i noticed the error you mentioned and fixed it. however because the element i'm drawing from is a select list that is populated by database...
I've been staring at this same problem for over a week now. I've worked around it as best as i can but i think it's time to ask someone else for input.
I'm trying to pass a value thru an ajax parameter.. that's all. it SHOULD be easy in theory.
what i want to do is create a jscript variable...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.