Solved

Sending data through the net

Posted on 2000-03-18
5
282 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

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Suggested Solutions

Turn A Profile Picture Into A Cartoon Using Photoshop And Illustrator This tutorial will teach you how to make a cartoon style image out of a regular picture. I have tried to keep the tutorial as simple as possible. I used Adobe CS4 for this tuto…
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 add AdSense Ads to a WordPress Website, and how to set up WordPress to automatically place Ads in Sidebars. This will be demonstrated using a Windows 8 PC. Log into your AdSense account. : Cli…
The purpose of this video is to demonstrate how to set up basic WordPress SEO. This will be demonstrated using a Windows 8 PC. The plugin used will be WordPress SEO by Yoast. Go to your WordPress login page. This will look like the following: myw…

708 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

14 Experts available now in Live!

Get 1:1 Help Now