Javascript Executing A Foreign Application Possible ?

May 4, 2007

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 ?

View 4 Replies


ADVERTISEMENT

Problem Display Foreign Characters In Javascript Country/region Dropdown ...

Oct 16, 2006

Initially the form is loaded using ASP and HTML and the ü codes
display the characters correctly. I have the values stored in a
javascript array so that I can more easily and dynamically change the
state/region dropdown when the country changes. However, when my
javascript code tries to add the new option and print out new region
the literal value such as "Würrtemberg" is displayed instead of
the special character.

Can this be done in javascript?

View 6 Replies View Related

Text/javascript, Application/x-javascript, Difference?

Feb 19, 2007

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?

View 12 Replies View Related

Executing VB Via JavaScript

Aug 2, 2007

I am using an ASP.NET AJAX control (ValidatorCallout) that requires
client-side validation to work with a custom validator I added. This
is an example of some code that works:

<asp:CustomValidator ID="CV_PartNumberExists" runat="server"

ClientValidationFunction="CheckPrime"
ControlToValidate="PartNumberText" ErrorMessage="b><br />A Part
Number is required."></asp:CustomValidator>
<script language="JavaScript">
<!--
function CheckPrime(sender, args)
{
var iPrime = parseInt(args.Value);
var iSqrt = parseInt(Math.sqrt(iPrime));

for (var iLoop=2; iLoop<=iSqrt; iLoop++)
if (iPrime % iLoop == 0)
{
args.IsValid = false;
return;
}

args.IsValid = true;
}

This is code I borrowed from another site to test this method - and it
works. My problem is that I need the JS to execute a VB function in
my project and I don't know how to do that. I want to do something
like:

function CheckValue(sender, args)
{
var sPartnumber = String(args.Value);
if FindExistingPN(sPartNumber)
{
args.IsValid = false;
return;
}
args.IsValid = true;
}

....where FindExistingPN is a funciton in my VB class. I have seen
some other posts about this, but none of them really gave me any
sample code that I could run. As I mentioned earlier, my JS skills
are lacking, so I am unable to create this myself.

View 3 Replies View Related

Javascript IE + Word.application

Jul 23, 2005

Is there any way for me to capture the DocumentBeforeSave event with an ActiveXObject("Word.Application") via Javascript in IE?

View 1 Replies View Related

Executing Bat File In Javascript

Jul 23, 2005

I'm trying to execute a bat file on the server in javascript. The javascript sits on the server as well. I'm currently using:

document.location.href='testme.bat'

However the only thing it does is just opens up the bat file and shows my bat code in the browser. How can I execute the batch file instead of opening it and viewing it in the browser?

View 5 Replies View Related

Debug Javascript In A JSP Web Application?

Sep 29, 2005

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?

View 2 Replies View Related

Using Javascript To Open An Application

Mar 27, 2001

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?

View 6 Replies View Related

MSIE Stopped Executing Javascript!

Jul 23, 2005

