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:
Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here
  #1  
Old July 21st, 2004, 03:20 PM
shawn shawn is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jul 2004
Posts: 24 shawn User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Frames and such.

I have a problem using frames.

I have my initial login page setting up the frameset. I have two frames, one is the main screen, the other a background frame that is hidden. The background frame I use to do calculations and such to update fields in the visible frame.

The problem I am having now is that the hidden frame doesn't seem to thing that there is another frame. It returns an error.

frame names are 'mainFrame' and 'hidden'

I have changed the rows to be 90,10 so that I can visibly see that the page has two frames. And it does. I can display a new page in the hidden frame, but it won't allow me to update the fields in the mainFrame.

I am using top.mainFrame.document.form.txtSize.value = some calculated value
to change the value.

From the mainFrame, I can top.document.hidden.location="blah.cfm" and it will redirect the hidden frame to that page.
But that page contains the top.mainFrame.document.formname.txtSize.value statement...the error is because top.mainFrame.document.formname is Null or invalid



I am wondering if this is a common frames problem and I just did something stupid, or if I need to do something else to get it to work. Is there a way to display what frames you have when the page loads? Sort of like a dump?

Any help is appreciated. Thanks in advance.

Reply With Quote
  #2  
Old July 21st, 2004, 03:26 PM
dhouston's Avatar
dhouston dhouston is offline
Contributing User
Dev Articles Beginner (1000 - 1499 posts)
 
Join Date: May 2003
Location: Tennessee
Posts: 1,355 dhouston User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
Send a message via ICQ to dhouston
Why not ditch frames and use js to do the calculations?
__________________
Please don't PM me asking for solutions outside the scope of a thread.
Keeping all responses in a thread stands to help others who come along later,
which is after all what this forum's all about.

Reply With Quote
  #3  
Old July 21st, 2004, 03:33 PM
shawn shawn is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jul 2004
Posts: 24 shawn User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
The main reason was that I am doing Cold Fusion, and I needed a query for the javascript.
But for this specific page, I think I can get away with not using a frame.

So I'll try a work-around for now.

Thanks.


Shawn.

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingJavaScript Development > Frames and such.


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 | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway