Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

loadVariablesNum seems to see asp file, but won't use it

Posted on 2006-06-22
2
Medium Priority
?
365 Views
Last Modified: 2010-08-05
A developer in 2004 wrote an application for a client that they are having issues with, I say this because prior to the clients call I never used the below commands so am a newbie with them.

Problem command: loadVariablesNum("track.asp", 5, "POST");
Issue:  Command seems to know file is there ( if I rename track.asp to trackX.asp and run the test projector it tells me it can't find the file trackX.asp, so it knows to look for the target file and whines if it isn't there) but Flash does not seem to be actually accessing the file even though it knows it is there. I am expecting, likely incorrectly, that the track.asp page would show me the alert as shown in the track.asp code below, or display the Response.Write text, neither of which is occuring, so I assume it is not executing the file. I also assume I am wrong in the fact it should show anything as I am not opening the asp in another window, so I guess this is a two part question, 1.  should I be able to see the alert of response.write text form the asp file called the way it is, or 2. Is there a way to return a value to the loadVariablesNum funtion call that says 'yeah, I processed...'

TRACK.ASP code:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%>

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Untitled Document</title>
</head>
<script language="javascript">
function openWin()
{      alert ("seeing");}
</script>

<body onLoad="openWin()">
test....<% Response.Write "seeing asp" %>
</body>
</html>
0
Comment
Question by:cbittner
2 Comments
 
LVL 12

Accepted Solution

by:
Proactivation earned 2000 total points
ID: 16967519
This is all a bit confusing... I'm guessing that the Flash projector should access track.asp so that the ASP can store something in a database, even if it's just that it's been called.  The problem there is that your "problem command" tries to access the ASP from the file system, not via a URL such as:

loadVariablesNum("http://www.mydomain.com/track.asp", 5, "POST");

loadVariablesNum would normally load data from a file, or generated by ASP, in a URL-style name/value pair, like this:

name1=value1&name2=value2 (etc)

but the ASP you posted is designed to write things to a browser, not return values to Flash.  As it stands, when Flash calls your ASP, you'd never see the alert because you're not looking at it from a browser.
0
 

Author Comment

by:cbittner
ID: 16968292
Sorry if it is confusing, I'm confused myself. The test page is just supposed to write data to a database, normally it would not write anything to the page. I just added that to make sure it was trying to process the page. I'll write a sample asp page t write something to a mySQL database and see if it writes.
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This is a very simple example to help those of you who are still migrating from AS2 to AS3 understand the redesigned event model in AS3. In AS2.0, event functions (that is, the function to be performed when an event is fired) were stored as a pro…
I have been doing hardcore actionscripting for some time; and needless to say I have faced a lot of problems in just understanding others' code rather than understanding what the code executes. A programmer's life can become hell when there are a lo…
The goal of the tutorial is to teach the user how to how to load their YouTube profile onto Flash Media Live Encoder.
The goal of the tutorial is to teach the user how to select the video input device. Make sure you have an input device that in connected and work and recognized by Adobe Flash Media Live Encoder and select it in the “video input” menu.
Suggested Courses
Course of the Month11 days, 22 hours left to enroll

916 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question