arvind Posted August 27, 2004 Posted August 27, 2004 I'm desparate I’m struggling, struggling. Let me lay out what I wish to do and you Javascript writers tell me whether it is possible. For browsers that don’t support content loading in sidebars (eg Opera or Safari) I have created a frames version of MT/WP Tabs. Now I wish to take it to the next level. When someone clicks the bookmarklet for the frames version, I want the current page to appear in the main (right hand side) content with the MT/WP Tabs appearing in the left “sidebar” If you manage to figure out how to do this I will credit you with it on all files that contain your code. Quote
borfast Posted August 27, 2004 Posted August 27, 2004 Arvind, I'm not sure I understand what you are trying to do. Tell me if this is it: People are viewing a website (any website) and they go to their bookmarks menu and select the entry for your MT/WP tabs. You want that the MT/WP tabs appear in a new frame on the left of the browser and you want the page they were viewing to stay on the right frame. Did I get it right? Quote
arvind Posted August 27, 2004 Author Posted August 27, 2004 (edited) Yes that's exactly what i want. This is for browsers that don't support content in the sidebar ! There's probably some stupid easy way without requiring javascript, but I've been working on these too long to realize it lol Edited August 27, 2004 by arvind2100 Quote
borfast Posted August 27, 2004 Posted August 27, 2004 Well, if it is possible, it will require JavaScript, you won't be able to escape that, I'm pretty sure. The only way I can think of is by using JavaScript's DOM functions and properties to get the topmost window object (window.top, if I remember correctly) and create a frameset for that window object. But by doing that, you'll have a problem: the page that was being displayed will not belong to the frameset. I don't know if there's a way to make the page a part of the frameset without reloading the whole page... Here's a link to a page in Google's cache about "Setting Frameset Specifications Dynamically" to get you started. Quote
arvind Posted August 28, 2004 Author Posted August 28, 2004 I don't mind re-loading the whole page if there's an easier way to do it... Quote
borfast Posted August 28, 2004 Posted August 28, 2004 It's not easier, it's the same thing. I never even tried it, it was just a thought, so I'm not even sure if it is possible. The idea is to use JavaScript's DOM functions to create a new "frameset" object, insert new "frame" objects into it and assign the pages you want to those frames. Quote
TCH-Bruce Posted August 28, 2004 Posted August 28, 2004 Arvind, have a look at this javascript remote script. It may do what you are wanting to do. http://www.javascriptkit.com/javatutors/remote.shtml Quote
arvind Posted August 29, 2004 Author Posted August 29, 2004 Ooh Bruce, that's a new way of doing it but I'm not sure how it'll work with what I've got, I'll give it a shot. Raul that DOM stuff is waay to hard for me to understand how to do it, I copied a block of code from the first link you posted and it didn't work and I really didn't understand how to launch it from a bookmarklet. Would it just be like javascript with the "java script:" Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.