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


Forums

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

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Location


Interests


Languages

  1. Hi, I have two pages. The first page has two links, when a user clicks on one of them then s/he can view some information. I have used an image viewer taken from http://projects.sebastianhelzle.net/jquery.rondell/examples/carousel.html and I have set it according to my needs. the code of the first/main page is: <html><head><title>Animals</title><script>function loadXMLDoc(){var xmlhttp;if (window.XMLHttpRequest) { xmlhttp=new XMLHttpRequest(); }xmlhttp.onreadystatechange=function() { if (xmlhttp.readyState==4) { document.getElementById("rondellCa
  2. I have the follwing code in PHP: if(is_numeric($first_name[0]) === true){ //Do something} How would I be able to do the same check using JavaScript. I also would like to get a PHP script to check if there is a number in $first_name at all, as I don't want the user to add a number in their first or last names at all.
  3. Dear Members, I am struggling with setting up the value of a dynamic dropdown list object to a given value using javascript so that it will show the respective element text in the list automatically. I would try to enumerate the steps we are going through for lucidity. Let me know if you need more information. 0. We want to generate two dropdown lists, both get populated using database queries via a php code. That means we just create the select objects and assign them ids (say listOne, and listTwo), which will later be used to populate the lists (i.e., values-text pairs) programmati
  4. Hello, i'm wondering is it possible to pass variable inside <script></script> to another <script></script> field. Example i have <script>var message = "Hello";</script><script>alert(message);</script> I know i could add them together in this script i write, but my actual codes is separating the scripts.
  5. Okay, unfortunately, I can't give you my website because it's on an internal stage server.Having said that, here's my issue.I'm adding content to a simple javascript slider. The images on slides 1,3, and 4 are perfect. The issue is slide 2. Slide 2 includes a video. There's an image as a background on this slide, but there's a video on the left side of it.Screenshot of How it SHOULD look.Screenshot of How it CURRENTLY looks.It's been difficult to place everything with CSS since it's all within the confines of a slider that's already affected by javascript.Also, the slider is on autoplay to cha
  6. Hi, I'm rather new to webdesign and I have a little problem with my first page. If you take a look at http://www.linkedrecords.com/testsite/index.php and click on the "AGB" Button, a center panel opens with a small navigation menu on the left side.I wanted to use a jQuery effect to scroll internal anchor links, but all I have tried just doesn't work. As there are some other scripts running on the page, could there be a problem with them? I appreciate every help and suggestions if you think my scripts need improvement. Thank you, j.link
  7. Hi, I am a beginner so not sure if this should be placed here or in CSS? Based on this example: http://jsfiddle.net/pmw57/as4UR/ ,have a canvas element, 640X640. How do you center this canvas so it appears in the middle of the screen? Currently it is displaying 0,0. Thank you for your help. writer1
  8. The code below works fine (apart from in Safari but that's a different problem). You can see the working code in action here: http://codepen.io/deldalton/full/mfoIi function expandNav() { var nav = document.getElementById("navBar"); if (nav.className == "collapsed") { nav.className = "expanded"; document.getElementById("navButton").src="images/lightNavUp.png";} else { nav.className = "collapsed"; document.getElementById("navButton").src="images/lightNavDown.png";}}function changeIconOnMouseOver() { if (document.getElementById("navBar").className == "collapsed") { docu
  9. Hi, Does anyone have any idea why the W3 validation service returns the error shown below on this comment line?/* Set the values in the <img> tag so the user can see a mini-sample of what was selected */Error:=====Line 219, Column 40: required attribute "src" not specified… /* Set the values in the <img> tag so the user can see a mini-sample …✉The attribute given above is required for an element that you've used, but you have omitted it. For instance, in most HTML and XHTML document types the "type" attribute is required on the "script" element and the "alt" attribute is required f
  10. Hi, i am new to javascript and would like some code to turn my pictures into a slideshow.Anyone with some help please?
  11. In general, compiled languages(Java, C, C++) and run-time languages(PHP, Phyton, JavaScript) have different scoping rules and execution order. I would suggest you to learn execution context for JavaScript to figure out basic understanding of how code is executed. Look at this post, http://www.yusufaytas.com/javascript-execution-context/
  12. So I've gotten my code to display the correct current date in the 1st text box, but then when I choose one of the radio buttons to choose my "Pick-Up" date, the 2nd text box does not display the date. Basically, 1st box should show current date, 2nd box should show the date chosen from the radio buttons (imagine dropping off film that needs developed and you are choosing whether you want it 1 day, 2 days, or 3 days processing). I am including my full code so you can see what I'm doing. Can someone please show me what I'm doing wrong... ------------------------------------------------------
  13. Sorry, I am a newbie. and I need a simple help. I am trying to create an alert box.. something like this // <FORM><INPUT TYPE="button" style=" background-color:#660099; color:#FFFFFF;" onfocus="this.blur()" VALUE="FANCY BUTTON"onClick='alert("- text goes here ")'> </FORM> // It works for texts but when I want to use something like this <FORM><INPUT TYPE="button" style=" background-color:#660099; color:#FFFFFF;" onfocus="this.blur()" VALUE="FANCY BUTTON" </FORM> Thank you
  14. Hi All, I launched my first website a month ago, it is called www.uHeadphones.com. I had a company called Solid Cactus build it(no I do not recommend them) and they included a sequence banner into my Index page. From day one I had an issue with the sequence banner, when I would change tabs on my browser, while on my index page to another tab and then return a few minutes later the sequence banner would be flashing. I called up Solid Cactus and they told me that is because when I leave that tab the browser stops the JavaScript from working but when I return the JavaScript is trying to catch u
  15. Hi, I am using the following code to display products and prices when dropdown selected. What I need to do though is for a certain table to be selected if the visitor to my site clicks on a particular link. For example if the visitor clicks a link for A2 Leaflets on my home page, I need the drop down to display A2 Leaflets products and prices when the new page loads. Can anyone suggest a way this can be done? I am guessing it only requires something simple to be added to the existing ajax code, I just dont know where to begin looking? <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//E
  16. I seem to have gotten in over my head with this project. I spent most of the day just typing out code, without the ability to debug it due to slow browser speed. When I got off work I started correcting my syntax errors, which didn't take very long. Unfortunately, I have spent many hours trying to resolve some sort of logic error in the game which is apparently a very serious one, as it prevents any of my sprites from appearing. The fillRect() function is showing up perfectly, but the drawImage() function is not. I will go ahead and post the whole game code, as it is pretty concise by my own
  17. Hey i've been researching this for a while and haven't been able to find a solution that works for me, I actually have 2 problems; Goal: Display 3 drop down boxes - the second value is dependent on the first and the third on the second.Display 3 checkboxes - When each/any are checked, display 3 dropdowns with the same specifications as the one that always shows up. Problem: If I comment out one of the dropdown codes, the other will work.Checkbox will not show/hide other dropdowns. I'm pretty new to javascript/html. Here's my Fiddle. I currently have 1 checkbox but if somebody can help me get t
  18. I'm trying to pass some variables from javascript to php but i'm having some trouble. I've tried replicating: http://stackoverflow.com/questions/5227132/executing-a-php-script-in-javascript Here's how mine looks (pretty much copied exactly since it wasn't working): function validateEdit() {var canGo = true;var dob = document.getElementById('dobtext').value;if (canGo == true){ $.post('php/edit_profile.php', {dob : dob}, function(){ }).error(function(){ alert('error... ohh no!'); return false; });} } Which leads to "error... ohh no!". Any ideas what it is I'm doing wrong?
  19. I was looking throught a website (http://www.mangore.com) and I saw its giant slideshow on top of the page. I was intrested in knowing how is that fancy crossfading effect between images made. It seems that it is not JavaScript built in feature. Can someone help me?
  20. Hello internet - here is what I would like to do: I want to load an html file into a <div> element in my current html file.I have several buttons on my webpage where I would like to be able to click the button so that the <div> element that I placed in the middle of the page (which is sort of large 500px by 500px) will display a dynamic file where I would have more buttons and <a href> links and anything that html page would have coded in it. Where should I start? You help as always is appreciated!!!
  21. dear sir i have one problemi designed one frame page which one side my predefined page frame other side online page like google.com suppose google have form with one input field & a button also where input text field named as "help".my predefined page have similar as google page it designed for copy the field to google field speedly on a clickmy page detail given belowframe name=f1form name=form1input text name= "txt"button name="submit" where google haveframe name=f2form name=ghghginput text name="goo" problem is i want to fill frame f1->input field to frame f2->goo.i am using this
  22. Hello & Thanks ,I created a javascript webBrowser Game that uses the following .html : <!doctype html><html><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, user-scalable=no"><meta name="apple-mobile-web-app-capable" content="yes"><meta name="apple-mobile-web-app-status-bar-style" content="black-translucent"><title>Benghazi Game: Lies and Cow Pies </title><style type="text/css">body{margin:0;}</style><!-- <script src='http://web-research.appspot.com/files/enchant/enchant.min.js'><
  23. Hey I've got a problem with fireing a change-event manually.So I have a selectOneMenu (i'ts like a dropdown in jsf) with different values.If I choose a value of this dropdown-list, a datatable should be updated. This works correctly, if i choose this value manually.Now there is a case, where I need to insert a new value to the selectOneMenu. This new value gets selected automatically, but the change-event to update the datatable doesn't get fired...So basically I have this button to save a new value to the selectOneMenu which then gets selected correctly, but the datatable doesn't get updated,
  24. Hey Everyone! I want to read messages from MSMQ using PHP. I want to send and receive data from MSMQ. Please tell me how can i do it.
  25. I'm trying to make a XMLHttpRequest from a JavaScript page to a Java Servlet.I found out lots of problem because it's first time that I do this. The main problem it's that the servlet doesn't work!It give me this error: HTTP Status 500 - Servlet execution threw an exception type: Exception report message: Servlet execution threw an exception description: The server encountered an internal error that prevented it from fulfilling this request. exception: javax.servlet.ServletException: Servlet execution threw an exceptionroot cause java.lang.NoClassDefFoundError: com/google/appengine/api/chann
×
×
  • Create New...