Two Different Scripts To Work Together?
May 31, 2011
currently working on a project involving an interactive map with various properties on it that people can find info about.
The two parts are the interactive map itself (driven by mysql) and 'more options' from a dropdown that will allow the user to hone in on specifics.
You can see what I've got thus far here.
I know that the 'more options' are returning the proper information when I force the location id number:
Code:
// BYPASSING THE MAP ID FOR TESTING PURPOSES - 1 REPRESENTS WINDSOR EAST
var location = 1 ;
var social_housing_type = document.getElementById('social_housing_type').value;
var layout = document.getElementById('layout').value;
[Code]....
View 1 Replies
ADVERTISEMENT
Jun 14, 2010
The "Permission denied" cross site issue.
I have to check from my external domain if a service is running on localhost:8080 of a local machine.
I'm using XMLHttpRequest to do it.
I'm checking a local-web-server, not a file.
Every browser doesn't work, but Firefox. So I'm looking for a work-aorund.
An iframe? a flash swf? an applet java? HTA applications?
A side question is, why does FF work? Because it's a local-web-server?
View 2 Replies
View Related
Mar 30, 2010
I cant get my cookie to work. I believe its not my javascript that is wrong. Can anyone take a look to see what i did wrong in my cookie? I have to pages dropdown1.html and dropdown2.html. Both pages have the same exact dropdown list. There is also a javascript file called script.js which makes it so you get an error if you select the same option on the second drop down list as the first. Also in the script.js i have a cookie that should run so dropdown2.html should now what was selected in dropdown1.html Can anyone see if i made a mistake in either my javascript code in my cookie? Right now I am not getting the error message if you select the same option as the first. Ill show all my code incase you need it for reference
dropdown1.html
Code:
Code:
Script.js (this is the part where I cant figure out why the error message does not appear on the second dropdown menu if user selects the same option as the first)
Code:
View 4 Replies
View Related
Jan 12, 2011
I have a problem, I don't know why this code doesn't work on IE ver 8 On Firefox, Chrome it is like I want, on IE - no reaction Is this some html/css problem or my fault on js? I'm sure about .js code is correct.. I think.. link html/css/js
View 6 Replies
View Related
Mar 15, 2011
this will not work on change. also the innerhtml wont display. please help. here is the js:
function checkemail(){
if (document.suform.email.value && document.suform.emailcheck.value)
{
if (document.suform.email.value == document.suform.emailcheck.value)
[code]...
and here is the html:
Re-type Email: <input type='text' class='rfield' name='emailcheck' id='emailcheck' onchange='checkemail()'></td><td style='position: relative;'><div id='wm' style=' font-size: 11PX; position: relative;'></div>
View 4 Replies
View Related
Feb 25, 2004
can i use x on top of cbe versions prior to 5? will this cause any conflicts and break anything? is there anything i need to be aware of or watch out for?
View 2 Replies
View Related
Jul 23, 2005
Here is the layout of my form from left to right, from top to down.
- buttonA, buttonB, buttonC
- textbox, textbox, textbox
- buttonXXX
After the user types in the textboxes and press enter (with the cursor still
in one of the textboxes), buttonXXX should be pressed by default.(the user
is too lazy to take the cursor over to buttonXXX and click).
The problem is the top/left most button (button A) gets pressed which annoys
them to death. So I tried to do this.
In the bottonA's onfocus event handle-
document.forms[0].elements['buttonXXX'].focus() .
Result: ButtonXXX receives focus alright, but the code for buttonA still
executes!
View 1 Replies
View Related
Apr 11, 2006
The following passes the test as valid, and the mouseover for the six
indicated areas also work.
I need various areas to link to another page, including the six
mentioned.
However either the MAP works by itself, or the below mouseover works,
but not both. Code:
View 11 Replies
View Related
Jan 19, 2007
The last time I tried to ask this question...Google Groups screwed up
my message and there was no subject (sorry for that - I know it's
annoying).
I'm trying to learn how to develop a plug-in that allows users to
display data from one site in a third party site, like Google Adwords
or the Digg counter for news stories. I took a look at Digg.com and
found the following:
It looks like digg is doing the following to show the number of "diggs"
for a story on your website. On my page I would have the following:
View 2 Replies
View Related
Jul 20, 2005
I did a clean install of Windows XP on my computer and my javascript will
not work. I've tried all types of browsers, I've download the Service pack
1 for XP and IE. I have download java from Sun, which I know is not
javascript but it could not hurt. I have done everything I know of to fix
this problem but still Javscript will not work on my windows XP. I don't
know where to turn from here, Microsoft surely does not have any info about
on their website....
View 4 Replies
View Related
Jul 20, 2005
I've written some kind of menu to display a diagram with input fields
for a budget plan. A user should be able to change values, which are initially filled by
a database value, and get all corresponding values filled by the
program.
//value given by database
showText[k].setAttribute("value", eval("liste[i][TEXT" + k + "]"));
//onchange event for the user to change the value
showText[k].setAttribute("onchange", "calculate('cost" + i + "')");
//function to recalculate corresponding values
function calculate(myId) {
if (myId == "initial") {
...
}
else {
myId = myId.slice(4);
//getParents(myId) returns corresponding values for myId
var myParents = getParents(myId);
for (var i = deep; i >= 0; i--) {
var sum = 0;
for (var j = 0; j < myParents.length; j++) {
...
for (var k = 0; k < children.length; k++) {
sum +=
parseFloat(document.getElementById(eval("'cost" + children[k] +
"'")).getAttribute("value"));
}}}}}}
My Problem is:
IE and Netscape always use the value initially entered by the database
and not the new value entered by the user.
Is there a timing or DOM problem?
View 5 Replies
View Related
Feb 18, 2011
When trying to use jquery 1.5 with IE 9 RC I get an error saying that at line 5460,character 4, propery or method getElementsByTagName is not supported.
View 3 Replies
View Related
Jul 27, 2010
I have jquery code in a default aspx page. I have tested and it works in Visual Studio Environment. I deploy the web application to the IIS. When I try to browse the aspx page, it rendered the page, but none of the jquery code runs.
View 3 Replies
View Related
Jan 27, 2011
my jquery can not work on ie 9.0, it tell me the script error, at the botton show a yellow icon.
View 2 Replies
View Related
Jun 8, 2011
It does not work in ie7!I have been trying to fix for 2 hours now! Please help. I tried using jquery 1.6.1, 1.5.2, min.validation, regular validation, i changed the buttons to input type="submit" and did everything else I could find but nothing works.When you click submit, it does not validate. It goes straight to my thank you page and I get a blank form in return.I do not know much jquery, just enough to know what I copy and paste and make some minimal changes.[code]
View 2 Replies
View Related
Apr 15, 2009
The previous developer who has been working here used javascript on some forms and they're not functioning properly when opened with IE (any version)
The link to the form:
Quote: http://www.avis.com.lb/reservation-inquiry?group=%27Group+V+(e.g.+Renault+Kangoo)%27&cor=%27Lebanon%27&corofres=%27LEBANON%27&hr=%2709%27&monthcoll=04
On firefox, it doesn't prompt any error and as you can see, it auto selects "Lebanon" as a country and it selects the date with 3 days in between till the return date. These don't work on IE, it just shows blank.
Here is the javascript used. code...
View 7 Replies
View Related
May 31, 2009
I am writing an Online price quoting script for Sydney logistics a storage company. I've written this and the interface looks good so far.:thumbsup: But i need it to calculate the cost of the storage they want. they input how many and for how long they want storage for four different pallet types and i want the price to appear in the text box down the bottom.:eek: Ok, here is the code...
View 5 Replies
View Related
Nov 7, 2009
This will work in firefox but not IE. Any alternative I am new to coding and not sure how to do this.
<div id="leftnav">
<ul>
<li><a href="home.html"><img src="home1.gif"
onmouseover="document.homeb.src='home2.gif';"
onmouseout="document.homeb.src='home1.gif';" id=
"homeb" alt="home1"></a></li>
[Code]....
View 4 Replies
View Related
Nov 11, 2009
if f returns true then href gets 'executed', else not. Works in FF, GC. In IE 7 does not work. How to get this working in IE ?
<a onclick="return f();" href="../jsp/...">
function f()
{
[code]....
View 5 Replies
View Related
Apr 28, 2010
I figured as long as I copied the code from the How To Use section here.
[URL]
It would work... but it doesn't, and I have a 7 day deadline.
View 1 Replies
View Related
Aug 20, 2010
I read a beginners book on js and now I'm working through a cookbook style book to get a hang of things, I came across an example for redirecting URLs in the book that didn't work:
<form>
<input type="text" name="url">
<input type="button" value="Go" onClick="location.href=this.form.url.value">
</form>
After searching on the net I found another that works perfectly but I don't understand why the one in the book doesn't work.
works:
<form name="openlocation">
<input type="text" name="href">
<input type="button" value="Go" onClick="location.href=document.openlocation.href.value;; ">
</form>
I tried replacing the url with href and other tweaks, is it that you cant use ".this" here, making it necesary to name the form?
View 3 Replies
View Related
Sep 11, 2010
Why doesn't the following code work in firefox:
var e = document.createElement("Div");
e.innerHTML = "<p>Hi</p>";
GP.appendChild(e);
..GP is a div..
It works in IE. What is the correct code for FF.
View 4 Replies
View Related
Jan 28, 2011
i can't get my new logo to work in IE, it's working fine in Chrome and FireFox, it must be a JavaScript problem. here it is: [URL] And the JavaScrip:
$(function() {
var canvas = $("#c");
var canvasHeight;
var canvasWidth;
var ctx;
var dt = 0.1;
var pointCollection;
[Code]...
View 6 Replies
View Related
May 17, 2011
here is the code, it is supposed to calcualte the total of the books and display them but when displayed all i get is NAN (only works in ie). This is part of my course work .
<html>
<head>
<title>Arrays</title>[code]....
View 2 Replies
View Related
Jun 29, 2011
I am having a problem with these 2 scripts, one is a slideshow and the other one is a twitter stream. Only one of them works. [code]...
View 4 Replies
View Related
Dec 25, 2011
<html>
I don't see that x loses 10 what's the problem.
View 1 Replies
View Related