Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

JavaScript Forum


You are currently viewing our JavaScript Forum as a guest. Please register to participate.
Login



Reply
Old 01-15-2005, 01:44 PM Include Javascript
Webmaster Talker

Posts: 560
Trades: 0
Hello, I am currently working on a database and I need to include a random image/link script. Every time the browser is refreshed, I would like a new image (linked to a new link) each time. I have found some Javascript codes that would allow me to do this however for some reason, I cannot include it in the database, maybe because it won't read Javascript inside PHP? I am not sure the reashing but it comes up as error. Is there another way that I can what I would like to do, either by using a different coding language or maybe by using some sort of php "include" script, that would include the javascript page? Please let me know, thanks and I appreciate your time.

Matt
__________________

Please login or register to view this content. Registration is FREE
170 Designs is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 01-16-2005, 07:22 PM
ACJavascript's Avatar
Humble Mod

Posts: 548
Location: CT, USA
Trades: 0
Try doing this:


Code:
<script language="javascript">
alert("This works");
</script>
save this as "javascript_test.php"

Then in your php script add this:
include("javascript_test.php");

if you recieve an alert then you know it works.
__________________

Please login or register to view this content. Registration is FREE
- 100 Satisfied Customers - Custom Programming and Web Development
ACJavascript is offline
Reply With Quote
View Public Profile Visit ACJavascript's homepage!
 
Old 03-07-2005, 02:40 AM
brokensoul2271's Avatar
- - - - - - - - -

Posts: 750
Location: Lancashire, UK
Trades: 0
Quote:
Originally Posted by ACJavascript
Try doing this:


Code:
<script language="javascript">
alert("This works");
</script>
save this as "javascript_test.php"

Then in your php script add this:
include("javascript_test.php");

if you recieve an alert then you know it works.
...clever
__________________
Yes, indeed...

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
brokensoul2271 is offline
Reply With Quote
View Public Profile Visit brokensoul2271's homepage!
 
Old 03-07-2005, 11:43 PM
Average Talker

Posts: 16
Trades: 0
I agree with Broken.
Slyser is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Include Javascript
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.40783 seconds with 12 queries