15,120 Topics
| |
Is there a script that when div resize(browser) it will maintain aspect ratio? ive tried using css which adjust the width through min-max but wish to maintain the aspect ratio (height) [CODE] <!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"><head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Untitled Document</title> <style … | |
i need a simple script that can create a slideshow of websites in an iframe after 20 seconds frequently. how i can do it ? any code sample? Thanks | |
Suppose I have a webpage which contains only the links(anchor) in it.... also suppose there are 5 anchor(links) on that page......... My aim is to underline only that anchor that was clicked by the user.........or is being active now Kindly tell me about it.... I have a rough idea of … | |
Hi there, I created few step order form. I use function below to move to the next step of order, but at the same time when customer press button it shoudl called function: onClick="takeDetalis(0)" in js sheet and take personal detalis. But because (0) is treated as error. [CODE]<script type="text/javascript"> … | |
Hi, anybody can tell me please how to Get xmlHttp.responseText when you call from IFrame? I get empty xmlHttp.responseText, while when calling server from out the IFrame, I get the responseText without problem, how can I solve this problem? Thanks. [CODE] <iframe> <input type="button" onclick="CallServer()"> </iframe> [/CODE] | |
Input field is filled but not submitted... Validation: [url]http://jquery.bassistance.de/validate/demo/[/url] Ajax/Jquery based variable from input field. If there is Name (required, at least 2 characters)it should change content (text) with Full name like Mr. Luck Murphy. How to do this in correct way as there is already validation Javascript: <script type="text/javascript"> … | |
I have a page where there is a div which is set to 100% width and height and which has a black background. This div covers the main content and after a delay fades, revealing the page content. The problem is that I also have a script which adds stars … | |
can any one help me wright the code for any simple java games, choose one from the selection below plsss (using jav -Base Conversions -Lotto 649 -Mastermind -Hangman -Deal or no -Deal -Who Wants to be a Millionaire -Card Games -Theatre Seating -Morse Code Instant/Fortune Teller -Pay Stubs -Educational Game … | |
[CODE]$(document).ready(function() { $(".alert").click(function() { { var id = $(this).attr("id"); alert(id); $(id).dialog(); return false; } }); });[/CODE] Ok it's alerting the id AFTER it alerts an undefined.. so it alerts "undefined" and then "5" or whatever the number may be. What am I doing wrong? | |
I have an assignment and need to fix this code. I have gotten to the point of not having any errors on my page for html, but need help with the javascript portion. I also want to understand the changes and why. I only need to make changes to the … | |
I want to just bold and underline the (anchor) link when it was clicked with the help of jquery....But didn't know of how to do it.... Here is my code: [CODE] <script type="text/javascript" language="javascript"> $(document).ready(function () { $("a").click(function () { alert("Hello"); // $('.body_text').css('width', '100px'); // $('.body_text').css('text-decoration', 'underline'); // //this.addClass('makebold'); //$(this).toggleClass('makebold'); … | |
i want my ajax and php codes, with 2 option value, show up two different texts or form packs. i have given html and php codes. i hope sombedy help me. im quiet new with this. thanks :) renkler.html : <head> <script type="text/javascript"> var istek = false; if (window.XMLHttpRequest) { … | |
hi, I want to move a button to new location at the mouseOver event in JavaScript.. Please have a look at my code below. [CODE] function move() { b1.style.position = "relative"; setTimeout(b1.style.left = 100,1000) } <input type="button" name="b1" value="click" onmouseover="move()"/> [/CODE] Im able to move the button to the new … | |
i'm novice to this and can anybody say how to change CSS properties with javascript functions? how can i change font-sizes/font styles using a combobox represented in a textarea? [img]http://i.imgur.com/KH0om.jpg[/img] if you can show me how events working..thank you | |
Hi All, I want to resize the html controls and elements (buttons,text,div's images..) when the browser window is resized using mouse.. Is it possible to achieve that? Please help me to solve this issue? Thanks | |
Hi Ive been fiddling with trying to emulate classes in javascript - but currently getting an undefined error hen I click one of the vote buttons... Ive got two vote buttons, 'vote_positive' and 'vote_negative' and have cretaed two vote button objects... on construction they firstly assign a value to the … | |
I have created one application in JavaScript. And i have created logic gates(e.g AND,OR,NOT) and I displayed these gates on on particular grid background but when I drag and drop these Gates on grid , the borders of gates and lines are not matched to the background grid. So how … | |
I have link with e-mail like: <a href="mailto:no-reply@mydomain.com">My e-mail address</a> When clicked on link it should do two tasks: 1. PHP SESSION variable: $_SESSION["var"] = "no-reply@mydomain.com"; 2. Live Ajax value to publish at form As there is stored value into session $_SESSION["var"] = "no-reply@mydomain.com"; there should be Ajax based SESSION … | |
As part ogf my studies I am now looking at JavaScript and am working on a project that works similar to a slideshow where an image is loaded and then changes every 7 seconds. Having successfully achieved this using my limited knowledge I now need to add various bits of … | |
The following sets a keydown event, preventing further input when a condition is achieved. [CODE]<textarea rows="5" cols="30" onkeydown="return checkLength(this)"></textarea> <script type="text/javascript"> var maxLength = 30; function checkLength(elem) { if (elem.value.length == maxLength) { return false; } return true; } </script> [/CODE] IN the above I don't understand this part: onkeydown="return … | |
I'm getting an error in line 13 and don't know why. Can someone help me please? [CODE]<!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"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Untitled Document</title> <script language="JavaScript"> function popUp(URL) { eval("page" + id + " = window.open(URL, '" + id + … | |
hi, I developed one web application and I have created div in JavaScript and on that div I have created more than one images and when I click on save button i want to save all images on to the database and when I retrieve that image from database as … | |
I got this error while trying to view my websites on Chrome after reformatting my OS (Windows Vista Ultimate 64bit). I noticed I cant view my adsense ads from my laptop, but I can see them on iPad, so it might have something to do with my Google Chrome browser … | |
Following is my code of menus which i include on each page like this, [CODE]<?php include('menu.php');?>[/CODE] [CODE]<script type="text/javascript" language="javascript"> $(document).ready(function() { $('ul#navlist a').click(function() { $('#navlist .active').removeClass('active'); $(this).parent().addClass('active'); var linkz = $(this).attr("href"); alert(linkz); return false; }); }); </script> [/CODE] [CODE]<ul id="navlist"> <li class="active"><a href="index.php"><span>Home</span></a></li> <li><a href="portfolio.php"><span>Our Work</span></a></li> <li><a href="services.php"><span>Services</span></a></li> <li><a href="request.php"><span>Submit … | |
Please help me: My code is going into an infinite loop after clicking on a link. Here is my Code: [CODE] <html> <head> <title>Assignment</title> <script language="javascript"> var records_per_page = 5; var total_records = 35; function pagination(current_page){ var initial_page = 1; var total_page = 0; var page = ''; if(total_records % … | |
i am currently trying to add a uploading/scanning screen to my file upload site, (just to be clear i need the 'design' part of it, like actually displaying the box not anything to do with the scanners, or implementing the scanners, just a box that says scanning with a scanning … | |
Hey Folks I am just starting out with JavaScript and am following the resource book for the course I am on. One of the exercises is to write an external JavaScript as below which produces the following output: Power is Off Number is Ten the problem is that I am … | |
Similar to my last post one of the exercises is to write an external JavaScript as below which produces the following output: Iteration number: 1 Iteration number: 2 Iteration number: 3 Iteration number: 4 Iteration number: 5 Iteration number: 6 Iteration number: 7 Iteration number: 8 Iteration number: 9 Iteration … | |
Overview So I've got this site I've been working on for months. I thought I had it all figured out. But then I Google'd for my site, and clicked a link, and the same functionality does not work. Details Site: [url]http://whentoplant.com/[/url] Walkthrough - Everything seams to work Ok, lets walk … | |
| Sorry for the basic silly question. But I really dont have any idea on solving this. I have ASP controls (One Text Box and One Drop Down List). Now I need to access [B][I]value [/I][/B]property of TextBox as well as [B][I]SelectedIndex[/I][/B] property of dropdown list. This should be as simple … |
The End.