| |
thread by: Dave |
last post Jul 20 '05 by: Dave
Hi,
Doe it exist a similar function or operator like 'mod' in VBscript in order
to get the remainder of a division?
Thanks
dave
|
thread by: Ghyslaine Crespe |
last post Jul 23 '05 by: Evertjan.
Hello,
In my script, the line
document.getElementById(id).style.background-position = "-200px -500px";
fails !
So, how can I change the background-position value ?
|
thread by: Mike Scirocco |
last post Apr 5 '07 by: Mike Scirocco
I have an iframe that includes a button:
<input type="button" value="close this window" onclick="window.close();" >
I would like to detect the iframe close event from the parent window, I
was using this code but I did something wrong because the temp function
is fired every time the parent page loads:
function temp(){
alert('the iframe...
|
thread by: Noozer |
last post Jul 23 '05 by: Rob B
I have several tags on a webpage of the same class. If the user clicks a
specific checkbox I'd like to be able to alter the display property of the
class, affecting all objects of that class.
This is an intranet application so we know that javascript will be enabled
and the browser will be IE.
How can I affect all the members of this...
|
thread by: Matt |
last post Jul 23 '05 by: Dr John Stockton
The html page is very long and has a button on the bottom.
How to make the browser go to the bottom of the page when the page
is loaded??
Thanks!
|
thread by: vunet.us |
last post Jan 6 '07 by: Peter Michaux
I have a DIV element. How can I find mouse position (top and left)
inside of this DIV?
<div onMouseMove="getPositions();"
style="width:200px;height:100px"></div>
function getPositions(ev){
????????????????
}
|
thread by: WIPE |
last post Nov 14 '22 by: Abfd
I must call a PHP page with a Javascript command.
I developed a function that does almost exactly what I needed:
View code: Example 1
But in the last part where it makes me "view" (document.getElementById('showResult')) only the result, I need to do it in a way that instead calls me another PHP page, where it will execute the instructions...
|
| |
thread by: Pugi! |
last post Feb 28 '06 by: RobG
I got this (piece of) script from 'DHTML Utopia - Modern Webdesign - Using
Javascript & DOM'.
function aKeyWasPressed(e) {
if (window.event) {
var key = window.event.keyCode;
} else {
var key = e.keyCode;
}
alert('You pressed the key: ' + String.fromCharCode(key));
|
thread by: Kevin |
last post Nov 8 '06 by: Ruso
I've been looking all over and I can't seem to find what ought to be
simple.
I need to disable a drop down when a checkbox is checked, and enable it
when same checkbox is unchecked.
I've found any number of scripts to disable / enable a drop down but they
are all made to work with 2 different buttons, radio group selections, etc.
I can't...
|
thread by: Randell D. |
last post Jul 23 '05 by: RobB
Folks,
I have seven text boxes which will contain measurements - I would like
the user to input their values in the order that I have listed the boxes.
How can I therefore make an input type=text name=box2 a readonly while
type=text name=box1 has a length of zero?
This is for an intranet based application and I understand all the...
|
thread by: Patient Guy |
last post Dec 28 '05 by: VK
Has anyone found it possible---that is, come up with a "trick"----to
specify IN THE SAME SCOPE 'const' for non-reassignable variables, with the
use of 'var' as a fallback should the interpreter respond with an error
upon seeing 'const'?
In pseudo-code:
try_this {
const SOME_CONSTANT = 0,
|
thread by: khalidbaloch |
last post Nov 7 '08 by: smithveg
hello dear friends this is my post in this forum and i hope for greate response .. for my php application i want
when user checks a checkbox select element should be disabled and whehn user unchecks it it should be enabled again without refreshing the page using javascript......
any help will be highly appreciated ......
|
thread by: JR |
last post Jul 20 '05 by: Thomas 'PointedEars' Lahn
Is there a script available to automatically reload images on visiting
a page? I change images once a week and they have the same name so
I'm not changing the page code. Some people have the previous week's
image in their cache. I'd rather not put a message line on the page
asking the visitor to hit the refresh button nor use a code that...
|
thread by: K Viltersten |
last post Jun 27 '08 by: K Viltersten
I declared a function in a file called somefile.js as follows:
function foo() {
alert ("yippi!"); }
In HTML-file i'm importing it by adding:
onClick='foo()'
The somefile.js is imported correctly (according to my breakpoints in
|
thread by: NextOne |
last post Sep 30 '05 by: Martin Honnen
Hi !
Is it possible to send an AJAX XMLHttpRequest using prototype.js API
for a multipart/form-data ?
I already done parsing form parameters and sending GET/POST request,
but does this work with <input type="file"> ?
Who handle file submit and encoding ?
regards,
|
| |
thread by: Simon Wigzell |
last post Jul 23 '05 by: Simon Wigzell
How do a create a floating div that will always stay in the same place
relative to the browser window as the user scrolls the main page? I guess an
adaptation of one of these floating menus that always stay in view would
work but I just need the few lines of code to keep it positioned a certain x
and y pix location from the window top left...
|
thread by: Sujan |
last post Jul 23 '05 by: Evertjan.
Hello all,
Is it possible to remove scrollbar(s) without using frames. Is there
any code which could be applied in body tag to remove scrollbar(s).
Thanks in adv,
Sujan
|
thread by: Matt |
last post Jul 23 '05 by: Hal Rosser
If I assign Java variable a to javascript variable x, it is
fine.
<%
int a = 10;
%>
var x = <%= a %>;
alert(x);
But if I do the other way around, then it has 500 error. any ideas??
|
thread by: Mel |
last post Jul 23 '05 by: RobB
can someone post a simple javascript to change the text of the <href> for me
?
thanks
|
thread by: Venkatesh |
last post Feb 16 '07 by: Douglas Crockford
Hi All,
I have one small doubt regarding associative arrays. Request somebody
to clarify.
Is there a javascript utility function (like split) to convert a
string to associative array? My string is having elements in json
notation - in the form "{'MSRP': 20000, 'cashDown': 2000, 'tradeIn':
1000}"
|
thread by: dsimonneau |
last post Jul 20 '05 by: Code Ronin
Hello all,
I would like to call a JSP from a Javascript and get a result on my
javascript
To call the JSP I'm doing like that :
<SCRIPT LANGUAGE="Javascript1.1">
function test()
{
|
thread by: Cindy |
last post Jul 20 '05 by: kaeli
"kaeli" <infinite.possibilities@NOSPAMatt.net> wrote in message
news:MPG.197482677bbc284b989702@nntp.lucent.com...
> In article <bed8e3$m6r$1@mawar.singnet.com.sg>, stayhardsg@yahoo.com.sg
> shared the illuminating thought...
> > hi,
> >
> > Can someone point me to a website where I can find a "create dynamic
rows"
> > javascript that work...
|
thread by: ghjk |
last post Dec 13 '11 by: deanthehat
change the background image when Button Click
======================================
I' developing site with php and postgres. It has menus list in the left side. and all are images(jpg)
EX:Add User, Edit User, Remove user(all arebuttons)
I have another set of images with different color. Those will display only after the mouse click. How can...
|
| |
thread by: Douglas |
last post Jul 23 '05 by: rh
Gday,
How would I format a number so that:
TheValue = 32500
Displays in the TextBox as: $32,500.00
|
thread by: elsenraat_76 |
last post Jul 23 '05 by: RobG
Hello! I was wondering if someone could help me out with a problem I'm
having? I'm trying to input a javascript value into an anchor tag
(from a function), but don't have an event to call the function...if
that makes sense. Here's what I mean...
I have a javascript array set up like so:
<script language="javascript"...
|