Solved

Sending data through the net

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

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

When deciding to adopt any help desk solutions many factors should be explored before taking decisions. This will change from business to another but in general there are some kind of rule of thumb. Here are some quick tips: Do we need only ticket…
In this short web based tutorial, I wanted to show users how they can still use the powers of FrontPage in conjunction with Expression Web 3.  Even though Microsoft eliminated the use of Web components, we can still use them with FrontPage and edit …
The purpose of this video is to demonstrate how to make a WordPress Site faster and smaller in size by cleaning up the database. This will be demonstrated using a Windows 8 PC. Plugin WP Optimize will be used. Go to your WordPress login page. T…
The purpose of this video is to demonstrate how to exclude a particular blog category from the main blog page. This is can be used when a category already has its own tab, or you simply want certain types of posts not to show up on the main blog. …

856 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