• 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: Jonathan Rochkind <email@hidden>
  • Date: Mon, 1 Mar 2004 11:28:01 -0600

Take a look at the JSModalWindow component that comes with WO (in WOExtensions). [A really strangely mis-named component, but anyway]. It does basically what you need. If it doens't do exactly what you need, Apple even gives you the source code for this component (and everything else in WOExtensions), so you can modify it if neccesary.

One warning: When dealing with multiple browser windows in WO, it can be quite a pain to avoid 'backtracked too far' exceptions. User clicks a bunch of times in one browser window, goes to click on the 'old' page still showing in the other window, and gets a 'backtracked too far' exception. I can't figure out any good general purpose solution to this problem, unfortunately. If you use all session-less direct actions, it is not relevant, since in that case you can never get 'backtracked too far' exceptions. But otherwise... I'd just test a simple version of the multiple window thing before you write too much, and make sure it's going to work for you.

--Jonathan

At 2:32 PM +0100 2/28/04, 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.


  • Prev by Date: EOModeler Question
  • Next by Date: Re: [EOModeler] Synchronize Schema error
  • Previous by thread: Re: EOModeler Question
  • Next by thread: Re: Packages in Eclipse....
  • Index(es):
    • Date
    • Thread