| Forum Home | ||||
| Press F1 | ||||
| Thread ID: 34135 | 2003-06-05 05:26:00 | java script | das1 (3033) | Press F1 |
| Post ID | Timestamp | Content | User | ||
| 149896 | 2003-06-05 05:26:00 | Hi, I have a command in a menu that takes me from page to page (within a 'frame' environment'), but there is one instance when it needs to go to a page on its own (I think it can be termed a 'parent' page). __________________________________________________ ___ The command line that I have at the moment is: - dhtmlMenu.addItem(new NavBarMenuItem("Start", "../index.htm")); this gets 'index' within the frame which is not what I want __________________________________________________ ____ The suggested solution I had from Dynamic Drive (which is where the menu code came from), was along the lines of the following example:- parent.framename.location='http://dynamicdrive.com' Leave everything surrounding the URL as is within the script __________________________________________________ _ Unfortunately I am not at all well versed in java (infact I havn't a clue!), and cannot get my head around it. All help desperately sought Many Thanks . David |
das1 (3033) | ||
| 149897 | 2003-06-05 09:31:00 | javascript aint my thing either, how does it work?(your script) | |^^^BS^^^| (3915) | ||
| 149898 | 2003-06-05 09:34:00 | > Unfortunat ely I am not at all well versed in java Javascript and java are quite different :D Try looking at DHTMLCentral for some good menu scripts (best I've seen) and examples on how to get them all to work properly. BTW when you're there try moving the little "windows" around on the page, or maximising or minimising them :) shows some interesting things you can do with DHTML. Mike. |
Mike (15) | ||
| 149899 | 2003-06-05 22:20:00 | The following is the actual active command Start", "../index.htm which takes the person onto the page called Index when clicked on David |
das1 (3033) | ||
| 149900 | 2003-06-05 22:21:00 | Mike, Thanks for the suggestion, I will give it a go Enjoy David |
das1 (3033) | ||
| 149901 | 2003-06-05 22:25:00 | Hi, DHTMLCentral is where I got the script i am using, it is good but this one aspect has me beat and their explaination ( listed in my enquirey) I could not followEnjoy David |
das1 (3033) | ||
| 149902 | 2003-06-06 02:48:00 | I've not worked much with frames as I dislike using them. When you have 2 frames, a banner page on top and main below, there's actually 3 pages used, one that stores the information for the frames and the other two pages that display what's in them. What you want to do is write the script to either remove the frames or open it in a new page without frames. There are possibly more ways to do this. If you give me a link to what source you are using I'd be willing to look over it. |
Kame (312) | ||
| 149903 | 2003-06-06 03:21:00 | Read (developer.irt.org) and experiment | Merlin (503) | ||
| 149904 | 2003-06-07 23:38:00 | Kame, Thanks for that offer, the whole thing is as yet on my computer as I am re-hashing following site which has grown like topsy and "is as it is" , because I was asked to do it but had NEVER done a web site. I have learnt a bit and now have a much much tidier version ready to go (except for this problem) An example of the the page I wish to go from is at www.yacht.org.nz The page I wish to go to is www.yacht.org.nz Your help is gratefully acknowleged. David |
das1 (3033) | ||
| 149905 | 2003-06-07 23:56:00 | At that DHTMLCentral or other similar sites there should be available a script called a "framebreaker" - put that into your index.htm file to make it break out of any frames it gets stuck in. Mike. |
Mike (15) | ||
| 1 2 | |||||