capnH00K 0 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 Link to post Share on other sites
radar 0 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. Link to post Share on other sites
capnH00K 0 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 Link to post Share on other sites
radar 0 Posted August 3, 2010 Share Posted August 3, 2010 alright, so what type of value are you trying to change dir to? Link to post Share on other sites
capnH00K 0 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? Link to post Share on other sites
radar 0 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 Link to post Share on other sites
capnH00K 0 Posted August 4, 2010 Author Share Posted August 4, 2010 i'm trying to make $dir = $link ... when the script is activated.. Link to post Share on other sites
capnH00K 0 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 Link to post Share on other sites
Recommended Posts
Archived
This topic is now archived and is closed to further replies.