?
Solved

Sending data through the net

Posted on 2000-03-18
5
Medium Priority
?
290 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
[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
  • 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 300 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

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

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

Now that Expression Web 4.0 (http://www.microsoft.com/expression/products/Upgrade.aspx) is free if you buy or have the full version of Expression Web 3.0, now is the best time to  migrate from FrontPage to Expression Web (http://www.frontpage-to-exp…
This article provides a case study on how our local youth baseball league deployed a new website, including the platform selection, implementation and benefits to the league.
The purpose of this video is to demonstrate how to integrate Mailchimp with WordPress, by placing a Mailchimp signup form on a WordPress Page or Post. This will be demonstrated using a Windows 8 PC. Mailchimp will be used. Log into your Mailchi…
The purpose of this video is to demonstrate how to prevent comment spam on a WordPress Website. This will be demonstrated using a Windows 8 PC. Plugin Akismet will be used. Go to your WordPress login page. This will look like the following: myw…

764 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