I want to have a text field where people can type in a value. Then I want to have a href open a url with the text field appended to the end.
So if the text field says "elephant" then when they click the link, a page will open with at example.com/elephant.
I think javascript would be the easiest way to accomplish this but I just don't k...
If I do something like
map = new GMap2(document.getElementById(mapCanvas));
directions = new GDirections(map);
directions.load("SOME DIRECTIONS HERE");
Under firefox on LInux it works great!
Under safari it displays the map but not the directions.
What gives?
...
Our company uses Servoy for rapid application development. It is a 4GL environment, that can target web-applications running in Tomcat as well as Java applications, all from the same program.
While it is standards based, some aspects of the generated code are proprietary, which couples those applications to the Servoy environment and to...
I do a bunch of json requests with dynamic script tags. Is it possible to detect if there's an error in the request (eg. 503 error, 404 error) and run something on detection of the error?
...
I'm new with JQuery, Ajax, JavaScript
I have a problem with JQuery star-rating-plugin. I used it in some pages and it works very well. However when I used in an Ajax page, it did not behave the same.
When the page is reloaded, nothing more is shown. The input are hidden, like before, but the div's doesn't appear.
I have this code wh...
I have the following code:
XService.start = function() {
setInterval("XService.poll()", XService.pollInterval); }
This works great. However, when I do this (passing function as reference instead of having the string eval'd) it stops working:
XService.start = function() {
setInterval(XService.poll, XService.pollInterval); }
...
I am looking for a searchable multiple select javascript widget that can handle filtering large amounts of server-side data for a 1-n relationship. For instance I have a category and I want to be able to filter through an unassociated list of products and attach them to the category in a user friendly way. I don't want the unassociated...
On my web page, when the user types in a URL in the text field, I wan to get some information about that page, like title or link information.
Is there way to do it? On the client (JavaScript) or on the server (PHP)? And how?
...
I have a form with some select elements. One of them is configured so that if the user changes the value, the next input may get enabled or disabled, depending on the value. When changing the value with the mouse, everything works fine. However, when using the keyboard, strange things happen. It acts differently from one browser to anoth...
I use this JavaScript code inside the head tag in order to populate the divs with a browse button so that users can upload images (swfupload).
<head>
...
<script type="text/javascript">
var swfu = function() {
return new SWFUpload({
// Backend Settings
// settings go here...
// Too long to...
I cannot figure out why my code continues to run even though it appears to have completely loaded the proper HTML. This problem only appears in Firefox (using ver. 3.5.3) and not in IE. This is just a simple script to display a multiplication table with a few decorative effects mixed in.
<html>
<head>
<title>Multiplication Table</...
HI all,
I have and issue that looks like it's due to IE's box model bug, but I'm not quite sure how to solve it in dojo.
I have a ContentPane which I put into a typical AccordionContainer, and static content is palced in the ContentPane. On all other browsers, if the content in the ContentPane overflows the bottom, a vertical scrollba...
I am using Google Maps, I have a lat-lon for the first point and a street name for the second point.
How can I get Google Maps to search for the street name in the same city as the latlon?
Also, specifying 1234 Some Street, City, State should work as well as 1234 Some Street
...
I'm looking for a best practice to synchronize 3 separate flash banners displayed on the same page.
Basically all of them need to preload (politely), notify they're all prepared after what a command would somehow launch the animation of the 3 of them synchronously making them act like one and single add.
The solution needs to be x-br...
When I am retrieving JSON entities via jQuery from the server and manipulating them client side, I have this desire to be able to see their interface via Visual Studio intellisense. So, ignoring whether this is a stupid idea, is this possible in any way?
So what I was thinking was being able to reference Entities.js, which would contai...
I create a filtering select like so:
var lensMapServiceFS = new dijit.form.FilteringSelect({
displayedValue: this.layerNames[0],
value: this.layerNames[0],
name: "lensMapServiceFS",
required: false,
store: lensMapServiceOptions,
searchAttr: "name",
style: {'width': '100px', 'fontSize': '8pt'}
}, this.id + ".lensMapService");
...
What's the equivalent of Java's Thread.sleep() in Javascript?
...
We have AJAX calls to hit a URL. Do we have option to run/execute JavaScript function in Asynchronous mode?
Note: setTimeout() will execute that function after some seconds but still that will execute in Synchronous mode.
...
I am working on a web project that will require quite a bit of updating from multiple users and large ammounts of data.
The expected ammount of data is 70 unique rows each with 14 fields that need updated regularly. That's a total of 980 fields.
I first attempted a series of synchronous ajax queries to the database using a for loop to ...
I want to load a page from a domain inside an iframe in another domain's page, and then access its content with JS. of course, this would be XSS so I'd get the "Permission denied to get property HTMLDocument..." error. The thing is, I want to do this on my own browser, not in a public access site (i.e. I don't need it to protect me from ...