15,121 Topics

Member Avatar for
Member Avatar for chris.immanuel

Hi I have a question with my code. I implemented drop down list populated from my oracle DB. So my question is, I need to populate the rest of the data into my <input type="number" min="currCutting" max="currQty" /> tag that pulled from the database according to the Head_mark selected from …

0
167
Member Avatar for powerson65

I am trying to load different data which are all in one JSON data from a drop down menu to a div area on the web page (eg if one clicks PC on the menu then the items related to PC in the json file will load and if Wii …

Member Avatar for powerson65
0
872
Member Avatar for MissMolly

I have this script which is calling 10 divs indavidually from an external file. HTML: <a id="load1" href="#" data-id="1" class="load"> <img> </a> <a id="load2" href="#" data-id="2" class="load"> <img> </a> Javascript: $(".load").click(function () { $("#projects").html(""); $("#loading").show(); $("#projects").load("projects.html #"+$(this).data('id'), function () { $("#loading").hide() }) }) If load1 is clicked, it loads div1 …

Member Avatar for MissMolly
0
338
Member Avatar for chris.immanuel

Hi Folks, I need help with my code. Basically I am building an inventory progress web so that it pulls the value from the dropbox, and with onChange, getting the corresponding value from the DB, Update the value and reinsert the new value to the DB using submit button. One …

Member Avatar for LesF
0
308
Member Avatar for niche1

Is it possible to trigger the action of a form with a submit button that's outside the form tags? If so, how should this example be rescripted to make the input tag work outside the form tags? <html> <body> <form name="input" action="html_form_action.asp" method="get"> First name: <input type="text" name="FirstName" value="Mickey" /><br …

Member Avatar for razvysb
0
945
Member Avatar for rpv_sen

Hi I am working on dynamic add row. In that if a value is enter in ptype box it should disable the releated textbox filed based on the value. i written code but its not working can any please help me to solve this issue **html Page** <form id='students' method='post' …

0
154
Member Avatar for danale

Hello, I have a complex form and a 'Print' button which should print only the contents of a specific DIV. I am using the following function (i found on another forum): [CODE] function PrintContent() { var DocumentContainer = document.getElementById('divName'); var WindowObject = window.open('', 'PrintWindow', 'width=750,height=650,top=50,left=50,toolbars=no,scrollbars=yes,status=no,resizable=yes'); WindowObject.document.writeln(DocumentContainer.innerHTML); WindowObject.document.close(); WindowObject.focus(); WindowObject.print(); WindowObject.close(); …

Member Avatar for tnjnorbert
0
10K
Member Avatar for sanjay@srvmedia
Member Avatar for ravi142

My Problem is How can i get(for display) image in "Chat.php" **e.g** i have get id. $new_id = $_POST['id'] Image path src got perfect My Jquery ajax function his as under function requestChat(name,id) { var img_src = $('#el').attr('src'); //path got perfect jQuery.ajax({ type: "POST", url: "chat.php", data: "name="+name+"&id="+id+"&img_src="+img_src, success: function(html) …

0
107
Member Avatar for mattyd

My email vaildation is working correctly now. But, I would like to alter the message color from black to red by styling it somehow. I have attempted such things as: { message = "Please, enter a valid email"; message.style.color == 'red'; writeMessage(message); return false; } The insertion being: message.style.color == …

Member Avatar for JorgeM
0
97
Member Avatar for Anubhav_1

Hello, i just coded for login script now i want to add "sha1" to my code due to security reason but it's showing an invalid login error i don't know the reason but when i use this withouht "sha1" it's working fine but i want to secure password into database …

Member Avatar for Bob Hensley
0
226
Member Avatar for chrisschristou

hello my lovely friends of daniweb commuty. i have i jquery code of login popup basicaly it work when we click on a link to call it. but i want to excute it if a field is empty for it, i have add a code before `$('a.login-window').click(function()` and that code …

Member Avatar for chrisschristou
0
310
Member Avatar for mattyd

Hello. I am finally figuring out some basic validation. My main interest at this point is validating email. The script I got online contains the following, but does not check for "com", etc: if (email.indexOf("@") == -1 || email.indexOf(".") == -1) This works but does **not** check for "com". It …

Member Avatar for JorgeM
0
195
Member Avatar for Pravesh_1

I want to change content of a DIV which is in the TD (Table Tag); every div has unique ID viz. picked_cJN_031599, picked_cJN_031596; every div is prefixed with picked_cJN_ *and a unique ID came from database; I want to change the value of any div just by passing ID and …

Member Avatar for temp11
0
155
Member Avatar for Kewne

I have a code in php that is being echoed in html: $tblAccounts .= "<td width=\"100\"><input title=\"$objRow->AccountCode\" name=\"chkAcctField[$objRow->AccountCode]\" id=\"chkAcctField[$objRow->Description]\" value=\"chkAcctField[$objRow->AccountCode]\" type=\"checkbox\" $strIsChecked>" . ucwords($objRow->Description) . "</td>"; now may problem is this... I don't know how will I get the value of the checkboxes clicked by the user.... when the names …

Member Avatar for diafol
0
236
Member Avatar for ravi142

Need Help for. I have one texarea which i have write keyword then press **Enter key** result with <BR> generate. $("#chat_box").keydown(function (e){ if(e.keyCode == 13){ var textval = $("#chat_box").val(); alert(textval+' you pressed enter ^_^'); } }); ENTER : Hello, test OUTPUT: Hello, test (That not correct) Enter Key works perfectly. …

Member Avatar for diafol
0
299
Member Avatar for Siberian

I know jQuery is recommended to write to the DOM, I want to understand how to write to the DOM in Javascript, considering how many programs use Javascript as there language, never know what I want to or need to develope for (*maybe a smart phone app in the future*) …

Member Avatar for Siberian
0
259
Member Avatar for suavedesign

I have an element (a nav bar) on my website that has fixed positioning. How can I make it be fixed only up to a certain point? The url: http://www.peresidences.com/index.php I want the nav bar to be fixed positioning only until it reaches under the picture, and then it should …

Member Avatar for suavedesign
0
810
Member Avatar for baig772

**Problem** I need an jax pagination in YII, The problems are * its not showing the required results for the first time. ie. it is showing the complete result * When clicked on more, it again shows the complete result below that section as it is **What Needed** * i …

0
159
Member Avatar for marse.haka91

I'm new in jQuery charts, can anyone help me please? Below there is a static chart that I must populate with dynamic data. I have create the JSON file with but I don't know how to call these data. Thanks in advance. <div class="top-stats-panel"> <h4 class="widget-h">Daily Sales</h4> <div class="bar-stats"> <ul …

0
99
Member Avatar for ravi142

I have build simple chat box. One Text box -> Enter msg One button -> Submit One Textarea -> show message which enter in "Text Box" How could i do using jquery + ajax.? Give me suggestion. Thank you

Member Avatar for diafol
0
69
Member Avatar for ravi142

I am making a cms for a booking app and the admin will be able to see the number of bookings at any moment. How can I do it so that the above updates continuously with ajax...like facebook newsfeed for example. So far the only ajax I have made is …

Member Avatar for Fernando_4
0
193
Member Avatar for Kent55

I am making a game for my computing class and the objective of the game is for the player to move around the grid and collect all of the passengers in the game and deliver them to the base before they run out of power. I have managed almost everything …

0
132
Member Avatar for burhanahmed92

I am making a form which contain two input suggestion fields, 2 datepicker and three select fields. I want to make my form ajax based and show result in div when any field is changed. Just like farecompare.com I almost created a form but form start loading when i click …

Member Avatar for diafol
0
548
Member Avatar for centenond
Member Avatar for Halnex

Hello, I'm trying to implement autocomplete on a single field "contact". This should query the "contacts" table looking for an id but displaying the firstname in the input field. This is my function inside ListingsController.php, every listing belongs to a contact and every contact belong to a listing. public function …

0
121
Member Avatar for rubai

There is little bit problem in my website viewing in Chrome browser. Navigation bar blinks or sometimes gone or colors tabs gone. How to solve it? It happens only in chrome browser. You can see it here http://theshortstoriesonline.com/pixie/ Thanks

0
236
Member Avatar for M.Waqas Aslam

Dear All! I am facing a small issue in showing xml in a proper format. I am getting proper xml data from my webservice. but after receiving it browser is treating it as a text and showing all test in single line. I want to show my xml data same …

Member Avatar for minitauros
0
591
Member Avatar for xanawa

Hi, I am trying to call the '`getMembershipDetsPrice()`' php function in the html drop down list 'duration'. I tried to follow the W3schools tutorial but when I changed the value the html printed again. When the dropdownlist changed the value the label needs to be filled by the returned value …

0
160
Member Avatar for xanawa

Hi I have the following code so far. Basically I have a drop down list were the user selects the type of membership he wants. When he clicks the button buy now from the database the membership cost and type are displayed in the pg. The problem is that I …

0
209

The End.