View Full Version : getURL And framesets
gilgamix
03-30-2003, 04:08 PM
I've got a flash navigation bar set up that works perfectly, tells two other frames what very nicely.
What I cannot figure out how to do is to make the navigation bar load an entirely new frameset, and then tell certain frames what to do. I want this to happen in the same window, so the falsh movie has to close before telling the other frames what to do. Is this the problem?
Help help help.
Ricod
03-30-2003, 05:14 PM
Well, if the swf is gone before it gives instructions to the frames, it can't, right ? (I've never done this myself) What is it you want to tell the other frames ? If you want to send variables, you can do this with the getURL you use to get the new frameset, right ? Otherwise, if you have it at your disposal, you could getURL a php document and let that one take over from there.
gilgamix
03-30-2003, 05:39 PM
That is what the variables sending would require, right?
The situation is that the navigation bar doubles, at least graphically and conceptually, as the splash screen. So I want the first button on the splash screen to take one to the same frameset page as the first button in the nav bar.
Right so I have also pretty much determined it has to be done with variables but I have almost no clue how this works. Is there a resource for simple javascript functions or is there a way to do it within flash? Like I said, the nav bar is in flash and so the frameset that the splash screen will call includes a page with flash. Maybe I could write a function into the navbar that cleans up after the splash screen, as it were.
Any help would be terrific.
avatar
03-31-2003, 08:23 AM
Hi,
The situation is that the navigation bar doubles, at least graphically and conceptually, as the splash screen. So I want the first button on the splash screen to take one to the same frameset page as the first button in the nav bar.
If I figgered out the problem alright, this could be solved by using getURL("yourURL", _top); and than target the frameset you wanna load...
gilgamix
03-31-2003, 01:48 PM
Not sure I follow: The first swf is on a page with no framesets, the second swf, which is actually a similar but different swf., is in the top frame of a frameset.
Would getURL (myURL.html, _top) open an entirely new window, a sort of traffic helicopter to coordinate the move? Or would it hide a frame at the top to coordinate it?
Either way I feel as though I ought to be able to do this with javascript although I am really a javascript idiot.
I've struggled through this, having sent the pathname of the url to be loaded in the main frame of the frameset with GET.
Then there is this javascript in the frameset.html:
<script language="JavaScript" type="text/JavaScript">
<!--
function htmlUnencodeString (inputString)
{
return unescape(inputString);
}
var catcherVar = window.location.search
var categoryVar = catcherVar.substr(8)
htmlUnencodeString (categoryVar)
location.pathname = categoryVar
//-->
</script>
I'm sure I'm asking for a phonograph at a tobaconnist, but if this javascript is in anyway salvageable, any help would be appreciated.
Otherwise if I misunderstood the previous recommendation I'm sorry.
Thank you for your help, actionscript.org is unbelievable.
avatar
03-31-2003, 02:00 PM
Hi gilgamix,
Could you put an url in here so we can visualize the prob?
gilgamix
03-31-2003, 07:03 PM
Check out www.tripleentendre.com/popomomo
The first screen (green and pink) is the splash screen and has a swf. file which is almost identitical to the swf. file on the second page, (grey and pink).
The first letter on the first page links to the frameset, but does not load the correct page into the main frame. (the first letter in the swf on the second page) takes you to the right place.
The second letter is the result of three getURLs, but it opens up each URL in a different window. This sucks.
Hopefully this is a simple problem.
Thanks all for your help
avatar
04-01-2003, 06:43 AM
Hi there,
Can you send Javascript variables to an other page? I'm not sure.
I think you'd better use PHP or CFM here. Unfortunately I'm not a familiar with any of these languages. So it might be a good idea to check some other forums...
avatar
04-01-2003, 07:01 AM
Hi,
Just improved my CFM knowledge a bit :)
Put this in your swf in a .cfm page:
getUrl("yourFrameset?top=top.html&bottom=bottom.html", _top)
Put this in your Frameset
<cfoutput>
<frameset rows="80,*" frameborder="NO" border="0" framespacing="0">
<frame src="frame_#top#.html" name="topFrame" scrolling="NO" noresize >
<frame src="frame_#bottom#.html" name="mainFrame">
</frameset>
</cfoutput>
I really hope your provider supports CFM :)
gilgamix
04-01-2003, 12:34 PM
I'll check on that avatar, thanks a million.
Meanwhile, if it doesn't work I settled for the inellegant but satisfactory solution: I have eight indentical framsets with different defaults. I'd love to fiux this, mostly ourt of a sense of pride, but it works for now.
I'll check on the CFM thing, though. Thanks a ton for your help.
avatar
04-01-2003, 12:48 PM
No thanx man. I learned something too here... :D
|
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.