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

what is the difference between primary key and foreign key?

2 Answers  


what are the oops concepts are used in your project?

1 Answers   AppShark, IBM, Kotak,


Which protocol is used in a web api?

0 Answers  


Explain weak typing and strong typing.

0 Answers  


What are the different types of caching ?

1 Answers  


What is the flow of processing of the request? : asp.net mvc

0 Answers  


Explain the different parts that constitute ASP.NET application?

0 Answers   B-Ways TecnoSoft,


How to send a DataReader as a parameter to a remote client ?

0 Answers   Digital GlobalSoft,


What are the navigation ways between pages available in ASP.NET?

0 Answers   Winsol Solutions,


Name two properties common in every validation control?

1 Answers  


Hi, I am developing an application (quiz engine) using C# in Dot net. My problem is I am designing the selction option using radio button. So, I want to retrive the data from the database to the radiobutton option. And also please tell me the how to compare the correct answer option with Answer selected by the users. If any body knows or have done this before please Help me out. My mail id is get_rome@yahoo.co.in. Table format: Question Id Queston Option1 Option 2 Option 3 Option 4 Correct answer 1 What is ur name? My name is ….. My name …. My name …. My name …. My name is tom

4 Answers  


How would you implement inheritance using VB.NET/C#?

3 Answers   Siebel Systems,


Categories