15,120 Topics

Member Avatar for
Member Avatar for dawbin

I am dynamically adding Child DIVs to a Parent DIV, but appendChild() inserts the new child DIV at the end and I want new insertions to be at the top. I understand inserBefore(), but initially there are no children in the DIV. Is ther an easy way to do this?

Member Avatar for diafol
0
79
Member Avatar for Zack_4
Member Avatar for AntonyRayan

Hi In my table , I have date of birth value like 1991/10/21, I want to display that date of birth like: 21/10/1991(Twentynineth October One thousand Nine Hundred Ninety Nine) date of birth in numbers and in Characters also. How to do that, it has to do dynamically?

Member Avatar for diafol
0
230
Member Avatar for Sonu_8

if user select on first select menu then it display a table if user select second select menu then it display paragraph both are show on same page so any one suggest me some jquery code .

Member Avatar for diafol
1
80
Member Avatar for dhooley

Ok so im looking to create a simple booking system as part of my Final Year Project. I have a locally hosted mySQL database created and linked to using php. I have created a databse called reservations with 3 tablels (Available, reserves and confirms). Basically what I am looking to …

Member Avatar for diafol
0
768
Member Avatar for ramsiva
Member Avatar for broj1
0
313
Member Avatar for azegurb

Hi All, I have written small slideshow script in Javascript with slice effect. I did functunality such pause function on mouseover. but when i mouseover the slide it crashes (if slice effect had gone it stops normally). what may be the problem. can anyone help me plzzz. Thanks in advance. …

Member Avatar for azegurb
0
321
Member Avatar for Okere_1
Member Avatar for PsychicTide

Hey guys, been a while since I've been here, but still the best source for help. Hoping you guys can help me with a checkbox/radio button scenario. HTML... <div style='margin-bottom:5px;'> <div style='float:left;width:49%;text-align:left;'><input class='toppingChecked' type='checkbox' id='top-".$row['id']."' value='".$row['topping']."' /> ".$row['topping']."</div> <div style='float:left;width:7%' class='lblLeft'> <input type='radio' class='css-checkboxLeft countToppingSelect' name='top-".$row['id']."' id='top-left-".$row['id']."' value='Cheese' /> <label …

Member Avatar for PsychicTide
1
275
Member Avatar for Bensirpent07

So I have my PHP code here: $r = new HttpRequest('https://api.worldoftanks.com/wot/auth/login/', HttpRequest::METH_POST); $r->addPostFields(array('application_id' => 'e991ff783ae65f1ceefd1036211e5772', 'redirect_uri' => 'http://www.wotclanbuilder.com', 'nofollow' => 1)); try{ $result = $r->send()->getBody(); $json = json_decode($result); $url = json_encode($json->data->location); echo $url; } catch (HttpException $ex) { echo $ex; } and my Ajax code here: // AJAX Code To …

Member Avatar for Bensirpent07
0
323
Member Avatar for SirMahlon

i have an echo statement. which am looping columns. and i want to use this onerror command <img src="http://subinsb.com/to-an-image" onerror="this.src='img/delogo.jpg';"/> but not working. how do i do this. thanks echo ' <div class="col-lg-5 col-md-5 col-xs-12"> <h4 class="font_head_check">' . $title . '<span class="box_type_unik">For Sale</span></h4> <p class="font_check">' . $town . '</p> <span …

Member Avatar for diafol
0
1K
Member Avatar for rouse

