15,121 Topics
| |
var pizza = "hello there"; function orange() { document.write("hello there "+pizza); } orange(); function orange() { document.write("what is going on"+pizza); } var pizza = "hello there"; Why can't you create a global variable after a function, as done in the second example. Why for a global variable to work must … | |
This is really stupid question and i feel ashamed to ask but i kinda have to. So here is the thing, in my college/school we got some sort of homework which isn't a "must do" but i wish to for myself, so thing we need to do is, when i … | |
Hi I am new to javascript and am working on Linux mint OS.I would like to know how to randomise a 3*3 matrix consisting of nine thumbnail images every time you hit the refresh button in javascript,without displaying the same order of images twice in a consecutive manner. | |
So here is the thing its been days since im trying to solve this, i'm debuggin a project from the company i work, its a web system, and here is the thing i have a javascript file which im going to call 'docart.js' and a core file which i will … | |
Hello, I need to transliterate the names of employees that are fetched from my database and write the transliterated values back into the database... For this I need to run a javascript code in a loop for as many no of records as in the database.... The code I am … | |
Good Day, guys, please help me, after validation in javascript,I want the user to go to the next page. I tried window.open ("sinfo.php"); The problem was it opens in another tab. I want the next page (sinfo.php) to be on the current window. Thanx | |
Hi All, I want a script that will allow me open a link to open in a frame when clicked on the site when the link is. Please see this example page: http://www.samachar.com/US-judge-will-not-change-Pandoras-songwriters-licensing-rate-odpiKOfgdce.html Will appricate any help. Thanks | |
FB.api('/me', function(userInfo) { console.log(userInfo.email); var emailid = userInfo.email; console.log(emailid); }) $.ajax({ url: 'index.php?r=tryon/saveemailid', type:'post', data:{'saveemail':emailid}, success : function(data){ alert("success!"); } }); | |
Hello all, I am new to javascript and looking for some help. I have searched around different forums but my skills have not served me well to build a working script. I have a simple form with 4 checkboxes and a submit button. Each checbox has a unique value. The … | |
I have hopefully a relatively straight forward one for you guys. Unfortunately not so straight forward for me. I have a an existing java script that works with a group of checkboxes that I have. Its quite simple, If you select a checkbox and click submit the javascript function will … | |
I am very new to this and have been given code for a website i have. Please can someone help me and let me know how to convert code to an image? I have searched everywhere and cannot find the answer. | |
Hello all, I am new to javascript and looking for some help. I have searched around different forums but my skills have not served me well to build a working script. <script language="JavaScript"> var myDate = new Date(); /* hour is before noon */ if ( myDate.getHours() < 12 ) … | |
I have the Ajax call listed bellow inside a jquery function, and the ajax call is not working. I've used "alert" to debug and its like the jquery function didn't even had the ajax call. Nothing inside it is processed, with no sucess and no errors. Isn't it possible to … | |
Hi all, I wonder if somebody can help me with this. I have this situation: I have a header div with a heading and when I click on it another div hiddenDiv slides down or slides up (I am using the slideToggle method). What I want to do also is … | |
//random number generator var theDecimal = 0; function newProblem(){ theDecimal = Math.floor(Math.random()*256); //math.floor chops off decimals and rounds document.getElementById("startNumber").innerHTML = theDecimal; } | |
Hi, why is it, when you [click](http://jsfiddle.net/WildWind/d7jhN/) "whatever", the string "hello there" isn't written with the ID#thename input box ? | |
hey guys so i have these drop down menu using ul and anchor and when i click on one an image should be displayed. the problem is when i click it the image appears but then disappears right after, like a second. html: <ul> <li><a href="" onclick="document.getElementById('banquetsix').style.visibility='visible';">6 Seater</a></li> <li><a href="">8 … | |
| Howdy, I found that the symbol "<" can be encoded this way: "[\xC0][\xBC]" Can you tell me in which encoding standard does "[\xC0][\xBC]" belong ? Regards from Begueradj |
Hello. I have been doing research for about a week on form validation (JS, jQuery, CSS). I already have a nice form, but I need to add the validation elements. I'm a bit stuck. I know what I do and **do not** want with the validation: **Want**: * Clean, nice … | |
I want to load a completely new html page in a html via javascript <html> <head> <script> function load_home(){ document.getElementsByTagName("body")[0].innerHTML='<object type="text/html" data="test1.htm" ></object>'; } </script> </head> <body onClick="load_home();"> </body> </html> | |
java oriented with class help pls > # Heading Here # | |
I am trying to open a page as a lighbox- and I dont know why its not working- the url is https://www.townehomecare.com/services- where it says "read more" in the middle of the page, I want that new page to open as a lightbox, but instead it opens a regular page. … | |
JavaScript for mobile browser detect img changed according to mobile browser wheather iphone or android ..different images for both.... | |
I have a problem using many dropdown/select in which i needed to filter everytime i change the dropdown I dont know how to do this. for example: 1st dropdown is location *which I selected* **pasig** it should filter -> 2nd is bedroom which **pasig** has **3** data *1,2,4* it should … | |
Can you write within the script the new order of an array as a comment without the script actually using it ? Suppose I have an array of 10 items, then I push and unshift more items in the array, for myself or anyone else viewing the code I want … | |
Hey guys, I have a (probably) pretty simple task to solve, but no knowledge of web development whatsoever. My problem is, I need to create a website that computers and smartphones can connect to and have it display some image and text that are updatable from the server side at … | |
Hello. I am using an iframe in my page to submit a form to so that it can upload a file - since you can't do this through the jquery ajax function. I have everything working, but I want to be able to hide the iframe and get the content … | |
I'm currently working on programming a news site and I do not have sufficient experience in the jquery I want a news slider show like that on [this site](http://www.samanews.com/ar/) and thank you | |
Here is some javascript code ===> (function() { var infowindow; window.onload = function() { var options = { zoom: 3, center: new google.maps.LatLng(37.09, -95.71), mapTypeId: google.maps.MapTypeId.ROADMAP }; var i = 0; var marker; var btn = document.getElementById('btn'); var map = new google.maps.Map(document.getElementById('map'), options); var bounds = new google.maps.LatLngBounds(); var places … | |
Hello Webmaster, i have some problem before upload images.... this my code <style> .thumb { height: 75px; border: 1px solid #000; margin: 10px 5px 0 0; } </style> <input type="file" id="files" name="files[]" multiple /> <output id="list"></output> <script> function handleFileSelect(evt) { var files = evt.target.files; // FileList object // Loop through … |
The End.