How To Call Outside Javascript File?
Example : Our Project File Folder Name "Sample" Another
Folder Name "Check".Check Folder Is Out Side Of Our
Project ?Check Folder Have Verify.Js File. My Question Is
How To Call Verify.Js File.

Answers were Sorted based on User's Feedback



How To Call Outside Javascript File? Example : Our Project File Folder Name "Sample" Ano..

Answer / varun

If you want to access a java script file from outside the
project folder then follow this:-

<script src="../verify.js" type="text/javascript">
</script>

this way where ever this file will be located; it will be
fetched.

thanks

Is This Answer Correct ?    5 Yes 0 No

How To Call Outside Javascript File? Example : Our Project File Folder Name "Sample" Ano..

Answer / sanjay

You can call in header section with following code.
<script src="myJavaScript.js"
type="text/javascript"></script>

Is This Answer Correct ?    3 Yes 3 No

How To Call Outside Javascript File? Example : Our Project File Folder Name "Sample" Ano..

Answer / vikas

Assuming the following directory structure:

~/Sample/project.html
~/Check/verify.js

to use the javascript file in project.html insert the below
code between the <head> and </head>:

<script src="../Check/verify.js" type="text/javascript">
</script>

Is This Answer Correct ?    2 Yes 4 No

Post New Answer

More ASP.NET Interview Questions

How many web config files can be created for an application?

0 Answers  


Can you explain what inheritance is and an example of when you might use it?

4 Answers   Siebel Systems,


Explain the concept of MVC Scaffolding?

0 Answers   B-Ways TecnoSoft,


How we implement the multiple paypal value with gridview in my website and how we make a payment through Credit Card.

0 Answers  


Is asp.net different from asp? If yes, explain how?

0 Answers  






Explain diff between dataset and datareader?

0 Answers  


What is the role of global.asax?

10 Answers   Infosys,


diff between Server.Transfer() and Server.Execute()

1 Answers  


What are the data controls available in asp.net?

0 Answers  


One application have three forms for registration .submit button is at third form.after filling three forms only u have to click submit button.After clicking the submit button all the values in first,second& third form saved on sql server.how to handle this situation .

6 Answers   TCS,


hi i have a problem regarding to datagrid in aspdotnet.i have a datagrid in my application.i have to place add,edit,delete buttons or links what ever it may be. now the problem is if i click on add button then the page has to redirected to another form called "xyz.aspx" and if i click on edit button the page has to redirected to another form called "abc.aspx".i am phasing the problem that if where ever i click on the datagrid the cursor goes to gv1_SelectedIndexChanged event.please tell me the solution about the code.

4 Answers   Lambent,


How would you get asp.net running in apache web servers?

0 Answers  


Categories