|
Hi..
Im using IFrame as my body in my aspx page to generate Emails. To edit IFrame i just wrote the following code in Javascript..
IFrame1.document.designMode="On";
After this line is executed the Iframe is editable and i can type any text inside iframe.
Now Im using VBScript to create a word application as an object for spell checking. In this case I need to pass the Text of the iframe as a parameter value to VBScript funtion i wrote.
The issue is i cant get the Value or text inside the IFrame using VBScript.
i wrote the above code in VBScript Function but it is not getting the text inside the iframe.
set Ctrl = document.getElementById("IFrame1")
MsgBox(Ctrl.innerText)
How to get the value or innertext of the iframe using vbscript or the other way is how can i create a word as an object and using that object how can i spell check in Javascript?
pl. help me in this issue. im working for this for the past 1 week. its urgent.
Thanks in advance
Selvaganesh.G
|
|
|
|
|
I believe that you can do this by using the frames collection. Here's how (assuming that your frame has an id of IFrame1):
alert(document.frames("IFrame1").document.forms("Form1").elements("myTextBox").value)
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
Thanks For your Immediate Responce.
But i ll tell u my clear cut Scenario.I just want the inner text that i wrote inside the IFrame. (i,e)I just made the IFrame itself as a Text Editor by giving IFrame1.DesignerMode="On". I can simply type anything inside the IFrame.
The Issue is I cannot Retrive the text what i typed Inside the Iframe Using "VBScript". In javascript i retrived the innertext by using the following code successfully..
IFrame1.document.body.innerText
But I need the Code in VBScript. what u gave is a Javascript code.
and one more issue is, u gave alert(document.frames("IFrame").document.forms("Form1").....)
But since im using Content page which is created from the Master page, i dont have the Form id value for my page i use..so i cant use like document.forms("Form1")..something like tat.
please help in this issue..
Selvaganesh.G
|
|
|
|
|
Please reply me.. im waiting for your kind reply
Thanks in advance..
Selvaganesh.G
|
|
|
|
|
I tried the VB board but maybe I'll have better luck here.
I want to write a windows service application that reads a web page. That web page requires that the client can process javascript.
Has anyone successfully implemented Javascript with System.Net.WebClient?
I tried the code from the article "A simple .NET based WebClient with JavaScript support" but that code crashes with an inner JScriptException. Its acknowledged by the author and it looks like the trail ends there. According to microsoft the Microsoft.JScript.Vsa.VsaEngine used in that project is deprecated.
What is the current working solution for processing webpages in code?
This is what my code looks like. The web page at the URL I am calling uses javascript to set a cookie in order to prove that Javascript is running. It doesn't look like this code can do it. I can set cookies in advance but I can't seem to duplicate the javascipt setting a cookie. Help!
Dim webClient As Net.WebClient = New System.Net.WebClient
webClient.Credentials = System.Net.CredentialCache.DefaultCredentials
webClient.Headers.Add("user-agent", "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; .NET CLR 1.0.3705")
webClient.Headers.Add(Net.HttpRequestHeader.Cookie, "aCookie:aCokievalue")
Try
Dim data As Stream = webClient.OpenRead(sURL)
Dim reader As New StreamReader(data)
Dim s As String = reader.ReadToEnd()
'response = webClient.DownloadData(sURL)
'Return Encoding.ASCII.GetString(response)
Return s
Catch ex As Exception
Return ""
End Try
|
|
|
|
|
Could you use the JScriptCodeProvider[^] class for this?
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
I have a PC program that updates via a web service. It has been working just fine for my users for a while, but now I have one user who is getting this error:
Remote server return an error 405 method not allowed.
I'm able to run the exact same web service as this user, but I do not get the error. So I'm thinking it's a setting on his machine or through his internet provider. Where can I even start to narrow it down? Anyone have any ideas?
I would appreciate any advice you could give me.
|
|
|
|
|
Have you checked that his firewall isn't getting in the way?
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
Hi,
Can anybody tell me how to add support for a new languages without ever recompiling the neutral assembly that contains all the application code.After deploying the application I created a satlite assembly for a new language and uploaded to the bin directory of the application.But if I change the application culture it is not reading the values form the new satlite assembly.
Thanks&Regards,
Prajin
|
|
|
|
|
No cross posting.
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
And a bit of emphasis on SpellCheck before submission also would help him. Isn't it?
|
|
|
|
|
Four posts in three forums...you are not going to make friends that way.
_____________________________________________
Flea Market! It's just like...it's just like...A MINI-MALL!
|
|
|
|
|
|
Dont know that it is a crime. Any comment on the question asked???
|
|
|
|
|
When you spam the boards, the replies you get asking you not to, tend to decrease the odds of a meaningful reply. One more reason to only ask in the right forum.
Christian Graus - Microsoft MVP - C++
"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 need to know if i host my website including some meta content,google or yahoo searching engine catch my url directly, please i need some answer cause when i asked a hosting company they told me they want 600$ to do that and i knew that i can do it for free
thank in advance
bachirium
|
|
|
|
|
The issue you are talking about is called Search Engine Optimisation (SEO), and while some companies charge you for this advice there are plenty of articles on it. You may want to start here[^] to get more information.
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
They call it as Search Engine Optimization and rate card for each of the organization that offers this service widely varies. But with little effort, you can optimize your search to a greater extent. You can Google for SEO related articles and they are aplenty.
|
|
|
|
|
|
i want to know more about chm files(its structure and how to generate it).
i want to generate it without any other program. just by windows tools or by developing language(C#.net). i'm programmer and i know that but i want to know from where to start...
thanks
Thanks
Rastgar
|
|
|
|
|
I think that you need the chm compiler from microsoft to create the chm file. The html code that goes in it can of course be created anyway you like.
Some reading:
wikipedia: chm[^]
---
single minded; short sighted; long gone;
|
|
|
|
|
|
|
If anyone has experienced similar problems and has spotted a solution, please help me out as I'm running out of hair to pull off.
when visiting here[^] and clicking on "Articles" on the left menu, then hitting the back browser causes the web page to lose alignment temporarily until refreshed.
This has been noticed on Firefox 2.0.0.x (including the latest 2.0.0.5)
It's a Joomla CMS (PHP based cms) and custom made template.
Any ideas?
Thanks in advance.
|
|
|
|
|
I just tried it with no problems, maybe its only on your system?
"Okay, I give up: which is NOT a real programming language????"
Michael Bergman
|
|
|
|