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
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 |
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 |
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 |
What are url fragments?
How does the XmlSerializer work? What ACL permissions does a process using it require?
How many types of controls are there in asp.net?
how many character send in one sms forget 160limit and think about gateway allowed
About writting a query and SP which is better ?
What is web.config file ?
Describe how ASP.NET maintains process isolation for each Web application?
why many web.config files are used in are project
What are the main components of the ADO object model? How are they used?
2 Answers HCL, Syntax Softtech,
can any one find and tell the difference between dot net and php which one is best ? which one we get more salary? which one is stable and which one is best for freshers and also better in future and carrer ? which one we wil get more salary sir ? please send ur valuable suggestions to kiranpulsar2007@gmail.com
Explain the main function of razor in asp.net? : asp.net mvc
How do you handle session management in ASP.NET and how do you implement them. How do you handle in case of SQLServer mode ?