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 361,623 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 2,209 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: 845 | Replies: 2
Reply
Join Date: Jan 2008
Posts: 14
Reputation: wiz83 is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 0
wiz83 wiz83 is offline Offline
Newbie Poster

calling javascript files from c++

  #1  
Jan 31st, 2008
hi
you please tell me how to call javascript files from c++ code?i know this(iam not 100% sure)
that you first call html files,then from ther you call javascript files.
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Jan 2008
Location: istanbul
Posts: 255
Reputation: serkansendur is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 22
serkansendur's Avatar
serkansendur serkansendur is offline Offline
Posting Whiz in Training

Re: calling javascript files from c++

  #2  
Jan 31st, 2008
i dont believe you can call javascript function from c++ but why do you need to do so?
Serkan Şendur
MCAD.NET
Reply With Quote  
Join Date: Sep 2005
Posts: 591
Reputation: digital-ether will become famous soon enough digital-ether will become famous soon enough 
Rep Power: 5
Solved Threads: 37
Moderator
digital-ether's Avatar
digital-ether digital-ether is offline Offline
Posting Pro

Help Re: calling javascript files from c++

  #3  
Jan 31st, 2008
Originally Posted by wiz83 View Post
hi
you please tell me how to call javascript files from c++ code?i know this(iam not 100% sure)
that you first call html files,then from ther you call javascript files.


What are you using C++ for? If you're creating a HTML page, then you can just embed the JavaScript files.

<script type="text/javascript" src="http://example.org/js/file.js"></script>

If you want to use JS functions inside C++ code, you'll need a JavaScript interpreter, such as Mozilla's Spider Monkey. http://www.mozilla.org/js/spidermonkey/

I believe what you want is probably simpler, if you describe the scenario better there should probably be a simple solution.
www.fijiwebdesign.com - web design and development and fun
Cpanel Email - Let users Register email accounts on your website upon registration
Ajax Chat - Fully browser based chat!
Reply With Quote  
Reply

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

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

DaniWeb JavaScript / DHTML / AJAX Marketplace
Thread Tools Display Modes

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

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