Javascript IE + Word.application
Jul 23, 2005Is there any way for me to capture the DocumentBeforeSave event with an ActiveXObject("Word.Application") via Javascript in IE?
View 1 RepliesIs there any way for me to capture the DocumentBeforeSave event with an ActiveXObject("Word.Application") via Javascript in IE?
View 1 RepliesI am trying to use the Goto method of the Word ActiveX object. I am
trying to open a document and go to a named bookmark. If I use this
code in VB it works, so I'm sure the approach is possible, I just can't
get JavaScript to work with it.
Here is the code I am using, the error I get from IE is Object
Expected:
Hope someone can help! Any help would be much appreciated
function PageLoad()
{
var WordApp = new ActiveXObject('Word.Application');
WordApp.Visible = true;
var documentlocation = crmForm.all.new_documentlocation.DataValue;
var wd = WordApp.Documents.Open(documentlocation);
wd.Select();
var Name = 'TestFred'
var wr = wd.Selection.GoTo(What : Word.WdGoToItem.wdGoToBookmark,Name :
'TestFred');
}
two possibilities or the attribute type of script:
text/javascript (the one i usually use) application/x-javascript
what are the differencies between both?
depends on the html content?
for example html 4.0.1 versus xhtml 1.1?
Is there any way to debug javascript in a web application? When I
develop JSP pages, and it has the javascript code in it. The problem is
the debugger in Java IDE (WSAD in my case) can only debug Java code but
not Javascript code.
What should I do to debug javascript code?
I need to have a way to create a link that opens a specific word document.
How can I write a javascript function to do that?
My work is putting in a large application that is basically split up
between 30 or so Javascript files. I have some security concerns about
this application.
Basic security concerns is:
1. Possible SQL injection and other forms of injection attacks on URLS
of various server side components javascript accesses.
2. possible client side database access.
3. Incorrect use of http get for operations with possible side effects.
The security problems are probably relatively harmless. Mainly because
the application should be running behind firewall.
However I would like to have an analysis tool that can go over the
javascript code and allow me to see what urls are being called with
what parameters.
Javascript that writes new javascript into page (so I can get all
javascript files of application for analysis)
I know there are various javascript profilers and the like, anything
out there that helps in the analysis of this kind of application?
I have an application in the form of "*.exe" file and i need to
execute this and evaluate the returned values within Javascript.
Is this possible ?
I am writing a java application as a mozilla extension.
Because mozilla uses javascript for the frontend,
i need the javascript to call my external java application
and pass one parameter to it.
IE 6.0 (not interested in other browsers at the moment)
I have looked everywhere I can find to look and googled until I am
cross-eyed and am hoping somebody knows what I'm doing wrong.
I have an HTML application (.hta) working fine, except one thing. I'm
trying to write to a local database from a .htm window (opened from
the main .hta window) and it doesn't work with any of the combinations
I've tried (and I admit to having tried a lot).
Here is one method I've tried:
strSQL = "Update myTable SET myField = 'myValue' WHERE myID = 12;"
var db = new ActiveXObject("ADODB.Connection");
db.Provider = "Microsoft.Jet.OLEDB.4.0";0
db.ConnectionString = "Data Source='c:myDirectorymyDatabase.mdb'";
db.Open;
db.execute(strSQL);
I can easily access the information in the myDatabase.mdb and display
it on the screen.
I can ask for updated information to be input on the screen.
But stuffing that updated information back into the database is the
problem.
Since I'm stuck in an .htm window, I don't have VBScript available, do
I? If VBScript isn't available and it isn't physically possible with
Javascript, then I'll have to revert to .hta windows, where I know I
have VBScript available. But I'd rather do it all in Javascript
within the .htm so as to avoid the security message that pops up when
the .hta opens a new .hta. For various reasons I don't think it is
possible for me to do this whole project within a single .hta.
I mean, I've a COM object, as Word.Application. How to implement in a
javascript function for using their methods?
I am trying to find a word inside a string.the search his going fine but I need to know which word has been found in the string.
Code:
Code:
Now in the string only one value can be found at a time.So its either a1 or a2 or so on.....
I have a long paragraph and I have been asked to display words in red and green in such a way that that fist word should be red, 2nd word should be green, 3rd word should be red and 4th word should be green and so on. For example: this is just a sample.
View 3 Replies View RelatedI need to develope a multilanguage application in javascript:
is there some particular library, or do you have some
pointer to guidelines to follows: the messages should
if possible be keeped in a separate file, one for language.
Is there some standard format?
I having taken on a large project (set by myself), and I can never
seem to plan out my functions, classes, variables etc... in a format
that's easy to read, and follow.
Would anyone know of some kind of application which will allow me to
"prototype" my application first? I am sure such a thing exists, I
just don't know what I am looking for. I think I am after something
along the lines of Microsoft Visio, but a bit simpler.
I know this sounds so stupid, but it's a project that I am working on. I need to develop an application where people can upload a picture of themself and then it will add a wig to their picture over their hair.I just don't know how the code scans the uploaded photo and finds where to add the wig to the picture. The program will be really simple. No choice of wigs there is just one wig and as soon as the picture is uploaded the wig should be added and then displayed.
View 2 Replies View RelatedI am developing a web application in asp.net. In this application, i would like to disable all other tool bar other than menu bar. If you know more about the same. Please guide me to proceed further?
Note: It should work for all major browser such as IE, netscape, Mazilla, opera....
I am using ASP to make an application. What I want right now - is to
make the self updating list of the users online - based on thier
cookies. In my opinion all seems to be writen well with it's logic, but
computer thinks otherwise. I use application("loged") to store the
cookies of all users. Code:
Ineed to pass two variable in a querystring from one application (in PHP) to another (in ASP.NET). It's a one way transfer...That is I need to encrypt it in PHP and decrypt it in ASP.NET (c#). The data will be anywhere from 5 - 15 characters..only letters and numbers.
View 2 Replies View RelatedI have an application on my server that is called leaf.exe, that haves two arguments needed to run, they are: inputfile and outputfile, that will be like this example:
Code:
pnote.exe input.pnt output.txt
They are all on the same directory as my home page file(the executable and the input file). But I need that a JavaScript could run the application like that, then I want to know how could I do this.I'm using just Apache, I don't have any language for web installed on it. My goal is to do a site using just JavaScript, without the help of anyother language than it, HTML and CSS.
Is it possible to make my application always open in a new window even if IE 7 tabbed setting is set to Open links in a new tab in the current window.Always open pop-ups in a new tab.I am using the following command to open my application in new window
NewWin=window.open('my_http','_blank','toolbar=no,resizable=no,width=1150,height=810')
Which works fine as long as users dont set their IE7 tabbed setting to always open pop-ups in a new tab.
If I want to launch an application in DOS it is START notepad.exe
How do I launch the application in Javascript?
i'm only looking for someone that will want to point me in the right direction...and i'll try to do my best on my own ...we want to offer personalized tshirts...so we do need a way for the customer to choose size, color, subject and text and check all this in real time...someone that is doing something that we want is
http://www.vistaprint.com/embroidered-activewear.aspx?xnav=top#in your opininion,
I have an asp application contained within an Iframe. If the browser refreshes, the page within the Iframe reverts back to the login page and the user has to log on again.Is there a way to keep this from happening if a user clicks the refresh button on their browser?
View 3 Replies View RelatedI have a requirement in my PHP application which needs me to open a CD Burning application like NERO or others so that data can be burnt on it. I want to know how I can achieve this using PHP or Javascript or both. So that on a click of a button or any other link etc I can open the CD burning application and also can i burn data from a web page on to a cd.
View 4 Replies View RelatedI just start learning javascript and sorry if the question seem basic.
In DOS, if I write a batch file it would be START notepad.exe. This will launch the notepad application. How do you launch an application in Javascript?
I'm trying to find the best way to embed images into my application. However, I'm having a hard time finding the fast (browser-compatible) method. It is important that I find a reliable method because the application must be self-contained so it can be easily shared. Below is a sample of my current approach:
Code JavaScript:
var pictures = {
"alert.png": new Array(
new Array(-1,-1,-1,-1,-1,0,-1,1,1,1,-1,-1,-1,-1,-1,-1,-1),
[code]....
After just a few images it creates a very large javascript file. Seems like it is pretty inefficient as far as code goes.Goals of optimal approach: Must work in IE6/7 and All other modern browsers. Performance must be a high priority It will only be used for small icons Can use javascript, jquery, css, base64, or any combination.