Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Getting the current js folder?

Reply
Thread Tools

Getting the current js folder?

 
 
Edwin Knoppert
Guest
Posts: n/a
 
      11-17-2005
I'm loading a javascript source via the SRC="myfile.js" ..
Can i determine the (relative) location of this file IN the javascript
source itself?

I want to determine IN "myfile.js" where it's been located.
This source needs to load other stuff from that folder.
I want to have it dynamic.

<% asp.net %> do not work in js files.


 
Reply With Quote
 
 
 
 
Tasos Vogiatzoglou
Guest
Posts: n/a
 
      11-17-2005
You cannot get the relative location of the js file (only of the page
that loads the file).

If you want to do dynamic js, you have to solutions.

Either output the JS to the aspx page, or create an HTTP handler to
handle the js files.

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
using the current method name within current method Matthew Heidemann Ruby 14 03-22-2011 03:56 AM
printing out the current URL for current ASP page in Perl Jack Perl Misc 3 12-22-2008 02:35 PM
Thread.current.parent and Thread.current.ancestors ara.t.howard@noaa.gov Ruby 3 02-16-2007 03:34 PM
How to update the current web page? (delete current web page + rewrite the page) laryten@yahoo.com Javascript 3 10-12-2006 07:33 PM
How to change the current thread current culture at run time. Manu ASP .Net 1 07-20-2003 03:27 PM



Advertisments