15,127 Topics

Member Avatar for
Member Avatar for yamot47

[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 type="text/javascript"> function buttonPress(str) { alert(str); } </script> </head> <?php session_start(); error_reporting(E_ALL ^ E_NOTICE); include "dbconfig.php"; $id=$_SESSION["valid_user"]; ?> <body> <form name="Item Search" method="post" action="search.php"> Item Search:<br> <label> <input name="swords" type="text" size="30" maxlength="30"> …

Member Avatar for yamot47
0
196
Member Avatar for gyannitin

Hi all, I am trying to create quiz dynamically. I want user to add more and more ques in a quiz and then finally submit the form. Here is a code that I am trying [CODE]<div align="center"> <table id=repeat> <tr> <td width="155"><font color="#FF9933">Question</font></td> <td width="377" align="left"> <p align="center"><textarea rows="4" name="S1" …

Member Avatar for peter_budo
0
117
Member Avatar for CanadianGSX

New to javascript but I have a good analytical mind....that being said, I have the following code in onSubmit() validation: [code] else if (cofaCOURRIEL == null || cofaCOURRIEL == "") { alert('Le champ COURRIEL doit être rempli.'); document.forms["COFA_AIG"] ["COURRIEL"].focus(); return false; } else if (cofaCOURRIEL) { if ( (atPOS < …

Member Avatar for Shanti C
0
69
Member Avatar for maria_megha

Can someone tel me the code to put a dropdown box showing default values as shown below using script ..i,e by enclosing them in document.write in script <CODE> <SELECT NAME="choice" > <OPTION VALUE="1">one </OPTION > <OPTION VALUE="2">two </OPTION > <OPTION SELECTED VALUE=" 5 "> 5 </OPTION> </SELECT> </CODE>

Member Avatar for Shanti C
0
101
Member Avatar for danny5514

hi all i have search the web and cant find what im looking for which is simple code so that i can have a box about 200px by 400px that scrolles i had used the marguee tag but i need it to display on all my pages. so i thought …

Member Avatar for skald89
0
77
Member Avatar for singaiah39

Hi, Could any one tell on how to load page while scrolling? For e.g. If i want to load 200 records, i will first load 100 records and when the scroll reaches bottom, i will have ajax to get the remaining records. Here, when i get the next set of …

Member Avatar for Airshow
0
136
Member Avatar for LeKook

Hi all, I have been using a script called Divviewer (DV.js) to display larger versions of thumbnails on one of my sites. Works like a champ in everything but IE... has anyone here used this script and had the same problem? Here's the link to one of the pages that …

0
48
Member Avatar for NewOrder

This is javascript: [CODE] function OpenNewWindow(book) { if (book==1) { document.cover.src='images/KanyLogo.jpg' MyWindow = window.open('', 'myAdWin', 'titlebar=0 status=0, toolbar=0, location=0, menubar=0, directories=0, resizable=0, height=50, width=150,left=500, top=400') MyWindow.document.write('10% Discount for Java Demysti? ed!') } if (book==2) { document.cover.src='images/KanyLogo.jpg' ; MyWindow = window.open('', 'myAdWin', 'titlebar=0 status=0, toolbar=0, location=0, menubar=0, directories=0, resizable=0, height=50, width=150,left=500, …

0
63
Member Avatar for Acute

Hi everyone, I have a jquery script that prepends a <div> tag on button click. Additionaly in this script there are some jquery effects(like slideDown) applicable to <div> tags that were before(and for them effects work fine) and also to <div> which was prepended. However, after new <div> is prepended …

Member Avatar for bvelez352
0
62
Member Avatar for HelenLF

I have a JQuery script that gives a neat effect on the navigation and want to include a simple fading slideshow on the same page. Any script I have tried for the slideshow either uses JQuery or Mootools and it conflicts with the navigation script. Can anyone recommend a smooth …

Member Avatar for pritaeas
0
81
Member Avatar for azegurb

Hi all, I have small bbcode script that works perfectly in IE. but in mozilla it doesn't work here is script [CODE]<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd" > <html> <head> <head> <!-- ... --> <script language="JavaScript" type="text/javascript"> var v=2; <!-- function createTag(tagId,areaId) { // var x=tagId; var txtArea = …

Member Avatar for Troy III
0
89
Member Avatar for niimenz

Am a newbie with jquery implementations I currently want to implement an overlay and a dialog the same way its used for this sites login can anybody help me implement this stuff

Member Avatar for codewall
0
91
Member Avatar for cj333

I modify a php comment system. I want add it after every article witch are query from database. this is the php part [CODE]<?php ... while($result = mysql_fetch_array($resultset)) { $article_title = $result['article_title']; ... ?> <form id="postform" class="postform"> <input type="hidden" name="title" id="title" value="<?=$article_title;?>" /> <input type="text" name="content" id="content" /> <input type="button" …

Member Avatar for cj333
0
204
Member Avatar for fahad4014

Can any on plz guide me how to make a voting pole in HTML.. IF someone give me i would be very very thankful.. Regards, MAlik

Member Avatar for Shanti C
0
84
Member Avatar for samsons17

Hi I am creating a facebook like wall system.And at this point,my problem is I cant get the wall writing back the "Whats on your mind?" in the textarea after a message has been post. [ATTACH]19029[/ATTACH] And this is the javascript for the wall : [CODE] var searchLabel = $('#tab1 …

0
69
Member Avatar for brainbox

Hi, I am new to web development, i need to develop a comment box, and save those comments in a file( either database or normal text pad), so that i can retrieve them later and display them on my web. My server does not support php or anyother special scriptin, …

Member Avatar for ana10192000
0
265
Member Avatar for Reliable

Hey everyone, Got a problem. I don't know JS and I've googled my problem. Either I'm not find what I need or I am not understanding what I've found. As the title says I have a form which check boxes. The last check box is labeled "other". What I want …

Member Avatar for @developer
0
64
Member Avatar for tinker

my problem is that, i have a button that contains values and carry it to javascript here is the code below for the button that carries value 1; [CODE] <button onclick="passValue('1')">Pass Me</button> [/CODE] here is the javascriptfunction that will be called by the button above; and this script would set …

Member Avatar for tinker
0
189
Member Avatar for Mapper99

I have a simple jQuery click handler that animates the change of a divs background image. I would like to create some reusable code so I would not have to copy my code for every div I would like this effect on. How would I go about this? [CODE] <style …

Member Avatar for Airshow
0
154
Member Avatar for 612wharfavenue

Im trying various ways to trigger a transition, the simplest being the use of css pseudoclasses: [CODE] //leaving out default header stuff// <head> <style> .item{ opacity:1; -moz-transition: opacity 1s ease; } .item:hover { opacity:0; } </style> </head> <body> <img src="myimage.jpg" class="item" /> </body> [/CODE] If i use js to make …

Member Avatar for bvelez352
0
82
Member Avatar for soomro_moon

it shows this result 1296673200000. i need that in this format m/d/y.how can i do that? [CODE]function calDate() { var date1 = new Date(document.getElementById('date_field1').value); document.getElementById("date_field2").value = date1.setDate(date1.getDate()+5); [/CODE]

Member Avatar for Airshow
0
90
Member Avatar for JZM

Hey, Were I am stuck is with the jquery I have a form that is done in a form class and when an option is selected from the dynamically populated drop down menu I would like it to fill in the text boxes so they can be edited. I currently …

0
81
Member Avatar for andrewliu

Hello I hope you can assist me with this :) [CODE]$(document).ready(function(){ $(".downservices").mouseenter(function() { $(this).parent().find(".servicesdropped").slideDown("fast").show(); $(this).parent().hover(function() { }, function(){ $(this).parent().find(".servicesdropped").slideUp("fast"); }); }); });[/CODE] This code allows me to make a drop down menu when the cursor hovers over a link. I have a horizontal menu, so when I hover over a …

Member Avatar for bvelez352
0
162
Member Avatar for dikri100

I can code it with this account just click on a link I need one that relies on various link on the same page. codigo need cookie. <script type="text/javascript" src="file:///D|/Downloads/cookie.js"> </ script> <script type="text/javascript"> var = CookieUtil { get: function (name) { var cookieName = encodeURIComponent (name) + "=" cookieStart …

0
66
Member Avatar for ben.marks

Hi there, Got some form validation but doesn't seem to even be running through it. First off the form is displayed, if you click in 'Name:' the 'ID:' box disappears so that you cant type in both, after it disappears (and vice versa), the validation should check its correct, but …

Member Avatar for ben.marks
0
208
Member Avatar for manish250

hello all i have a jsp page in which i am using a function for detecting the ascii value of key pressed.it has to give alert if other than any alphabet key is pressed.Below giving the explaining code [CODE] function checkname(e) { var cc=e.keyCode; if(cc >=65 && cc <=90 || …

0
161
Member Avatar for fawadkhalil

Hi people I have radio button list populated from database. By default first value is selected. How can i call JavaScript function if user selects another value in radio button list.

Member Avatar for jbisono
0
124
Member Avatar for ello

Guys, just a quick question, is there any way to get this AJAX to be called on a button click? I know how to use buttons to call JS functions but I'm not sure where to add the open and closing parentheses with this AJAX...I've tried encasing different parts, but …

Member Avatar for McLaren
0
208
Member Avatar for youlichika

I need click `ben10` that `<h2>you voted</h2>` will display in its' child `<div class="message"></div>`. click `winx` that `<h2>you voted</h2>` will display in its' child `<div class="message"></div>`. click `pocoyo` that `<h2>you voted</h2>` will display in its' child `<div class="message"></div>`. but my code not worked. can anyone help me? and if I …

0
61
Member Avatar for McLaren

Here is the button: [CODE] <input class = "preview" type="submit" name = "Preview" value="Peržiūrėti" /> [/CODE] and here is the submit: [CODE] $('input.preview').click(function() { $('form').attr( 'target', '_blank' ); document.myform.submit(); }); [/CODE] So when I submit with jquery, and try to get with php the data [CODE] print_r($_REQUEST['Preview']); [/CODE] It does …

Member Avatar for McLaren
0
130

The End.