I am new to Javascript programming, I do know enough to modify certain parts of Javascript coding. I am trying to read a list box line by line and place the item into an image link. I am trying to loop throught the list box and write out the item to the link and also write out the count which is "i" to be the array number, if that make sense. Here is what I have so far. I am not sure what I am missing to get this done.
var i = 0
var listbox
var image
function listbox_selectall() {
I would like for the information selected in the list boxes to automatically build/generate text in the body of the page below the text boxes. Please see the attached image for an idea of what I mean.As more boxes are selected, the rest of the Part Number is generated.This is somewhat similar to chained list box, but instead of generating a 2nd list box, I want each list box to generate into it's own cell at the bottom of the page.
There's a thing I would need for my website: I want to include an image from an other site. But it's url is changing every day because the image changes every day. (That's the site: [URL]
How can I find out the image url with javascript and show it on my website?
I know you can add a site to your Favorites(bookmarking) but can you read from your Favorites into an array form probably to print your favorites on a page?
Bit of a lengthy topic name, I know - I'm trying to make a sort of really lightweight online t-shirt designer - basically, it'll show a picture of a t-shirt in the background (you'll be able to change the color via selector), and then be able to upload an image, drag it around the t-shirt and resize it. I've found this: [URL]. But I have no clue (after looking at the JS, I'm still pretty new) how to set bounds to keep it in, or how to save/output the image it creates - that is, the uploaded image on top of the t-shirt needs to be saved as a single image and then output, probably via email. I am fairly fluent in PHP, but still pretty new to javascript. What is A, the best way to upload the user image (and give a max file-size) and B, the best way to drag/resize it around the t-shirt, but without moving it off the t-shirt image, and C, save that image then output it?
I have a php script that gets all images in my directory and outputs them as gallery[0]=firstimage.jpg, [1], [2], .. The php script is supposed to work with the javascript, so to cover all angles here is the php
<? //PHP SCRIPT: getimages.php Header("content-type: application/x-javascript"); //This function gets the file names of all images in the current directory //and ouputs them as a JavaScript array
I have just changed the original HTML and CSS then just barely touched the JavaScript to edit the width, height and the different image urls. As you can see in the sample URL below only 1 image is being loaded and rotated.[URL]
What I am trying to do is fairly simple, depending on what option you select in the menu I want the picture to change to different picture. The code that I posted below works perfectly except for one problem. I need the option value to display the color name, and not have the image code in it. I have researched ways to do this without having to use "value" but I just can't find one that works.
I’d like to inject the following Chicago image [URL] into the 3rd position of my list. My list is being dynamically generated using getJSON, and pulls from the flickr API. How do I accomplish injecting this image into the third position? Here is a link to my work: [URL]
I have created a photography website myself and coded it all in dreamweaver cs4. Now i have created it using html, as i didnt want to limit it to flash users and loading times etc etc. So today i found myself a nice simple slideshow tool that uses html and javascript. i created it using a site online (which i will not post as i dont think we are allowed to post to online sites).
The slideshow loads images up in the background, and it plays them in a random order.
Now i am able to define individual image links to either a url of the an image, or point it to individual images, listing them one by one in my coding, which as a photographer having differet galleries is goign to be a royal pain when i want to have new images showing up.
So my idea is to replace the code that retrieves in dividual images from url's, to replace it with a piece of code that will display an image from a list of about 7 or 8 folders on my server all containing images....
i.e. displays an image from the folder .../images/models/pic01.jpg then it brings up an iamge from a different folder .../images/portrait/pic08.jpg.
Is there a way to do this and how can i go about it?
this is the code i currently have:
<!-- configurable script --> <script type="text/javascript"> theimage = new Array(); // The dimensions of ALL the images should be the same or some of them may look stretched or reduced in Netscape 4.
I have a site I am working on that I did not build and am having problems with an ajax / javascript call.I was hoping someone with firebug could take a look. I have firebug but I am not a js guy.The big green button that says add to quote list is a link with an image BG. It should swap classes when clicked therefore changing the BG image to a red one as well as the text at the very top right of the screen swapping to add a number to the list of items in the quote list.Sometimes it works... I think only the first time it is clicked, sometimes the text in the top right changes but the image does not etc. If you click it and it does nothing but the refresh the page then the class will change which is weird, it's like it's trying to switch but cant until you reload the page.
I have an unordered list (ul#garment_selector) sitting in a div (div#program_scroller) and each of the list items has a link that I'd like to display an image and some text into a div on the same page. I don't want any fancy animations or anything like that, I just need to display an image and a related description/price into a new div, preferably without reloading. I have quite a few different lists of links and they change all the time so using an array to define the image/text is impractical for my needs.
i know my summary is not the clearest so here goes....
the page www.philip ----- dusel .com
has several links to click ...all different images. they all link to the same page which is an image gallery. i would like for the new page to open with the related image enlarged in the gallery instead of always showing the first image in the list regardless of which link was clicked. i hope i am being clear.
ps what is the standard way of providing a link yet hiding it from the crawling robots?
I'm trying to find a simple step-by-step on how to read a simple XML file like this one, which will work in IE 6 and Firefox 0.x.
<?xml version="1.0" encoding="ISO-8859-1"?>
<CATALOG>
<CD>
<TITLE>Empire Burlesque</TITLE>
<ARTIST>Christopher Santee</ARTIST>
<COUNTRY>USA</COUNTRY>
<COMPANY>Columbia</COMPANY>
<PRICE>10.90</PRICE>
<YEAR>1985</YEAR>
</CD>
<CATALOG>
The problem is every example, I find that it will work in IE but not Firefox or visa versa, could someone please point me to a how to that will work with both browsers. I just spent two weeks reading the Microsoft Press Book "XML Step by Step", only to find out that the technology only works with IE.
Can someone give me some pointers on how I can read one or more arguements from a url, using js?
Why? I'm working on a LAMP based project and when a user successfully registers, the header redirects to the login screen - I'd like to check for the value of register, if read from:
var sender = xmlDocument.getElementsByTagName("sender").item(0).firstChild.data;
I ultimately want to user to see that the sender is "Name <email@example.com>". With the way the XML file is currently set up (sender is Name <email@example.com>), the only that shows up on the javascript end is Name. Is the way I'm storing it in my XML file the best way to be doing it?
I'm trying to write code that will read an XML file. I've found several examples but I can't get them to work. Am I missing a DLL file? The errors I commonly get are "object required" (as with the code below) or "permission denied". Any insight would be helpful and appreciated. Here is what I'm trying:
<script language="JavaScript"> function importXML(file) { xmlDoc = new ActiveXObject("Microsoft.XMLDOM"); xmlDoc.onreadystatechange = function () { if (xmlDoc.readyState == 4) createTable() }; xmlDoc.loadXML(file); }
function createTable() { var doc=xmlDoc.documentElement; var x = xmlDoc.getElementsByTagName("Employee"); for (i=0;i<x[0].childNodes.length;i++) { alert(i); //enter code to process stuff here } } </script>
From javascript, I am opening a popup window and requesting a url, which sends a xml as a response to the popup window. From this javascript, I want to read that xml content:
del_window=window.open("http://abc.com/_xmlservice","","width=1,height=1"); var ele = del_window.document.documentElement; //this is returning "HTML" ... and
I'm trying to create a javascript barcode API, that reads from my USB barcode reader and calls an action upon completion. The reading itself is not complicated at all, since the barcode reader functions exactly as typing the same numbers on my keyboard. So scanning a barcode with; 5050500
would be the same as typing it on my keyboard, but of course much faster. The problem lies in my "API" which dosn't always respond to the barcode length correctly, hence executing the actions at the wrong time (see code below).
A scenario in my application would be to separate multiple barcodes with a semicolon, which is what I'm trying to do with the code below. Copy paste the following code, and run it in your browser: Code:
I want to put those xml values into an html form input values <input type="text" name="phone[]"> <input type="text" name="phone[]"> <input type="text" name="phone[]">
How do I transform the XML response into a HTML layout? Particularly, how do I get down to the value at each node?How do I traverse the XML document using JS?
reloading an XML file that I'm reading with AJAX. I'm looking for a way to refresh this XML when the page is refreshed so I know that the data is up to date. It only needs to happen when the page is reloaded. one solution suggested something like this
Code:
var xmlhttp; function loadNewsContent(url) {
[code]....
But that doesn't work at all and I don't know why.