I have the following problem in Internet Explorer 6: after loading Google map (use simplest example from Google API site) I see abracadabra instead of russian letters on control buttons ("Satellite" and others).
If I simply remove check from View | Encoding Auto-Select and then check this item again the page is refreshed and everything is ok with russian letters. (By the way, there is no such problem in FireFox).
So my question: is it possible to execute these menu commands by the Javascript code? If yes - how? If no - what to do?
From a browser address bar command? Say if a page has hundreds of checkboxes, and I needed to check them all, but only 2-3 should be left out, how do I input a browser command line, to check it all, so I will manually uncheck the 2 or 3 that's not needed?
So im working on a case where I need to make a random ad pop up every time I refresh that web page. I've got all the steps down except to where I need to insert a command to write the text to the document.
*Insert a command to write the following text to the Web document:
where URL is the value of the rLink variable, n is the value of the rNumber variable, and description is the value of the rAD variable.
what I have so far (all steps completed) is
<script type="text/javascript"> var rNumber= randInt(5);// generate a random integer from 1 to 5. var rAd= adDescription(rNumber);// description of the random ad.
i want to run a query when the web page is closed.i think i can do this using javascript. when the browser window is closed then a javascript function will execute and the query will execute.
i'm developing jsp application. if the user closes the web window then a query should be executed which will affect the feilds in MySql database.
I am wanting to be able to swap out any of them to make them 'primary' this works for the first click, but after the first click it makes every div id and input name the same as the first that was clicked.It's also not working AT all if i click on the bottom link first, then a link above it.Top-down works, bottom-up doesn't.
And the jscript detects when d0, d1 or d2 is clicked and executes my script. It all works perfectly, however when you click on a link it will jump to the top of the page as a side effect of the a href="#" I assume?
I am having a problem accessing and element by ID in a script that runs via 'window.onload' at the end of all my script definitions. Do the HTML elements exist at that point or should I look somewhere else for a bug?
I have a dynamic menu on my site and it uses javascript to make slide up and down the page. I think its pretty cool but it seems that it works independently of the page so if you try and reduce the width of the window, it starts getting messed up. Have a look here and you will see what I mean: [URL]. One other thing I don't like is that it forces the window to 100% each time you click a link, I am sure that will annoy people. Is there an easy way to stop the central column from "crashing into" the menu when the window width is reduced? And how do I stop this 100% window without messing the page up?
The menu code is here : (There are a few lines of php at the beginning but the main part is all javascript) Code: /* * Next display the menu. * * */ $start = 0; $last = 20;
$sql = "SELECT sc_name, user_id FROM clients WHERE confirm = 'y' AND type = 'E' ORDER BY lig_pos DESC LIMIT $start,$last"; $result = mysql_query($sql) or die ("Could not execute STARTER FEATURE query."); .....
I'm writing this in case it might help someone who hates Internet Explorer as much as I do. I'm fairly new to jquery so many people may already know this but this one stumped me pretty good.I had my code in document ready but for some reason all of it wasn't executing. It would just stop at a certain point. All the code executed fine in Chrome, Opera, Firefox, and Safari. Only internet explorer got hung up on a line of code that i wrote in regular javascript and not in jquery syntax and just would not continue after that. After changing it to jquery syntax it worked.[code]
1. When I have the "<textarea>" code lines in it put a text-area on the page, but it puts all of the code following that first text-area line into the text-area box and doesn't execute that segment of code.
2. When there is no "<textarea>" (for the sake of seeing if the rest of it worked) it doesn't check the survey.
I'm stumped and can't figure out what to do at this point Code and pictures follow:
I am using jquery to getjson from my service. The service works perfectly if you use fiddler and through the mvc code behind. You can also call the URL directly in the browser and it sends back the correct data.
But when I execute the below code it calls the service but nothing comes back or there are errors I cannot figure out what they might be. It seems like a very simple test of the getjson function.
I want to create a menu like the left (as we see that) menu of getitnow.gr.Do you know any script for this?I use prototype framework,is there any script related with prototype? I mean a script that make the menu to stay even we use the scrollbar of the brownser.
provide me with code to make a collapsible menu? What I'm looking for is a vertical menu, that will open up the sub-categories upon a mouseover. Clicking on the menu item will bring them to the specific page. Oh, and this might not matter, but I'd prefer if I was able to style the menu to fit with my site theme.
I want to know the height of the viewable portion of a page (minus scrollbar) in Opera and Mozilla.
For Opera, I could use document.body.clientHeight. Unfortunately, this won't work in Mozilla because Mozilla also subtracts the sizes of the top and bottom margins.
For Mozilla, I could use document.documentElement.clientHeight. Unfortunately, this won't work in Opera because Opera returns the height of the entire page, not just the viewable portion.
So I have two options:
1) Use browser detection code to determine if the user is running Opera or Mozilla, and then use the appropriate clientHeight code.
2) Use window.innerHeight. This is supported by both Opera and Mozilla, however it returns the height of the viewable portion of the page *including* the scrollbar. Is there any way to determine the width of a scrollbar? If not, then I would have to make an assumption and subtract the hardcoded width of the scrollbar from window.innerHeight... but only if the scrollbar is present, is there a way to determine that?
I'll be the first to admit, I am not skilled with javascript, but I can do a little work here and there. I remember learning there is a way to detect a user's/viewer's browser. Is there a possible javascript that allows me to detect a viewer's browser, the based on the browser, selects css/html to use so that the website is viewed correctly?
I wanted to know if we have some validator tool available which can validate our jsp code for W3C standards and for cross browser compatibility for browsers like IE, Mozilla, Chrome.
I am writing an application that (unfortunately) will work only with certain browsers and operating systems. Does anyone have a link to a good "browser/OS detection script"?
I'm looking for something simple that I can just include in each page of my html code, and us it like this: