JavaScript - jQuery - Ajax
-
» mluci12How can i get image who is choose on: autobelgia.ro/home.html
At SELECT VEHICLE TYPE section?Last post » AdminI not know. You can post what code you have tried and what is not working in that code.
-
» mluci12Hello,
How can i get the value of this select live (mluci.com/d) a prefix number, and add in next input?Last post » AdminHi
See if this example helps you. The <select> element must have an id .
<select name= countryCode id= countryCode >
<option...
-
» dmgatworkI am looking for a JavaScript that will capture the browser name and version that is understandable. I want to determine if my viewers have older IE...Last post » AdminFrom what I know, you cannot get the user's ip with javascript unless you use ajax with a server side script or some kind of external service.
-
» mluci12Hello!I want to make an webview in Javascript.I know that this is posibile but i dont know how can i do this.Please help me!Last post » AdminHi,
I not have experience with webview. From what I found on internet, it is an Android's class that allows you to display web pages as a part of...
-
» WestJAHi All, I'm new to the forum.
my question is:
can all html be done in javascript?
the question has to do with parenting/siblings.Last post » AdminHi WestJA,
Welcome to this forum.
You can set and add in the page the html code with javascript, you can build all the html code with javascript;...
-
» MariusHello
I use the following jQuery code to include a css file in html page, but it doesn't work.
var fcss ='address/file.css';...Last post » AdminHello
To include a css file in html document, use the <link> tag (not <style>).
You can use this javascript code:
var fcss...
-
» MariusHello
I want to make a calendar, but I don't know how to calculate the number of days in month, in any year.
How can I get the number of days in...Last post » AdminHello
You can use the daysInMonth() function from this example (month is 1 based):
//Returns the number of days in a given month (1 - 12) and year...
-
» mowgliHello,
I use the Fotorama script for a slideshow images. How can I put caption in some photo? How it is possible using this script?
Thanks in...Last post » AdminHi,
I'm not the person who made the Fotorama script, and because I not use it, I not know very well about its customization.
If you want to know...
-
» mowgliHow to make a Fotorama different list of images for mobile and for desktop?
For instance: desktop image 1, 2, 3 ... (1400x800) px. Mobile: 1a, 2a,3a...Last post » AdminI'm glad it works. I think it is not a problem that the slideshow starts from zero when the page rereshes, and anyway, the visitors not play with the...
-
» MariusHello
How can I shuffle /randomize an array in JavaScript? Is there a JavaScript function like shuffle() in PHP?Last post » AdminHi
You can use this function:
// receive an array and return it with the items shuffled /randomized
function shuffle(ar){
for(var j, x, i =...
-
» cropHi,
i read this :
and i tried to copy it, i made simplified version here:
clinde.de/dump/crop.html
- check.php is present, but you can't see...Last post » MarPloI replaced the onblur event with onchange . Now, when ALL the input fields are validated, the submit button is enabled and the form is Automatically...
-
» PloMarI have an Ajax function that adds in page some content from server. It was working fine when the page url was with http , but after I put https the...Last post » MarPloHello,
If the page url is with https , the Ajax request must be made with https . So, make sure you access the file on server with the same protocol...
-
» PloMarI have this JS script:
<script>
function blockToggle(type,blockee,elem){
var conf = confirm( Press OK to confirm the ' +type+ ' action );...Last post » MarPloThe error message indicates that there is not a HTML element in page with the id passed in the elem arguments.
Check the part of your JavaScript...
-
» PloMarI have a dropdown select list like this:
<select name= sel1 id= sel1 >
<option value= 1 >text 1</option>
<option value= 2...Last post » MarPloHi,
You can use the selectedIndex property to get the ordered index of the selected option, then, with that index you can get the object with the...
-
» PloMarHello
How can I get the filename and extension from a variale with an URL address in JavaScript?
The URL can be any kind of webpage address; with...Last post » MarPloHi,
Just use the getFilename() function from this example:
<script>
function getFilename(url){
// returns an object with {filename, ext}...
-
» PloMarHello,
Is it possible to display the content of a Div in full screen window with JavaScript?Last post » AdminHi,
There is fullscreen API in JavaScript, you can use the requestFullscreen() method to display a HTML element in full screen mode, documentation:...
-
» PloMarHello,
I have the following code that sends form data with Ajax to a php script. It works, but after the form data is sent, the value added in the...Last post » AdminHello,
You can use the following JavaScript code (in the success section of your Ajax function) when the data have already been sent, to delete...
-
» PloMarHello
I have the following code to send form data to a php script, with jQuery Ajax, withouut reloading the page.
But, when I press the Submit...Last post » AdminHi,
You have to call preventDefault() method to stop default action.
<script>
$(document).ready(function(){
$('#form').submit(function(e) {...
-
» PloMarHello,
I want to display a file (image) in canvas before it is uploaded.
The preview action in canvas should be executed all in the browser without...Last post » AdminHi,
You can use URL.createObjectURL() on the File from your <input> to generate a blob object URL.
Generated URL will be like:...
-
» PloMarHello,
I have a canvas element and a form with a text box and a button. I want to be able to put an image url into the text box, and after click on...Last post » AdminHi,
You can use this script. When click on the button, it adds the image from URL in page (into a Div, #pic1), then, the function addCnvImg() gets...
-
» PloMarHi,
I have the following code:
<img src= image.png alt= Image onclick= test(data) />
<script>
function test(prm) {
alert(prm)...Last post » AdminHi,
If the argument is a string, you should add it between quotes, like this:
<img src= image.png alt= Image onclick= test('data') />
-
» PloMarCan I make the content of a html div to be editable?
For example I have the following code:
<div id= edit1 >Content that can be...Last post » MarPloTo make the content of a html element to be editable, just add the: contentEditable= true attribute in that tag. It can be used in almost all HTML...
-
» PloMarHello
I have an input text field to which i want to display a tooltip with a html table, when the mouse is over the input field.
How can i make it...Last post » AdminHello
Set position:relative; to the parent container (it is important for absolute position), then set position: absolute; , display: none; and...
-
» PloMarHow can I refresh the page after a specified time?
I have a html table with data from server. These data are changed to every 3 minutes, so I want...Last post » MarPloYou can use the reload() function added in setTimeout().
<script>
// refresh page after 3 min. (true to load from server, not from cache)...
-
» PloMarHow can I parse the array items in reverse order, in JavaScript?
I have a Div and an array with numbers in JS code, like this:
<div id= dv1...Last post » MarPloThe simplest way is to use a reverse for() loop (with i-- ).
See this example:
<div id= dv1 ></div>
<script>
var ary = ;
var...