For some god-forsaken reason (which I can't find out either) MSIE
stopped executing any JavaScripts. In any page which contains
JavaScript code, that code won't be executed. There are no error
messages, no warnings, nothing. It simply does'nt work. I'm pretty sure
this could be caused by some stupid installation of another program
that messed up some IE settings.

Security settings for IE are all lowered down. Everything is activated
(Scripts, ActiveX, automatic download of anything, anytime)... so we
ran out of ideas of what could be the problem. And yes, we have also
tried to reinstall IE.

The only clue we have is that a local Administrator user can change IT
security settings for himself and (go figure) things work fine! The
problem occurs with users that have limted access to the computer and I
am pretty sure this shouldn't happen. If you are wondering... yes...
the local administrator has already tried to change the settings for
limited user account..

View 20 Replies View Related

Prevent A Javascript Function From Executing Twice

Jul 23, 2005

I have a select dropdown and 5 text fields. based on the option
selected (which are the units - cm/mm/inches/ft/yard etc), i change
the values in the text fields using javascript to the corresponding
units.

my problem is that when the options are selected very quickly(for eg
using the keyboard's up/down keys) then quickly, the text field values
lose their connection with the select box and the values become
illegal.

I suspect that the javascript function is being called even before the
earlier execution has not terminated. I tried using a global variable and using it as a lock, but still no success.

View 1 Replies View Related

How To Prevent JavaScript From Executing In An Iframe

Aug 31, 2005

Is there some way from preventing the JavaScript code in a document loaded into an iframe from executing? I don't have access to the pages being loaded into the i-frame so I can't modify then. They are being loaded from a server.

View 4 Replies View Related

Executing JavaScript Inserted Via .innerHTML

Nov 7, 2005

What I am trying to do is dynamically update an image and image map on
a page. I'd like the update to happen as quickly as possible and be
done without refreshing the page. The catch is that the image map uses
the wz_tooltip.js (http://www.walterzorn.com/tooltip/tooltip_e.htm)
library to display a JavaScript tooltip containing detailed information
about different areas of the image. So, when I pass the required
<script> tags via .innerHTML, the browser treats it as text and does
not interpret the JavaScript and execute the code.

My code looks something like this:

View 5 Replies View Related

Analysing Flow Of A Javascript Application

Sep 8, 2006

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?

View 3 Replies View Related

How To Execute An External Java Application By Javascript?

Jul 23, 2005

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.

View 1 Replies View Related

HTML Application - Can Javascript Write To A Local Database?

Jul 23, 2005

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.

View 9 Replies View Related

How Can We Stop IE From Executing Javascript On A Back Button Click

Nov 14, 2007

Basically, I have a page that I load with 10 input fields. If users
have JS enabled I want to hide 5 of these fields so as to reduce
clutter. If the user needs these extra fields an "Add" button can be
used to display the hidden fields one by one.

Once the fields a filled in the user submits them for validation and
if there are any error They can "Go back" to make some changes. The
whole process works great in FF & Opera but IE lets me down because if
you use the Browser "Back" button the Javavscript gets executed even
though it should be loaded out of cache.

View 3 Replies View Related

Trying To Use The GoTo Method Of The Word.Application ActiveX Object In JavaScript

Dec 11, 2006

I 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');
}

View 6 Replies View Related

Dynamical Loading Of Html Files And Executing Of Its Javascript Content.

May 30, 2007

i'm using a little "ajax" loader script to dynamically load files into
different "div" tags on my main site. the code for this part looks
like:

View 13 Replies View Related

Save Foreign URL Content In String?

Mar 13, 2011

I want to save an foreign url source code in a string and further search trought this string for specific words. Is it possible?

it works with google apps script like so:

var response = UrlFetchApp.fetch("http://www.google.com/");
Browser.msgBox(response.getContentText());

View 2 Replies View Related

Foreign Langauge Arrray Element Separator

May 24, 2006

When I create an array I use commas as the separator between elements of
the array e.g [1.1, 2.2, 3.3] but what happens with languages that use
commas as a number's "decimal point"? e.g. [1,1, 2,2 , 3,3] is now a 6
element array.

View 4 Replies View Related

Checking Element Existance In Foreign Page

Jun 5, 2010

[code]so now if url is xyz.html, the i'm getting the content of that page through AJAX and loading it to a DIV element(x).....and then accessing the div elements "name","category" etc.,but if urls point to heavy pages, it's slow process to do this work. so I WANT TO CHECK WHETHER THOSE DIV ID's EXIST IN THAT PAGE OR NOT WITHOUT LOADING THEM and then GET THEIR VALUES IF EXISTS.

View 3 Replies View Related

How To Make A Function Click On A Picture In An Iframe Including A Foreign Web Page

Apr 14, 2007

i need to do a click on a picture in an iframe without using a mouse
click because this iframe is not visible.

Thus i wrote this :

function updtframe() {
strButton = document.getElementByName("submit").value;
document.getElementById("htmle").contentWindow.document.body.innerHTML
= strButton...;
}

And there I'm stopped idon't know how to make a click.

View 1 Replies View Related

JS Not Executing?

May 30, 2011

i have this code:

if (($has_freechat1['confirmed'] == 1) && ($has_freechat2['confirmed'] == 1))
{
$was_clicked = 0;

[code]....

View 5 Replies View Related

Multilanguage Application

May 25, 2006

I 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?

View 2 Replies View Related

Executing/calling A Url

Nov 14, 2006

I have a perl script running on my server on a chosen port, and I want to be able to execute functions that this script provides from inside Javascript functions.

For example, I need to call ....

View 3 Replies View Related

Application Planner

Sep 3, 2007

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.

View 4 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved