473,320 Members | 1,926 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

How to refer path in Javascript

ad
I place a Loading.aspx in the Util folder of my project, Util folder in in
the root directory.
I refer Loading.aspx in this way: ~/Util/Loading.aspx in Javascript, But it
fail to find Loading.aspx in run time.
How can I refer Loading.aspx in Javascript?
Below in the actual code:
----------------------------------------------------------------------------
----------------------------------------
JavaScript += "function
_ShowLoadingWindow(){LoadingWindow=window.showMode lessDialog('~/Util/Loading
..aspx','','dialogWidth:350px;dialogHeight:200px') ;}";
Nov 19 '05 #1
1 1396
You cannot use ~ (tilde) in client-side code. You need to register this code
in code behind the grab the root folder using request object.

"ad" <ad@wfes.tcc.edu.tw> wrote in message
news:e5**************@TK2MSFTNGP14.phx.gbl...
I place a Loading.aspx in the Util folder of my project, Util folder in in
the root directory.
I refer Loading.aspx in this way: ~/Util/Loading.aspx in Javascript, But
it
fail to find Loading.aspx in run time.
How can I refer Loading.aspx in Javascript?
Below in the actual code:
----------------------------------------------------------------------------
----------------------------------------
JavaScript += "function
_ShowLoadingWindow(){LoadingWindow=window.showMode lessDialog('~/Util/Loading
.aspx','','dialogWidth:350px;dialogHeight:200px'); }";

Nov 19 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: MK | last post by:
What would be the best platform-independent way to refer to the current (execute) path for a Python script? self.dirname = ??? This variable should contain directory name for the current path....
2
by: somaskarthic | last post by:
Hi In my php page my i'm displaying a image. The image resides in the same location where the php page resides. when i refer other image src other than in the document root , it is not working....
2
by: Radu | last post by:
Hi. I have files in the "Scorecard Previews" subfolder of the virtual path of my app, the absolute path being C:\Data\Ordering Process\Scorecard Previews\ I have a javascript function...
3
by: laredotornado | last post by:
Hi, If I have this include on my HTML page <script type="text/javascript" src="scripts/myScript.js"></script> How, from within "myScript.js" can I refer to the path of myself? In other...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.