15,700 Topics
![]() | |
<html> <head> <!--Load the jquery lib --> <script type="text/javascript" src="jquery-1.7.2.js"></script> <!--Use jquery --> <script type="text/javascript"> $var = 1; </script> <script type="text/javascript"> $(document).ready(function(){ $('#cont').click(function(){ $('<p />').text("hye").appendTo($('#cont')); }); // $('p').live("click", function(){ // if($(this).text() == "Good...1") // $(this).empty().appendTo($('#myDiv')); //}); }); </script> --> </head> <body> <!-- <div id="myDiv"> <p>Hello world!</p> </div> <a href="#" id="myLink">Change … | |
Hi, I have a HTML structure like this: <div> <div id="a"></div> <div id="b"></div> <div id="c"></div> </div> I know the ID of an element (let's say it's #b), and i need to know which index it has in the parent div. In this case that would be 2. How do i … | |
i created a jsp page and put a javascript code " window.onload=func(); " in the header when the page is loading.In that func(),i set two objects to the session (using AJAX) and get them back into the jsp.After debugging the aplication everything is ok.but jsp page doesn't display the content … | |
Hi, I got a problem. I'm new to $ and i want to make a div to be displayed 3 seconds after the page loaded but i want it displayed on the desktop( behind the webpage). I made the part where the div slides from the right-bottom corner but i … | |
**Hey i'm creating basic a shopping cart for a uni project, everything works however when I select the view cart button on my html page it appears, however if i select it repeatedly, the table creates a replica table below and does this everytime I select my button so I … | |
Hi! I have a form (which is in html(the rest of my coding done in PHP)) that prompts user to choose image, type in title and choose status and after pressing confirm button script uploads image and its details to MySQL database. I'm trying to fade whole screen or disable … | |
i am working on advert website .In which i need to impliment advertisement impression logic.Can anybody tell me advertisement impression logic. | |
I have a condition based upon which I require that the AJAX HTML Editor gets disable. This code is not working: edNote.Enabled=false; //edNote is AJAX editor. Please suggest any other means to do this. | |
how to open the multi content pop up's ,below code showing button1 content only when i cleick the second button top <div class="buttons"> <button type="button" id="btnShowSimple" value="Email" class="positive" > <img src="../css/bmail.png" alt="email"/> Email </button> <button type="button" id="btnShowShare" value="Share" class="positive" > <img src="../css/share.jpg" alt="Share"/> Share </button> </div> <div id="model"> <div id="output"></div> … | |
So if anyone is or has used the Facebook Javascript SDK to log users on to your own website....am curious. Is there some element that you can always check that it's a valid user? Because, sure, FB redirects them to the new URL once they logon. But so can Google. … | |
i have code of advertisement of a website .i want to know how can i get information on serverside for a view or a for click.i need its working for developing a advertisement web site. <script type="text/javascript"> var AdBrite_Title_Color = '0000FF'; var AdBrite_Text_Color = '000000'; var AdBrite_Background_Color = 'FFFFFF'; var … | |
![]() | Hi, my jQuery link is not working. Its only work if I'm not using `href` attribute on that link. Currently its only functioning when I put the `URL` into `alt`or `title` attribute for example. When I put the url on `href` attribute it will not run as AJAX. Sorry if … ![]() |
![]() | Hi I'm trying to append the content from one of the view file (page.ctp) into another view file (index.ctp). So basically what I'm trying to do is: content from page.ctp ----> index.ctp I managed to get the content of page.ctp using below method. $.get('http://localhost/pages/10', function(data) { console.log(data); }); But based … ![]() |
Hi All I'm looking for ideas or suggestions about how to implement this feature. The concept is I have 2 dropdown select boxes, with data that is not directly related (in the sense that there is no identifiers or foreign keys or anything within the data itself) but that have … | |
Hi, I'm completely desperate for some help. I am getting a handful of reports that DaniWeb keeps crashing the web browser. Most of these reports are coming in from Firefox. Supposedly the problem is fairly consistent. I *cannot* duplicate the problem no matter how hard I've tried. I spend a … | |
Hello. I have a little problem with some work i've been given to study and i am meant to build a little bingo application. We have to modify our co-workers' code so that it fits out own little scenario. I've chosen to do a British Bingo card application and my … | |
Hi, I'm building a battleship game that has multiple sessions over an apache server. It's a server/client containing servlets & jsp's. Let's say i have a jsp page that shows all the boards, for each session i want this page to be refreshed as soon another player makes a move. … | |
Hello, > Quoted Text Here I have put 'jQuery validation' to validate a form and it validates very well n looks perfect in firefox but in chrome when I type anything in some texboxes, error messages gets incremented as much as I type characters in texboxs and my form gets … | |
Good day! I need help.. I have to check if the textbox value is in the dropdownlist items, and I don't know how to get this in javascript. I wanted to validate it in such a way that if the textbox value is in the dropdownlist item values, then the … | |
i have this code, it's purpose is to automatically add a colon when the index is 2, i have done it, but when replacing(overwrite) index 2 where (:) is, you can replace it with a different char, so basically colon will be removed. and also what if the user has … | |
Ok so I am trying to create a loop that creates a dynamic variable but I cant find out how to do this. this is what I have so far var map = { 'flammable': 'inflammable', 'duh': 'no duh' }; $.each(map, function(key, value) { var key = value; }); alert(duh); … | |
Basically, I have a JSP page. I want to know if the javascript is disabled or enabled. Based on that I need o display the content. If JS is enabled I need to display click to update hyperlink which will shown the firstname, lastname when clicked whereas if JS is … | |
![]() | I would like to write a page which accepts Value of textbox / input-field using javascript. As you get values from this: <script type="text/javascript"> var cheese=1 document.write(cheese) </script> Maybe the value `cheese` could be taken from text which the user has to enter....how? |
Does anyone know a good way to force javascript to evaluate all operands in a boolean expression? In particular, what I am tring to do is essentially this: return isValid(a) && isValid(b) && isValid(c); while this technically does work, the function is responsible for highlighting invalid areas on the form … | |
I have this succes message that the visitor sees after submitting the contact form via ajax using jquery: My question is: How can I first fadeIn the image, and then "500 later" fadeIn the rest of the text that is appended after the image? -Now it fades in all at … | |
hey, i'm looking for a simple script that will display 3 images in the same page as the upload button is present in. would be great if you help me with this. thanks a ton! | |
am new at querying, I wanted to change the code below to query my data for the "Date" column, "population", and "education". In the continuation of my code, I have 3 checkboxes to filter out the data pertaining to the date, and the selector to select which color coding and … | |
error Please select an imageError: Duplicate entry '' for key 'img' ` //file properties $file = $_FILES['image']['tmp_name']; if(!isset($file)) echo "Please select an image"; else { $image = addslashes(file_get_contents($_FILES['image']['tmp_name'])); $image_name = addslashes($_FILES['image']['img']); $image_size = getimagesize($_FILES['image']['tmp_name']); if($image_size==FALSE) echo "That's not an image."; else { { if(!$insert = msql_query("INSERT INTO shop (id, img, … | |
Hello, I'm trying to load ad on my site dynamically and I can't seem to get it to work... Well I can get it to work using vanilla javascript, but not with jquery & I would like to use jquery if possible. thisAd = $(oAds[i]); sPos = thisAd.attr('data-adname'); // if … | |
Hello - I'm looking for advice on the best way (or possible ways) to set up a project for work. I have access to our companies internal web server (for employees), and a MS access database that all users have access to, located on a shared network drive. I need … | |
I'm using [raphaeljs](http://raphaeljs.com/). I want to write function -to draw arc- like this, $("#arc").drawArc({ strokeStyle: "#000", strokeWidth: 1, x: 100, y: 100, radius: 50, start: 45, end: 135 }); Above code can draw 90° arc How to make work above function work using [raphaeljs](http://raphaeljs.com/)? [Example](http://raphaeljs.com/polar-clock.html) [For Arcs calculations](https://developer.mozilla.org/En/Canvas_tutorial/Drawing_shapes) | |
Hi I pull data from a MYSQL database to populate a Drop down <td class="<?php print $Bank_ca_error;?>">Bank Name</td> <td> <select name="Bank" id="Bank" tabindex=24 style="color: <?php print $TextColour;?>"/> <option><?php print $_SESSION['Bank_ca'] ;?></option> <?php //Get Data to populate drop down $BankQuery = "SELECT BankName FROM tblbank ORDER BY BankName"; $BankResult = mysql_query … | |
this is my code (html) i dont know how can i open the page in div , i try with iframe but is failed :/ plz help me! <html> <head> <title>Template</title> <script type="text/javascript" src="script.js"></script> <link rel="stylesheet" href="style.css" type="text/css" media="screen" /> </head> <body> <div class="PageBackgroundGradient"></div> <div class="Main"> <div class="Sheet"> <div class="Sheet-tl"></div> … | |
i want that when user type username in from fiel it validate from process.php and after validate it show result in front of name field . i want that when user select uk from contry it show uk city and if selected india then show india cities how can it … | |
I have a form with a select box which is dynamically populated from db. Based on the selection, additional data populates other linked boxes (an input and a textarea). The general idea: the list box has a list of products; once a product is selected, three other input boxes are … | |
Hello everybody, am a bit new here. My first question is, if I am on the right place here? I feel like been in the wrong place. Am looking for some forum where I can ask or finde about "General questions" I have about AJAX sometimes. Am not sure, if … | |
Hi, I have to add css attribute at runtime using jquery.. For example i have the following code: <table width='100%' cellpadding='0' cellspacing='0' > <tr> <td valign='top' width='70%'><span class='header-text'> </span> </td> </tr> </table> I need to add css style to the table. I can access span element of td within table. … | |
hi everybody i need for mi [hobbie web app](http://www.buscocolegio.com) a transference between a java array and a javascript array. this is what i have tried to accomplish but it doesnt seem to work well: <script type="text/javascript"> var arrayJS=new array(); <% String[] javaArray=(String[])request.getAttribute("names");%> arrayJS=<%=javaArray%>; for(var i=0;i<arrayJS.length;i++) //data processing any help would … ![]() | |
Hey I tried to access a cookie that has a [object HTMLImageElement] but I found out that cookies have a limit on size so Im trying to do this with pure Javascript I can store the value of what I want in a hidden div and now I want to … | |
Hi $(window).load(function(){ var p = 0; function moveit(target,shift) { p += 0.01; var r = 135; var xcenter = 700; var ycenter = 350; var newLeft = Math.floor(xcenter + (r * Math.sin(p + (shift || 0)))); var newTop = Math.floor(ycenter + (r * Math.cos(p + (shift || 0)))); target.animate({ top: … | |
Greetings! I'm at the moment stuck with something that would be very trivial, but, since I'm not that versed in jQuery and Zepto I can't figure out a way to solve it. I need to animate a slider With jQuery everything works fine $('.slider').animate({ left: '-=1024px' },500); } But with … | |
![]() | Hi all, been using Chrome's Inspect Element to debug some js and I came across 2 anomalies: Directly below the html tag: <object type="{0C55C096-0F1D-4F28-AAA2-85EF591126E7}" cotype="cs" id="cosymantecbfw" style="width: 0px; height: 0px; display: block;"></object> Then in the head area: <script type="text/javascript" id="WCIDWAXScript" defer="defer">function WCIDCollect() { var VIS_SIG_TEXT = "T"; var VIS_SIG_IMAGE = … ![]() |
Hi ,anybody plz help me. i created own musttry button(same as like button).what is the problem. this javascript function does not working. planbook is class name. function musttry_add(planbook_id) { $.ajax({ url: $('planbook').val(), type: 'POST', data: { personalId:personalId, planbookId:planbookId }, success: function(data, textStatus, jqXHR){ musttry_get(planbook_id); } }); } function musttry_get(planbook_id) { … | |
# How do i do a previous and next buttons with ajax and get different results on same page? # Im fairly new to coding so i need some help. im trying to build a web site for geology ( rocks, etc). My concept is this. How do i use … | |
Hi all, I really need some help. I am trying to make a website with horizontal scroll (working!), then I am using a jQuery Slideshow (called Camera), and I combined this with the horizontal scrolling website(working!). When I select the page I want from the menu, the website scrolls to … | |
I using listview on an asp.net form.. It has item template and edit template... I want to add ajax slider in both the templates.. I just used on script manager as suggested my many people,, but for reason i can only see one single slider in the top row.. and … | |
Alright, I just started trying to do some CSS (I know, I have too much time on my hands) in order to make my own theme for firefox, so it matches my windows theme a little better. However, I really don't know what CSS is, what the general syntax is, … | |
I want to write a new version of [my jQuery extension](http://benilicous.blogspot.com/2012/05/jquery-jmake-v3-adding-appending.html) but I want to ask before diving into it. So here is what I have and what I want, I am not sure whether I am goind in the good way with this question so feel free to express … | |
Hey Im seeing that I need to learn Javascript and using its classes, functions, declaring it, etc so I need something. What is a good way to learn Javascript (besides practice, because basically its all copy-paste so Im not learning what anything means)...... Thanks! | |
hello i want to do autocomplete with jquery and ajax from database without using webservices. i want to do with ajaxhandlers not using webservices. how can possible.? Tell me as soon as possible thanks in advance... my final year project is web discussion forum i want to post topic in … |
The End.