Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

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

Posted on 2006-06-22
2
Medium Priority
?
364 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 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

Introduction This article is primarily concerned with ActionScript 3 and generally specific to AVM2.  Most suggestions would apply to ActionScript 2 as well, and I've noted those tips that differ between AS2 and AS3. With the advent of ActionS…
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…
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 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.

715 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