JavaScript not working in IE and Safari, works in Firefox fine.I have a simple function that does submit for me:
<script language="javascript" type="text/javascript">
function sort()
{
//selected item value from the drop down list
var dud=window.document.statusForm.sortByStaff.value;
window.document.statusForm.action="status.cfm?sortBy="+dud;
window.document.statusForm.method="post";
window.document.statusForm.submit();
}
</script>
I have several drop down boxes (<select> element) in which i set
onclick="sort()". Works perfectly in Firefox, and doesn't work...
Javascript include not working in Safari?Hi everyone,
If you visit this page in Safari, you will just see a paragraph of
text: http://cabin.trailbehind.com/
In Firefox, the search box and the side menu get rendered properly
(via javascript).
Here is a test I did. The first Alert fires, but not the second Alert.
Anyone have any thoughts on this mystery?
window.onDomReady(onReady);
function onReady() {
var menuWidget = renderHomeMenu();
...
}
//include via javascript include media/javascript/Widgets/
MenuWidget.js
function renderHomeMenu() {
alert(1) //NEVER FIRES
menuWidget = new MenuWidget('col2', false);
}
...
javascript within a javascriptHello,
I have a multi-frame page. The frames are named Frame_1, Frame_2 and
Frame_3.
Frame_1 has a drop down box. When a value is selected in this drop
down box, Frame_2 is updated using an asp file (as I have to read from
a back-end access database).
In turn in the asp file, I have a Body onload tag to execute a
javascript function within Frame_2. this function updates the contents
of Frame_3.
Till now this is working fine.
Here is the problem. Frame_3 has a form with a radio button. When a
radio button is selected, I want that a function be executed in
Frame_3.
However since conte...
Javascript not working with Safari/Firefox (Mac)
Navigation is not possible on a Mac with Safari/Firefox on:
http://www.kerst.karelv.nl/frames/navigatie.html
Why does the javascript script not work?
--
JB
Change:
....
if (document.all) {
menu.innerHTML=menucontent
}
....
to
....
if ((document.getElementById)||(document.all)) {
menu.innerHTML=menucontent
}
....
(Actually document.all is not needed at all, but let's keep the code as
close as possible to the the unknown author's original).
This is a war time script (Great Browsers' War), and its way to determine
platforms is obsolete for 3-4 years at least.
VK w...
Declaring a div using Javascript not working in SafariI am a newbie. This is someone else's code which I have to modify to
work in Mozilla and Safari. The changes I made so far have allowed it
to work in Mozilla but not Safari. It seems to be getting hung up on
the first line of code. I put an alert after that line and I never saw
it in Safari but I did see it in Mozilla. Any Thoughts?
Thanks,
Andrew
Here's the code:
{
document.write("<div id='orbitLayer' style='position:absolute;
left:0px; top:"+document.all['topBanner'].offsetWidth+"px;
width:"+document.all['topBanner'].offset...
Safari: targeting frames with a javascript event does not work.The following code will work in Mac IE 5.1, but not in Safari 1.0
(v85). Anyone have any hints?
<!-- Code begins -->
<html>
<body>
<a href="text2.html" target="frameContent"
onMouseDown="alert('Hi.');">Put text2.html in frameContent</a>
<iframe width="200" height="200" src="text.html" frameborder="yes"
scrolling="yes" name="frameContent">
</body>
</html>
<!-- Code ends -->
Marc wrote:
> The following code will work in Mac IE 5.1, but n...
Safari: referencing frames with a javascript even does not work.The following code will work in Mac IE 5.1, but not in Safari 1.0
(v85). Anyone have any hints?
<!-- Code begins -->
<html>
<body>
<a href="text2.html" target="frameContent"
onMouseDown="alert('Hi.');">Put text2.html in frameContent</a>
<iframe width="200" height="200" src="text.html" frameborder="yes"
scrolling="yes" name="frameContent">
</body>
</html>
<!-- Code ends -->
show
In article <d8d3a95b.0311232309.53aa09c...
Javascript not working: Safari, IE5.2, iCabA particular web page using "JavaScript menus" displays no menus at all
with Safari 1.2.1, or IE (last). With iCab 2.9.7 it displays something
unclickable and wrong.
I then tried a Mozilla or two and Opera, and those worked.
http://www.topangabanjofiddle.org/ is the site in question.
I wrote to them and they claim they're following standards (*which*
standards was not stated).
Is there a way to figure out who's responsible for this lack of
functionality?
Gary Shapiro wrote:
> A particular web page using "JavaScript menus" displays no menus at...
Why won't cookies work with my javascript under Safari?I have been testing some javascript for my professional society web
page, and found that I couldn't get Safari to save any cookies. No
matter what I assign to document.cookie, I get an empty string when I
read back document.cookie.
In researching this problem, I found a function on the Apple website
to test for cookies. I found that the function sometimes tells me
cookies are enabled and sometimes disabled, as follows:
1) Open the Safari Developers FAQ
(http://developer.apple.com/internet/safari/safari_faq.html)
2) Push the "Got Cookies?" button. I get the reply "You g...
Javascript and IE? Javascript and C#?While my question might be simple, the environment around it is
terribly messy and so I will try to keep this clear and simple by only
including the relevant code - however, as I will soon suggest, I worry
that the problem isnt in what would seem to be the relevant code but
instead is lost somewhere in the do-and-donts of the peripheral code.
So at the end, i'll try to include all the affected code and you can
see if any of its actually relevant. I know there is a lot going on...
sorry, but I tried to write this clearly.
So here is what I imagine to be relevant. I'm working with a pa...
javascript+safaridocument.forms[0].submit
I think the above function has problem with safari . It works fine on
IE and Firefox.
If yes please tell me the alternative.
dishant
On Sep 28, 9:57=A0pm, dishant <japra.dish...@gmail.com> wrote:
> document.forms[0].submit
> I think the above function has problem with safari .
Why do you think that? Other than the missing call operator, it
should work - do you have an example that doesn't?
--
Rob
dishant wrote:
> document.forms[0].submit
> I think the above function has problem with safari [...]
1. Go to <http://www.google.com/>.
2. ...
JavaScript RegexDear JavaScripters:
I have not found quite the detail that I need for regexes. If
you have a URL to a good site, please post it. In particular, how do
I group subexpressions?
I wish to parse a string to see if it is a valid fixed-decimal
value.
I start with
/^
How do I check a set of characters optionally? I want to check
for a sign character. The string might start with "+" or "-", but if
it starts with neither, that is fine. Do I leave an empty choice in a
parens set? Is it then
([+-]|)
or
[+-]?
?
Then come...
Safari and javascriptHow can you make a div visible and hidden in safari?
document.all["div_submit"].style.display = "none";
Does not appear to work.
Also, can anyone tell me how to turn on javascript error commenting in
Safari? Right now, if javascript fails or errors, the browser just sits
there and doesn't return any error message.
--
Christine
Christine Forber wrote:
> How can you make a div visible and hidden in safari?
>
> document.all["div_submit"].style.display = "none";
>
> Does not appear to work.
of course !
document.all
is Internet...
regex and JavascriptHi -
I've never tried using regular expressions with JS. Can someone help me
with a simple one?
I have a field that a user inputs that looks for an integer, or a some
integers with a decimal then does some calculations and converts it to
currency. Problem is, that if i have to recalculate, that field now has
a "$" in it which throws off calculations. I'd like to look at the
field and if there is a "$", strip it out, do the calculations, etc.
So, something like:
function getDollar() {
myAmount = window.document.form.amount.value;
//here is where i want to look f...