javascript

what is the best tracking download method in php / java script ?

Hi if i like to track and get all the possible info about users that downloading my application without forcing them to register what is the best php script for this ? or the best method to mange downloads? ...

window.open cache problem

Hi all, I'm using window.open in a function to open a web page, which displays help for the current page. The pages URL are stored in DB , some pages need authentication. For these pages, the first time we call them the user has to authenticate, but if he closes the page and opens it another time , it's the cached page that is displa...

Javascript use explicit self/window objects to improve performance

I read on MSDN that to improve scripting efficiency, you can use self to make implicit window references explicit. Do you know if this is true? Does this basically mean that for instance calling self.location is somewhay more efficient than calling simply location with no window opject before? Since the MSDN text is referred to the sel...

Javascript Submit on click

I have the next code: document.myForm.mySubmit.click(); Where myForm - form name, mySubmit - submit name. I want to call submit of my form outside me form. My problem - my form doesn't have names(terrible?). How can I do this with help of id or classes? Or may be you know another way? Thank you. ...

Javascript date weirdness between Firefox and everyone else

Does anyone know why in Firefox if you execute the code below it will validate it as a date if the string passed in is four numbers and only four numbers? In every other browser I tested with (IE, Chrome) it will always return as not a date. Being that the spec, as pointed out by Marcel Korpel below, states that it should fall back to u...

Google Maps JS API in Eclipse

Hello, I'd like to have an "autocomplete" functionality in Eclipse for Google Maps JavaScript API. For example: I write: map = new google.maps. and then I'd like Eclipse to offer appropriate methods - like this: Map Marker Polyline Polygon ... etc. see http://code.google.com/intl/cs-CZ/apis/maps/documentation/javascript/reference....

How to localize calendar component of YUI?

Hi friends, I have a question about YUI. I am using YUI calendar component in my website project. I insert the codes inside ASP as javascript. (like that http://developer.yahoo.com/yui/examples/calendar/germany.html ) Now, i am about to hearing your questions, i am answering them immediately. Yes, this link explains how lo localize YUI ...

how to get args to constructor at extjs?

Hello everyone! I have a some class AddOrgWindowUI = Ext.extend(Ext.Window, { title: 'form', width: 400, height: 198, layout: 'form', padding: 5, initComponent: function() { this.items = [ { xtype: 'textfield', fieldLabel: 'parapapa', anchor: '95%', value: m, emptyT...

How can I show a list of every thread running spawned by setTimeout/setInterval

Hi, I want to do this either by pure javascript or any sort of console in a browser or whatever. Is it possible? Thanks Further explanations: I want to debug a library that does animations. I want to know if there's multiple timers created if there are multiple objects being animated. ...

ASP.NET MVC button multiple clicks

ok i have a form on which i have some validation through dataannotation which is client side as well as server side validation like some field already exists. i have no javascript validations on the page. now my problem is that what should i do if the user presses the save button multiple times (he keeps pressing the button for 15 times,...

finding users IP Address and MAC address from web browser

Is it possible to find out the clients IP and possibly MAC address from non IE browsers (i.e. without using ActiveX)? If so, how? ...

Javascript not pulling value from form

userName = Global.getComponent('centerRegion').UserName.getValue(); That code pops up with the error {"browserEvent":"'Global.getComponent(...).UserName' is null or not an object","button":-1,"ctrlKey":false,"xy":[0,0]} When I run it on this form: Using Form As New WebControls.Forms.Form With Form ...

Calling Javascript function from Java using JSObject

I'm just trying to call a Javascript function from Java using JSObject. I need the Javascript function to update an HTML text field. For this I need to know the element ID and the value. I have tried this but it doesn't work. When trying to access from Javascript the values passed are empty. So my question is how can I access those va...

Javascript dropdown like Google Translate

Hello there, Anybody knows if the Google Translate's dropdown is Open Source? http://translate.google.com/ I've taked some searches but don't found it. Thanks ...

PHP/JS: Profilephoto resize and cutting

Hi i just went on a site, when you press "upload image" a lightbox comes up, and then it says upload image, you browse find a image and then you press submit. After that, it shows your image with a square that you can move around and make bigger smaller /width/height.. so you like cutting. After that you can save, and you now have a new ...

Reporting child window's events to parent window to reset timer value of user timeout code

I've got a Jquery function that I wrote which blacks out the screen after a certain amount of inactivity, creates a pop-up that allows the user to click a button to stay logged in, and logs them out (closing the application window) if they do not respond in time. The environment is ASP.NET (VB). We don't technically use master pages, b...

Help with JSON structure

I have the following javascript which I need to make dynamic. data.addRows(2); data.setValue(0, 0, 'name goes here'); data.setValue(0, 1, value 1 goes here); data.setValue(0, 2, value 2 goes here); data.setValue(1, 0, 'name goes here'); data.setValue(1, 1, value 1 goes here); data.setValue(1, 2, value 2 goes here); I guess a loop ...

How to show Google Local business marker and InfoWindow in custom Google Map ?

I want to show the location of my business on my website using google maps. Instead of creating the marker, infowindow, etc... by hand, I would like to reuse the one found in Google Local business listings. For instance, this business could use this map. The advantages are numerous : it is already done, it will be updated when you updat...

how to get the selected index of a drop down

I have a normal dropdown which I want to get the currently selected index and put that in a variable. Jquery or javascript. Jquery perfered. <select name="CCards"> <option value="0">Select Saved Payment Method:</option> <option value="1846">test xxxx1234</option> <option value="1962">test2 xxxx3456</option> </select> ...

localstorage in html5

How Does localStorage in HTML5 works ?? I searched every where (even in SO ) to find the actual internal logic of localStorage, but I ended up with visiting some examples which uses localStorage. I haven't found any useful Answer to my question. Can Someone post me a link or explain about the working of localStorage ...