15,127 Topics
| |
A very simple PHP/Javascript snippet to detect the resolution of a user's monitor and create a table using that resolution to best fit within the user's browser (to avoid scrolling). Note: This is a PHP script which includes Javascript | |
[B][COLOR="Red"]Please Help Me To Learn To make Regular Tour Pages and 3-D tourney pages...i the color coding in the script/html in a box you know what i mean?ty[/COLOR][/B] | |
Hi there I'm trying to use jquery to load some content on a page but cannot seem to find anything through google. I have about 10 checkboxes, once 4 are selected I want to get their ids, than load 4 divs with textareas depending on the ids of the checked … | |
I have the following files: 1. a PHP page that is loaded first and includes a number of functions. It calls a couple of other pages: 1a. a template file that has the following function in the head: [CODE]function checkForm( what ) { var ret = false; if( isBlank( document.getElementById('firstname') … | |
I am developing an intranet application, in which, in some pages, when the user selects an option, I am using a pop-up window to retrieve the data and displaying it in the main page. The pop-up opens, fetches data, puts in main page and closes itself. Since the user is … | |
Hi there. I am using the slideshow along with the singlegalery.js happily. Now I want to know if you have a version of slideshow that accept width as a percentage as opposed to now that just accept pixels. I know we could modify the singlegalery.js to make this possible but … | |
Hi Friends, I need to create an application that will open a popup when the user closes a window. I can do that easily via onUnload event of javascript but the catch is that the popup must open only when we close the window and not when we submit a … | |
[code]function calculateDate(value) { if (document.form.fromDate.value != null && value != null) { var date = getDate(document.form.fromDate.value); date.setDate(date.getDate() + parseInt(value)-1); var curr_date = date.getDate(); var curr_month = date.getMonth()+1; var curr_year = date.getFullYear(); var dateString = formatString(curr_date) + "-" + formatString(curr_month) + "-" + curr_year; document.form.toDate.value= dateString; } } function calculateValidDays() { … | |
Hi, I was wondering if anyone knew of any simple load bars available for download. I don't want to use Flash and I am updating the website in Front Page. Thanks! | |
| Hi, I'm having a problem debugging a piece of code. I will paste the JSP version (that works) and then the exact same thing in Servlet form (that does not work). The code's function is to change a picture on mouseover and then revert onmouseout. I will paste for only … |
Hi I am trying to dynamically open a popup window but ie8 blocks it with the popup blocker. basically within a ajax fuction I have a confirm button and if the user clicks yes it opens a popup window. now I tried it with a javascript function but it got … | |
Hi, I am trying to develop a website that displays a google map and some markers that I want to add from my SQL Server Database. I have tried to get the values(Latitude and Longitude) from the database in the asp.net and pass them to javascript to add a marker … | |
Hi all, I've finally decided to get serious about learning JavaScript, and to facilitate this endeavor I've unearthed my copy of Danny Goodman's JavaScript Bible, 3rd Ed. (circa 1995, for which I no longer have the companion CD), but on reading the first chapter alone Ive realized just how outdated … | |
HI Friends, I want to disable a browser back button in one of my aspx page.my frd suggested me to use javascript ..but i ahve no idea about it..plz help me.. | |
[CODE=html]<input type="button" value="start" onClick="set(0,0,20)" />[/CODE] i want to make a countdown timer, and i am using the javascript code mentioned below. Also , to start the timer, i use the button 'onClick' event(written above). The problem is that the clearTimeout() is not working. The countdown timer never stops . Any … | |
Anyone, help me here. Is my code possible? I need to assign the total number of records from the database query to the graph of javascript. [CODE]]<?php mysql_connect("localhost", "aaaa", "aaa") or die(mysql_error()); mysql_select_db("aaa") or die(mysql_error()); $result = mysql_query("SELECT * FROM table WHERE field ='1'") or die(mysql_error()); while($row = mysql_fetch_array($result)) { … | |
hi i am designing a web page that contains to many java script but the problem is that when i open it in IE then IE block the java script and shows a yellow bar at the top then when i unblock it then IE shows my script i know … | |
I wrote this code and I can't get it disappear on mouseout.. [CODE]<script language="javascript" type="text/javascript"> var activeLayer = "0"; function highlight(theLayer) { highlighter = document.all? document.all[theLayer] : document.getElementById? document.getElementById(theLayer) : "" } function lowlight(theLayer) { lowlighter = document.all? document.all[theLayer] : document.getElementById? document.getElementById(theLayer) : "" } function JumpToNav(navIndex) { newNav = … | |
Hi i want to retrieve data from mysql database using ajax and php. my code is below which does not work here is index.html [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> var url = "getCustomerData.php?id="; var xhr = … | |
ok so in order here is my code [TEX]/* index.html */[/TEX] [CODE] <!-- jQuery Scripts --> <script type="text/javascript" src="http://jqueryjs.googlecode.com/files/jquery-1.2.6.min.js"></script> <script type="text/javascript" src="http://tdr.host22.com/scripts/li.js"></script> <link href="http://tdr.host22.com/scripts/tdr.css" rel="stylesheet" type="text/css"> <!-- Div Layout --> <div id="container"> <div id="dp">my DP here</div> <div id="hrefs"> <ul id="menu"> <li><a id="home">Home</a></li> <li><a id="about">About Me</a></li> <li><a id="shop">My Shop / Wishlist</a></li> … | |
OK basically im confused ive got an assignment due in tomorrow night and at the moment even an example code wont work for me, basically i was reading a book and ended up with the following code but it doesn't work and i have no idea to convert this from, … | |
First off, thank you for any help you can provide. If you can't help, thanks anyway. I have a table that i need sorted. I can sort by the table header ascending and descending using a php mysql query. Thats not the issue. I need to sort the table based … | |
I am getting this error: Webpage error details User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; WOW64; Trident/4.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.5.30729; .NET CLR 3.0.30729; OfficeLiveConnector.1.4; OfficeLivePatch.1.3) Timestamp: Wed, 20 Jan 2010 19:54:08 UTC Message: Object required Line: 1635 Char: 1 Code: … | |
This is my booking form: [url]http://www.n-v-m.co.uk/Booking.html[/url] When 'Submit Order' is clicked a PHP script is triggered that emails me details of the order... What I require is an alert to pop up if either: a) The customer has selected 'No' for 'Is Vehicle roadworthy with full M.O.T.' or b) The … | |
Hi Everyone! I was wondering how I would use a javascript varible in jquery ?. [CODE] function postNewAnswerAlerts() { if (http_request.readyState == 4) { if (http_request.status == 200) { var result = http_request.responseText; $('div#question').load('responder.php?mode=readquestion&id=' + result).show().fadeIn('slow'); } } } [/CODE] Many thanks James. | |
Hello all, So, I had this idea today. I want items in a drop down menu to be hidden after a specific date. I am totally lost on how to do this. here is what I have so far... (not much) [CODE] <select name="myList"> <!-- The id is the date … | |
I have table in html and each line has checkbox... what I want to do.. I click on checkbox +shift button together in line 1... then click it on line 5.. it selects all booleancheckboxes from line 1 to line 5... but if i click on the checkbox of line … | |
<iframe id="theIFrame" onLoad="resize()" style="width:100%; height:100%;" frameborder="0"></iframe> I have this.. the src is file go.jsp in go.jsp changes occur.. how can I resize go.jsp the iframe so that there wont be scrolling dont give me solution use scorlling="no".. simply..data will be hidden below..I want to resize the page... | |
Ok here is what I am trying to. I have a form where a user will enter in the number of input fields they need (lets call them offices) and when they click the submit button a jQuery function appends the rows to a plain html table. This works fine, … | |
hi got a bit stuck on this... [code] function changeDay(newDay){ ajaxCall('tools/refresh_booking_visual.php','start=' + newDay, function(x){ var pieces = eval("(" + x + ")"); document.getElementById('booking_visual').innerHTML = pieces.visual; document.getElementById('booking_date').innerHTML = pieces.date; document.getElementById('date_back').onclick = changeDay(pieces.backdate); document.getElementById('date_next').onclick = changeDay(pieces.nextdate); } ); } [/code] My code is to do with a calendar, when the user clicks … |
The End.