capnH00K Posted August 3, 2010 Author Share Posted August 3, 2010 But why? I mean, the dir has no id? I'm kinda confused? It it okay to ask if you have an messenger acc so I can ask you short questions there faster? :b Quote Link to comment Share on other sites More sharing options...
radar Posted August 3, 2010 Share Posted August 3, 2010 if the dir has no id, then why in your own code do you have $dir = "uploaded/".$id."/music" that is where i based my ajax code for you off of. and at work i don't have any messenger stuff. Quote Link to comment Share on other sites More sharing options...
capnH00K Posted August 3, 2010 Author Share Posted August 3, 2010 ah i see... but The ID is the users id in the database.. So another id would mean that you are acessing another persons uploaded stuff :b Quote Link to comment Share on other sites More sharing options...
radar Posted August 3, 2010 Share Posted August 3, 2010 alright, so what type of value are you trying to change dir to? Quote Link to comment Share on other sites More sharing options...
capnH00K Posted August 3, 2010 Author Share Posted August 3, 2010 Basicly i have 2 variables - $dir - $link $dir has a default set - so that it 'opens' a folder (runs through it and list everything inside it - like a folder in windows)... Inside this folder, there can be other folders - so when there's a folder inside the default $dir .. i'm creating a link which should then change the default $dir to the new one - so you kinda "opens" a new dir... it just has to work as the exploded in windows... If you press a folder you open that ... Does that make sence? Quote Link to comment Share on other sites More sharing options...
radar Posted August 3, 2010 Share Posted August 3, 2010 so through this script you are trying to change $dir or $link or basically make $dir = $link Quote Link to comment Share on other sites More sharing options...
capnH00K Posted August 4, 2010 Author Share Posted August 4, 2010 i'm trying to make $dir = $link ... when the script is activated.. Quote Link to comment Share on other sites More sharing options...
capnH00K Posted August 11, 2010 Author Share Posted August 11, 2010 Okay, man i can't get this to work... ! Can you just tell me exacly what to type on the the " // everything from here is brought back from echo in php" line. And what to type in the html/php part to make it resive the php variable... function processNav() { // everything from here is brought back from echo in php $('mydiv').innerHTML = req.responseText; } Thanks Quote Link to comment Share on other sites More sharing options...
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.