15,120 Topics

Member Avatar for
Member Avatar for yearby

So I'm having some problems with my code here. and I'm not sure whats wrong. Im following a textbook on how to do it and this is basically the same format that they have for a random number function. Any feedback is appreciated. <html> <head> <title> Grades </title> <script type="text/javscript"> …

Member Avatar for dcdruck
0
5K
Member Avatar for rayidi

I want to working with login system jQuery ajax and json. I'm facing no problem with success function. I dn't know how to through custom errors like "incorrect login". Here is my code, Please help me. <script> $(document).ready(function(){ $("#login").click(function(){ if($("#defaultEmail").val() == ""){ $("#defaultEmail").addClass("field-err"); $("#defaultEmail").focus(); }else if($("#defaultPassword").val() == ""){ $("#defaultEmail").removeClass("field-err"); $("#defaultPassword").addClass("field-err"); …

Member Avatar for rayidi
0
3K
Member Avatar for Rizi004

Hello Guys how are you all? I have a text box for searching, when i write L all the data that starts from the L should display in a list aplabetically. My data is stored in multidimension array. Now tell me how i can perfrom the above task. i use …

Member Avatar for urtrivedi
0
118
Member Avatar for newbie26

hey..can someone help me?? i have a html/php file with a command button and when i clicked it, it will run the exe file of a vb6 application. how can i do this?can i have sample code?? thanks in advance.

Member Avatar for newbie26
0
460
Member Avatar for rubai

I want to make a like this example. Cliking at any question it shows the whole, and clicking for the second time it hides. I want this effect. http://mentor.templates.pixelentity.com/faq.html Is there any code snippets for that. I need the code. WHAT IS THE NAME OF THIS EFFECT? Help! Jahur

Member Avatar for Troy III
0
200
Member Avatar for Satu0King

I want to make a button in my page "click here" when i click the page should fade and show some text.then u can close the text box. thanks please keep it simple i am 14 years old <URL SNIPPED>

Member Avatar for JorgeM
0
159
Member Avatar for vizz

How to upload file and form data using jQuery? <input type="text" name="Name" id="name" /> <input type="text" name="Email" id="email" /> <input type="file" name="attachment" id="attachment" accept="application/msword/pdf" /> $target = "uploads/"; $target = $target . basename( $_FILES['attachment']['name']) ; move_uploaded_file($_FILES['attachment']['tmp_name'], $target);

Member Avatar for vizz
0
159
Member Avatar for troels_y

Hi all! I have a problem - surprise. I want to swap the content of my <div> (with the ID "content"), when the user press a bottom. I have tried using these, but with no result: document.getElementById("content").innerHTML = "<script src=\"js/demo.js\" language=\"javascript\" type=\"text/javascript\"></script>"; $("<script src=\"js/demo.js\" language=\"javascript\" type=\"text/javascript\"></script>").appendTo('#content'); I can insert <p> …

Member Avatar for Troy III
0
271
Member Avatar for jonsan32

I'm trying to get random images to display onto four different cells with their corresponding links in place. All that's happenning is one random image is chosen and displayed throughout. Is there a way to pull 4 images from the given list and display them randomly instead? **Thanks a bunch …

Member Avatar for jonsan32
0
413
Member Avatar for Boby Smith

Use document.forms[0].submit(); (0 refers to the index of the form – if you have more than one form in a page, then the first one has the index 0, second has index 1 and so on).

Member Avatar for stultuske
0
58
Member Avatar for vijayram

Hai everybody. what is the problem onclick javascript function not working anybody plz help me. function getColor(block) { var s_url=block.href; var pColor=s_url.substr(s_url.indexOf("#")); document.getElementById("colorText").style.backgroundColor=pColor; document.getElementById("colorText").innerHTML=pColor; } <img src="/images/palette.gif" usemap="#color_palette" /> <map name="color_pallete" id="color_pallete" > <area shape="rect" coords="7,7,31,30" href="#003300" onclick="getcolor(this);return false" /> <area shape="rect" coords="35,7,59,30" href="#003366" onclick="getColor(this);" /> <area shape="rect" coords="63,7,87,31" href="#000080" …

0
98
Member Avatar for praveen_dusari

Hi all, I have a problem with the date in javascript.I have a date which is in string format Like this: 10/5/2012 6:00 PM and what i need to do is at 5:00 PM on date 10/5/2012, i need to add a class to the td. <table width="100%" border="0" id="datetime"> …

Member Avatar for Taywin
0
196
Member Avatar for techyworld

Hi i'm having problem to display image using easeljs. Can someone help? the code below is not displaying anything. <!DOCTYPE html> <html> <head> <script type="text/javascript" src="lib/easeljs-0.5.0.min.js"></script> <script> var stage; var canvas; var img; function init() { canvas = document.getElementById("canvas"); stage = new createjs.Stage(canvas); img = new Image(); img.src="images/test.png"; stage.addChild(img); stage.update(); …

Member Avatar for Taywin
0
132
Member Avatar for vijaykavin10

Hello guys, I have a doubt in setting a third party cookies on browsers, Firefox and chrome allows third party cookies by default IE if we use p3policy it works fine *Likewise is there any way to allow third party on safari even if privacy setting set to block third …

Member Avatar for Taywin
0
151
Member Avatar for riahc3

Hey I want to do something like this: <script language="javascript"> function calculatesha() { var name = document.getElementById("firstname").value; var last = document.getElementById("lastname").value; var complete = name+last; var hash = <?php echo(sha1(?>complete<?php));?>; } </script> I hope the code is understood even if it is wrong. Thanks.

Member Avatar for riahc3
0
285
Member Avatar for Airshow

Tablesorter (currently v2.0.5) includes an "update" method. This method keeps a Tablesorter object up to date with dynamic changes made to its table(s). Like other Tablesorter methods "update" is implemented in the form of a custom event. A typical method call would be $table.trigger("update"); , where $table is a jQuery …

Member Avatar for punknroll
0
801
Member Avatar for saifali.malik.33

<script> function get_input(id) { var value_id = id.split('_',2); var index = value_id[1]; var input_id = 'input_'+value_id[1]; var value = document.getElementById(id); var input = document.getElementById(input_id); var num = <?php echo $_SESSION['max_num']; ?>; var i= 0; while( i< num) { if(i==index) { // alert(index); //alert(i); // alert(input_id); $("#"+input_id).css({"display":"block" , "width":"106px" , "height":"20px"}); …

Member Avatar for stultuske
0
143
Member Avatar for Lilith24

The turotials online all say to access elements in javascript with document.getElementById(id). But I found I could negate this step and just type in id.attribute. I wanted to know why I didn't actually have to document.getElementById(id) my HTML attributes. Any ideas? <!DOCTYPE html> <html> <body> <p id="p1">Hello World!</p> <p id="p2">Hello …

Member Avatar for Troy III
0
388
Member Avatar for TMD

Ok I have a program that uses HTML to get some values from a user using a form and then it is passed into a javascript function that does some calculations with these numbers and creates a new variable name. What I need help with is that I want to …

Member Avatar for broj1
0
1K
Member Avatar for Simon180

Hello all, I have a small problem with javascript and php what am trying to do is re-code the following script so that the items array uses a php script and a loop to gets information from a database but i dont know how to go about it can anyone …

Member Avatar for broj1
0
280
Member Avatar for kischi

Hi, I have made a small program that enables a user to upload an image and gets it sent back to the users email with a watermark on it. The place where the user uploads the image is in an ajax colorbox and in order for it to send the …

Member Avatar for JJenZz
0
593
Member Avatar for subrata_ushasi

Hi all , I want to display characterwise display of word in a textbox. I think it is possible in ajax. Like if I enter "A" will show in text box "AMERICA" ,"AFGANISTHAN","AUSTRALIA","AFRICA","AGONY","AMNESTY" etc. again if I enter "M" after "A" will filter only "AMERICA" and "AMNESTY" because only matching …

Member Avatar for JorgeM
0
169
Member Avatar for jrosh

I am using flot graphs for jquery in mvc3 razor web app. I'm loading partial view containing a plot graph to a div. I have a pop up window coming from another event. After popup window closes following error gives. *This only happens in IE* Following is the error: "Microsoft …

Member Avatar for pritaeas
0
198
Member Avatar for Pervex

Hi, I have the code , which add the data from input filed to list-box.Now am able to remove individual input's. I want to have option multiple select to remove the data from list box . <form id="frm" action="" method="post"> Select list:<br/> <select name="sel_list" id="sel_list" size="2" onchange="adOption.selOpt(this.value, 'optval')"></select><br/><br/> Add an …

Member Avatar for Taywin
0
210
Member Avatar for robert.rook.501

I need a javascript routine to allow a page that is called to return to whatever page called it, however the new page itself may have multiple pages to go to, so standard javascript window-history-back will not work. I need something like original-page="xxxxxx.htm" Oh yes the routines for both pages …

Member Avatar for Taywin
0
273
Member Avatar for Ajh180

Hi, I have a hover effect whereby an image is being faded out and another is fading in. However, Is there a way for these actions to happen simultaneously? So as one is fading out the other fades in. My code so far is: $('.square').mouseenter(function () { $(this).attr('data-image', 'two'); $(this).find('.one').fadeOut('medium'); …

Member Avatar for JJenZz
0
120
Member Avatar for iamjin04

<html> <head> <script language="JavaScript"> function validator() { if (text_form.name.value == "") { alert("Please enter your name"); text_form.name.focus(); return false; } return true; } </script> </head> <body> <form name="text_form" method="get" action="success.html" onsubmit="validator()"> <label for="name"> Name </label> <input type="text" name="name"/> <br /> <input type="submit" value="submit" /> <input type="reset" value="reset" /> </form> </body> …

Member Avatar for iamjin04
0
170
Member Avatar for LastMitch

Hi I recently create a `Simple JQuery` code with captions with some help from other Daniweb members: http://www.daniweb.com/web-development/javascript-dhtml-ajax/threads/434987/havent-issue-with-seeing-alt-with-image-in-jquery I got a better understanding how it works. So I decide to add a `image count` with this code. The past few hours I been trying to modify this code, kinda play …

Member Avatar for LastMitch
0
479
Member Avatar for ratanji

i want validation form without alert message and to display all the empty blocks error messages at a time beside blocks so can any one help me...???

Member Avatar for Taywin
0
148
Member Avatar for roachae

I'm trying to add 'session ending warning' and 'session expired' pop-ups to a site that displays secure data. The session timeout is after an hour. The pop-ups are controlled by javascript using the code below, which checks the time left in the session every minute. BUT... the call to the …

Member Avatar for Taywin
0
359

The End.