Ask a Question related to Macromedia Exchange Dreamweaver Extensions, Design and Development.
-
webcoder #1
Unable to read value of Text Field : Any help?
I've following DOM structure:
body
form
div1
div2
textfield
button
div3
button
etc.
[hr]
For some reason, I am unable to read the value of the textfield. What I am
doing is...on div2 I've a button, onclick this div2 is hidden & div3 comes on
the front. But, on trying to read this value of textfield...(where user is
supposed to enter value), I am trying this:
--------------------------------------------------------------------------------
--------------------------------
var divElements=document.getElementsByTagName('div');
alert(divElements[1].getElementsByTagName("input")[1].value);
--------------------------------------------------------------------------------
--------------------------------
Alert returns ampty alert. :(
What am I doing wrong?
Regards
Webcoder
webcoder Guest
-
Radio btn makes text field equal value of different text field
What I am trying to do is when someone clicks on the YES radio button I want the text field called MYTEXT to equal the text field named DATE. The... -
CS: Unable to Read .Eps and .AI Files Burned to CD
I have several eps and ai files which I have backed up to a CD. I can copy them back to my PC and have no problem accessing them. But when I try to... -
Upload (unable to read file)
hi, i´m trying to upload a file. I tried many ways but it always return the same error... Unable to open c:\file.jpg for reading. the file... -
unable to display public text field of object in ArrayList in a bound DataGrid
I have a very simple public class X, whose fields are all public. I create an ArrayList that contains a series of instances of X. Then I bind a... -
Unable to read httpcontext during session end
In my application, I have users that are registered in SQL Server. When they login, a flag is set to indicate they are logged in (dll). The... -
envision3d #2
Re: Unable to read value of Text Field : Any help?
Try something similar to:
var myDivs = dw.getDocumentDOM().getElementsByTagName("div");
paramObj.div__tag = myDivs[0];
alert(myDivs[0]);
envision3d Guest
-
webcoder #3
Re: Unable to read value of Text Field : Any help?
Hi envision3d,
Thanks for your response. I am now able to capture the values. :)
Now...interestingly I have landed in to a different problem.
Basically, I need to put a javascript on the head part of the document. So,
what I have done is:
var theHeadNode=curDOM.getElementsByTagName('head');
var rtnScript="<script content...>";
theHeadNode[0].innerHTML+=rtnScript;
Interestingly...if I keep my cursor outside the DOM (you will get clarity by
looking at the attached screenshot), it throws an error. How do I prevent this?
The line number showed in the error has following code:
theHeadNode[0].innerHTML+=rtnScript;
Can you please advise on this?
Thanks in advance.
Regards
Webcoder
PS: I have uploaded a snapshot at:
[url]http://www.innindia.com/extensions/images/dw_error.JPG[/url]
webcoder Guest



Reply With Quote

