PDA

View Full Version : JavaScript interaction with browser...


FREAKNUT
12-21-2006, 04:02 PM
I'm new to JavaScript, and as I'm reading up on it, I've got a question: Can JavaScript interact with the browser navigation buttons? I need to learn the different solutions to the browser back button issue with flash movies, and I'm wondering if it's possible to have my movie and Javascripting interact, then have my scripting send/receive values to/from the back button, browser history, etc. Is that possible?

I would like to make mention of the fact that I am aware of ExternalInterface to have JavaScript and Flash talk, so my only issue is JavaScript talking with the browser. Thanks!!

EDIT: Okay, I've been reading and now I have a more specific question. I know I can have JavaScript call information on the current browser window and history and such, but is there any way at all to allow the Java to detect when the browser's back button is clicked? Also, is there a way to have JavaScripting send URLs to the browser history (just by clicking a button I write), but without refreshing the current page? I would like to be able to generate a browser history without using hidden frames. Thanks again!

FREAKNUT
12-22-2006, 05:34 PM
I'm not sure if this is a really difficult question to give an explanation to or not, but if it is, then would someone be able to at least let me know if they know that there IS a way to do it, or know for a fact (and would be willing to bet their life on it) that there is NOT a way to do it? I don't need the steps to do it. I'd just like to know if it's possible as I'm studying more and more about JavaScript. Thanks everyone!

thematisch
10-04-2007, 11:58 AM
hey hhiii......... read ur forum!!!........ i am wrkin in the exactly similar issue........ so is it possible for ya to share som info wid me regardin this........... thanks!!!!!!!!1.......

mneil
10-05-2007, 12:01 AM
What you're looking for has a name. It's called deep linking. If you search for that you'll find a thousand answers. There is one in particular that is good that you should see first at the top of the search.

Also, javascript and flash communicate beautifully through ExternalInterce using both call and callBack. There is another, much easier but sometimes troublesome way to do this "deep linking" with something called anchor labels. It's built right into flash. Search for that and you'll find a couple of tuts. It's not hard to do but it has drawbacks not found with the true deep linking.