change the document object value

This is a discussion on "change the document object value" within the JavaScript Forum section. This forum, and the thread "change the document object value are both part of the Program Your Website category.



Go Back   Webforumz.com > Main Forums > Program Your Website > JavaScript Forum

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Dec 28th, 2007, 18:56
New Member
Join Date: Dec 2007
Location: LIS
Age: 28
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
change the document object value

hi,
i using this code to change the value of a textfield

function carregar() {
top.window.objecto.value="asd";
}
this work in ie 6 with no problems but in firefox this dont work
how can i put this working in firefox too?
the objetive is click inside a iframe and they change the textvalue that is outside of that iframe
thanks a lot for your help
Reply With Quote

  #2 (permalink)  
Old Dec 28th, 2007, 21:07
Highly Reputable Member
Join Date: Sep 2007
Age: 15
Posts: 717
Blog Entries: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Re: change the document object value

It looks like you're using JavaScript. Please post questions about JavaScript in the JavaScript Forum. Thanks!
Last Blog Entry: Windows Vista vs. Mac Leopard (Nov 4th, 2007)
Reply With Quote
  #3 (permalink)  
Old Dec 29th, 2007, 07:13
Rakuli's Avatar
SuperMember

SuperMember
Join Date: Sep 2007
Location: Australia
Age: 24
Posts: 956
Blog Entries: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Re: change the document object value

When you're referring to another window, you can drop the reference to "window"

Code: Select all
function carregar() { 
top.objecto.value="asd"; 
}
Last Blog Entry: The wannabe juggler's quest (Oct 27th, 2007)
Reply With Quote
Reply

Thread Tools

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
document.getElementById and document.getElementByName is not working in FF dhineraj JavaScript Forum 3 Jul 26th, 2007 20:23
Object ID firefox help russtuk Web Page Design 1 May 21st, 2007 15:21
ufo object issue in IE jwalker80 JavaScript Forum 0 Feb 25th, 2007 14:14
Object Detection RobinDeanDotCom JavaScript Forum 4 Sep 11th, 2006 18:30


All times are GMT. The time now is 05:50.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43