Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / ColdFusion / Advanced Techniques / March 2007



Tip: Looking for answers? Try searching our database.

Adding DOM element to a CF variable

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
shloime11 - 29 Mar 2007 19:27 GMT
Hi,

I would like to know if it is possible to add a DOM element to a CF variable?
Something like this:

<cfset test = opener.document.MyForm.AFormField.value>

Any help would be appreciated.

Shloime
insuractive - 29 Mar 2007 20:12 GMT
It sounds like you are confusing client-side technology and server-side
technology.

Coldfusion only deals with client-side technology - mainly information that
has been submitted via a form or url request to the server.  CF generates a
page and then presents it to the browser.  CF doesn't really have that much
interaction with the data on the page until another request comes in (i.e.
after form submission, a link is clicked, etc)

Client side technology such as JavaScript allows you to interact with the
contents of your page before the information has been sent to the server.  Your
DOM example is obviously a JavaScript address for a field on your form.  Once
you submit the form, CF will have access to it in the FORM scope structure.  
Until then, however, the only technology that can read/write to that DOM
element is client-side technologies such as JavaScript.

If you can explain a little more about what you are trying to do, we can
probably start you down the right path to figuring out what you need to do.
Azadi - 30 Mar 2007 05:09 GMT
>  Coldfusion only deals with client-side technology - mainly information that

i do believe that is a typo and you meant server-side technology :)

Signature

Azadi Saryev
Sabai-dee.com
http://www.sabai-dee.com

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.