Jump to content

Recommended Posts

Posted

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.

Posted

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?

Posted (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 :P

Edited by arvind2100
Posted

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.

Posted

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.

Posted

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:"

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...