IE To Netscape Event Assistance Needed

Jul 23, 2005

Does the world need another DHTML popup calendar? Probably not, but I'm writing one anyway. It's unique in that it allows drag selection of a range of dates. Works great on IE6 but I'm having some trouble with Netscape and events. In particular, the mousedown event doesn't work. The event fires, but I can't seem to get a handle on what html element was clicked.

View 4 Replies


ADVERTISEMENT

Help Needed With Event Testing Script

Jul 23, 2005

I'm trying to check for this bug with the following script and it
*seems* to work. In IE it reports "bubbling" and in Firefox "not
bubbling" but I really have no direct way to confirm the Firefox
results until the bubbling bug is fixed.

Basically the test script assigns an onscroll event handler to a
textarea and then scrolls the textarea down then back up, checking to
see if a the event handler works (assigns the "bubbling" variable a
"true").

I had to code things with a few settimeouts otherwise Firefox, unlike
IE, wouldn't display the down then back up scrolling of the textarea.
Which may have been a problem.

Lacking a "debugged" Firefox browser, is there some further (indirect?)
tests and/or rational that would support or discredit this script as a
valid onscroll event check? ....

View 5 Replies View Related

Does Event Handlers Work In Netscape.

Jul 23, 2005

Does Event handlers work in netscape.

<HTML><SCRIPT LANGUAGE="JScript">
function mouseclick() {
alert("I was clicked on " + window.event.srcElement.tagName);
}
</SCRIPT>
<BODY
<H1>Welcome!</H1>
<P>This is a very <B>short</B> document.

</BODY>
</HTML>

