15,698 Topics
![]() | |
Hi to every one .. I have Access database Access 2007 . and i need to connect with ASp.net ..nad i put database in db folder but it gives errors ... if provide Database1.accdb in connection string (following error) Unrecognized database format 'C:\Documents and Settings\erum.mirza\My Documents\Visual Studio 2008\Projects\ajax\ajax\db\Database1.accdb'. if provide … ![]() | |
I have a control wrapped in an UpdatePanel that is part of an iframe. The control grows on user's selection and images appear. Correspondingly I have to extend the iframe's height. The problem is I get the iframe's height before appearing images are loaded, hence I get the content cutoff. … | |
Hi there, I was wondering if anybody can help me understanding this code please - well it's more about the usage of :first really): <!DOCTYPE html> <html> <head> <style> span { color:red; cursor:pointer; } div { margin:3px; width:80px; display:none; height:80px; float:left; } div#one { background:#f00; } div#two { background:#0f0; } … | |
An element is removed from the html file with the following code, $("#sample").remove(); When view the source code, the removed element still appear in the source code. Whether it is possible to remove the element from the source code? | |
I bought a template online and i'm trying to develop a website and I'm stuck on the contact form. I can't seem to get it to submit. When I click submit it just remains static, but i'd like to get it to run the action- that is go to the … | |
I have a control contained in an iframe on a page of my ASP.NET web application. Control changes its vertical size correspondingly to what user selects on it (some elements get in, others get out). So, I have to set the iframe size precisely to get the whole control shown … ![]() | |
Hey Guys, I am developing a website similar to google maps in visual studio 2008 using google maps api. I am passing user input as source,destination and have provided three timestamps in form asp radiobutton list. This is my javascrpit code: function calcRouteA() { var start = document.getElementById('DropDownList1').value; var end … | |
I have a div that resizes on mouseover/mouseoff. Everything works fine except a child div with text that will stay showing if the user mouses off too quickly... Is there a way to prevent this? The div that's getting left on is "#square_caption1" Here's what I've got for jquery: $(".square.one,#link_nest").hover(function(){ … ![]() | |
Hello good people of Daniweb :) I am developing a site with codeigniter 1.2.2 and the latest version of bootstrap. I am calling a modal window but the X and Close buttons don't close the window. Tried alerting when clicking a button and I do get the alert but the … ![]() | |
Hi i need some help of how to display data dynamically.i just need someone to explain me the concept. actually I am retrieving some data from database but i dont know how many data there will.it can 2,3 10,50,150,...200 and so on. in javascript, i will display 10 par page,when … | |
How to maiantain checkbox state under onclick of javascript...checkbox losing its state under onclick of javascript...Onchange when set works in firefox but not in chrome and IE...Onclick works but checked state gone... Collapse | Copy Code <script type="text/javascript"> function salaryshowhide() { var lfckv = document.getElementById("<%=chksal.ClientID%>").checked; if (lfckv== true) { document.getElementById("<%=txtsal1.ClientID%>").disabled … ![]() | |
I retrieve data from an associative array and i want to insert it in another associative array. anyone can tell me how to do it? | |
I've got a simple toggle function for music that is playing when a page loads. The user can press the "music off" button, and it clears out the div. If they press "music on" to bring the music back, i get the "your browser doesn't support audio" message. Which is … | |
anyone could give me the code with function like below link, http://www.modcloth.com/shop/beauty/thebalm-natural-instincts-eyeshadow-palette I have mutiple photoes in one page, would like to display photo when the mouse is over it, the enlarged photo should in a fix position, and when the mouse leave the photo, the enlarged picture disappeared. thanks, | |
hai everybody, i need help in multiple true if condition IF (condition 1 is true) { $('.cCal').css('border-color','red'); return false; } and (condition 2 is true) { $('.cCal2').css('border-color','red'); return false; } (condition 3 is true) { $('.cCal3').css('border-color','red'); return false; } this syntax working only one condition is true. more than one … | |
Hi I am really not good with javascript but I have a script that retrieves a list of state names with this code: map.objectList = new AmCharts.ObjectList("listdiv"); Apparantly it is withouth any format retrieved in a UL LI format. I need to "catch" this list (I know it has 51 … | |
Hello I want to make some shortcut keys (example Alt+K) to do a "onclick" on a button. How can I do this? Daniweb for example has that "Ctrl+B" makes the text bold. Thanks | |
Basically we have a lot of people that want to view our site that use work computers and don't have the option to upgrade their browser. Most likely its an old version of IE. All I want to do is detect if they are using something older then say IE … | |
I'm trying to reuse a function and it isn't working. I put it like so, and it works fine: $('.square-container').on('click', '.square', function(event) { $("#testit").removeClass("main_page"); if ( $(this).hasClass('active') ) { /* actions here */ } else if ( $(this).hasClass('one') ) { /* actions here */ } else { alert('error - nothing … | |
Here are my code: <tr> <td><input name="clubId" type="text" class="input1" style="width:200px;" > <a href="javascript:isExistClubId();"><img src="/club/images/main/C_btn_check.gif" border="0" align="absmiddle" alt=""></a> </td> </tr> function isExistClubId() { if(strLen(document.makeClub.clubId.value) > 20) { alert("Silahkan masukkan nama Klub hingga 40 karakter"); document.makeClub.clubId.focus(); } else if (!IsAlphaNumeric(document.makeClub.clubId.value)) { alert("Silahkan masukkan nama Klub dengan angka dan huruf."); document.makeClub.clubId.value = ""; … | |
i create 2 sliders within one page with code : <script type="text/javascript" src="js/jquery.easing.js"></script> <script type="text/javascript"> var $jq132 = $.noConflict(); </script> <script type="text/javascript" src="js/script.js"></script> <script type="text/javascript"> var $ = jQuery.noConflict(); $(document).ready( function($){ // buttons for next and previous item var buttons = { previous:$('#jslidernews1 .button-next') , next:$('#jslidernews1 .button-previous') }; $('#jslidernews1').lofJSidernews( { … | |
Hello All, I'm just learning JS although I have a fundamental knowledge of Actionscript 3.0 (which is based on JS). I'm a little confused right now as I'm following the lessons on appendTo.com. It seems in JS functions are made into variable and those variable are invoked. Is that how … | |
hi can someone help? I'm retrieving from database and i want to display it on screen. i use aler in my ajax to see if it's working but it's not alerting anything. anyone can tell me what's wrong? client: function client{ ... .... public function GetMarks(){ $query=mysql_query("SELECT users.name, marks.MarksHighest FROM … | |
what is jquery ? What is java script and what are prerequirements for learning javascript ? What is the diiference between advance java and core java ? What is AJAX ? As i am beginner to JAVA and want to learn about java and thats y i am asking this … | |
Chaps, I was wondering what this.id (and for that matter this.whatever) is in jquery and how to use it. A few quick examples are here: <!DOCTYPE html> <html> <head> <script src="http://code.jquery.com/jquery-latest.js"></script> </head> <body> <img title="hat.gif"/> <script> $("img").attr("src", function() { return "/resources/" + this.title; }); </script> </body> </html> and another one: … | |
Hi all, I am slightly confused about passing functions to the addClass method. This code is taken from the jquery.com site http://api.jquery.com/addClass/: <!DOCTYPE html> <html> <head> <style> div { background: white; } .red { background: red; } .red.green { background: green; } </style> <script src="http://code.jquery.com/jquery-latest.js"></script> </head> <body> <div>This div should … | |
Hi can someone explain me this code? actually i need to write another function like this but without passing any parameter, then what should I insert in data? the code is using the parameter id in data but what if i dont have any parameter? server.prototype.GetSpeed=function(id){ $.ajax( {url:"marks.php", data: {id:id}, … | |
I have this Form that works successfully (I know it's not state-of-the-art). I simply want to add code to make Contact Name field mandatory. Can you help me? I don't know how much code I should post. Here's some: <script type="text/javascript"> function checkemail(){ var str=document.myform.email_address.value; var filter=/^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i; if (filter.test(str)) testresults=true; … | |
jquery can work in place of ajax,tell me the answer how? someone asked me | |
Article pages on DaniWeb (for those of you who live in the US) have a hover effect (similar to that on our homepage for everybody). It works fine in all browsers *except* for Firefox. Firefox is just super temperamental: it works a few times and then just mysteriously stops working … |
The End.