Some JavaScript functions like window.resizeTo will work on the same browser window where the JavaScript resides. There is no parent-child relationship, like using a script with CSS to turn a DIV into a new window with specified traits. I'm wondering what jQuery functions have the same capability, and what rules govern their use? This would appear to me to be a specific category of functionality.
After posting once about this and realizing the reply would not work, I am rephrasing.
The link that will trigger the new window I want to display does not have any JavaScript or CSS capability at all. It is a hyper-linked area on a Flash object that must call a new window smaller than the Flash object (which is full screen) and re-position itself on the screen. Just self centering might work but more control would be fabulous. There is no parent-child relationship here. I can't bury a DIV inside the Flash object and then display it. I could tack variables to the URL that creates the new window, but that's all. The new/smaller/positioned window will simply display a video or image and feature a close (self-closing) link. I have enough control over what's on the Web server to do CSS styling.
Of all the approaches I've seen, jQuery seems closest. I just need some direction on which parts to study. I'd like to post a link, but if my manager sees this he'll have a total meltdown. Corporate paranoia.
My job involves digital publishing for print/paper magazines. For the Web, I convert pages into SWF (Flash) files for display in a proprietary player. The mobile device app version uses PNGs. Neither the player or app can be modified except by Development, which doesn't want to mess with this: customers are asking for a way to click a hyperlink and get a pop-up that shows video or an image. The challenge here is that I need to center or otherwise position the pop-ups, as well as control their size. I'd also like the option to style them (preferably with CSS). This is easy on a Web page where you can include JavaScript, CSS, etc.
But the way we assign links won't give me options except adding variables to a URL. This means resizing, styling, etc will have to take place inside the HTML doc first called by the link in the SWF player or the app. We tried routing those links to an HTML page that would generate a pop-up then turn itself off. But it was triggering every blocker out there and was not cross-browser (IE) compatible. Some people have suggested JQuery, but others have said I can do this with a simple JavaScript-and-CSS solution. If the latter is true, I haven't found it yet via Google. I've seen several ThisBox, ThatBox solutions that either have feature/code bloat, don't look professional, or cost too much. Tips?