Solved

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

Posted on 2006-06-22
2
360 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Enroll in May's Course of the Month

May’s Course of the Month is now available! Experts Exchange’s Premium Members and Team Accounts have access to a complimentary course each month as part of their membership—an extra way to increase training and boost professional development.

Question has a verified solution.

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

Sometimes you know that one object has a specific child in it, but you can't find the child. This happened to me when I was trying to code some actionScript to make a toolbar work with its embedded buttons.  My partner had created the toolbar usi…
In my long career of working as an actionscript developer, I had spent sleepless night often working hard to solve some small problems which actually took a lot of my development time; later found out the solutions to be a line or two. Here are s…
The goal of the tutorial is to teach the user how to live broadcast using Flash Media Live Encoder and connecting it to YouTube to broadcast. Log into your Youtube account, choose live stream settings, start live stream from Flash Media Live Enc…
The goal of the tutorial is to teach the user how to use the auto adjust feature and what the different options do. When your video is not working right you can choose the auto adjust feature to help choose your settings.

710 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