Passing a search string from one frame to another

Passing a search string from one frame to another

am 23.10.2007 19:49:36 von LetMeDoIt

Greetings,
Hope someone can help with this task. I have a menu with 3
selections. Upon selecting any of the selections, the current window
(frame?) is split into 2 frames. The top frame is the button frame
(ie it contains 1 button), and the bottom frame is the Details frame.
In the frame button, users may enter information which is passed to
the Details frame, etc

The button frame is called button.asp and the bottom frame is called
detail.asp. The button frame is used to perform a retrieve (against
MSSQL) in the bottom frame.

The layout of the frames are setup the way I expect it.

The problem I'm having is I that when I enter a search string, I not
sure how the button frame communicates with the details frame. Ie if
I enter ABC and press Search, then I'd like "ABC" to be passed to the
details frame.

All works well if I embedd the button frame to the details frame.

Any help is greatly appreciated.
regards.

Re: Passing a search string from one frame to another

am 23.10.2007 23:08:31 von TravisNewbury

On Oct 23, 1:49 pm, LetMeDoIt wrote:
> Greetings,
> Hope someone can help with this task.
> Any help is greatly appreciated.

I have created a Flash object that can communicated between instances
of itself. That is you can have one of the object in one browser and
another in a completely different browser or the same browser and
different frames, or different browsers and different frames all at
the same time. Any freaking combination of browsers and frames can
talk to each other. Anyway...

This allows a rather simple means of communicating between instances
of web pages. If you own both domains, or can put XML files in the
root of them, then you can even have them pass information between
domains

For the most part it is all just basic Flash Actionscript. But when
you need different pages to communicate in real time with other pages
or domains, it make for some very easy javascript. The best part is
probably the cross domain communications which I believe is against
the javascript rules.

Would something like this work?

Re: Passing a search string from one frame to another

am 24.10.2007 14:09:27 von LetMeDoIt

Any chance you can send a sample code in Javascript? I can give that
a shot. Keep in mind that what I'm trying to do is real simple, and
basically all I'm doing to trying to pass one string entered in one
frame into another frame. Cookies are out of the question (most users
here cannot write to their own HD). Thanks a mil.

Re: Passing a search string from one frame to another

am 24.10.2007 23:00:58 von LetMeDoIt

OK, it's 'almost' working but not quite there yet. I'm expecting to
see data returned in in strURL or in "search". this is my code:

file is called button.asp:


onClick="parent.frames[1].location='retrieve.asp';" />



and the retrieve.asp file contains :
....
strURL = Request.ServerVariables("URL")
Response.Write "VALUE IS... " & search & "
"
....

nothing is being returned in strURL... what am I doing wrong? Many
THanks.

Re: Passing a search string from one frame to another

am 25.10.2007 11:45:57 von Andy Dingley

On 23 Oct, 18:49, LetMeDoIt wrote:

> The problem I'm having is I that when I enter a search string, I not
> sure how the button frame communicates with the details frame.

Trivial JavaScript, that access other frames through the DOM. You
might find examples of this by web searching, but most web JS code
libraries are abysmally poor quality. A posting to
comp.lang.javascript might give you some better practice.

On the whole though, throw away your frames and start again. If you're
not using JS, then frames have some advantages to offer (and a whole
load of disadvantages). Once you've accepted the use of JS though, you
can do a whole pile of different techniques that aren't based around
frames and let you avoid their problems. Some of these would use AJAX
(retrieving your datasets by XML or maybe JSON) others might use an