JavaScript Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 



Go Back   Dev Articles Community ForumsProgrammingJavaScript Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old October 7th, 2003, 01:02 PM
adurstew's Avatar
adurstew adurstew is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Oct 2002
Location: Charlotte, NC
Posts: 114 adurstew User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 m 33 sec
Reputation Power: 16
Send a message via AIM to adurstew Send a message via Yahoo to adurstew
ASP/Javascript question

Hi!

I have 3 frame (top, middle,bottom). The middle page opens a popup after 2 minutes. The popup box is supposed to submit a form (named form) on it's opening page after 2 more minutes.

My problem is when I try to submit that form from the popup I get the object not found or supported error.

The code I am using to get the middle pages form to submit from the popup is . . .

Code:
opener.document.form.submit();


Any ideas?
Andrew

Reply With Quote
  #2  
Old October 7th, 2003, 01:27 PM
rdoekes rdoekes is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jul 2002
Location: Strasbourg, France
Posts: 181 rdoekes User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 m 20 sec
Reputation Power: 17
Send a message via AIM to rdoekes Send a message via Yahoo to rdoekes
Code:
opener.parent.frames["middle_frame"].form.submit()
__________________
- Rogier Doekes

Reply With Quote
  #3  
Old October 7th, 2003, 01:29 PM
adurstew's Avatar
adurstew adurstew is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Oct 2002
Location: Charlotte, NC
Posts: 114 adurstew User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 m 33 sec
Reputation Power: 16
Send a message via AIM to adurstew Send a message via Yahoo to adurstew
When using that code I get;

Object doesn't support this property or method

Any ideas?
Andrew

Reply With Quote
  #4  
Old October 7th, 2003, 02:02 PM
rdoekes rdoekes is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jul 2002
Location: Strasbourg, France
Posts: 181 rdoekes User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 m 20 sec
Reputation Power: 17
Send a message via AIM to rdoekes Send a message via Yahoo to rdoekes
Code:
window.opener.parent.frames["middle_frame"].document.forms["name_form"].submit()

that's the best I can do.

Reply With Quote
  #5  
Old October 7th, 2003, 02:11 PM
adurstew's Avatar
adurstew adurstew is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Oct 2002
Location: Charlotte, NC
Posts: 114 adurstew User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 m 33 sec
Reputation Power: 16
Send a message via AIM to adurstew Send a message via Yahoo to adurstew
I got the same error. Might there be something that I am missing on the frame pages themselfs?

Andrew

Reply With Quote
  #6  
Old October 7th, 2003, 02:19 PM
rdoekes rdoekes is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jul 2002
Location: Strasbourg, France
Posts: 181 rdoekes User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 m 20 sec
Reputation Power: 17
Send a message via AIM to rdoekes Send a message via Yahoo to rdoekes
did you name the frames on the frameset page?

Reply With Quote
  #7  
Old October 7th, 2003, 02:23 PM
adurstew's Avatar
adurstew adurstew is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Oct 2002
Location: Charlotte, NC
Posts: 114 adurstew User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 m 33 sec
Reputation Power: 16
Send a message via AIM to adurstew Send a message via Yahoo to adurstew
Yes, here's the code for that...

Code:
Response.Write "<frame src=""multi.asp"" name=""mainFrame"">" & chr(13)


I have been replacing your ["middle_frame"] with ["mainFrame"]

Andrew

Reply With Quote
  #8  
Old May 27th, 2005, 02:27 AM
grotgod grotgod is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: May 2005
Posts: 3 grotgod User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 m 8 sec
Reputation Power: 0
The same here

Have you been able to reslove your problem? I have also tried the code as suggested above and reached the same deadlock.

Reply With Quote
  #9  
Old May 27th, 2005, 02:44 AM
grotgod grotgod is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: May 2005
Posts: 3 grotgod User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 m 8 sec
Reputation Power: 0
Maybe...

Follow me on this. I admit that I am propably barking up the wrong tree but anyway.

When attempting to refrence a function from a pop-up (where the function is located in the "opener" document inside a frame) through the standard - window.opener.my_function() method, I get an "Object does not support...." error.

I had a look at the following - window.opener.name - and this returned "mainFrame". Thus - window.opener - was actually refrencing the frame. Not the document loaded inside the frame. In other words the basic code attributed to the frame itself rather than the document that exists inside the frame that created the pop-up and has the function I'm trieng to access.

When working outside frames, it's a walk in the park.Tricky one this though.

When working outside frames, it's a walk in the park.

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingJavaScript Development > DOM frame/window/opener reference problem


Developer Shed Advertisers and Affiliates


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.

© 2003-2018 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap