15,120 Topics

Member Avatar for
Member Avatar for feoperro

Hi, I have pasted my code below, please paste it into a JSP and tell me why it gives the error "Unterminated String Constant" [CODE] <html> <head> <title>Debugging</title> <script language="javascript"> function changeOn(object, objectId) { alert('in function'); if (object == 'bookingsButton') { alert('first if'); document.getElementById(objectId).src = 'Images/BookingsOn.png'; } else if (object …

Member Avatar for feoperro
0
201
Member Avatar for venus_me11

I want to have this kind of look [url]http://kleankanteen.com/faqs/faqs.html[/url] when i click the (+) button, the solution/answer will appear and when i click the (-) button, the solution/answer will disappear here is the sample that i want please help.. i dont know if this is javascrip, ajax or something...

Member Avatar for venus_me11
0
86
Member Avatar for smartness

Is it possible to Copy data from a <input> box the the main windows (the input is opened in a pop-up). I've seen date-time pickers can do that, but can't find the function!

Member Avatar for smartness
0
163
Member Avatar for sandipan.rcciit

hi frnd, i have a html form with some text fields and i have a check box that when i click on it the data form 1st text box come to the next one. its working fine when i write the text in text box. but if i use php …

0
72
Member Avatar for julzk

Hi, I have the some php/mysql queries that pull data from my database and then echo out json_encode($rows);. In turn I display the data in my divs from JSON array's. My query is, I am trying to work out how to incorporate the an auto refresh on each of the …

0
59
Member Avatar for team_ferrari22

Hi, We are developing a Google Chrome Extension to capture whole web page as image. Most of the available Extensions will open a tab/window on the click of a button,where they are showing the captured web page as image(in new html page).And are telling to right click on the image …

0
73
Member Avatar for feoperro

Hi, I was wondering if it's possible to vertically align a table, using the page as reference to alignment. I don't want to valign the content INSIDE the table, but align the table itself so that it is always situated in the middle (vertically) of the page. Thanks, -Ashton.

0
118
Member Avatar for hajjo

I want to resize a page dynamically so that it removes the scrolls i want to resize both heights and widths.. I want to bring the size of heights and widths of the scrollls..and resize based on it making overflow:hidden wont solve it.. because it will remove scrolls but wont …

Member Avatar for hajjo
0
61
Member Avatar for JerieLsky

Hi.. I'm trying to study jQuery and I've got a question in some parts of a code.. Here is the code.. [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" xml:lang="en" lang="en"> <head> <link rel="stylesheet" herf=".css" type="text/css"></link> <script src="jquery.js" type="text/javascript"></script> <script src=".js" type="text/javascript"></script> </head> <body> <div id="switcher"> <div …

Member Avatar for pritaeas
0
109
Member Avatar for ady_1

Hi, I am using Jquery and the tablesorter plugin to sort a table of information. Within the table i have a column of checkboxes. A user can check the boxes and press the submit button which will $_POST the checked boxes onto the next page. Everything works if i dont …

Member Avatar for pritaeas
0
40
Member Avatar for emhmk1

I have a ajax script below which should get the info from the database with the option selected however when i select a name another select menu appears with the same details in. [CODE]<script language="JavaScript" type="text/javascript"> function display_data(id) { xmlhttp=GetXmlHttpObject(); if (xmlhttp==null) { alert ("Your browser does not support AJAX!"); …

0
59
Member Avatar for cjay175

Hey, I have, what I think is an easy situation to solve. I am trying to have variables dynamically written to html depending whether a checkbox is ticked. This is what I have right now - if someone might also know the proper way to write this it would be …

Member Avatar for cjay175
0
95
Member Avatar for thebluestar

[CODE=html] <!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=iso-8859-1" /> <title>Untitled Document</title> <script language="javascript"> function sendto() { var Lname = document.myform.last.value; var Fname = document.myform.first.value; document.write("Hello!," + " " + Fname + Lname); var choice = confirm("Your name is true? OR press Cancel …

0
58
Member Avatar for chevechiva

Hi again chaps, here I come with one very common problem which I haven't been able to find a proper solution. Please take in consideration that I've made my part of research. Here's the thing; I am building a website with a very plain main page. It displays some text …

Member Avatar for chevechiva
0
160
Member Avatar for Azzyh

Hi. Firstly i would like to say hello to everyone on Daniweb.com, im new here. I am using jQuery and AJAX. And i dont know what possible could be wrong with this i made. The script i made, should insert data into database through a form. Let me show you …

0
43
Member Avatar for arunss

Am designing a web page for mobile browsers. I have a div (having id 'wrap') which is 320px width and margin:0 auto. My all contents including header is within this wrap div. When I view it on my desktop browser it is positioning in center with a width of 320px. …

0
70
Member Avatar for MJ Pieterse

Hi, not sure if i'm posting this in the right category... i'm not sure if there is a tutorial or anything like this that exists because i've been on google for the past two weeks trying to find a tutorial that will allow me to build my own thing like …

0
69
Member Avatar for sonu

i want to display images based on the text clicked from the list on my webpage, am unable to decide which option to choose for this.. pl help,thanks

0
45
Member Avatar for drabsch

i have a video player and i need to detect when the scrubber is more then 20.6% across this is the script i got so far [CODE] function ad() { if (document.getElementById('scrubber').style.left > "20.6%") { document.getElementById('ad').style.display = 'block' }else{ setTimeout(ad(),1000); } } [/CODE] this is the scrubber and the ad …

0
115
Member Avatar for xuexue

hi guys, just want to ask if how can i display the value of the textbox in javascript? as in, i will output it

Member Avatar for xuexue
0
603
Member Avatar for claudiu_is

Hi, I need help I have a form with an input field [B]addEdit[/B], after pressing a submit button I need to read the value from [B]addEdit[/B] and sent it to db. The problem is [COLOR="Red"]no value is sent through $_POST['addEdit'][/COLOR] . Why ? [CODE=html]<form name='frm' method='POST' action=''> <table cellpadding="0" cellspacing="0" …

Member Avatar for JRM
0
141
Member Avatar for MDGM

Hi all, Im doing my myspace profile and im using submit buttons in a form and the form action as the url for the page that the user gets taken to, however my external links dont work, and i also want them to be opened in a new window. How …

Member Avatar for Pharoah
0
115
Member Avatar for girl.java

hi everyone!!! how are you? i'm trying to make some game using while loop this is my code but, Unfortunately it doesn't work :( please help me [CODE]<html> <SCRIPT LANGUAGE='javaScript'> var puzzle=rabbit; var input; var i=0; input=window.prompt('White and fast with four legs ??guess the answer',' '); while(puzzle != input){ alert('hehe …

Member Avatar for girl.java
0
86
Member Avatar for fsn812

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

Member Avatar for almostbob
0
524
Member Avatar for jazzybabe

[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]

Member Avatar for Graphix
0
59
Member Avatar for cjay175

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 …

0
75
Member Avatar for filch

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') …

Member Avatar for filch
0
118
Member Avatar for aparnesh

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 …

Member Avatar for bapjg
0
6K
Member Avatar for jfrojasdelrio

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 …

Member Avatar for jfrojasdelrio
0
84
Member Avatar for webbee

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 …

Member Avatar for freelancerquest
0
144

The End.