»
 

Go Back   ResellerRatings Store Ratings > ResellerRatings Forums > Tech Support

Reply
 
LinkBack Thread Tools Display Modes
Old 07-17-2003, 09:15 PM   #1 (permalink)
Registered User
 
Join Date: Oct 2001
Location: TOO close to Wash DC
Posts: 7,956
vass0922 is on a distinguished road
Quick JS question

<SCRIPT LANGUAGE="JavaScript">
function EditBox5_GetValue()
{
window.opener.document.theFCO.setVarValue("tempCom ments", document.forms[0].EditBox5.value);
}
</SCRIPT>


I want to set to an object to window.opener.document.theFCO

var objFCO = ... stuff... window.opener.document.theFCO

ActiveXObject(window.opener.document.theFCO) ???

I know how to do it in VBS but JS no go

vass0922 is offline   Reply With Quote
Old 07-24-2003, 04:00 PM   #2 (permalink)
Registered User
 
Join Date: Oct 2001
Location: TOO close to Wash DC
Posts: 7,956
vass0922 is on a distinguished road
didn't realize this was a difficult question

I'm just trying to get something like

Set objFCO = window.opener.document.theFCO in JavaScript (not JScript)
__________________
<< Insert exceedingly large and overly verbose message of how 1337 you are here including full specs of every vehicle you've ever driven and PC you've owned >>
vass0922 is offline   Reply With Quote
Old 07-24-2003, 04:24 PM   #3 (permalink)
Registered User
 
Join Date: Oct 2001
Location: Alberta, Canada
Posts: 546
^hyd^ is on a distinguished road
do you just want a shorter reference to it for ease of coding? I'm pretty sure you should be able to use
var objFCO = window.opener.document.theFCO;
I know you can do it with some objects in js, but I'm not sure if it can be done with all of them.
what is 'theFCO'? a form?

how about
var objDoc = window.opener.document;
then use objDoc.theFCO
??

hhmmm, been awhile since I coded much... time for a new project!

g'luck vass! I'll check back.
^hyd^ is offline   Reply With Quote
Old 07-24-2003, 04:41 PM   #4 (permalink)
Registered User
 
Join Date: Oct 2001
Location: TOO close to Wash DC
Posts: 7,956
vass0922 is on a distinguished road
var objFCO = window.parent.frames(0).document.theFCO; worked great

Duh.. whoda thought it was actually that easy

I think I tried that eariler but probably forgot the stupid semicolon
I'm a tard

Thanks hyd

theFCO is a 3rd party ActiveX control for software called Ultimus Workflow (www.ultimus.com)
__________________
<< Insert exceedingly large and overly verbose message of how 1337 you are here including full specs of every vehicle you've ever driven and PC you've owned >>
vass0922 is offline   Reply With Quote
Old 07-27-2003, 09:26 AM   #5 (permalink)
Registered User
 
Join Date: Oct 2001
Location: Alberta, Canada
Posts: 546
^hyd^ is on a distinguished road
kewl man!

wouldn't have thought it was from the semi-colon though! but I do try to make it a habit to always use them in js.

Not positive on this, but I think that there are two options: 1: you can get away without using any semi-colons at all(other than where required, ie: for loops) 2: as soon as you use one semi-colon on one statement, you gotta use it throughout...

but hey, if it works...!

cheers!
^hyd^ is offline   Reply With Quote
Reply




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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


Most Active Discussions

Recent Discussions

All times are GMT -6. The time now is 04:49 AM.