The above script works fine in IE But not in Netscape 7.2 :((

View 9 Replies View Related

Window.event Good For IE But Not Netscape/Firefox

May 8, 2006

I am try to detect the mouse pointer by

var event = window.event;


var x = event.pageX;
var y = event.pageY;

This is working fine in IE, but in
Netscape/Firefox where event return undefined.

Can someone tel me how to detect mouse pointer
in Netscape/Firefox?

View 6 Replies View Related

Function Validate Assistance

Dec 30, 2005

My validate() function is not working quite right since it should validate for at least on checkbox checked and even if opne is checked it will simply display the error message instead of validating. What might be wrong here?

Here's the function (note, all the checkboxes have the id='chk')

function validate(){
var countChecks = 0;
if (document.forms.getElementById == "chk")
{
for (var j in document.forms.getElementById)
if (j.checked)
countChecks++;
}
if (!countChecks)
{
alert('Select some checkboxes!')
return false;
}}

View 9 Replies View Related

IDS Signature Unescape Assistance?

Nov 22, 2009

I am by no means a JS programmer, but I like to exhaust all avenues when attacking an issue. A signature fired off on a piece of javascript that came across the wire, with an odd "var unescape" inside of it. I am hoping to throw this code out there, to see if anyone has any insight on what this might be.

I am assuming this is double encoded, but I am not certain. Here is the snippet of code the signature fired off from:

var ibdf=unescape("%u0b0b%u0b0"+"b");
var fdofdopf="xcvb9090";

View 2 Replies View Related

Troubleshooting Auto-Sum Provide To Get Some Assistance?

Jun 16, 2011

[URL]...heckboxes.html as directed and I can't get it to work. What do I need to provide to get some assistance?

View 14 Replies View Related

Assistance Requested To Identify Dumb Error

Oct 9, 2011

What I'm trying to do here should be simple and I suspect that I'm just overlooking something basic but I'm overlooking it. If you can tell me what I'm not seeing here, I'll be most grateful. This is the associated HTML code. Two statements to be rated from 1 to 10 using radio buttons.

<tr>
<td width="25"><strong>A</strong></td>
<td width="210">A statement is here</td>
<td width="21"><input type="radio" name="SI_QA" id="SI_QA_1" value="1" /></td>
(total of 10 lines like this)

[Code]...

View 13 Replies View Related

Passing Data From Prompt To Function Assistance?

Feb 7, 2009

I'm trying to pass data I gathered from a prompt into a later function.

1. Should prompts for information be in their own JS file separate from the HTML page? Or is it better form to have the prompts (for info) in the HTML page itself?

2. I have tried placing the prompts to gather info in several places, each time my script seems to stop after the data is gathered and does not perform the calculations which are contained within a function. The input data is gathered from a prompt, do I still need to "return valuea" and "return valueb" in order to use the input data in the calculation function? Initially I did not feel I did, as I am not performing a calculation initially, just receiving input.

View 2 Replies View Related

How EBay Displays Image Previews -- Assistance In Re-creating

Jul 20, 2005

EBay has implemented a different way to upload auction pictures ---
after browsing for the picture and selecting it, the image preview
instantly displays on the screen, which is nice. Apparently this
process is being handled locally --- could someone try to re-create
this ? ... I imagine its using DHTML or some other technique, I'm not
sure how I would code this.

View 1 Replies View Related

JQuery :: Make AjaxForm Work With The Assistance Validation Plugin?

Jun 28, 2010

[URL] I'd also like to use this plugin, so I don't have to create complex validation rules. validation plugin [URL]Trouble is, I can't figure out how to prevent form submission without first checking to see if the form is valid. My attempts so far have been based on using submit() to prevent submission of the form if validations valid() method returns false. But this doesn't seem to work. If I use ajaxForm, the submit() function seems to work differently. A form will still be submitted, despite a return false. validate has a valid() method that returns false if the form fails validation. How can I submit the form only if valid doesn't return false?

[Code]..

View 1 Replies View Related

Href Help Needed

Jul 23, 2005

Can someone help me on this little problem. I am using the following
code in an xsl page.

The directed page is written in the javascript: submitOnClick();

<a href="#">
<xsl:attribute name="onClick">submitOnClick();</xsl:attribute>
Main Menu
</a>

The problem is that when href is given the # sign, the moment i click
on the link it first jumps to the top of the page, before moving to
the directed page.

This can be seen when the page is longer than the screen size.

Is there any other solution to rectify that problem ..........

View 1 Replies View Related

If / Then / Else Help Needed - More Then One Condition Possible?

Sep 19, 2006

I want to write an if / then statement and have tried using this:

var MyVarMailto;
if (Request.Form("LoanRequest") == "Under $250,000") {
if (Request.Form("Organization") == "1") {
MyVarMailto = "emailA@address.com";
}
}
else if (Request.Form("LoanRequest") == "Over $250,000") {
if (Request.Form("Organization") == "1") {
MyVarMailto = "emailB@address.com";
}
}
else {
MyVarMailto = "emailC@address.com";
}

So basically I have a form that gets filled out and submitted which
passes the values to this page. I want to check the values against
conditions that you can probably figure out above and then set the
variable contigent to those values. I tried using AND after the first
condition but that doesn't do anything.

View 14 Replies View Related

Regex Help Needed

May 18, 2007

I need to strip everything from a file except what is between <body>
and </body>

View 2 Replies View Related

Tab Function Needed

Jul 20, 2005

Has anyone developed a function that can determine the width of a text
string using a proportional font? I would like to do this in order to
insert a variable number of spaces after the text to simulate a tab. Code:

View 5 Replies View Related

Form Action Help Needed...

Jul 20, 2005

I have a form with a name, and action, a post method.

In rare occasion I want the form action to be different to the default
action, so I do this: document.formName.action = "newURL";

This works fine under Mozilla, but does not work under IE5, 5.5 or 6,
it says: Object doesn't support this property or method.

Does anyone know what could be wrong?

View 2 Replies View Related

Allow More Rows To Be Added As Needed

Jul 29, 2009

I have a php form that submits to a database which is all fine, a portion of the form allows for more rows to be added as needed but for some reason it only allows for upto 9 rows to be submitted then it just loops back through the first 9 and i have no idea why.

[Code]....

View 7 Replies View Related

Info Needed On Using JS To Manipulate CSS

Apr 24, 2004

I'm starting to focus my attention on using javascript more (initially in conjunction with css) and would like to know which version of JavaScript introduced functions such as getElementByID() and such. Recommendations for good books/sites would also be appreciated. I also would like to hear where I can find good tutorials and examples of using JS to interact with CSS. One thing I am playing on playing with is using CSS/JS with forms to help users fill in required info. Hoping to make it even more obvious the famous little red asterisks by each form field.

View 6 Replies View Related

IE Blocking Needed Content!

Jan 28, 2005

I am working on a website that utilizes a DHTML (HTML + Javascript) Navigation bar, but IE blocks the "ActiveX" content, despite the fact I am just using javascript. This site will be used by every computer on our network.

Is there any way I can modify the script so that it is not blocked even when this "security feature" enabled?

View 4 Replies View Related

Basic Help Needed To Hiding And Showing Div

Jul 23, 2005

In a nutshell, I'd like to have a list of items, each of which fills out a
small table which displays some info about a particular item(the items being
a trouble ticket for a tech support ASP-built web-based app). There may be
zero, one, or many of these per ticket. Since some tickets have many of
these items (call them work items), the page can get awful long. I have this
part working already.

So my proposed solution to make the pages shorter would be to have one line
for each of these little work items. If you click the text in that one line,
it shows what had been a hidden div. If you click it again, it hides it.

See below:

View 5 Replies View Related

Ascertain Needed Div Height To Fit Content?

Jun 24, 2006

I have a javascript that manipulates the DOM with content that will be
of variable heights. How can I ascertain how high my div needs to be in
order to show all content without scroll bars. Rather than just having
this happen automatically, I want the div to expand with a DHTML
animation. So, I need to know where to tell the script to stop
expanding. In pseudo-code:

function divAni(){
if(this.height > 0){
if(this.height > 0){
this.height = this.height - increment;
}
setTimeout(divAni,delay)
} else {
if(this.height < this.height.needed){
this.height = this.height + increment
}
setTimeout(divAni,delay);
}
}

I'm just not sure how to ascertain how tall the div needs to be for the
content to display.

View 4 Replies View Related

Code Needed For Horizontal Scroller?

May 5, 2011

I need a JavaScript code so that I can achieve the functionality like the attached image. There will be horizontal scroller with left, right arrow for image scrolling. If a user will click on any image then that that image will be opened above the scrolling bar.

View 1 Replies View Related

JQuery :: Version Needed For Paging Tabs?

Dec 15, 2011

I'm working for a company that is using version 1.4.4. But Ive acquired the need to paging tabs.In the example though, It uses 1.3.2. Is this the only version of the library that i can use. or can I use my existing library?

View 1 Replies View Related

Iframe Scrolling - Scroll Bars Automatically Appear When Needed Or Put Them There Permanently

Aug 13, 2009

I know that iframes can be set to have scroll bars automatically apear when needed or put them there permanantly. However, I would like to have a Javascript slider on the topmost page scroll the iframe. It was possible to make a link on the topmost page change the content of the iframe by putting the iframe name in the link's target. Is this possible with a slider? I ask this because some of the content inside the iframe is on external pages so obviously we can't add the scroll bar there.

View 11 Replies View Related

Write A Script That Adds An Extra Field To A Form When Needed

Feb 11, 2010

I have been trying to write a script that allows a user to click on a button like a plus sign to add an additional field for a phone number when they have more than one phone number to enter. I have created a script that sort of does this. It doubles up what is already there, so, the first time, everything is fine, but after that I get a lot more fields than I want. I am a php programmer and not familiar enough with javascript to get to what I want. My script is included below. What I am doing here is retrieving the html content and then adding it to what is already there. In php I would use an if conditional test to see if the data has been retrieved.

The first time it would retrieve the data into a variable. After that it would not retrieve it. I think I am getting into some scope and sequence issues here. Javascript is a bit different than php in these regards. Also there is a commented line in the code that asks another question about the use of variables that I don't understand. I also tried using appendChild() here to no avail. I couldn't get that to work at all.

[Code]...

View 3 Replies View Related

Form Validation Code Needed To Make Sure Radio Button Is Selected

Apr 7, 2010

Does anybody know how i check to see if the radio button is select and also can anybody tell me how i can check for an email in the correct format the function isValidEmail in the above alows emails to pass through.

View 4 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved