| |
thread by: Yimin Rong |
last post Jul 20 '05 by: Stuart Palmer
Does anyone know if there are any browsers where you must specify "#"
as a prefix when setting the hash for the location?
For example, the following would move to the intro section of the
document:
window.location.hash = "#intro";
But in the same browser, this would not work:
|
thread by: Jerrold Kronenfeld |
last post Jul 20 '05 by: Dave Griffiths
I am using the following javacript function (in the HEAD section of the
HTML file) to open a window in response to user action on the page:
<SCRIPT LANGUAGE="JavaScript">
var PictureWindow;
var s;
function displayImage(ImageName, titleText )
{
PictureWindow = window.open()
s = "<HTML>\n";
|
thread by: Michael Chernecki |
last post Jul 20 '05 by: HikksNotAtHome
Hi,
Not sure if I am posting to the proper group. I have some buttons on an
HTML form. When I click a button, it just gives the button focus. Then I
need to click again for the onClick actions to take place. How do I get
the buttons to work on the fist clck, rather two click or double click. I
have set tab order and have used xxx.focus() to...
|
thread by: Martin O'Rourke |
last post Jul 20 '05 by: Stuart Palmer
All,
I am trying to use a URL to call some javascript to do something, which
is working fine in IE6 but using the same code in Netscape 4.79 I cannot
get it to work at all.
I get no errors, but no results either, Netscrape just sits there and
does nothing ?
Below is an emample of what I am attempting to do. I have had a search
|
thread by: Robert Oschler |
last post Jul 20 '05 by: Csaba2000
I have a comparison web page that has several iframes that contain documents
from external domain web sites. Some of the web sites are "trusted". If
they want to change the top level document location (document.location.href)
via Javascript or using "_TOP" as the target for a SUBMIT operation, etc.,
then I want to allow it. The other web...
|
thread by: Chris Leffer |
last post Jul 20 '05 by: Martin Honnen
Hi.
I have a function that needs to read the value of a custom attribute I
have in some controls. In IE, the code below works ok, in Netscape it
returns 'undefined' :
if (elem.Valid == 'True')
How can I read the value of the custom attribute called Valid in both IE
and Netscape?
|
thread by: Martin Turner |
last post Jul 20 '05 by: Lasse Reichstein Nielsen
Can anyone tell me why the following bit of code doesn't work in Netscape
(6) but does in IE6 ?
It is just an example which is supposed to toggle some text in both the
<textarea> and <p> elements but what happens in Netscape is that the
<textarea> seems to get overwritten rather than written to whereas the <p>
element is just written to or...
|
| |
thread by: klhaines |
last post Jul 20 '05 by: klhaines
Hello.
This is the first time I've ever used JavaScript to write the global.asa
file. I don't have extensive JavaScript experience and use it mostly for
simple website functions (mouse rollovers, etc.). I would normally use
VBScript but am working on a coworker's script and don't have time to
rewrite it.
How can I handle errors in the...
|
thread by: Mat |
last post Jul 20 '05 by: Grant Wagner
How can I detect when a link has been clicked but the new page is
still in the process of loading? The document.location.href property
still displays the current location (understandably) not the one
that's about to load.
I have a page that reloads every 30 seconds in order to access live
data. If a user clicks on a link just prior to the...
|
thread by: Sybil |
last post Jul 20 '05 by: Lasse Reichstein Nielsen
Could someone tell me what is wrong with this function?
function imageNext(){
if ( document.part.src == "images/returnAdapter.gif"){
document.part.src = "images/valveIntake.gif";
document.getElementById("c").style.color = "black";
document.getElementById("d").style.color = "red";
}
The image name attribute is "part". But the image is...
|
thread by: Eqbal Z |
last post Jul 20 '05 by: Eqbal Z
Hi,
I have the following code, and onmouseover/onmouseout etc. does not
work in netscape 4.7.
<div id="divUpControl"><a href="javascript:void(0);"
onMouseOver="PerformScroll(-7);" onMouseOut="CeaseScroll();"
class="nounderline"></a><a href="javascript:void(0);"
onMouseOver="PerformScroll(7);" onMouseOut="CeaseScroll();"...
|
thread by: bigbinc |
last post Jul 20 '05 by: Dom Leonard
set scroll position in javascript.
Is there a way to do this without using document.location, example.
document.location = "#gohere"
<a name="gohere">
|
thread by: Thomas Theakanath |
last post Jul 20 '05 by: Thomas Theakanath
Hi,
Within client-side Javascript code, I am not able to read cookies set
by Perl CGI program. Is that normal? Could I change anything in the
way cookies are set from the CGI program to be able to read them later
in Javascript?
Thanks
Thomas.
|
thread by: ~John Hemans~ |
last post Jul 20 '05 by: John Hemans
Hi,
I have a popup window which is sized correctly for the content on a
number of pages in a presentation. However, from the last page of the
presentation I need to link to a new page (still within the popup
window), and change the parameters of the window so that it adds a
scrollbar to the popup window.
Does anyone know how to do this?...
|
thread by: Obscurr |
last post Jul 20 '05 by: Obscurr
hi
I'm would like my app to send a preformatted email(with subject and
body) everytime a user pushed a button, like : onclick "
mailto:this@that.com" , without the user seeing anything, i.e. not
being able to edit the message.
Using php, this is very simple; mail("this@example.com", "Subject",
"Line 1\nLine 2\nLine 3");
|
| |
thread by: Tony Vasquez |
last post Jul 20 '05 by: Lasse Reichstein Nielsen
var _section = location.search ? location.search.split("?") : "latest"
What does this line of code set ? Here is the code from which it came
from...
var _section = location.search ? location.search.split("?") : "latest"
var _date = new Date();
if (location.href.indexOf("http://") >= 0)
|
thread by: Matt Adams |
last post Jul 20 '05 by: Lasse Reichstein Nielsen
As well known I could specify the text color in the body tag like:
<BODY TEXT=WHITE LINK=WHITE VLINK=RED ALINK=WHITE>
What I want to achieve now is that always (!) the text of the last visited link and
the text of the link under the cursor are red. All other links should be white.
The problem with the construction above is that a visited...
|
thread by: Gilles Lenfant |
last post Jul 20 '05 by: Martin Honnen
Hi,
I got an element ( say <div id="foo">... ) at its natural position in a
page.
I need to get the distance (in pixels) between the top of that element and
the top of the page/frame.
Of course, I'd prefer this to work with IE and Mozilla family.
Many thanks in advance.
|
thread by: Robert Scheer |
last post Jul 20 '05 by: Robert Scheer
Hi.
I wrote this function to avoid the enter key in some of my textboxes.
In IE the function works as expected, in Netscape 6 or 7 it does not
work. How can I make my function works in both IE and Netscape.
<input type="text" maxlength="13" id="txtType" onKeyPress="NoEnter();"
/>
<Script language='Javascript'>
|
thread by: IVer Erling Årva |
last post Jul 20 '05 by: Douglas Crockford
Hi!
I am looking into making a database application and to limit the
client<->server traffic I want to handle all entry/amendment of the data in
the browser and save it all once the entry is completed. The problem is that
I need to include a dynamic table where the user can add, amend and delete
rows. For the sake of illustrating what I...
|
thread by: belzibob |
last post Jul 20 '05 by: Fred Basset
I have inherited a table where each row is a <form>
Each of these rows has only four columns, those being:
1) Item number
4) Quantity (blank textbox to fill in)
3) Description
4) Add link (to add just this one item.
That works fine but, now they want to have a submit button at the top
of the page, that when clicked, will submit every...
|
thread by: Clinton Goff |
last post Jul 20 '05 by: Grant Wagner
I am attempting to write a javascript app that will open a second browser
window, load a url, such as www.google.com (foreign url) and perform a
<File-Save As> function on that window. I am able to do this with opening a
second window that loads a local file, but I get an Access Denied error when
I attempt this with a different website. Is...
|
thread by: K.Prasanna Kumar |
last post Jul 20 '05 by: K.Prasanna Kumar
Hi
I would like to have 2 Divs one on the other.
The purpose is to show a progress bar and percentage completed
on top of the progress bar like
-------------------
| 30 % |
-------------------
|
| |
thread by: Arthur Connor |
last post Jul 20 '05 by: Jim Grimble
Below you will find the first lines of my HTML page.
Why doesn't popup a dialog window ?
I click the Html page which is on my hard disc. A IE 5.5 browser window opens
but not a dialog window inside.
<HTML>
<HEAD>
<TITLE>Test page</TITLE>
<script LANGUAGE="JavaScript">
<!--
|
thread by: Douglas Crockford |
last post Jul 20 '05 by: George M Jempty
I've noticed some confusion about the use of the this keyword. It is set for
each invocation of a function. There are 4 basic calling patterns:
1. foo()
2. bar.foo()
3. new foo()
4. foo.apply(bar)
In the first case, foo's this will be set to the global object (aka window).
This is an acceptable behavior for global...
|