15,127 Topics
| |
Hello, I want to ask about better practice. lets look at example function this.get_active_group = function() { var active = ''; if ($('#dogs_bet_window #first_row').hasClass('listening_keyboard')) { active = 'first_row'; } else if ($('#dogs_bet_window #second_row').hasClass('listening_keyboard')) { active = 'second_row'; } else if ($('#dogs_bet_window #special_offer').hasClass('listening_keyboard')) { active = 'special_offer'; } else if ($('#dogs_bet_window … | |
loop through javascript show and hide div | |
Hi, I am trying to develop an application with pie chart by using kendo ui framework. I created a datasource which type is json, but I need convert it to javascript array to draw the chart. my code is: <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="View.aspx.cs" Inherits="JsonTest.View" %> <!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> … | |
I just want to use the id for getting description I might have many rows fetched so I am going to make onclick event but till now, why it doesnot work? where am I wrong? Thank you for your interest <?php while( $row = mysql_fetch_array($res)) { ?> <strong><?php echo $row["heading"]?></strong> … | |
What's up experts. I have a problem that's driving me crazy.. I can't get any external javascript files to link to any of my pages. They work perfect if I put it all in the head section but as soon as I put the JavaScript into an external file and … | |
Hi, I know it's possible to open a new window with javascript and then target the original one with "opener.". Is it possible to open in a new tab instead and still target the opener? Thanks | |
Hi, I'm trying to enable a submit button only when all the input fields are filled. Is this the correct way of checking to see if an input field is empty? $(document).ready(function() { $('#submit_button').attr('disabled', 'disabled'); $.each(':input', function() { if ($(this).val() != "") { $('#submit_button').removeAttr('disabled'); } }); }); | |
Hi, Im not sure why this code is not working on IE browsers but on chrome its working well. This code is for a Popup, that will ask the users if stay or leave page once they try to refresh or go to other webpage. (you can test www.thesuperheroblueprint.com).. and … | |
I need to implement a timer in my game. how can i do it? I want to do it using dom and jquery if possible.can someone help? | |
Hello, I am using Jquery's ajax $.POST to insert a form into the database.I'm having 2 issues: For some reason the radio input on the gender won't insert into the database.The other input fields do work. And then II can't display the data after insertion into a div . The … | |
I have a jquery code below which I am using to try to get a html form that is displaied in a lightbox on a webpage to post to a php page my issue seems to be that when I click the "save" button it is not executing the jquery … | |
i hired a developer to customize a wordpress template, it seem ok but when i use certain feature in the template it show a small broken image above the main image, when i right click to open image in new tab it has this "Invalid src mime type:" and i … | |
Heyy...i'm trying to save the attachment file location in mydb...the thing is it's just saving the file name eg.database.txt i want it to look like this C:/bla/bla/test my codes addtask.php <html> <head> <title>Task Management System</title> <link rel="stylesheet" href="Appcss.css" type="text/css"/> <script src="datetimepicker_css.js"></script> <script type="text/javascript"> // Javascript function which takes care for … | |
<?php //email signup ajax call if($_GET['action'] == 'signup'){ mysql_connect('localhost','root',''); mysql_select_db('newsletter'); //sanitize data $email = mysql_real_escape_string($_POST['signup-email']); //validate email address - check if input was empty if(empty($email)){ $status = "error"; $message = "You did not enter an email address!"; } else if(!preg_match('/^[^\W][a-zA-Z0-9_]+(\.[a-zA-Z0-9_]+)*\@[a-zA-Z0-9_]+(\.[a-zA-Z0-9_]+)*\.[a-zA-Z]{2,4}$/', $email)){ //validate email address - check if is a valid … | |
$('#SaveProfile').bind("click", function(){ var pass_entered = $('#pass_entered').val();; var access = false; //check for the password entered if correct $.ajax({ type:'GET', url:'../process/passProtectionCheck.php', dataType:'json', data:{password:'pass_entered'}, success:function(e){ access = $(e).val(); if(access != true){ //if password is wrong notify user!! alert('Password Entered is Incorrect Data cannot be Save'); }else{ //if password is correct save data … | |
Hi i've done a progress bar in javascript. but i dont know how to do the mapping.that is map it to a percentage. the lenght of my progress bar is 260. Can someone help? | |
Hi, I have the following code for a potential handlbars.js tmpl. It compiles correctly at tryhandlebarsjs.com however when I attempt to open the file independently in a browser the default text in the div is the only thing that renders. I know my .json call is wrong but I cannot … | |
| Hi All, Just to say that I've searched DW and Google extensively before posting here. Also looked at the jQuery site, but failed to find exactly what I'm looking for. Anyway here's the thing: I have a button on a form, that when it's pressed inserts some new inputs (textboxes) … |
Hello, pls help me to do this. i m saving my image in php mysql and retriving with js - base64 i cant get code exactly. i m retriving. like this code <img src="LzlqLzRBQVFTa1pKUmdBQkFRQUFBUUFCQUFELzJ3.....<continue code>" /> I want src like below: <img src="data:image/jpg;base64,/9j/4AAQSkZJRgABAQEASABIAA /> | |
<html> <script type="text/javascript"> g_calendarObject = new JsDatePick({ useMode:1, isStripped:true, target:"aFieldId", cellColorScheme:"armygreen" }); g_calendarObject.setOnSelectedDelegate(function(){ var obj = g_calendarObject.getSelectedDay(); alert("a date was just selected and the date is : " + obj.day + "/" + obj.month + "/" + obj.year); }); </script> <h4>STOCK RECORDING SYSTEM</h4> <form action="action.php" method="post"> <table border="0" width="200"> <tr> … | |
Hi friends, What is FieldSet in javascript. Please explain its syntax and usage in general. Please help me. | |
I am working on a project which is having jquery driven menus.but it is not working- the code is $(function(){ $('a#home').click(function(b){ b.preventDefault(); $.cookie('class','home'); }); $('a#write').click(function(c){ c.preventDefault(); $.cookie('class','write'); }); $('a#comments').click(function(d){ d.preventDefault(); $.cookie('class','comments'); }); $('a#medias').click(function(e){ e.preventDefault(); $.cookie('class','medias'); }); $('a#users').click(function(f){ f.preventDefault(); $.cookie('class','users'); }); $('a#stats').click(function(g){ g.preventDefault(); $.cookie('class','stats'); }); $('a#settings').click(function(h){ h.preventDefault(); $.cookie('class','settings'); }); $('a#backup').click(function(i){ i.preventDefault(); … | |
Hello I want to create a button that when the user clicks on it, the browser goes automatically fullscreen. It would be for mainly IE9 and I use for the rest of the browsers the HTML5 fullscreen API. Thanks | |
hello, i m trying to call java function from javascript. i want to pass js variable as a parameter to java function. pls anyone help me how can i do that..?? thank you.. | |
Hey all Im have trouble passing this jquery functions results thru an ajax call. I want this function: $('.sidebar_bookmark_linkrel1').attr('href') to pass as string, any ideas? | |
Hello :D Im 100% noob to javascript.. now, i have this script: <script> if(navigator.geolocation) { navigator.geolocation.getCurrentPosition(function(position) { document.write(position.coords.latitude + '_' + position.coords.longitude); }); } </script> and i need to send the location data to a php script.. Is there any easy and smart way to do souch things? The easy … | |
Hello ! I have 2 divs in my webpage. One div has links (using anchor tag). When I click on the link, I want the webpage in href url to open in other div. Can I do it using Javascript. Regards -Umesh | |
Hi all, I was looking into determine the size of some text on 2 websites (basically it is 2 websites a dev and a live copy and I wanted to determine whether they are the same on every browser) and because I couldn't find a way to do that in … | |
Having problems with my add button, it works . . . when it wants to. its OK when adding but when trying to add after deleting it gets moody and doesn't work. I didn't use a loop but there's a counter for the sake of the IDs cause i will … | |
I have an input that renders completely weird in IE8 - the issue fixes itself however as soon as you enter something into the input. The input is not floated. When the page loads, the entire input, except the actually text in the input are moved down and right by … |
The End.