Solved

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

Posted on 2006-06-22
2
352 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 500 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

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Suggested Solutions

Recently, I was asked to recommend a tracking system to be implemented on a clients website. As the entire site was built on flash, my first thought was to suggest custom built tracking system. However, our company at that point of time didn't h…
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 select which audio input to use. Once you have an audio input plugged into the laptop or computer, you will go into the audio input settings and choose which audio input you want to use.
The goal of the tutorial is to teach the user what frame rate is, how to control it and what effect it has on the video.

705 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now