| |
thread by: Stefan Mueller |
last post Nov 30 '05 by: Stefan Mueller
I've an input box
<input type = "text" name = "MyInput" value = "">
and a selection
<select name = "MySelection" size = "1">
<option value = "1">Entry 1
<option value = "2">Entry 2
</select>
With
|
thread by: Robert Mark Bram |
last post Aug 7 '05 by: Richard Cornford
Hi All!
How do you get the length of an associative array?
var my_cars= new Array()
my_cars="Mustang";
my_cars="Station Wagon";
my_cars="SUV";
alert(my_cars.length);
|
thread by: Giakko |
last post Apr 14 '06 by: Randy Webb
Dear reader..
i have a page that opens a popup window
from this popup window i have to change some opener divs innerHTML
content,
how can i do?
this is how i do, (and it doens't work):
THE MAIN WINDOW:
<div id="'myDiv'"></div>
<input type="button"
|
thread by: Michelle |
last post Aug 25 '05 by: ASM
I have a div that is initially empty. Clicking on a button will add some
text boxes and other controls so the user can add additional records. In
IE
all works fine but in Netscape 7.0 when I add another "record" the values
for all previous controls within the div are wiped out. In the javascript
function where I add on to the html in the...
|
thread by: yzzzzz |
last post Jul 20 '05 by: Grant Wagner
Hi
I have:
<div onkeypress="go(event)">...</div>
and:
function go(event) {
alert(event.keyCode);
}
|
thread by: laredotornado |
last post Aug 16 '08 by: jdalton
Hi,
Please let me know if there is a better place to which to post this
message. I'm trying to use prototype.js and wondering how I use it to
find elements on page with class = "myClass"?
Thanks, - Dave
|
thread by: maflu |
last post Jul 20 '05 by: Mike
Hello,
I am rather a beginner in Javascript and have the following problem.
There is a drop down list on my Web page with various values to be
selected by the user. Once the user has selected a value, he/she clicks
on the submit button. When he/she does that I would like 2 things to
happen: the selected value of the drop down list is...
|
| |
thread by: soni2926 |
last post Jul 16 '07 by: David Mark
hi,
i have a page that has a search box, when the user types something
into i'm able grab the data, but wanted to strip out all the quotes
(double and single) from it, what's the best way to do that?
basically i need to pass the search words to another page via the url,
but want to strip the quotes out first.
Thanks.
|
thread by: brett |
last post Jul 23 '05 by: Thomas 'PointedEars' Lahn
How can I find the height and width of a webpage? Say I want to make
sure someone's webpage is within an 800X600 viewing area. Width is the
most important but if I can get width, I should also be able to get
height.
I don't need to modify the page in anyway. Just get the width and
height. I can reference the page in an iframe, cfhttp...
|
thread by: PerumalSamy |
last post Jun 4 '09 by: acoder
Hi, I am developing program using asp.net in which i am using javascript coding in particular part.
I need to find height and width for loaded image file.
How can i write coding for it.
|
thread by: Dipin |
last post Jul 20 '05 by: DU
Hi All;
I have this javascript which is adding a new button to the column in
the row which is created dynamically, the innerhtml shows that the
onclick event is correctly added but it never gets invoked when I
click it.
newcol = doc.createElement("TD");
newbutton = doc.createElement("input");
newbutton.name = "newChange"+__uid;
|
thread by: James Black |
last post May 27 '06 by: Michael Winter
I am curious if there is a benefit to set attributes directly, in my
javascript, or to use setAttribute.
For example, I have this:
var input = document.createElementNS(xhtmlNS, 'input');
input.setAttribute('width', '20em');
I could have just called input.width='20em'
When is each better to use, or is there no difference between them?
|
thread by: Oleg Konovalov |
last post Nov 14 '06 by: VK
Hi,
I am working on a web application which among other things uses DHTML, Java
and Javascript.
It populates web page based on the contents of the database (resultset),
and next to each row there is a checkbox (v1) allowing to select that row
for changes (e.g. delete, update, etc.)
So we are creating an array of checkbox, correct ?
Of...
|
thread by: DonD |
last post Nov 23 '05 by: Joe D Williams
The code:
<a href="/art/visit/openhouse03/images/17.jpg" target="_blank"
onclick="popCenter(this.href,'name','500','500','no'); return false;">
<img src="/art/visit/openhouse03/images/thumb17.jpg"></a>
The problem:
I always get two windows. I have the required "return false". I found a
post (http://tinyurl.com/avjlh) that addresses my...
|
thread by: chakradhari.ashish |
last post Jun 7 '07 by: chakradhari.ashish
Does anybody know how can I load an html page inside a <div</div>
where the content gets update on the onclick even of anchor <a href=>
</a>?
I googled around and followed some links pointing me that it is
possible to use javascript combined with CSS for doing this? Any
ideas?
Chakra
|
| |
thread by: zhisol |
last post Jul 20 '05 by: Stephen
how can i check if file exist in current directory (in javascript)?
--
pozdr;)
zhisol
|
thread by: TheKeith |
last post Jul 20 '05 by: Lasse Reichstein Nielsen
Is there any wildcard, like *, for addressing all the element ID's on the
page at once, like if you want to hide all layers at once. For example:
document.getElementById('*').style.visibility = 'hidden';
I know the above doesn't work but you get what I'm driving at right? Is
there anything like that for that method or in javascript in...
|
thread by: user |
last post Jul 20 '05 by: user
hi there
has anyone of you writte a function to encode html from like '&' ->
'&' and likes to share it with me.. or can anybody give me a hint
how to set up something like that.
cheers me.
ralphie
|
thread by: mhito |
last post Jan 29 '08 by: acoder
hi guys,
My first post yes. Thanks for all the nice posts and threads in this forum - great stuff.
Now, here's my question:
First off, the url : http://catfish.businesscatalyst.com/bcimg.htm
When you get there an alert of the div/img name in question appears. It splits and grabs the 'name' from images/name.jpg.
|
thread by: slekshmipriya |
last post May 29 '07 by: acoder
Hai friends.I have a pblm with my drop down list onchange event.The pblm is as follow
I have a drop drown list with items 1,2 ,3 etc.
On selecting an item from the drop down list i want to populate that much text boxes for entering values.for example if i select 3 , three text boxes are to be created.if 1, one text box like that. So with out...
|
thread by: andersond |
last post Jan 22 '09 by: gits
I have a webpage where a javascript routine swaps tables to "clear" the screen and start a new group of questions. After the screen is cleared a textbox or a drop-down menu can receive focus by simply getting the element by ID, ending in .focus(). No problem. However, if the first object on a screen is a radiobutton it will not accept focus...
|
thread by: alvin.yk |
last post Dec 11 '06 by: Thomas 'PointedEars' Lahn
Hi,
Normally, a piece of code such as
<a href="http://www.yahoo.com" onclick="alert('hello');return
false;">link</a>
will stop the browser from actually going to href's destination.
However, this is not the case with the IE7 I am using. What has
changed?
|
thread by: Weston C |
last post Jul 20 '05 by: Lasse Reichstein Nielsen
I know of course that you can use <script src=""></script> in an HTML
document to include javascript code you don't want to spill all over the
page.
I'm wondering if there's a way to include other pieces of javascript
code from *within* javascript.... a la #include in C, @import in Java,
use/require in Perl, include()/require() in PHP,...
|
| |
thread by: Jean-Marie Delapierre |
last post Jul 20 '05 by: alu
Hi,
I have two files in a directory.
one called toto.txt with the following content :
1
2
3
4
5
|
thread by: modeep |
last post Jan 1 '08 by: acoder
// JavaScript Document
var easy = "046280000500600740200000000005032070021000480030170500000000005094001007000096830";
var easySplit = easy.split('');
var eAns = "946287351583619742217543698865432179721965483439178526678324915394851267152796834";
var eAnspl = eAns.split('');
var medium =...
|