thanks, i found the problem... i defined all of the functions and global vars inside 'document ready' function... doh, thanks anyways.
On Sep 10, 5:58 pm, Equand <[EMAIL PROTECTED]> wrote: > ok... this page...http://www.jppromo.ru: there is A LOT of code, so > search in code for //ADMIN AREA START and //ADMIN AREA STOP, the code > between them is the one i want to put into a separate file, for load > via getScript... but there are used global vars like LASTLOGIN and > LASTHREF etc, and global functions, like get and post... now when i > load the suppose admin.js , the code doesn't work when plainly > written, if i put this code into a function, i need to pass in the > variables, but it's impossible to make a var like LASTHREF pass there > everytime. is there a way to make global vars for the loaded page, to > be used in loaded script from $.getScript()... > > On Sep 10, 4:40 pm, "Michael Geary" <[EMAIL PROTECTED]> wrote: > > > Is what real? > > > Equand, I read your posts, but I'm not sure what you're trying to do or > > what the question is. > > > Could you explain in more detail, with some actual code? Maybe post a link > > to a page, or at least post a code sample? > > > -Mike > > > > From: Equand > > > is it real? > > > > *global for $(document).ready(function() { SPACE }; ... > > > > > i forgot to mention... i tried to put it into a function and pass > > > > > global vars in it thru functions vars... and ofcourse > > > > > they've lost their globality... > > > > > > Hi everybody... i have a question... > > > > > > i want to virtualise my admin section... by getting the script > > > > > > from a php file on post. is this real? and i want it to use > > > > > > current documents vars... i just copied part of the script and > > > > > > tried to load it using getScript... but this part doesn't work, > > > > > > when I put some global variables in it.... is there a > > > > > > way to make global vars work in included file? > > > > > > like global $var; in php...