Solved

Sending data through the net

Posted on 2000-03-18
5
285 Views
Last Modified: 2013-12-24
I have two related questions

ONE:
I want to create director movie (.dcr file) and embed it in an html page say page1.htm.
The movie contains some fields and a push button.
After filling some data (as in a html form ) and clicking the button the contents has to go to
another page say page2.htm.
Page2.htm again contains an embedded .dcr movie file.
I want to access the contents of page1.htm in the director movie of page2.htm
How can I achieve this?
can I use postNetText or tell command?
Can I use a property list or string while sending data?
How can I access the contents of a particular field in page1.htm and
display it in the director movie of page2.htm?

TWO:
Can I post the contents of page1.htm to an ASP file (say page2.asp) and access the specific data
so that I can perform some database operations from the ASP file?


0
Comment
Question by:r_venkatadhri
  • 2
  • 2
5 Comments
 
LVL 8

Expert Comment

by:jbirk
ID: 2631949
ONE: You can use postnettext, but you'll need a cgi program to receive it.  I suppose ASP can do this but I'm unfamiliar with it.  It will act like a form post operation...  I have code for the director side of this and perl/cgi side at work if you're interested (so I can't get it until monday).  Then on the second page, use getnettext to grab the stored result...

Another option would be to send the values via the url passed through gotonetpage.  Just add it in like this: "page.htm?value1".  Then with JavaScript youc an parse out this value and send it to the movie via liveConnect on Netscape (not sure how to do it for IE though, there must be a way...).

TWO: If you send it via postnettext, you can probably send it to an asp program which collects the data...  I don't know anything about asp though, so I can't help you much there...

-Josh
0
 

Expert Comment

by:henefeld
ID: 2633104
Here's code example:


global value1, value2
on mouseDown me
  set value1 = member("value1").text
  set value2 = member("value2").text
  gotonetmovie "page2.dcr"
end

In page2.dcr:

global value1, value2
on startMovie
  set member("value1").text = value1
  set member("value2").text = value2
end startMovie

As you noticed, I use <gotonetmovie>, because, <gotonetpage> will clear your globals, and that's not something you wanna do.

0
 

Expert Comment

by:henefeld
ID: 2639076
Josh,

If you get it, I just wonder what do you mean by "liveconnect on Netscape"? I'm unfamiliar with this term.
Thanks in advance.

Henefeld
0
 
LVL 8

Expert Comment

by:jbirk
ID: 2640037
Yeah, LiveConnect is Netscape's name for the technology that connects JavaScript to plug-ins.  It was created in Netscape 3, so is supported in 3.0+ netscape browsers.  Look up ExternalEvent in the director help.  You'll see it mention LiveConnect there.

If you go to the javascript section, you'll see I'm VERY active there...  I've had a lot of experience with web pages, but only a year with director.

I can post some sample code of the browser calling a shockwave movie if you want.  I tried using ExternalEvent though without much luck.  The browser didn't want to handle the event...   I didn't have much time to play with it though.  Going the other way was a snap though (EvalScript in director).

-Josh
0
 

Accepted Solution

by:
moccajava earned 100 total points
ID: 2649160
1) You can either do it in two ways... client side... or server side. On server side, it is easier as you can take advantage of the scripts available.

However on the client side, the only thing you can do is i guess to use the same shockwave movie... users wun know that they've been transferred to a new page... you save time on making another movie and most importantly, the variables are available for usage as it is in the same movie.


2) Use postnettext command to send info taken from the fields in the shockwave movie to an ASP script. The ASP script will take the value passed by shockwave and manipulate it, store it into a simple text file.

  a) say the form field "name" is passed
  b) postnettext will send "name" to ASP
  c) ASP receives "name" and store it as a local variable
  d) ASP calls create text subroutine and appends the value of "name" into the text file created on the fly

You can then ask ASP to create a page on-the-fly, and instruct Lingo to use variables specified from the HTML <object> tag.

I did this for my school project 2 months ago...
0

Featured Post

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

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

When setting up new project requests for our site, one of the most powerful tools our team has available to use is Axure (http://www.axure.com/). It’s a tool for creating software and web prototypes that can function and interact as if it were the a…
Objective of This Article In 1990’s, when I was a budding software professional, I had a lot of confusion about which stream or technology, I had to choose to build my career. In those days, I had lot of confusion like whether to choose System so…
The purpose of this video is to demonstrate how to automatically show related posts at the bottom of a blog post in WordPress. This will be demonstrated using a Windows 8 PC. Plugin “Yet Another Related Posts Plugin” will be used. Go to your…
The purpose of this video is to demonstrate how to manually back up a WordPress Database. This will be demonstrated using a Windows 8 PC. The Host used will be IPage.com Log into your Hosting account. IPage will be used for demonstration : Locat…

786 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