User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the JavaScript / DHTML / AJAX section within the Web Development category of DaniWeb, a massive community of 426,187 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 1,831 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our JavaScript / DHTML / AJAX advertiser: Lunarpages Web Hosting
Views: 1409 | Replies: 1
Reply
Join Date: Sep 2006
Posts: 65
Reputation: rpjanaka is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
rpjanaka rpjanaka is offline Offline
Junior Poster in Training

Question when use ".js" files

  #1  
Feb 19th, 2007
Hi all,

Instead of writing javascript functions on the html page it self, we could write those in separate “.js” file and import it as follow.

<script src="fileName.js" ></script>


But when we do this and check the web page source on the browser, there is no any JavaScript function there..
But those functions cab be executed. so there should be those functions on the client machine..

So I want to know where those JavaScript functions are..????


Thanks....
janaka priyadarshana
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Oct 2006
Location: India
Posts: 1,289
Reputation: vishesh is on a distinguished road 
Rep Power: 5
Solved Threads: 32
vishesh's Avatar
vishesh vishesh is offline Offline
Nearly a Posting Virtuoso

Re: when use ".js" files

  #2  
Feb 20th, 2007
When you include a .js file all the functions are available to page. All functions could be executed. Even if you cant see the javascript code, the the is actually downloaded. Whenever a web page loads it loads all things in it, including images, css files anf js too.

If you want to see it yourself delete all temerory internet files, cookies and then open a web page with js file included. You can see that js file in Temporary Internet File Directory.

So dont worry about it, its normal and will work everywhere.
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb JavaScript / DHTML / AJAX Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the JavaScript / DHTML / AJAX Forum

All times are GMT -4. The time now is 6:43 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC