• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: How to approach a JavaScript-opened new window in WO
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to approach a JavaScript-opened new window in WO


  • Subject: Re: How to approach a JavaScript-opened new window in WO
  • From: Sam Barnum <email@hidden>
  • Date: Sun, 29 Feb 2004 15:26:00 -0800

I recently added a note about this in the wodev wiki site, updated for something more specific to your case.

http://wodev.spearway.com/cgi-bin/WebObjects/WODev.woa/wa/ Main?wikiPage=OpenLinkInNewWindow

Using this technique, you can bind an action method or pageName binding to a regular old WOHyperlink, and it will open in a new window. Also, it works even if javascript is disabled in the browser (just not quite as slick).

There may be issues with backtracking limits, if a user is going to click on a whole lot of thumbnails from the same page, but I haven't tested that. Might work fine. If there are issues, you should point the thumbnail links to a DirectAction.

Any improvements are appreciated, of course.


On Saturday, February 28, 2004, at 05:32 AM, Magnus Rembold wrote:

Dear List,

I am in the beginnings. It's hard. Somedays I feel fine, because something is going well, as I planned it. Somedays it's hard, because there is such a huge number of THINGS to consider and nevertheless it doesn't work the way I'd like to have it.

I am translating a website that was built using HTML/PHP/MySQL to WO. There is a page with a lot of thumbnails for picture portfolios that come out of the DB (with WO) and they should, if clicked, open a new window with specific dimensions and load a page in it, that can browse through the pictures.

It was solved by invoking a JavaScript on click to the thumbnails and giving it dimensions of the new window and PHP parameters that triggers the generic portfolio page to load the requested images into the portfolio.

Now, how to do this in WO. I have the first page working that shows all the thumbnails out of the DB. But how to trigger opening a new window with specific coordinates? Or, if I should embed the old little JavaScript to open the new window, how can I trigger the window to load my generic portfolio WOPage and how to transfer the parameters about which portfolio pictures to load?

I've got no clue.
Somebody has?

Any help, hints, or links to explanatory material are very welcome!!
Best regards,
Magnus

_______________________________________________________________________ ___________
Magnus Rembold HOCHSCHULE F\R GESTALTUNG UND KUNST Z\RICH
Dozent IT-Technologien University of Applied Sciences and Arts Zurich
School of Art and Design Zurich
Fon +41 43 446 3256
Fax +41 43 446 4587 Ausstellungsstrasse 60
http://interaction.hgkz.ch CH-8031 Z|rich
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.


References: 
 >How to approach a JavaScript-opened new window in WO (From: Magnus Rembold <email@hidden>)

  • Prev by Date: AW: Organization of Objects in Eclipse....
  • Next by Date: Two different applications on the same model & DB causes no updates
  • Previous by thread: How to approach a JavaScript-opened new window in WO
  • Next by thread: WOPopupButton Confusion...
  • Index(es):
    • Date
    • Thread