javascript

IE8 window.open SSL Certificate issue

I have a web based application that uses a self signed certificate. When you log into the application, you have to accept the certificate. This is a pain, but..we are OK with that for the time being, and everything is fine. When you click on the help link, it uses java script window.open to open the help in a new window. This all works...

Javascript createElement

Hi there, I want to create inline SVG graphics using Javascript. However, it seems like createElementNS function applies some normalization and transforms all tags to lowercase. That is fine for HTML but not for XML/SVG. The NS I used is http://www.w3.org/2000/svg. In particular I have problems creating a element. As it will be appen...

Lotus Notes Xpage, how to get event handle (onKeyPress) in SSJS ?

I am new to xpages in Lotus Notes and need to work with the "onKeyPress" Event. With the following CodeSnippet Client Side Javascript works fine. if (thisEvent.keyCode!=13) { doNothing(); } How can I do the same for Server Sided Javascript (SSJS) ? I need to get a handle on the Event. ...

Synchronous AJAX requests in mobile widgets

I'm having troubles with a synchronous AJAX call in a JIL widget. Only the asynchronous version seems to work. What call types do you usually use sync or async? ...

Adding hyperlinks to a slide show using javascript

Hi, I've made a simple slide show using Javascript, but now I want to add links to the images as they slide through, so that a pdf opens in a separate window. Can anyone tell me how to do this? Here's the script I have so far. Thanks! Julia var dimages=new Array(); var numImages=3; for (i=0; i<numImages; i++) {...

Does IE9 Developer preview (Build 4, v1.9.7.9.16.6000) support the File API?

Does the latest IE9 Developer preview (Build 4, v1.9.7.9.16.6000) support the file API? The file API I am referring to is: http://www.w3.org/TR/file-upload/ Caniuse.com says the support is uknown and Wikipedia says it is not supported but doesn't specify what version of Trident it is referring to. Unfortunately I don't have a windows m...

How to set CSS property when developing for the Vodafone MWP ?

I'm working on a widget for the Vodafone Mobile Widget Platform and was trying to change some properties of a DIV using JS. I used document.getElementById('mydiv').style="width: 10px; height: 10px""; I should work, but it doesn't seem to set the right values. Is the widget run-time treating these statements differently than normal? ...

use two same name method in different .js files

I have two methods with the same name, for different purposes in 2 different .js files. How can I use those methods on same page? In Count.js: function add() { // some manipulation doing here } In PriceImplement.js Function add() { // some manipulation doing here } ...

Want to work in Qooxdoo. Help me..

I am new to Qooxdoo. I downloaded it. After that i do not know the next step. I want to know how to work in it. I went through http://qooxdoo.org/documentation/1.1#getting_started but am not getting it to work. Please can anyone tell me how it should work? What steps should I take? When i execute the create-application.py in cmd, i get ...

How to implement an automatically login system under php and javascript?

As the title implies, the automatically login system is wildly used by many websites. But I could not figure it out by myself. Could you please give me some hint. EDIT: Yes, I mean the remeber me feature like google. thanks. ...

Checking querystring for a not null value using JS

Is it possible to check a querystring for a not null value using javascript? Can you show me an example on how to do this? Like the IF clause of this snippet: protected void Page_Load(object sender, EventArgs e) { if (!string.IsNullOrEmpty(Request.QueryString["someParameter"])) { DataListWithLinksID.Att...

Javascript UI Library - CMS Rebuild

I am about to start rebuilding my company's CMS from the ground up, the DB structure and a lot of the functionality will remain the same concentrating on the UI. I was going to build it using JQuery UI as that is what we use on most of the sites, but I thought before I stated that it might be worth an ask around to if something like Moch...

Javascript RegEx wont work, but works in c# (atomic subexpression)

I have a regex tested in Expresso, works like a charm. But when I try to use it in javascript it gave an error. Firebug says: invalid quantifier ?><div\b[^>]*>(?<DEPTH>)|<\/div>(?<-DEPTH>)|.?)*(?(DEPTH)(?!))<\/div> the regex: <div\b[^>]*>(?><div\b[^>]*>(?<DEPTH>)|</div>(?<-DEPTH>)|.?)*(?(DEPTH)(?!))</div> The regex matches nested...

How do i resume an upload on a HTML Form?

I asked a question and it appears no one knows the answer. So i'll ask one specific part. How can i resume a file uploaded from an html form? While uploading the user has a full network disconnect. Then when the user is back online the form resumes. Before saying it isnt possible this site appears to do it and without corruption. -edit...

What is the meaning of this..."var evt=event||window.event;"

What does the following mean in JavaScript? var evt=event||window.event; ...

how to write a chrome suggestion service

Hey guys, When I type something in the address, the google suggestion service is offering an autocomplete. I would like to write my own autocomplete... I tend to use yubnub and I need my own commands with autocomplete. How can I do that? Please advise, Thanks, -hbt ...

Ajax function that works in FireFox but not in IE 6

Hello, I have a function that allows me a selection from a list to update a table. When I tested in FireFox it works without problem But my application should also run IE6 and when I test any results my table does not update much but I get to put my lines in my table. My script: <script type="text/javascript"> function actualiserDLIS()...

Javascript prototype operator performance, saves memory, but is it faster?

Hello, I read here (Douglas Crockford) using prototype operator to add methods to Javascript classes saves also memory. Then I read in this John Resig's article "Instantiating a function with a bunch of prototype properties is very, very, fast", but is he talking about using prototype in the standard way, or is he talking about his spe...

Dynamically adding parameters to jQuery

Hi all, I'm using a plugin called jQuery image map emulator which takes parameters like so: $('#example').imagemap([ { top_x: 0, top_y: 0, bottom_x: 75, bottom_y:65, callback: alertCallback} ]) with multiple arrays possible: $('#example').imagemap([ // One image map {top_x: 0,top_y: 0,bottom_x: 75,bottom_y:65,call...

Frameset sharing a javascript library.

My website is currently using a frameset, and two frames use AJAX, and one other frame uses jQuery (just for animation). I'd like all the frames to have access to the jQuery library. But i feel it's really in-efficient to hotlink to googlecode on each frame. is there a way of giving all frames access to the jQuery library by only linkin...