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


ADVERTISEMENT

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

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

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

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

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

Help: Program Flow When Error In Onclick Event?

Jul 23, 2005

what happens when you have an onclick event and an error occurs in it:

In an <a> element:
onclick="zoomFullExtent(); return false;"

I know that there is an error happening in zoomFullExtent. I didn't
define my own error handler, so the default one is used.(My browser is
Firefox 1.0).

I notice that when this error happens, the browser makes a request to
the server.

I thought that if an error happened in zoomFullExtent, the default
error handler would catch it, and then zoomFullExtent would return
normally. But that doesn't seem to happen. Instead the whole onclick
script returns or is aborted? And it seems to return true so that the
request is made. Is there a page where this program flow is explained?

View 4 Replies View Related

Turn Asynch Callbacks Into Synchronous Flow?

Jul 16, 2009

I need to do something unusual. Say a user is browsing my site, and before they navigate away, I need to perform some actions like logging them out, for which they would need some data from the server. On onunload, a SJAX request (AJAX with that parameter as false) is issued, code flow hangs, and when the result comes in, code flow resumes and does what it needs to. If AJAX were used, the script would unload and never get the callback. Ok. So that's what I want. The problem is that I'm dealing with something other than an XMLHttpRequest object, and I can't simply supply a false parameter to the request function. I'm looking for some way to wrap an asynchronous routine of this object into a synchronous one. If call var result = myobject.get(data_to_send), code flow here hangs WHILE myobject calls this funky XMLHttpRequest-like object in asynchronous mode, waits for the callback, the callback is called, and myobject returns the result. So code stops synchronously outside of myobject.get, but waits asynchronously inside.

View 2 Replies View Related

Flow Chart - Hiding Certain Data Until Being Clicked?

Jan 28, 2011

I am really new to coding and am trying to include a flowchart that I have created on my site. There is a series of 5 questions with 2 possible answers for each question. Can anyone help me with some coding that would let me show only the first question and based on how they answer that, the flow chart would open up to the second question and once they answer the second question, it opens up to the third question and so on?

View 4 Replies View Related

Editable DIV Shown As Page View - Overflowing Text Should Be Flow To Another Div

Jun 15, 2011

I've a div that is editable (contentEditable = true). The div has a fixed size like a letter page. When the user has written so much text that the text overflows I want add a new div above and let flow the overflown text in the other div. (it's the some behavior like MS Word in page view, but now it is in the web)

It is possible to do something like this in the web?

One way to implement this is to check if the text of the div overflows (I've found java script examples in the web which do that). And than I need the text that overflows to move it to the next div. But I have not found a function that do this. Is there such a function?

Another way is to insert a gap at that position a new page begins and use an background image that looks like a page border. With this solution, the whole text is in one div but it looks like floating to another page. But therefore, I have to add a gap between to lines at a specific position (the page border/margin and the gab between the pages). Does anyone have an idea how to realize this?

View 4 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

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

Application Add Wig To Face

Jan 13, 2010

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 Related

Is It Possible To Disable Toolbars In My (asp.net) Web Application?

Oct 30, 2006

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

View 1 Replies View Related

AJAX And Application Variable (ASP)

Nov 14, 2006

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:

View 5 Replies View Related

JQuery :: Querystring From One Application To Another?

Oct 19, 2011

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 Related

Execute A Application On The Server?

May 2, 2010

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

View 6 Replies View Related

Make My Application Always Run In New Window?

May 5, 2009

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.

View 2 Replies View Related

Launch An Application In Script?

Mar 25, 2010

If I want to launch an application in DOS it is START notepad.exe

How do I launch the application in Javascript?

View 3 Replies View Related

Realtime Graphic Web Application?

Jun 9, 2011

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,

View 4 Replies View Related

Asp Application Contained Within An Iframe?

Mar 14, 2007

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 Related

Opening CD Burning Application Through PHP

Jun 30, 2009

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

Script To Open An Application?

Mar 25, 2010

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

View 6 Replies View Related







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