javascript

Adobe Pro, PDF form with javascript

Hello! I have created a form in Adobe Pro and i have added some JavaScript to it. But i have two problems. 1) Is there a "Document Finished Loading"-action? I have a date field on the form and i would like that it automatically adds todays date into that field when the user opens the document to fill in the form fields. 2) The date me...

adding the text box values and display it using javascript

Hi... I'm trying to add the input values of several text boxes using javascript and display the total number below. How can I add and keep the sum for displaying after the computation. I'm not an expert in javascript. Thanks... ...

Why pass parameters to CSS and Javascript link files like src="../cnt.js?ver=4.0"

Hello, When i saw many sites source code, parameters were passed to the linking file (CSS/Js) In stackoverflow source, i got <script type="text/javascript" src="http://sstatic.net/js/master.js?v=55c7eccb8e19"&gt;&lt;/script&gt; why that master.js?v=55c7eccb8e19 is used ? I am sure that Js/CSS files can't get the parameters. Pl...

How to access / select / attach event to an autocomplete combobox with JavaScript?

The situation: I have a dropdown navigation which contains a login form. The form is only visible when the dropdown (son of suckerfish) is open. The problem: When the user has already filled out the login form once, the browser saves his form input for future logins. Now when the login field receives focus, the browser's own autocomplet...

closing child window automatically when the parent window is closed

I want the code so that the chilld window closes as soon as the parent window is closed in asp.net.? How can this be achieved? ...

JavaScript mins and seconds into seconds

I have a string being grabbed from a page in the format "4m 26s", how can I strip this into just seconds? Many thanks, ...

open Colorbox from text link

[EDITED QUESTION] I am using an image preview tooltip, which is making use of the rel attribute, so for the colorbox i am using the class="slideshow" to group the images together. I have this working fine, but i'd like to be able to open the slideshow from a text link, seen below. (rel="medium.jpg" is the image used for the image prev...

Reverse AJAX : LightStreamer v/s Direct Web Remoting

Hello, I'm trying to figure out the best framework to perform AJAX push to a web application using Java EE 5 on WebLogic server. I've reduced my alternatives to LightStreamer and Direct Web Remoting. But I would like to know what's the advantage of one on the other. I would be grateful if I could have an insight from people having exp...

How to change the vibility of a button in dashcode programmatically ?

Hello Everybody, i'm using dashcode for a webapp and in order to add a + button in the browser bar to a specific view i need to hide and unhide that + button. The problem is i really don't know how to do this. I tried to write on the screen all the button's properties and in fact there is a visible parameter but when i display the value ...

How to pass object/template as parameter in Javascript/jQuery

I'm attempting my first forray into jQuery. I'm trying to acheive the following, though I'm not sure of the terminology so will try to explain with an example using a kind of C#/pseudocode syntax. Say I want an (anonymous) object as parameter, looking something like: elemParameter { elemId, arg1, optionalArg2 } and I wan...

Get default media player using Javascript?

Hi All, Whether is it possible to get default media player using Javascript, customize play controls and control play functions (Play, Stop, Seek, Pause..etc) Thanks in advance, Sri ...

How do I remove javascript validation from my eclipse project ?

I am using eclipse on my project and while messing around with my eclipse settings, I turned on Javascript support. Now eclipse complains that JQuery library has errors in it and is not letting me compile the project. Does anyone know how to turn javascript validation off? ...

JavaScript - Having trouble with a click event.

Hi, I am using sizzle to select various parts of the DOM. My code is below. The problem is that the onmouseup event is being triggered when the page is loaded instead of when the user interacts with the page. Can someone explain why this is please. Thanks. // Effects object var effects = { // Display an object show : functio...

google maps apis v3 and IE 6

Hi, I have a webpage with google maps and javascript. On IE 6 the map is displayed but the markers are not. I really cannot find why. The maps shows ok on any other browser i can put my hands on. The webpage is http://www.appleatwork.org Thanks for your help. Ciao b ps: there is a similar question "IE6: Doesn’t load Google Maps API v3" ...

Dynamic window size in ExtJs

Hi there, I am using ExtJS for my project. I need to create a window in ExtJS of variable size to display an image my user has uploaded. But, if a smaller image say 150x150 is uploaded, I want the window to "fit" the image, i.e., the window should be 150x150. But if a larger image, say 3000x3000 is uploaded, then I want the window to...

Determining if a webpage is inside Windows Live Messenger

The navigator.userAgent string only works correctly when IE8 is installed. When it does, it says: Mozilla/4.0 (compatible; MSIE 7.0; Windows NE 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; OfficeLiveConnector.1.5; OfficeLivePatch.1.3; Windows Live Messenger 14.0.8089.07...

form is not submitted on enter key when there is no submit button inside

is there some fix for this <form> <input type="text" ... </form> hitting the enter key inside the textfield when there is no submit button inside doesn't submit the form, is there some fix for this ? ...

jQuerys $.trim(), bug or poorly written ?

$.trim() uses the following RegExp to trim a string: /^(\s|\u00A0)+|(\s|\u00A0)+$/g As it turns out, this can be pretty ugly, Example: var mystr = ' some test -- more text new test xxx'; mystr = mystr.replace(/^(\s|\u00A0)+|(\s|\u00A0)+$/g, ""); This code hangs Firefox ...

Need Js code to check pipe "|" present in a string

hI I WANT a script TO CHECK atleast one occurrence of "|Viewed" word is present in js string. sample Js sting wolll be "22|Test|Viewed,22|Test|Un-Viewed,22|Test|Viewed". can anyone help me out ? THx ...

Facebook post to wall using FBJS or PHP

Hi guys, I am trying to post a message to a users facebook wall using FBJS or the PHP SDK, the problem I have is that I authenticate the user on the index.php page, but a flash program is calling my post_to_wall.php script which should update the users wall, but this is not working, here is the code, require "facebook-php-sdk/src/facebo...