I have the below data and I would like to find out how many sets I have and how to access each key value pair in javaScript. response[ {"RECORD_NUM":967,"DATE_FIELD":"1736-01-19","DESCRIPTION":"James Watt, inventor of the steam engine, was born in Scotland."}, {"RECORD_NUM":1002,"DATE_FIELD":"1747-01-19","DESCRIPTION":"Johann Bode founder of \"Bode's Law \" dies"}, {"RECORD_NUM":1111,"DATE_FIELD":"1770-01-19","DESCRIPTION":"Battle of Golden …

Member Avatar for diafol
0
319
Member Avatar for Siberian

This [script](https://jsfiddle.net/WildWind/cnbj069x/17/) won't change the image id when the browser width is 320 ? I'm hoping someone can help ?

Member Avatar for Siberian
0
295
Member Avatar for AntonyRayan

Hi , I need a calculation method to calculate multiple marks for an Individual students. Based on standard id and section id I showed list of students, and subjects dynamically, so that, for each student n number of subjects will display. When entering marks, for each student and for all …

Member Avatar for rubberman
0
216
Member Avatar for bCubed

I have been working on a web application that requires a calendar that will display events along with information about them. I have been using the full calendar API to handle the calendar for me. But I whenever I have an event that spans across multiple days the calendar does …

0
120
Member Avatar for Amr.Mohammad87

Greetings, I am developing a backend website using ASP.NET. I had a 3 GridView controls within the page. I am using the jQuery to add a CSS class to third column of the 3 GridViews when the page in ready as I tried to add this class by setting the …

Member Avatar for Amr.Mohammad87
0
208
Member Avatar for Mike_H

In a site I am working on two of the pages have an iframe being loaded. [code] <IFRAME id="someid" src="http://www.trailblz.info/barkleydean/signup.aspx?rd=http://www.senatorbarkley.com/signup-thank-you.htm" width="700" height="1400" frameborder="0" scrolling="No" style="position: relative; width: 700px; height: 1400px" target="_blank"> </IFRAME> [/code] This works fine but the "Thank you" page loads at the top of the frame but the …

Member Avatar for Anders_3
0
7K
Member Avatar for AntonyRayan

Hi In a form, I have two divs like in left and right but only one submit button . I don`t know how to save in submit action. Submit button has to come in center. Here I included my code . Check and tell me <form action="usersave.php"> <!-- class="form-horizontal form-label-left"--> …

Member Avatar for drjohn
0
363
Member Avatar for hell hansen

Hi Guys, Happy new year for everybody. Look i'm trying to achive a goal to load iframe on bootstrap modal dinamical. Like i just want the iframe src be called just when modal is opened. Because the src url is coming from database, and in some page there more than …

0
106
Member Avatar for wolfgang1983

I have a rss feed project that I am working on Question: I would like to know if there is a way of only displaying 5 result at a time. Currently it displays over 10 [Codepen Example](http://codepen.io/riwakawebsitedesigns/pen/mVMEmO) $(document).ready(function() { url = 'http://codepen.io/riwakawebsitedesigns/public/feed/'; $.ajax({ type: "GET", url: document.location.protocol + '//ajax.googleapis.com/ajax/services/feed/load?v=1.0&num=1000&callback=?&q=' + …

Member Avatar for diafol
0
319
Member Avatar for trektrak

Is it possible to update "only the markers" instead of updating the whole map and markers... as the long lat updated in mysql database. Anything that I need to modified on the script below. <? $dbname =''; //Name of the database $dbuser =''; //Username for the db $dbpass =''; //Password …

Member Avatar for Moein_2
1
327
Member Avatar for UK-1991

Hello, Just created a website and want some animations so i used keframe animation in order to do so on 1 row I made an animation for the portfolio to scroll up and stop right there but it goes again at the starting point like 1 to 100 once on …

Member Avatar for gentlemedia
0
340
Member Avatar for bLuEmEzzy

Hi Guys Im trying to search in a textbox on my form and its value will load on the table. But I cannot get how, and also what should I use, I only know PHP and simple Javascript, Please help me. I only want to know on how can I …

Member Avatar for bLuEmEzzy
0
224
Member Avatar for wolfgang1983

Currenlty on my editor I can wrap text in any tag. But I am un able to unwarp the selected text also. My question is lets say if I select / highlight text which is wrapped in '<b>' something '</b>' and then I go and click on the bold button …

0
131
Member Avatar for wolfgang1983

I am having small issue with my code mirror preview. For some reason will not dectect when new line is created in editor. Question: How to make sure that the code mirror preview dectects a new line and displays it correctly? [Codepen Example Here](http://codepen.io/riwakawebsitedesigns/pen/mVmxpp) Script <script type="text/javascript"> $(document).ready(function() { var …

Member Avatar for cereal
0
1K
Member Avatar for FarrisFahad

Hello everyone, I want to build an advertising system like AdSense on my website. I want to count only clicks that are not from the same user. Because I don't want the user to click many times on the same ad and ruining the ad program. I was thinking of …

Member Avatar for cereal
0
267
Member Avatar for toxicandy

So I have the following code: <script> function validateForm() { var homePhone = document.forms["volForm"]["hphone"].value; var mobPhone = document.forms["volForm"]["mphone"].value; var workPhone = document.forms["volForm"]["wphone"].value; var ehomePhone = document.forms["volForm"]["ehphone"].value; var emobPhone = document.forms["volForm"]["ehphone"].value; var fname = document.forms["volForm"]["fname"].value; var lname = document.forms["volForm"]["lname"].value; var digiSig = document.forms["volForm"]["digiSig"].value; var digiSplit = digiSig.split(" "); if((homePhone.length == 0 …

0
102
Member Avatar for wolfgang1983

I would like to know if possible to be able to replace any html character that are inside my pre tag's <pre> replace < with &lt; and this > with &gt; </pre> so it does not affect my pre tag's $('button[id="instant_preview"]').on('click', function() { var code = $('#editable').text(); $('#preview').html(code); replace('<',"&lt;"); replace('>',"&gt;"); …

Member Avatar for rubberman
-1
154
Member Avatar for Harman_2

Below is a php code for inserting comment to a post, It works fine now I want to add ajax code to add comments live (without page being refreshed). I prefer ajax code and php code on same page because code will be carrying id's of users so don't want …

Member Avatar for diafol
0
181
Member Avatar for Makeitonline

need help in inserting a php inside this script, heres the code <script type="application/javascript"> var eventData = [ { date:"2015-03-01", badge:false, title:"Example 1" }, ]; $(document).ready(function () { $("#my-calendar").zabuto_calendar({ data: eventData }); }); </script> example i just want to declare a varible like $date=$row['date']; date:"<?php echo $date ?>", but its …

Member Avatar for rubberman
0
254

The End.