Looks fine in IE and Opera, but is designed to write into a textarea instead of the <div> if the brower is not IE4+ (why is it working in Opera?) so on Firefox you can see the ugly textarea....
Is there a way to either turn off the Javascript in Firefox so it doesn't work at all, or test specifically for that browser (it's not testing for anything but IE right now as I understand it) and put the text into an absolutely positioned element? Code:
I am trying to include some javascript in my website which rotates some stored images. I have attached the code for the index page of my website as i am having some problems getting it to work. Can anyone see where i am going wrong? This is my first attempt.
I am using foldoutmenu 3 and am having problems with viewing my menus in firefox. On my sub3 menus i have more than one line of text in some places. firefox does not recognise that there is more than one line and the text simply overlaps the sub-menus below it. I thought i had got around this by placing empty 'spacers' like so;
oFoldMenu.make('sub3','')//spacer
unfortunately, i have just viewed the site in IExplorer and it has added way too much space since it does in fact recognise the fact that there is more than one line in the first place.
Is there some way i can make firefox recognise the extra lines of text? Has anyone else had a similar problem?
I was wondering if you could tilt a whole div with its content (text, images), like to an angle of 15�. I'm pretty sure it's not possible (because of the text), but I've been away from the world of webdesign for 4 years, and I don't know much about what can be done those days...
I am working on a Javascript application and i am facing a strange behavior of the application in IE. I am creating a table at runtime using DHTML and registering event for the table row click. When i deploy this application on web server and browse the application, the events fires in firefox and chrome but in IE the events are not fired. If i browse the application from the server with localhost, the application triggers the events and fails when i use machine name.
The following is the source code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title></title>
I have are created dynamically buttonset toggle radio button with following code. All is working okay but just I have added onclick function which is doing window.location which is working with FireFox but not working with IE and google chrome.
<script type="text/javascript"> var chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'; $(function () { $('#btnSet').buttonstrip();
I have a jQuery code to allow users to login using a lightbox [URL] and immediately start downloading files, without being redirected or having the page reloaded. It's perfectly working in Firefox but Internet Explorer keeps showing the login box until I reload the page
Suppose,closing the browser through Browser Close Button(Top Right Corner cross(x) button), i have to execute some ASP script , for that, in body onUnLoad Event calling a fucntion called CloseWin(e,frm), it is working in Internet Explorer successfully , But in FireFox not working. how to solve this problem. or any other way to get the co-ordinates of browser close button( code for both IE and Firefox).
code follows
function CloseWin(e,frm) { //frm required for my program var bButtonClicked = false;
I have the script below, which is supposed to populate a text box on a form which opened this popup window - it should then call a function 'PostThisPage' on the opener document, and then close the current window/popup.
This works ok in IE - can anyone please help me by pointing out what it needs to become cross-browser compatible? It doesn't work in Firefox 1.0.
All this time I was testing my sites only in IE6 until my friend told me it wasn't working in FireFox. So I have to make changes in my Javascript code. In the Javascript console all the errors are pointed at the window object in all lines. alert(event.type) gives event undefined. Then I tried Event.type because I read somewhere that mozilla reads it as Event while IE as event. But then it gives:
Error: document.Event has no properties Source File: http://localhost/xxx/xxx/xxx.js Line: 3
Any idea of what I should be doing for it to work in FireFox ? The site works perfectly fine in IE until someone told me that IE doesn't follow w3c rules.
I am using a custom JS dropdown in place of an HTML select ... the problem is the drop is used to select a link then a button is clicked to goto the selected item.
In IE it work perfect ... but in FF the values just get appended to the URL in address bar ... it is just a window.open function but will not work. Code:
post on this forum (i read rules etc.) so please welcome me ;) and help me if you can, I will do same for others if my knowledgle allows to.Well, let's get to the point.I am building extension for Firefox (only) and I am stuck. I am trying to retrive text and text only from a web document. I am to use javascript and here is what I got so far.(example)
<p id="essay">This is <span> just </span> <b>a test text !!!</b></p> <table><tr><td>random test elements</td></tr></table> Random text on the website <br />
Im trying to design something that would be intuitive for the user to represent rotating something. Think along the lines of rotating an image a specific amount of degrees. The obvious choice is to have the user input CW or CCW and the number of degrees but i would rather present something graphically and let them manipulate that, then in JS determine the rotation.
The only thing i have been able to come up with right now is something along the lines of the iPod click wheel with a dot at the top. As it is clicked and dragged it spins, but the problem is i dont know if this is possible in just JS / HTML, i don't want to use flash.
I'm in need of a good, reliable ad banner rotation setup where I can add/delete banners (and their links) remotely because I'm going to use it on over 100 web pages.
My question is: is java script the best way to go? If so, can anyone provide me with a link to a good script I can try?
I don't need to track how many clicks, so a simple script would work fine.
I use the following script in order to show/hide a section, and at the same time to change a companion .gif with another:
function doExpand(paraNum,arrowNum){ if (paraNum.style.display=="none"){paraNum.style.display="";arrowNum.src="../../images/arrOn.gif"} else {paraNum.style.display="none";arrowNum.src="../../images/arrOff.gif"} }
and then in the body: <div id="reltpc"><a href="javascript:;" onClick="doExpand(xplan1,ico1)"><img id="ico1" src="../../images/arrOff.gif" alt="" width="10" height="9" border="0"> Show Info</a></div> <div id="xplan" style="display:none" onClick="doExpand(xplan,ico1)"> <p>text here</p> <p>some more text here</p> </div>
Furthermore, two more scripts are used in order to show/hide a section without the image:
function doSection (secNum){ if (secNum.style.display=="none"){secNum.style.display="block"} else{secNum.style.display="none"} }
function noSection (secNum){ if (secNum.style.display=="block"){secNum.style.display="none"} }
and then in the body: <div id="more"><a href="javascript:;" onClick="doSection(dtails1)">More Info</a></div> <div id="dtails1" style="display:none" onClick="noSection(dtails1)"> <p>text here</p> <p>some more text here</p> </div>
All three of them are working good in IE and Ffox, however the second claims to use "gelElementById" instead.
Well, how could it be done? Would you help me please, to get that conversion?
I have a php page with a drop down list, and the default selected option is "Select a location" (without quotes). Using the drop down initiates a database query. One of (3) things should happen:
1. If an option is selected for which results are available, they should be displayed on the same page beneath the drop down list in a table.
2. If an option is selected for which results are NOT available, a message should be displayed informing the visitor that there were no results for that query.
3. If the default selected option has not yet been changed (ie: when the page first loads), no message should display.
#1 and #2 work, but the message described in #2 is still displayed when the page first loads before the default selected option is changed (#3) but in Internet Explorer only. Firefox displays the page correctly under all three conditions.
The message that I want hidden on page load is wrapped in a div named "infobox" and I'm using the following script to hide it which is at the bottom of the page:
<script language="javascript" type="text/javascript"> function ClearDiv() { if (document.form2.name.options[document.form2.name.selectedIndex].value=="Select a location") { document.getElementById("infobox").style.display = "none"; } }
ClearDiv(); </script>
I've also included the php code that writes out the message and the table below....
I have a script that uses eval() and it works great under IE but it craps out when eval() is called in firefox. Just ignore all the commented out alerts, it is for testing purposes. Code:
I have a section of Javascript code that works a treat in IE but does nothing in Firefox. If we remove the doctype it appears to work, put the doctype back in and it breaks. We need the doctype to remain in so the page renders correctly cross-browser. Code: