15,121 Topics
| |
HI i have many fields in form....i want to check if anyfield is null so i want to do alert mesege also want to change the colour of text field....i have written a code but no error but not working anything...my code is for java scritpt function validateForm(Qform){ var i=0,Q= … | |
I got a great response from this site. now my final thing is show gif loading image while getting data in Ajax.. my code is : function vote(id) { var result = new Array(); document.getElementById('sub-cat').innerHTML = ajax_image; result = $.ajax({ type: "POST", url: "ajax.php", data: "id="+id, async: false }).responseText.split("^"); document.getElementById('sub-cat').innerHTML … | |
html file <div id = "right_login"> <form id='login' action='login.php' method='POST' name=''> <h1>Log in to your account!</h1> <?php //print errors if(array_key_exists('log_error', $_SESSION) && !empty($_SESSION['log_error'])) { $log_error_r = $_SESSION['log_error']; echo "<span style='background-color:#D00000;'> $log_error_r <br/></span>"; unset($_SESSION['log_error']); } ?> <div> <label>Username:</label> <input type="text" name="username" id="login_username" class="login_field" value="" /> </div> <div> <label>Password</label> <input type="password" name="password" … | |
I have a servlet in java. My servlet URL is [Click Here](http://192.168.10.113:8080/collective-intellegence/UserClickPersonClassifier?userid=1&query=asp.net) This URL is giving json data. I am using a jquery ajax call to get the data. **MyCode** function SecondResultLink(link, userId, userInput) { try{ var urlSearch = "http://192.168.10.113:8080/collective-intellegence/UserClickLinkClassifier?userid=" + userId + "&query=" + userInput; $.ajax({ url: urlSearch, type: … | |
I am working on an ecommerce website for Glasses. Where I want to put a feature to try the glasses on your face or on some sample faces. The perfect example for this is one this site http://www.glasses2you.co.uk/prescription-glasses/gender/mens-glasses See the **Try in Mirror** option on this website. I can see … | |
Following code sets page(div's:- home,about,services etc ) height to 600px and when menus are clicked travels to perticular **div**. But it is not scrolling smoothly. It goes directly to that perticular **DIV**. I have used **animationTime = 900**, but it is not working. How to control scroll speed using **animationTime … | |
Hi everybody. I'm building an site that will load a bunch of overlays into Google Maps. The overlays are static and already in JSON format to be loaded with AJAX. This all works fine, ajax request, json parse, adding overlay. But the json files are quite big, the largest has … | |
Hey guys I have a page where a user can drag and drop ellements into divs 's and everything works great, but I need the div to only accept 1 element. Check it out [Click Here](http://www.cintascsr.com/test_site/report/) Right now you can drag both pdf docs into one "send to print" div. … | |
hi i m very new to ajax and i want to have incomplete results like in the following image of google: ![upload1](/attachments/large/3/upload1.png "upload1") please help me for this purpose and for more experties in ajax | |
i have a menu here. if i hover over it a sub menu drop down. but the problem is that the drop down menu display behind the div id = inner tag. i want to display front. <div id = 'bottom_menu_wrapper'> <ul id='navbar'> <li><a href='#'>Apparel</a> <ul> <li><a href='#'>Female</a></li> <li><a href='#'>Male</a></li> … | |
so iam trying to add a image slider in to my site. website where iam downloading this slider is: http://www.agilecarousel.com/ slider that iam download is called "Flavor 1". <html> <head> <link rel='stylesheet' type='text/css' href='agile_carousel.css' /> </head> <div class='slideshow' id='flavor_1'></div> .... //at end of html file //jquery verson file <script type … | |
Hi all, Can anyone please help me solving this code that i've been stuck for a while. I would like to logout from my shopping website then redirect the user to homepage after that. Right now, I managed to log them out but everytime they log out, it will bring … | |
Hello there , currently am working on download site that contain items , I need to place **download hits** for every file in site, I used the old way that open popup php page and increase the counter then store the result in database, its not cool to do this, … | |
How does Yandex do its trick? I want to programatically get the contents of a Yandex.com search result. The proglem is that a search page url does not change when you do a search on yandex.com and advance to see more pages. It must be done somehow by javascript. Any … | |
My wordpress site has a custom built plugin that enables people to compare SIM only deals. The problem is that, on the front end, the deals table takes about 60 seconds load in IE8. It is ten times faster in firefox (about 6 seconds). The guy that built the plugin … | |
trying to make this script work: <script type="text/javascript"> var tmp='<html><head><title>popup</title>'; tmp+='<script type=text/javascript>'; tmp+='function nowTime(){'; tmp+='var oNowTime=new Date();'; tmp+='var iMonth=oNowTime.getMonth();'; tmp+='var iDate=oNowTime.getDate();'; tmp+='var iYear=oNowTime.getFullYear();'; tmp+='var iHours=oNowTime.getHours();'; tmp+='var iMinutes=oNowTime.getMinutes();'; tmp+='var iSeconds=oNowTime.getSeconds();'; tmp+='var iMilliSeconds=oNowTime.getMilliseconds();'; tmp+='var sNowTime=iHours+":"+iMinutes+":"+iSeconds;'; tmp+='return sNowTime'; tmp+='}'; tmp+='function nowDate(){'; tmp+='var oNowTime=new Date() '; tmp+='var iMonth=oNowTime.getMonth()+1'; tmp+='var iDate=oNowTime.getDate()'; tmp+='var iYear=oNowTime.getFullYear()'; tmp+='var iHours=oNowTime.getHours()'; … | |
I have a Dynamic table with only showing 10 records and using pagination to show the next 10 records. I want a search function. I follow this guide http://www.vonloesch.de/node/23 But instead I can only search on the first 10 records. Any help is appreciated. Thanks | |
iam doing it so that it inside input field it should say "Password". then if user start type in than it should put chars ****. html file <input type="password" name="password" id="login_password" class="login_field" value=""/> js file /*** login page - password field ***/ var password = 'Password'; $('#login_password').replaceWith('<input type="text" value="" name="password" … | |
Hi all, I'm working on a little project that gives you synonyms for your sentence that uses Twitter Bootstrap. Everything is working all right, but I can't seem to change elements within the Popover! What's odd, however, is that when I used jQuery.length on the desired element, it told me … | |
<div> <div style="position:fixed"> <ul> <li><a href="#home">Home</a></li> <li><a href="#news">Profile</a></li> <li><a href="adminViewEmployers.aspx">Employers</a></li> <li><a href="adminViewApplicants.aspx">Applicants</a></li> <li><a href="#about">Super Admins</a></li> </ul> </div> designed a vertical menu in css , it has 4 clickable links HOME APPLICANTS EMPLOYERS PROFILE Now i want that when i click on APPLCIANTS then within this menu it should open 2 … | |
Hello DaniWeb Community, I've recently been working on a simple input page for user to key in and then, returns an error if it doesn't match the required input type. However, I've been trying to get them working but they don't. I've 2 pages (author.html & book.html) which send their … | |
I am trying to style a log in menu that is created by this snippet i have here (generated by javascript): <script> var password; var correctpassword = "DaNiWeB"; password = prompt ('Enter the Correct Password to view this page:',''); if (password==correctpassword) alert('Thank you for properly entering the password, you may … | |
Hai everybody, I am uisng * valums/file-uploader i need help in mouseover or mouseup a uploadbutton. after upload a image. anybody plz help me. this code no working. remove this two lines working fine. $("#btnUploadPlanPicture").hover(function() { $("#btnUploadPlanPicture").mouseup(function() { anybody plz help me. $(document).ready(function() { $("#btnUploadPlanPicture").hover(function() { $("#btnUploadPlanPicture").mouseup(function() { var uploader … | |
i want to get the alert on responce text, but getting nothing, my code is as follow, [ICODE] <?php session_start(); ?> <script type="text/javascript"> var xmlHttp function checkCAP(str) { if (str=="") { alert("plase enter the code"); return } xmlHttp=GetXmlHttpObject() if (xmlHttp==null) { alert ("Browser does not support HTTP Request") return } … | |
I have a form which will show hidden <div> on selection of a dropdown menu item. My problem is when the form is submitted, all the hidden <div> form elements are sent. I either need to clear all hidden <div> form fields before submit or only submit the visible <div>. … | |
index.html <html> <body> <head> <!--[if IE]><script src="lib/excanvas.js"></script><![endif]--> <!--<script src="libs/prototype-1.6.0.2.js"></script> --> <!-- <script src="//ajax.googleapis.com/ajax/libs/prototype/1.7.1.0/prototype.js"></script> --> <style type="text/css"> canvas { border: 1px solid green; } </style> <script type="text/javascript" src="libs/jquery-1.7.1.min.js"></script> <!-- box2djs --> <script src="libs/Box2dWeb-2.1.a.3.min.js"></script> <!-- <script src="libs/box2d.js"></script> --> <script src='js/box2dutils.js'></script> <script src='js/game.js'></script> </head> <canvas id="game" width="600" height="400"></canvas> </body> </html> game.js http://pastebin.com/VAJE2tiB box2dutils.js … | |
I came across a weird requirement from my client. Format an integer with leading zeros with out changing its type like below 1 = 01 and not "01" 2 = 02 and not "02" I have searched whole google. But didn't found any way to achieve it. It seems to … | |
Is this possible? <li><a href="master.php" class="selected"><span></span>Home</a></li> <li><a href="about.php"><span></span>About</a></li> <li><a href="products"><span></span>Products</a></li> | |
hi the url is localhost/mo/all/iframe.html?city=LHE i want to get the value of city through javascript how i can get this value. thanks | |
So for my website I am trying to create a more button, and a menu will pop up when I create this. There is a picture of an arrow for more, and a picture of a down arrow for less. I have the javascript code done, but it won't switch … |
The End.