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?
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:
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 ..........
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.
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:
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.
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.
I want to know is it possible to block user from selecting any text displayed on a webpage? What I want is to block user from selecting anything by mouse drag.
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.
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.
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? ....
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.
I wrote a script that tracks the number of characters a user types into a text box. It has a limit you can set, and when that limit is reached I would like to block the user from entering any more text.
How can I block the user from typing characters in the textarea?
I'm doing some code to show an image where a user clicks on an image map. I've got code that tracks the mouse location and uses that to place the image where you click (it also stores the value in some inputs so the co-ords are sent through post).
Works perfectly fine in FF but in IE it stops tracking the mouse's location once you move over the image (so when you click it places the image at the edge).It should be tracking the client mouse at a document level so I find it bizarre it doesn't track it for this one element.
Code:
<script> if (window.Event) { document.captureEvents(Event.MOUSEMOVE);
I am using google translator in my own site to translate it to other languages ,but , when mouse is over the text , google popup page indicated , that containes original text in english! Can I disable this popup page ?
In the code below the alert at the last line of this code snippet hits before the code in if block completes which returns some value, by calling chached.get method in different js file.code...
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?
Should I expect some of my users to not be able to view a report that I am launching in a new web browser if they have any popup blocking tool bars or other software installed on their computer?
I am trying to achieve the same thing as this website.[URL]hen you click on the next page, or last page, the <DIV> get lock with a updating message. How is that done?
I am very new to this and have just written some code to randomly generate an image on my web page. Each time I test it, a bar at the top of the page comes up saying:
"To help protect your security, Internet Explorer has restricted this file from showing active content that could access your computer. Click here for options..."
How do I stop this coming up on other peoples computers, because if they don't click OK, they can't see my images? Is it my script that is causing an issue, or is there a simple fix for this?
Many thanks in advance for your help, and please remeber I am very new to all this, so try to explain in simple terms.
I'm trying to halt a function's execution while waiting for user interaction.
For example, I have a function called getUserValue() that pops up a hidden div containing several buttons. Each button sets a value. I want use a function to pop the box, wait for the users' button press, and then continue the function based on what the user presses.
Behold, simi-code:
function getUserValue() { ... lots of code ... var returnValue = doPopBox(); ... lots more code based on users selection in doPopBox(); }
I've written quite a bit of supporting code, but the getUserValue() continues to execute after the box is popped up, even before the user presses a button.
I used setTimeout() to check to see if the button has been pressed -- but when the timer starts, the interface is locked and a button cannot be pressed. I also tried using a recursive function, (check value=null, if it is, recheck), but Firefox and IE apparently don't like what may seem like an unending recursive loop.