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:
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now!
  #1  
Old April 19th, 2004, 01:05 PM
jslade jslade is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2004
Posts: 2 jslade User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
referencing included forms

In IE 6 in a multiframe page I'm using:
top.parent.frame2.location.href = "sim1.htm";
to load an html form.
<FORM name="form1"><INPUT TYPE=text NAME="t1" onchange=parent.frame1.calcchange("form1")>

In calcchange I can get the value of the fields using:
data = eval ("parent.frame2."+formname+".elements[i].value")

once calcchange has been called I can set the field values with
top.parent.frame2.form1.elements[0].value = initialdata;

My problem is that trying to initialize the form fields BEFORE calcchange gets called results in:
"top.parent.frame2.form1.elements is null or not an object"

What am I missing?

Reply With Quote
  #2  
Old April 21st, 2004, 10:02 AM
jslade jslade is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2004
Posts: 2 jslade User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
I found my own answer.
<BODY onLoad="parent.frame1.init1()">
thanks for the help, everyone!

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingJavaScript Development > referencing included forms


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 5 hosted by Hostway