Hello Hadass, It is not (yet) possible to have multiple browser windows to use the same session. For this reason, when you open a new browser window, it will need to run in a new session. So how can we make sure that the user will see the right 'friend' information? By using the internal path API.
This is what I intended: The URL you pass to WAnchor should point to your application, with some extra information encoded in the URL that indicates that you want to see information regarding to your friend: http://myfriends.com/myapp/friend/hadass Using the internal path API, show hadass's information when this URL is accessed. Regards, Wim. 2010/3/18 hadass yaari <[email protected]>: > Hello Wim, > What should myFriend be - a wwidget or an application? > I want that the new window will display a page with person's info. I also > want to be able to give the page a parameter which is the person id. > How should I do that? > thank you, > Hadas >>Hello Hadass, >> >>If you use TargetNewWindow, you will have to provide an URL in your >>WAnchor, like this: >>WAnchor *a1 = new WAnchor(myFriend->url(), "GO", table->elementAt(0, 3)); >>a1->setTarget(TargetNewWindow); >> >>Is this what you're looking for? >> >>Best regards, >>Wim. > >>2010/3/17 hadass yaari <[email protected]>: >> Hello everybody, >> I want to know - how can I do that pushing a button will open a new window >> with a new page? >> I tried doing it with WAnchor instead of a button and a new open was >> opened >> but instead of the page I wanted to be displayed, the openning page of my >> application was opened. >> I did: >> WAnchor *a1 = new WAnchor("",?"GO", table->elementAt(0, 3)); >> a1->setTarget(TargetNewWindow); >> ?? ? ? ?a1->clicked().connect(SLOT(this, TravelTheNet::goToFriend)); >> how should the goToFriendis method look like? I want to display?new >> FriendPage(id) in a new window. >> Thank you very much >> Hadas >> >> >> >> ------------------------------------------------------------------------------ >> Download Intel® Parallel Studio Eval >> Try the new software tools for yourself. Speed compiling, find bugs >> proactively, and fine-tune applications for parallel performance. >> See why Intel Parallel Studio got high marks during beta. >> http://p.sf.net/sfu/intel-sw-dev >> _______________________________________________ >> witty-interest mailing list >> [email protected] >> https://lists.sourceforge.net/lists/listinfo/witty-interest >> >> > ------------------------------------------------------------------------------ > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > _______________________________________________ > witty-interest mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/witty-interest > > ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ witty-interest mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/witty-interest
