|
Try: parent.document.getElementById("frameB").document.getElementById("textbox").value
Or even just: getElementById("textbox").value
Edit: Ok, it's been a while since i've used frames. That probably won't work, at least not without other changes. Try: parent.frames["frameB"].document.getElementById("textbox").value Last modified: 14mins after originally posted -- caveat
----
It appears that everybody is under the impression that I approve of the documentation. You probably also blame Ken Burns for supporting slavery.
--Raymond Chen on MSDN
|
|
|
|
|
Neither one works.
Using getElementById("textbox").value I get error message:
ReferenceError: getElementId is not defined.
Using parent.document.getElementById("frameB").document.getElementById("textbox").value
I get error: TypeError: parent.document.getElementById("frameB") has no properties.
|
|
|
|
|
SeeCwriter wrote: ReferenceError: getElementId is not defined.
Missing a "By" in there?
----
It appears that everybody is under the impression that I approve of the documentation. You probably also blame Ken Burns for supporting slavery.
--Raymond Chen on MSDN
|
|
|
|
|
That was a typo in my post. The code was correct.
But adding the prefix "document" makes it work.
document.getElementById("textbox").value = i; // WORKS!
Thanks!
|
|
|
|
|
Either of these should work:
document.testform.textbox.value = i;<br />
document.forms['testform'].textbox.value = i;<br />
document.getElementById('textbox').value = i;<br />
document.getElementById('testform').textbox.value = i;
Make sure that you get the case right. Javscript is case sensetive, so TextBox and textbox are not the same.
---
single minded; short sighted; long gone;
|
|
|
|
|
You're right! Thanks for the help.
Getting "document" in the place was the key.
|
|
|
|
|
A follow up question if I may. I notice that you put the strings in single-quotes. It works with either single or double quotes. Is there a reason to use one form over the other?
|
|
|
|
|
If you write code inside an html tag, it's easier to use apostrophes than quotes.
Compare this:
<input type="button" onclick="alert('Hello world.');">
To this:
<input type="button" onclick="alert("Hello world." );">
---
single minded; short sighted; long gone;
|
|
|
|
|
i want to set certain dates so my application can send email automatically on that dates on on a check box being checked
i have coding for emailing
but i cant discover my problems solution
|
|
|
|
|
This is a rather ambiguous question. Do you mean for us to write you a solution to your entire problem or would you like some help in a specific area that you just didn't fell necessary to share with us?
Let's start with what language you are using?
Brad
Australian
- Me on "Public interest"
If you actually read this let me know.
|
|
|
|
|
Bradml wrote: Let's start with what language you are using?
Well - it ain't English.
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
i m using c# in code behind.
|
|
|
|
|
Hi,
I would like to know is there any technology in .NET where web application can talk to RFID device?
Thanks
|
|
|
|
|
They broke up a month ago and don't talk anymore....
Brad
Australian
- Bradml on "The ADOTD"
Hey all, did you just use/read an acronym? Pots it HERE, at the ADOTD[^]
|
|
|
|
|
Hi,
I have problem on accesing webservices wheres the function is returning an object rather then single value.
Thanks.
|
|
|
|
|
Make sure that the returned object is serializable.
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
Hi,
I would like to know how to call the webservice (SOAP\HTTPS) over https connections in c#, please point me to the article.I'm finding articles for http but not for https.
Thank you
Mohan
|
|
|
|
|
My project involved on development N-tier architecture. Which is my client will be connect to the application server using SOAP/CORBA. I did not really understand how web services actually works.
A lot of example that I downloaded is not help me to proceed to the development phase.
Anybody know where can I refer on webservices and n-tier application?
please help. Thanks.
|
|
|
|
|
SOAP is just an XML format for passing data through HTTP. A web service is just an app that passes SOAP, and, through that, uses the web to provide functionality that is business layer orientated ( in that there's no pages, no view ).
CORBA is dead. I can't believe anyone is using it.
Neither webservices, or CORBA, are needed to write n-tiered apps, that just means that the database, the business logic and the presentation layer of the app are seperated from one another, not all in the one project.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Hi Chris,
Thanks for the reply.
I am working on Application Service Provider (SAP) project. We already developed Windows Application (.NET) which is 3-tier architecture. The requirement is to developed JAVA web application to connect to existing .NET Application has been developed.
My finding was, there is a way to enable JAVA app to access .NET app using .NET web services. But it a bit tedious to develop. I don't know what is the best solutions.
Why we need to do Java client, instead of ASP.NET, because ASP.NET unable to communicate to the external client hardware (RFID device etc.).
Please advice. Thanks.
|
|
|
|
|
A web service is your best bet, and on the .NET side, trivial to develop. Dunno about the Java side.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
|
I have a simple web page that is able to access several servers, I just set up the conection string based on a radio button list as in the following example:
Select Case RadioButtonList1.SelectedItem.Value<br />
Case "GlobaldbIBE"<br />
sqlConnString = "Data Source = 222.8.249.18; Integrated Security = False; User ID = sa; Password = ; database = GlobaldbIBE"<br />
Case "oht_dbIBE"<br />
sqlConnString = "Data Source = 222.8.249.18; Integrated Security = False; User ID = sa; Password = ; database = OHT_dbIBE"<br />
Case "KESM"<br />
sqlConnString = "Data Source = 221.14.69.102; Integrated Security = False; User ID = pad; Password = pad; database = dbIBE; Connect Timeout = 60"<br />
Case "Tianjin"<br />
sqlConnString = "Data Source = 10.192.144.21; Integrated Security = False; User ID = sa; Password = ; database = dbIBE; Connect Timeout = 60"<br />
Case "TTM"<br />
sqlConnString = "Data Source = 10.239.212.112; Integrated Security = False; User ID = sa; Password = ; database = dbIBE; Connect Timeout = 60"<br />
As far as I can tell all the servers are configured the same. I can go the the control panel on my computer and add an ODBC connection to any of the servers (using the same connection info), no problem. I can open the enterprise manager and connect to any of the servers, no problem. When I try co connect through the web application one of them fails "access denied or server does not exist"
What would be different about the way I can access the server but my web application can not? Does the web application run in a different context? why woudl that only impact one server?
The only thing I am scratching at now would be that with Enterprise manager I do get a message "code pages do not match" not sure if that is realted or not....
Any help appreciated...
|
|
|
|
|
Have you tried ping the ip address from the web server. Perhaps your web server can not reach one of the sql servers.
Ben
|
|
|
|
|
Yes I can ping it from the web server and from my development station. I can also map a drive, access it through Enterprise manager and a standard ODBC connection..
Mike
|
|
|
|