The first button displays "The page cannot be displayed...".
The 2nd button displays new window displaying the drives on the PC,
such as A:, C: and D:.
Why does <a> works but not the code? Could you try the code and fix
it? May be I need to provide the file type but do not know the syntax.
I am VERY NEW to javascript programming as I am to web development. I am pretty decent with VB.Net though. My question is, what are the different ways to call a JavaScript Function either from within XHTML Markup code or from a VB.Net Code-Behind file?
This code displays the ids of only controls in a form, but I'd like it to display ALL items. For example, not just the ids of buttons, inputs, etc, but any <span> elements as well. Is there something I could replace with the "elements"? I tried tags but that doesn't work either.
Im using [url] i have 4 tabs and i want that the 4th is not visible when the <input type="text" name="field" /> is below 5.
I have now the following in php what i want to change to jquery-code
Here is where the display variabel is coming
Because with php you have to submit the form before he can check if the input >= 5 and check what the visibility must be. i want to change it to jquery code but i dunnow how...
I'm trying to run through the simplest tutorials on jquery and for some reason I can't get any of the jquery code to work.I've downloaded jquery and I've made sure that this file is in the same directory as jquery-1.3.2.js.This is the code taken from the tutorial:
However, I am currently working on a banner that rotates through images via javascript that I want to have in the background under css and still be able to display a logo from within the HTML code. As shown above, that is easy with a picture, but how do you call the javascript and then its ID from within the HTML?
I have written a card trick in C++. The purpose of the card trick is the player picks 4 cards and then based on the 4 cards they pick 4 more cards. The player can then switch the card and the computer does some math to determine how to which card was switched. Right now all i can figure out is how to display and flip the card.This is the program I have written in C++
#include <iostream> #include <string> using namespace std;[code]....
cout<<"Welcome to our card trick. I believe that given some cards I would be able to tell you which card you switched. Dont believe me! Well lets play. First I will let you pick four cards, then I will pick four cards. Next I will pick four cards. Then you will have the opportunity to pick a card to switch. Then I will tell you which card you switched. Promise I wont peek! Lets begin."<<endl;
At the moment, the script creates a gallery with thumbnails from a list of images (from my basic understanding), and I want to add to it so the current code also picks up the text from the alt tag and displays that within a div box positioned absolutely elsewhere on the page, when the main image is displayed.Here is the javascript:
var gal = { init : function() { if (!document.getElementById || !document.createElement || !document.appendChild) return
when I load this in the browser and check the JS file code, the code is duplicated twice. The whole code is repeated.I could not understand why this is happening. I checked this in Both IE and Fire fox and the result is same.
I am looking for a general purpose javascript snippet that enables me to <div> or <span> HTML to make portions of the form be hidden and then appear. The form contains about 12 sections and some sections can contain subsections. When the user clicks on a checkbox, I want previously hidden text boxes, radio buttons, text, drop down menus, and additional checkboxes to appear. In some cases, clicking on a checkbox in a section can cause additional previously hidden text boxes, radio buttons, text, drop down menus, and additional checkboxes to appear.
Within each section, a list of individual names is displayed with an initial checkbox beside each name being displayed. Clicking the checkbox beside a name is what triggers the hidden info to be displayed. The server side application is written in php and the field names are assigned using brackets as the array is created. As an example the HTML checkbox beside the first name <input type='checkbox' name='sect1custname[1]' value'First Name'> The HTML for the next name woud be exactly the same except the name field would be defined as name='sect1custname[2]'. All of the other input buttons, boxes, menus, and text would use the same naming conventions so that the server side module can correctly process the data.
I am hoping to keep this as generic as possible so that we can add, change, and/or delete entire sections simply by creating the appropriate HTML and surrounding it with the correct <div> or <span>. I understand that there may need to be some javascript wrapped around the checkboxes.
If you know of , or have, or can develop the code, please send particulars to jscott4272 at comcast dot net. If there are any costs associated with the code, just let me know what they are. If you have any questions or need additional information, please email them to me.
I'm not exactly sure as to whether this question should be posted here or on the php forum, but I think it mainly has to do with fancybox's zoom feature. My problem is this.
I'm doing SEO for an already established site and this site has a features area with about three different options that use the fancybox zoom script. These boxes all contain pertinent information (SEO heavy) about each option as well as links to different sites. All of the info displayed is pulled from a database via php.
I would like to be able to display the descriptions as searchable content, and be able to track how many people click on the external links, but as it is now none of this shows up on the source code. The fancybox zoom feature seems to open up another window within my main page.
My question is this. Is there anyway that I can retain fancybox and get the content to come up under the source code? Or does this maybe even sound like an unusual effect from fancybox.
I can send some code later, if anyone needs it. I just didn't want to throw everything in here all at once, because it's quite a bit of code involved.
Is there any sample code to use Javascript to load and display a text file?
It will be best if the user can select files using some kind of explorer. If that's complex, a text box to specify the file name will be fine as well. Once a text file is selected, I just need to display it in a text box.
Is there a way to display the file selection window for a file input field via JavaScript? My goal is to emulate the behavior seen in Yahoo! Mail BETA. When adding an attachment, it displays a file selection window when you click a custom button/icon. I saw an example of using CSS to actually position the browse button behind an image. I am hoping that isn't the only option.
I don't get any pleasing results... in the file, there are 'quoted printable' characters that are displayed as their corresponding hex value, and their encoding seems to be in windows-1256. I've tried messing around with contentType but didn't get any results.
I cannot modify the '.eml' files, so I have to load and process them in jQuery (hopefully). So is there some sort of library or built-in function that I can use?
this is the code I'm using in order to display the contents of an xml file into a page. It's working fine with IE but with Firefox.I have searched over intrenet and have applied all suggestions I've found about this issue. Unfortunately it's still not working
function importXML() { if (document.implementation && document.implementation.createDocument)
I have a webcam that uploads an image to my non-profit's website via FTP every 15 seconds. The filename is webcam.jpg. I have a javascript that automatically reloads the image (NOT the entire page) every 15 seconds as well. The script is as follows:
<script type="text/javascript"> function reloadImage() { var now = new Date(); if (document.images) { document.images.myobject.src = 'images/webcam.jpg?' + now.getTime(); }setTimeout('reloadImage()',15000); }setTimeout('reloadImage()',15000); </script>
The script works great--the webcam image refreshes every 15 seconds without refreshing the entire page. What I'm trying to do is add javascript that will also display the timestamp of the webcam.jpg file when the image is refreshed (so that people know what time/date the image they're looking at was taken). I'm guessing this involves some sort of AJAX request, but I haven't the foggiest idea how to make it happen.
I have the code below ***within <head> section. It's for making fancy buttons, and it works great. What I was wondering was this.
I also have in <head> the following line: <SCRIPT TYPE="text/javascript" src=/js/javas.js></SCRIPT> which essentially has a bunch of unrelated javascript functions.
What I would like to do is move the code below into my javas.js file, but am unsure what is the proper format since it doesn't seem to me a function by name. Code: