| |
thread by: szimek |
last post Feb 13 '08 by: SAM
Hi!
In an app which I'm trying to fix to work with FF there's a lot of
code like eval("function_name();"). I remember that there's some way
to call global functions using window object, but I can't get it to
work. Here's what I tried (in Firebug console):
function a() {alert("a called")};
a(); // works
eval("a();"); // works
|
thread by: spooky |
last post Feb 13 '08 by: acoder
Hi,
I have a text box that holds floating numbers how do i format it so that the user will not be able to enter values greater than 99.99.
I want to insert a '.' when the length of the textbox is 2.
i tried to do it this way but while clearing the text using back space button it showed problems
//struts text field//
|
thread by: norulzs |
last post Feb 13 '08 by: acoder
Hi,
Is it possible to do something like this
http://www.asp.net/AJAX/AjaxControlToolkit/Samples/CollapsiblePanel/CollapsiblePanel.aspx
in classical ASP?
Maybe a Collapsible<Div> tag
Thanks
|
thread by: gopalkrishna |
last post Feb 13 '08 by: acoder
Hi All,
I opend a popup window using var pouWin = window.open('one.html','popupName');
I control everthing forn parent window. If i refresh parent window the link between them are broken, how to reinitialize the refference (popup window refference) to refresh window.
|
thread by: onlymukti4u |
last post Feb 13 '08 by: acoder
I need a validation for two date field where the date difference should not exceed 31 days,but the problem is in the date field the inputs are in the format of DDMMM like 22JUN, So If anyone knows this please send me the code or show me the way.
Thanks
|
thread by: rupak |
last post Feb 13 '08 by: acoder
Hi!
I have a multiple selection of checkboxes
<input type='checkbox' name='coffee' id='col1' value='Address'/>
<input type='checkbox' name='coffee' id='col2' value='Name'/>
<input type='checkbox' name='coffee' id='col3' value='ID'/>
<input type='checkbox' name='coffee' id='col4' value='UserName'/>
<input type='checkbox' name='coffee'...
|
thread by: maori |
last post Feb 13 '08 by: Evertjan.
You can try this in javascript:
A) alert( 1.9 * 50 ); = 95
B) alert( 2.9 * 50 ); = 145
C) alert( 3.9 * 50 ); = 195
D) alert( 4.9 * 50 ); = 245.00000000000003
E) alert( 5.9 * 50 ); = 295
Why D) = 245.00000000000003 ?
|
| |
thread by: Gokul007 |
last post Feb 13 '08 by: acoder
Whats the real time use of Ajax?
|
thread by: radhikams |
last post Feb 13 '08 by: acoder
Hi
I have a html file in some location into which i do read and write operations...Now when i download that file it is getting displayed in the same browser... I want that in a different window... How this can be done...
Thanks
|
thread by: quangnd412 |
last post Feb 13 '08 by: acoder
Hi guys,
I want to scroll a DIV. When the DIV scroll the the bottom, it will scroll upward and vice versa. The problem is: When it scroll to the bottom, odivScrollBarStockInfo.scrollTop can not be increased any more but it is still less than odivScrollBarStockInfo.scrollHeight!!!
In order to make it work, I have to write a funny code (bold...
|
thread by: sirjaybishop |
last post Feb 13 '08 by: acoder
Hi
I have an issue in some browsers when linking to style sheets or images in some browsers using a DOM script after I have submitted a form.
I am trying to make the form submission process accessible to javascript disabled users, it was previously using an interstitial page.
Now I want to hide the page content and replace it (visually)...
|
thread by: karthikpl83 |
last post Feb 13 '08 by: acoder
Hi,
Can anyone tell me how to capture event.returnValue.
I have two actions written in my script which will be called during onbeforeunload event. Whenever onbeforeunload event is called, event.returnValue will be executed. This event.returnValue will hold a message with OK and CANCEL buttons. I want to submit a page based on the value...
|
thread by: gyanendar |
last post Feb 13 '08 by: gyanendar
Hi ,
I want to validate the file extension (.pdf) in through "RegularExpressionValidator" (asp.net) .I am not able to decide what
ValidationExpression shall i use.
Please help.
Manohar
|
thread by: ogo796 |
last post Feb 13 '08 by: acoder
hi guys
new in javascript so my question is i wanna validate the file extension
like this
namewww.jpg
ojfgt.rtf
hfyrkeode.pdf
so my problem is i don't know the length of the file name so i wanna validate base file.ext
|
thread by: killafo |
last post Feb 13 '08 by: acoder
ok so i have a whole bunch of rows that i get from a ResultSet. When i click on a td in a row i want to pass the date value of that row to a function. in IE7 i can get away with saying....
<td .....onclick="javascript:getIt(this.value) id="..." name="...">
Is there something specific that Firefox is looking for, because it gives me "underfined"...
|
| |
thread by: adamjblakey |
last post Feb 13 '08 by: acoder
Hi,
How would i change this to check if the date in the field is at least 2 days in front of today's? Must work with this format yyyy-mm-dd
if (form.arrivaldate.value == "") {
alert( "Please make sure your arrival date is at least 2 days in front of today's date" );
form.arrivaldate.focus();
return false ;
|
thread by: hl2ob |
last post Feb 13 '08 by: mrhoo
Alright I'm still new to javascript. I was getting it pretty well, and getting everything alright untill this point.
We have to make a program that test a 5 digit number as a palindrome. I have no clue on how to do this. I was given advice that I'd need to use arrays, but for javascript I have no idea how to work with them. I read some stuff in...
|
thread by: alpim |
last post Feb 13 '08 by: Randy Webb
Hi everbody,
I am seaching a code for that problem?
htdocs\iframe.html <--- This file is include with <iframe
src='iframe.html'in index.html
'iframe.html' tiny source code is:
<html>
<head>
<script>
if(self!=top) top.location=self.location;
|
thread by: windandwaves |
last post Feb 12 '08 by: David Mark
Hi Folk
Please have a look at this page: http://www.sunnysideup.co.nz/j/imageSwapper/
I would like to have the last image fade away while the new image
"fades in". Some lines that may need adjusting are 42 and 86.
Any other feedback would also be appreciated.
Thank you
|
thread by: Heinz Schmitz |
last post Feb 12 '08 by: Thomas 'PointedEars' Lahn
Please forgive me if this question is outside the province of this
newsgroup, but as scripts are/may be involved, you might be able
to send me along a good road.
If I tell my browser to load a page, the sender of this page will
force me to accept content and appearance (data and make-up).
Very often, however, I would like to get only part...
|
thread by: ieming.chen |
last post Feb 12 '08 by: Joost Diepenmaat
I have a very puzzling question about how JavaScript variable scope
works.
var s = 1;
alert (s); // show s = 1
function show ()
{
alert(s); // show s = undefined, expecting s= 1
|
thread by: Yansky |
last post Feb 12 '08 by: Joost Diepenmaat
I'm just starting to learn about the prototype object in javascript
and I was wondering if someone could explain just in laymans terms why
you would use it instead of a regular functions? It seems like it does
the same thing as regular functions except in a more complicated way.
|
thread by: Geoffrey Summerhayes |
last post Feb 12 '08 by: Geoffrey Summerhayes
I'm trying to select a row from a table in a 'dialog box' where the
HTML is (boiled down):
<body>
<div style='position:absolute; display:block;...'>
...other divs...
<div style='position:absolute...'>
...other divs...
<div style='display:block; overflow:auto; margin-left:auto;
margin-right:auto; width:...'>
|
| |
thread by: Saith |
last post Feb 12 '08 by: acoder
I need to define a text box that accepts a string input. If the user enters a value thats invalid I want to display a warning but prevent him from taking focus away from that box unless he corrects the data input.
For example:
<input name="Textbox1" value="Hello World One" onchange="if (this.value == 'bug'){alert('Error: - 1'); return...
|
thread by: matth |
last post Feb 12 '08 by: Doug Gunnoe
I've been working on something that deals with handling a user's
selection within the DOM and I'm tripping up on one last, but crucial,
detail.
Forgive me for the length of the code, but my question is pretty
straightforward and my brain hasn't been working.
Problem: The way I'm iterating through the nodes doesn't allow me to
preserve the...
|