HI Sapna,
all you need is to reference the parent of your Results framewhich is possible by naming it or using parent property of window object:
parent PropertyThis property is a reference to the window or frame that contains the callingchild frame.Syntax: window.parent
To solve both your issues I would prefer submit files fromResults and then call parent frame's function that would submit the main fileand then redirect to desired location.
Good luck.
David Spirhanzl
SYCONIX, a.s.
Czech Republic
From: eLink Discussion: Development Discussion[mailto:development@elinkkc.opentext.com] Sent: Friday, August 28, 2009 3:04 PMTo: eLink RecipientSubject: showing and submitting page in frames in livelink
[Attachments exceeded pre-set size limits. Use the linksprovided to access]
showing and submitting page in frames in livelink
Posted by sapna.shah (Shah, Sapna) on 2009/08/28 09:01
HI, I have a RH that has a HTML that displays two frames - Search and Results. In Search frame I have an input type of FILE called fileext. The user selects an excel file from local drive and my code reads the excel fiel and writes all cell values to frmae Results dynamically. In Results frame, they upload more files from local drive. The file from Search frame and all files from Results frame has to be uploaded to Livelink when users clicks submit on Results frame.And also some data to be added to tables. I have two issues here: 1. Because I have submit on Results frame, the file selected in Search frame doesn't get uplaoded even if I pass the file.value from Search frame to Results frame. It jsut passes the local path but not the file handle requried to acutally upload the file. I know this is not an OScript thing but wanted to get some ideas if anybody did anything similar. For time being I have user select thsi file again int eh Results frame. 2. For the secodn issue, since I have my submit on Results frame and it calls a RH to do wahtever I need to do.. THe RH then has the call to navigate to soempalce in LL usign .fLocation. The problem is that the new page that LL navigate to dispalys in my Results frame keepign the top Search frame as is. it doesnt' display the new page in full screen. Any idea how can I do to kill the top frame? See attachment fro screenshot
Attachment Links:
frames issue.doc (307 KB)
[To reply to this thread, use your normal E-mail reply function.]
Discussion:
Development Discussion
Livelink Server:
knowledge-wlweb01
To Unsubscribe from this Discussion, send an e-mail to unsubscribe.development@elinkkc.opentext.com.
Maybe calling a function of parent. That function would run window.frames['Results'].document.forms['MyBrForm'].submit(); andthe control will still remain in the parent frame.
I'm not sure which part of code is in oScript and which it pureHTML and JavaScript so maybe I have misunderstood.
If it is not possible, sorry for confusing.
D.
From: eLink Discussion: Development Discussion[mailto:development@elinkkc.opentext.com] Sent: Friday, August 28, 2009 3:57 PMTo: eLink RecipientSubject: [RE] showing and submitting page in frames in livelink
[RE] showing and submitting page in frames in livelink
Posted by sapna.shah (Shah, Sapna) on 2009/08/28 09:52
In reply to: RE showing and submitting page in frames in livelink
Posted by david.spirhanzl@syconix.cz (Spirhanzl, David) on 2009/08/28 09:25
Hi David, Sorry I don't understand it very clearly.. for the first suggestion, window.parent where do I use it?? I dont' have an otpion in OScritp to use it, after form is submitted.. For 2 point, In my html, i have parent.frames['Results'].document.forms['MyBrForm'].submit(); Tis calls my RH to desired things.. At this point the control is back to RH. How can I also call parent frames function at the same time?? Can you pelase give more details if possible. many thanks sapna
Topic: