17,114 Topics
![]() | |
Hi All, I did a search on DaniWeb but didn't manage to find a solution to this problem. We've got some pretty simple javascript that calls a random html file into a div on a very simple page. The called file contains a vimeo embed in an iframe. This script … | |
Hello, I'm trying to populate a form with information from a database based on a textbox entry. However, when I begin to key in the textbox I receive "undefined" in each textbox throughout the form. Can someone take a look at my code for any errors? It also appears that … | |
[ICODE] var a = { one : 1, arr : ['one','two','three'], doThis : function(){return 20;}, two : 2 }; var html = 'a.one = ' + a.one + '<br/>'; html += 'a.arr[0] = ' + a.arr[0] + '<br/>'; html += 'a.doThis() = ' + a.doThis() + '<br/>'; html += 'a.two … | |
i want to have a drop down box containing items a, b, c, d, e, f & g and checkboxes 1-20 now checkboxes 1,2,3 are associated with option a checkbox 4,5,6 are associated with option b like this. now how to display the associated checkbox when an option from the … | |
I am in a great hurry please someone tell me how to populate checkboxes based on the dropdown menu selection if possible please give the code | |
Hi I want to set focus to a text field on a php page which is loaded by ajax. The javascript file for ajax is shown below [CODE] <script> function menu_change(str) { if (window.XMLHttpRequest) { // code for IE7+, Firefox, Chrome, Opera, Safari xmlhttp=new XMLHttpRequest(); } else { // code … | |
Hello, I'm converting a HTML/PHP website to wordpress. I'm showing real estate listings on the Google Maps. I've been able to sort out all the problem when converting to wordpress but I'm stuck at a point. Here is the code; [CODE] parameters: function() { var result = {}; var url … | |
i have following code [CODE]<div id=date_check visible=true runat=server> <strong>Check-In Date</strong> <%-- <asp:TextBox ID="txt_checkin" runat="server" onchange="checkdate(this);"></asp:TextBox> <a href="javascript:calendar_window=window.open('calendar.aspx?form1=form1.txt_checkin','calendar_window','width=554,height=488');calendar_window.focus()"> <img alt="" src="images/calendar.png" /> </a> --%> <asp:TextBox ID="txt_checkin" runat="server"></asp:TextBox> <ajaxtoolkit:CalendarExtender ID="Calendarextender1" runat="server" OnClientDateSelectionChanged="checkDate" TargetControlID="txt_checkin" Format="dddd, MMMM dd, yyyy"> <%--<input runat=server type="text" id="txt_checkin">--%> <strong>Check-Out Date</strong> <asp:TextBox ID="txt_checkout" runat="server"></asp:TextBox> <ajaxtoolkit:CalendarExtender ID="Calendarextender2" runat="server" OnClientDateSelectionChanged="checkDate" TargetControlID="txt_checkout" Format="dddd, … | |
Hello daniweb users, i would like a brief walk through on AJAX if you'll can, i already looked through the post and didn't find what i was looking for, i would like to know how to refresh evertying on a web page but the header, which contains the navigation bar … | |
Hello Everyone, I created a javascript function to show/hide element id. In the code, the detail row will be show when its header row is clicked and the detail row will be hiiden after the hyperlink is clicked. Can you give any advice on how to show/hide the detail row … | |
Greetings I have this page, which will have a slider gallery based on the EasySlider plugin [URL="http://fantasma98.byethost12.com/restaurante/galeria.php"]http://fantasma98.byethost12.com/restaurante/galeria.php[/URL] The problem I'm having is that, I don't know how to display a title and a description of the given image (been trying for hours to move positioned divs to display it). I … | |
hello guys i want a drop down menu for the month,year and days in case of DATE OF BIRTH. I HAVE done this thing with jquery datepicker but i want a dropdown menu for it..please help me here is my code i want to use drop down menu but figuring … ![]() | |
Hi, I need help with PHP/javascript/mysql I am fairly new to this so excuse me for my bad programming skills. I have PHP page which has to update mysql table and HTML table onclick. It updates HTML table ok but as soon as I refresh page it updates all data … | |
I have this code for overlay [CODE] <script> $(document).ready(function() { var triggers = $(".modalInput").overlay({ // some mask tweaks suitable for modal dialogs mask: { color: '#ebecff', loadSpeed: 500, opacity: 0.8 }, closeOnClick: false }); var buttons = $("#btn1").click(function(e) { // get user input var yes = buttons.index(this) === 0; // … | |
Im a newbie on making webpage using html and javascript would teach me a basic javascript plss | |
Hi I have been trying to implement the zooming of images on mouse over but could not do it because: 1) I am not doing the 'list' kind of display of images. 2) I dont want other images at several positions to be distorted while one image zooms. 3) I … | |
How would I add a quick reply box to the bottom of a forum-style website? I know I'm going to need some sort of JavaScript or PHP script or something... I really don't know where to start. | |
hello guys i am trying to add jquery datapicker function but its not working.here is the code.... [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> <link rel="stylesheet" type="text/css" href="css/stu.css" /> <style type="text/css"> <!-- .style1 {color: #C0C0C0} --> </style> <script … ![]() | |
Nowadays i'm working very hardly on one prohect - mini social network with some advantages: You can generate tree style map ([url]http://goo.gl/ZP5yc[/url]) of all relationships of user. For example B, C, D are friends of A. On profile page of A when you click on "generate" button it shows A … | |
Hey, I have started learning Javascript programming, I wrote these two codes and it thy are not working, it shows a blank page when i load those files. Please help. [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> </head> <body> … | |
[CODE]function moveScroll(){ try { var $j = jQuery.noConflict(); var scroll = $j("#applicationBody").scrollTop(); var anchor_top = $j("#searchResults").offset().top; var anchor_bottom = $j("#bottom_anchor").offset().top; alert(anchor_bottom); if (scroll>anchor_top && scroll<anchor_bottom) { clone_table = $j("#clone"); if(clone_table.length == 0){ clone_table = $j("#searchResults").clone(); clone_table.attr('id', 'clone'); clone_table.css({position:'fixed', 'pointer-events': 'none', top:0}); clone_table.width($j("#searchResults").width()); $j("#searchResultsList").append(clone_table); $j("#clone").css({visibility:'hidden'}); $j("#clone thead").css({visibility:'visible'}); } } else { … | |
In my project, I have a page which having, Ajax PopupExtender,UpdatePanel,<AJX:TabContainer> . When I set control values(textboxes,labels) on that page, I am not able to refresh the page even through web browser(retype url). All values persist on the controls. Anybody can talk about problem and solution? Thanks in advance. | |
Hi guys, Why my code below doesn't work? How to make them work together on one page? [CODE] // THIS CODE IS FOR DATE PICKER <link href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.js"></script> <script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js"></script> <script> $(document).ready(function() { $("#datepicker").datepicker({dateFormat: 'yy-mm-dd 00:00:00'}); }); </script> // THIS CODE IS FOR VALIDATOR <link rel="stylesheet" … | |
Hello friends, Well i just realized onmouseover on select options not working in IE/Chrome/safari. i think bec. IE/chorme doesnot support onmouseover. Can any one tell me the alternative of onmouseover? Thanks | |
Hi I have this code of zebra stripes. [CODE] <style type="text/css"> <!-- .paint {background: #caf2fe;} --> </style> <script type="text/javascript"> $(document).ready(function(){ $("tr:odd").addClass("paint"); }); </script> <table cellpadding="0" cellspacing="0" width="100%"> <tr> <td>Text1</td> </tr> <tr> <td>Text1 details</td> </tr> <tr> <td>Text2</td> </tr> <tr> <td>Text2 details</td> </tr> <tr> <td>Text3</td> </tr> <tr> <td>Text3 details</td> </tr> </table> [/CODE] … | |
Can anyone tell me the diff between the following two statements [CODE] var username=document.forms['myForm']['username'].value; var username=document.myForms.username.value; [/CODE] | |
Hi All I need open a document in Read only mode using Javascript. i find out code like "wordDoc.ActiveWindow.View.Type = Word.WdViewType.wdReadingView;" how to use this into javascript any one help me for this... Thanks ![]() | |
[CODE] <html> <head> <style type="text/css"> .all_display { border-left:8px solid lightgray; border-top:8px solid darkgray; border-right:8px solid #505050; border-bottom:8px solid #505050; background-color:white; width:60%; margin-left:20%; } .inner_tablecell { font-size: 14px; font-weight: bold; text-align: center; width: 12px; } .fake_link { color: blue; font-weight: bold; text-decoration: underline; cursor: hand; cursor: pointer; } .img1 { background-image: … | |
Is it possible to get a websites source code using ajax? | |
I am have been trying to teach myself ASP.NET and Javascript for a project and have been stuck on one problem for literally dozens of hours now. I found a really nice javascript drag-and-drop list online, copied the source offered and split the css into a .css file, the javascript … | |
hi guys i have a problem i am searching for it but couldnt find that code right.can any one fix it.i want to change my text field colour to red while it is left empty or doesnt specify the condition applied on this...here is my code below [CODE] <!doctype html> … ![]() | |
well this one is the my first post in the daniweb , and i belive that i will get solved my problem . well i trying to create a MLM project in which i m trying to creating binary tree by using this code which i have attached in this … | |
[CODE] <html> <HEAD> <style type="text/css"> body { background-color: black; color: black } a { font-weight: bold } a:link { background-color: black; color: blue } a:visited { background-color: black; color: blue } a:active { background-color: black; color: blue } a:hover { background-color: white; color: maroon} input { font-family: monospace; font-size: 24px; … | |
[CODE] <HTML> <HEAD> <TITLE>Number Blocks</TITLE> <!-------------------- Design --------------------> <STYLE> .bigcell { BORDER-RIGHT: #6699ff 5px solid; BORDER-TOP: #6699ff 5px solid; BORDER-LEFT: #6699ff 5px solid; BORDER-BOTTOM: #6699ff 5px solid; BACKGROUND-COLOR: #6699ff; TEXT-ALIGN: center } .cell { BORDER-RIGHT: #6699ff 2px solid; BORDER-TOP: #6699ff 2px solid; FONT-WEIGHT: bold; FONT-SIZE: 10pt; BORDER-LEFT: #6699ff 2px solid; … | |
There is an extra row on top and on the side of 1-10 that I don't want on my table. How can I remove this? [CODE]<script type="text/javascript"> /* <![CDATA[ */ var numRows = "10"; var numCols = "10"; if (isNaN(numRows) || isNaN(numCols)) { }else { var tblHTML = "", rowHTML; … | |
i want to change the default value of dropdown list to 0 i.e selected index value shud become 0 when press the cancel button so that watever i selected previously is removed i want it in javascipt only...i have done it in c#...since there s no forum for javascript i … | |
Hey; I am learning some javascript. I tried to write a trivial code to validate email but my code does not seem to work it should. It should turn the background color of text box green when mail contains both '@' and '.' characters and red otherwise. However what the … | |
I have a web site written in html. I want to have a warning mesage in my web page saying they are not allowed to copy any of my data. Also, if they do copy, how can i tell who copied my data? Pls advise. Thx. | |
I need a auto indent program for .pd's, .js's and html code what do you recommend? | |
On a webpage, I have a table (generated on page load through php/html) on the side that has several links (one on each row), and when you click any of them it calls a javascript function (href='javascript:newtable()') that uses an ajax requests to populate the table again (performed by a … | |
can anyone help me to create jquery, javascript one page template exactly or looklike below [URL="http://www.istockphoto.com/stock-flash-3103298-curtain.php?st=236fbf5"]http://www.istockphoto.com/stock-flash-3103298-curtain.php?st=236fbf5[/URL] | |
Hello All, Assume i have the following code: [code] // This code is defined in one file : editor.addMenuItem = function( name, definition ) { if ( groupsOrder[ definition.group ] ) menuItems[ name ] = new CKEDITOR.menuItem( this, name, definition ); }; // This code is defined in another file: … | |
Hi guys/gals, I have a menu with a div displaying onmouseover, and hiding onmouseout, it works great except in IE if I click on the [ICODE]<select>[/ICODE] tag, it triggers the mouseout event, interestingly enough the same does not happen when I click on a text field.. Code Example: [CODE] <ul> … | |
I have been racking my brain for days now and cannot get the button to work with my tell a friend script. <form> <input type="button" value="Close Window" onClick="window.close()"> </form> I'm trying to add it to my web site [snipped] Any help or guidance would be appreciated. Thanks Cake | |
Hi again,Guys.Here's my problrm. In [B]Appointments.php[/B] ,In the [B]Sector Drop down list[/B] when i select a sector,through AJAX i have selected the list of hospitals for the sector using [B]fun1()[/B] and displayed it back here in [B]appointsment.php[/B].Now that's ok. But when i try to acess the hospital select lists value … | |
[CODE]<script type="text/javascript"> function insertPreference() { var row = document.getElementById('voteTable').rows[0]; var cell = row.cells; var id = cell[0].innerHTML; var title = cell[1].innerHTML; alert(id); alert(title); } </script> <table id="voteTable" border="1"> <tr> <td id="id">3</td> <td id="title">This is an example of storing the table value into a database.</td> <td id="vote"> <input type="radio" name="yesorno" value="true" … | |
Hello, I'm using Google Maps to show houses listings on the Google map. I'm also using AJAX to allow user to customize search parameters. Map is showing fine but the houses listings on the map is not working. Moreover, I'm getting the following pop up error; [url]http://imageshack.us/photo/my-images/857/screenshotpll.png/[/url] I'm also sharing … | |
Hi I'll describe the following scenario: I got a table with td's and each of the got onchange and onclick when i change value of a td and click on other td i get the onchange event(of the first td) being fired and then the onclick (of the other td) … | |
Hi all, I am generating a html report displaying the records. In that report their are 10 rows and 4 columns. In 4th column i am adding the button. Now i want to use button click event i.e onclick() . 1) how i call the javascript function/Javascript. 2) how can … | |
Hi ppl, I need a javascript that can do.. "When you leave a page to alert you how many times have you clicked". I have no ideas, and almost no exp in this.. So PLEACE help me.. Sorry for the bad english.. |
The End.