• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 292
  • Last Modified:

Sending data through the net

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
r_venkatadhri
Asked:
r_venkatadhri
  • 2
  • 2
1 Solution
 
jbirkCommented:
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
 
henefeldCommented:
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
 
henefeldCommented:
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
 
jbirkCommented:
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
 
moccajavaCommented:
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

Veeam Disaster Recovery in Microsoft Azure

Veeam PN for Microsoft Azure is a FREE solution designed to simplify and automate the setup of a DR site in Microsoft Azure using lightweight software-defined networking. It reduces the complexity of VPN deployments and is designed for businesses of ALL sizes.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now