Jump to content

Search the Community

Showing results for tags 'JAVASCRIPT'.

The search index is currently processing. Current results may not be complete.
  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


  • W3Schools
    • General
    • Suggestions
    • Critiques
  • HTML Forums
    • CSS
  • Browser Scripting
    • JavaScript
    • VBScript
  • Server Scripting
    • Web Servers
    • Version Control
    • SQL
    • ASP
    • PHP
    • .NET
    • ColdFusion
    • Java/JSP/J2EE
    • CGI
  • XML Forums
    • XML
    • Schema
    • Web Services
  • Multimedia
    • Multimedia
    • FLASH


  • Community Calendar

Find results in...

Find results that contain...

Date Created

  • Start


Last Updated

  • Start


Filter by number of...


  • Start





Website URL








  1. Okay, here is the problem, the background to it is a little bit lengthy but please bear with me as I think it's probably essential to getting to the root of it. I'm trying to design an on-site navigation system using straight javascript and jquery. The site is for a photographer who has a number of galleries of her images she wants to put up. These are displayed on the page as a series of thumbnails which are arranged in a grid (lets say 3 by 3 here for simplicity's sake). The idea is that these can either be displayed in order of size or in order of the date the gallery was updated. There are
  2. Hey! I'm making a page that has to scroll sideways,to do this it needs to have an div wrapping the content that has the total width value.I was wondering if there is a way to let javascript calculate this automatically so i dont have to change the width every time i upload new content. many thanks in advance!
  3. Basically mostly people are confused that javascript is a another version of java which is generally a misconception .... so its not like that if you want to know more about it and abou its history....you can go for this links.1. http://techywheels.com/2012/02/03/about-javascript/2. http://techywheels.com/2012/02/09/power-of-javascript/3. http://techywheels.com/2012/02/21/first-javascript-program/4. http://techywheels.com/2012/02/21/external-javascript-program/
  4. Hi,Apologies if I'm doing something very obviously stupid here, I'm fairly new to this sort of thing. What I'm basically trying to do is crop a two dimensional array of coordinates to the same length as another array called from an sql database using php and then made useable in javascript via json_encode. The good news is that I've managed to accomplish this. The code below actually does this twice with the database information called in different orders so that I have two two-dimensional javascript arrays, each with an x and y coodinate tagged onto the end of each row. (For anyone who's inte
  5. hey all, im really new to this and could really do with some help, it would be hugely appreciated!i have a toggle type setup for a list of live events but i cant seem to find an easier way or cleaner way to use it, any ideas? here is the code im using at the moment, sorry in advance for the way this is done! i need the setup to have neat slide down tables of info. Code as follows: <script type="text/javascript">// <![CDATA[var Current = "Div1";function Toggle(obj) {if(Current != obj) {document.getElementById(Current).style.display = "none";document.getElementById(obj).style.display =
  6. My form is processed via action.php: <?phprequire_once 'login.php';$db_server = mysql_connect($db_hostname, $db_username, $db_password);if (!$db_server) die("Unable to connect to MySQL: " . mysql_error());$physichal_address = $_GET["physichaladdress"];$thelat = $_GET["thelat"];$thelng = $_GET["thelng"];$link = mysql_connect('localhost', 'root', '************');if (!$link) {die('Could not connect: ' . mysql_error());}mysql_close($link);?><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title>Fre
  7. Hi guys i am trying to create a function called enterName which will have two parameters firstname and lastname. How can i make the function create a greeting message with the first and last name and so it returns in an alert box? Thanks
  8. Hey there,I was wondering how at times Wikipedia displays that banner at the top of every page when they want one to be there. I use php inlcudes for my website but I know thats probably not what there using because sometimes there is no banner. I guess another great example would be how YouTube sometimes haves alerts for new things going on at the top. Any thoughts / how to do this would be great!Thanks,Allen Lawson
  9. Hey there,I was wondering how at times Wikipedia displays that banner at the top of every page when they want one to be there. I use php inlcudes for my website but I know thats probably not what there using because sometimes there is no banner. I guess another great example would be how YouTube sometimes haves alerts for new things going on at the top. Any thoughts / how to do this would be great! Thanks, Allen Lawson
  10. Hi I am having trouble understanding how to make Cookies work. i have a fader on a page that you can move. i am justing the jquery.mobile.-1.0.min.jsbut every time i move off this page and come back to it the fader will go back to its default value. I was wondering if there was a way of keeping the value to the same state on return to the page. Help would be grate.
  11. So the basic idea, in the webpage there would be example <span id="Images"></span> and the images should go inside. For example if the count = 0 the image 0.jpg would go inside span. Example2 if the count =1 image 1.jpg would go inside span. Im just asking does this look like it would work? Haven't tested yet. // JavaScript Documentvar count = 0;function image() {var img = document.getlementById("Images").innerHTML='<img src="/includes/images/' && count && '.jpg " width="800" height="600" />';}function nextimage() {count = count + 1;}function previousim
  12. Hi, I am a novice at javascript and I am hoping the forum can help me out with a question:Given the following code:var x = 8;var y = x;var x = x+4;alert(y);The result is y=8Meaning, when you change the value of x (after the statement y=x), y doesn't correspond to x anymore.Is it possible to have y change with x all the time- is this doable?I thought in other languages, if you do y=x, it will permanently associate y with x so that every time x changes, so does y.How can this be done in javascript?Thanks
  13. Hi !I customize a Web Framework to use XSL stylesheet on XML and generate HTML 5.I want to report the process (XSL transformation) on the client-side if the client support XSLT.But if the client do not support this operation, I want to process on the server-side and send the generated HTML 5.My problem is : the Javascript function I call on the page works on XML content (ot HTML 5 if the browser does not support XSLT).But I would like to use Javascript on HTML 5 for both cases.So how can I access to the rendered content ? Not on the source content ?Thanks
  14. Hey, I have some problems with a javascript library (http://janne.aukia.com/zoomooz/) i'm using for my website (http://bram-de-leeuw.nl). The problem i'm having is with the zoom function, i added this function to the articles posted on the site but when i click on them it doesn't zoom and in the google chrome console it returns an error saying Uncaught TypeError: Object #<Object> has no method 'initialize' in the jquery.zoomooz.js:294 . But i just followed the examples i got with the library which work fine.. I don't know what to do or were to start fixing this. Another thing i would lik
  15. Hello internet.I used a series of password protect html pages to direct the user to a page only if the password is correct. However, it appears they can just type in the web-address of the destination page and it will load. I want that page to be password protected but I can type it in and it will load. How do I prevent this?
  16. I have a question about a little part of a script I am making. The poroblem is that Javascript does the script the in the wrong way, and I don't understand why (and how to solve it). The script has to do this: print starttime, wait three seconds, then print endtime. But what it does is this: wait three seconds, then print starttime and endtime. Thats the wrong way around! How can I make Javascript to write the starttime BEFORE thew loop?????? Thx. --- <html><head><title>test</title></head><body><script type="text/javascript" language="javascript">var r
  17. So....i have this series of tabs (visually) and i would like to now if there is a way to refresh their contents everytime i click on them...
  18. Hello internet.Here is my most recent dilemma. I have been creating WebPages without declaring a DOCTYPE. W3Schools forum members corrected that problem I was making. The issue now is that I have gone back and declared a doctype with all my pages and now I am cleaning up the problems. A big problem is getting the window.onload JavaScript function to work. Here is what I am doing, I am declairing this DOCTYPE<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> I am using the following javascript code - Tload is an array I created from mysq
  19. Randomishlying


    Is it necessary to have a knowledge of JavaScript before diving into jQuery? It's my impression that jQuery is just a JavaScript library. If that's the case, shouldn't it be just as easy to learn JavaScript that way.To those who have used jQuery, I have a few questions if you don't mind. How does one access the jQuery library? More specifically... How do I know what is in the library so that I can use it (I'm assuming it works this way, but maybe not)? How does jQuery greatly simplify JavaScript programming in your opinion? Any help would be great.
  20. Hey everyone! Happy new year! So I have been working with this toggle function:variable == '' ? '' : ''In simple variable is what your toggling, then you have a parameter and if (if = ?) the second parameter is false (which you want it to be) it will do else (else = the third parameter.Now it works 99% of the time and I am having trouble when I use the img element.This is my code, any help? HTML <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
  21. Hi ...I intend to print a table to paper but when I print it using IE, instead of printing the whole row at the next page, the last row breaks into two parts and the contents of it are displayed incompletely. I've tried so many different solutions but none of them worked for me.Here is my code. I want to print the table using JavaScript StringWriter sw = new StringWriter(); HtmlTextWriter hw = new HtmlTextWriter(sw); table.Style[HtmlTextWriterStyle.BorderCollapse] = "collapse"; table.Style["page-break-after"] = "auto"; table.Style["page-break-inside"] = "avoid"; table.Style["display"] =
  22. Im quite new at html,php but i have zero clue about javascript...I would like to know how to create a "welcome , name " on the top right of the screen after a successful login...like this forum that shows your name on the top right corner with the sign out button next to it ! i know that the place that will be shown is a matter of css but i have no idea how to do it code wise...A clarification...i dont want the css...i dont know what "happens" after the login in order to do that welcome "area" and how to do it !Thanks ,John
  23. Hi; first of all please don't mind if this is not the right section to post my query here, and move it to whatever right section is. I'm almost new to any language, actually I'm blogger and Google whatever i need, but this time i can't find the exact script i needed therefore i decided to post my query here because i live w3school. i want to display center part of the external website (say Google.com logo) in my blogger post or page, before this i used iframe which works perfectly but i don't want to use it anymore due to its some limitations. so please help me by posting the script here. Look
  24. Whenever I use <a onclick="">on text</a> it ignores the css formatting for the <a>. Why? Is there a way around it?
  25. I have an image that kind of serves as an opaque background, and once hovered the opaqueness goes away. Also, I have a row of list items to serve as a menu, and once hovered the color of the text darkens to become more visible. This works great. As long as the mouse is directly over each element. The text element is directly over the background. What I want though is to have the background stay apparent as the text is hovered over, instead of the background becoming opaque again if I hover directly over the text. Can this be done without Javascript? Or is there a way with CSS3 to have the elem
  • Create New...