Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old Jul 7, 2007, 07:27 PM   #1
Littleodie914
macrumors 68000
 
Littleodie914's Avatar
 
Join Date: Jun 2004
Location: Rochester, NY
Problem running ASP scripts on my Mac!

Hey guys, I'm trying to learn AJAX, and I'm having a problem running any ASP scripts. I'm pretty sure the code is all accurate, as I finally resorted to just pulling the scripts off the tutorial's server. (Which work great when I'm browsing their site.)

The problem is, my ASP script is very simple, and looks like:

Code:
<%
response.expires=-1
response.write(time)
%>
Then I have an HTML page that just sets the value of a text input box to the xmlRequest's responseText. Instead of actually displaying the time though, it just displays "<%" (the first line of the file.)

If I change the ASP script to read:

Code:
Hi there
<%
response.expires=-1
response.write(time)
%>
Then the input box is set to "Hi there." Can anyone explain this mystery for me? If necessary, I can post the HTML file too, but it's pretty basic and I don't believe that's the problem. TIA!

Edit: I've tried both previewing the files locally in Safari, as well as transferring them to my server and running them over the web.
Littleodie914 is offline   0 Reply With Quote
Old Jul 7, 2007, 08:39 PM   #2
Thinine
macrumors newbie
 
Join Date: Jul 2002
Send a message via AIM to Thinine
ASP is server side scripting language that's Windows only. You should look into something like PHP if you want it to run on OS X.
__________________
In Jaguar, IE will still suck.
Thinine is offline   0 Reply With Quote
Old Jul 7, 2007, 09:26 PM   #3
Littleodie914
Thread Starter
macrumors 68000
 
Littleodie914's Avatar
 
Join Date: Jun 2004
Location: Rochester, NY
Quote:
Originally Posted by Thinine View Post
ASP is server side scripting language that's Windows only. You should look into something like PHP if you want it to run on OS X.
Ah, that would certainly explain it.

Thanks so much!
Littleodie914 is offline   0 Reply With Quote
Old Jul 8, 2007, 04:49 PM   #4
stadidas
macrumors regular
 
Join Date: Feb 2006
Location: Kent, United Kingdom
You can use Mono to develop using the .Net Framework on the Mac.
stadidas is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
fan always running, problem? tomf MacBook Pro 1 May 15, 2014 10:55 AM
Resolved: HELP New iTunes update seems frozen RUNNING SCRIPTS liquorice Mac Basics and Help 4 Sep 19, 2013 05:38 AM
need help combining js with asp sk3pt1c Web Design and Development 6 Oct 16, 2012 06:29 AM
Mountain Lion Calendar (iCal) Running Scripts natd1993 OS X 10.8 Mountain Lion 2 Aug 26, 2012 07:53 AM

Forum Jump

All times are GMT -5. The time now is 04:10 AM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC