That´s not possible! Remember, JavaScript is running on client not server side. Only the Server knows the real filename. You can do a "reverse mod_rewrite" in JavaScript on client side, or make an Ajax call to a script running on the server that returns the real filename.
But the question is, why did you need this? 2010/6/16 Dailce <[email protected]> > I have apache rewrite on which I need because it's making my URL seo > friendly. > So I have say index.php and my site is set up so that the URL will > show index.html > > I have tried this code: > > var cfile = new URI().get('file'); > var togglers = $$('li a.tog2'); > var curtC = Cookie.read('activestate'); > if(curtC == null || curtC < 0 || curtC == '' || (cfile != > 'index.php')){ > curtC = Cookie.write('activestate', -1); > } > > Which is working but it's returning index.html as the file name. > > However, the real filename is index.php > How can I get the REAL filename? > > Thank you. > >
