15,688 Topics

Member Avatar for
Member Avatar for Thevenin

Hi all, I have a problem, I need to automatically get the user latitude and longitude, on page load (no user interaction), is there a way? In my PHP script, I want to populate automatically $lat and $long, everything on page load, so no user intereaction, but I do not …

Member Avatar for chrishea
0
137
Member Avatar for phoenix254

Hi someone can tell me why 4th line isn't working ? $('span').on('click', function(){ var name=$(this).attr("class"); $(name).click(function(){ $("#chatwindow").toggle("#hide"); });

Member Avatar for stbuchok
0
156
Member Avatar for chineerat

I have a large MYSQL / PHP in a while loop report being run and in many cases the report times out due to the large amount of data being calculated. Is there a way to make have a div displaying "Processing" when the while loops is calculating and if …

Member Avatar for bugz313
0
379
Member Avatar for J._1

/** * Part 4 * * write a function the returns a FizzBuzz string for some number N (counting up from 1). * - for every number that isn't a multiple of 3 or 5, return a period "." * - for every number that is a multiple of 3 …

Member Avatar for hericles
0
118
Member Avatar for amln_ndh

I'm new to this so I have a question regarding dependent drop down menu. I have two drop down menu first, Leave Type and the second Available Balance. Below shows the js and form. <script type="text/javascript" src="js/jquery.js"></script> <script type="text/javascript"> $(document).ready(function() { $("#parent_cat").change(function() { $(this).after('<div id="loader"><img src="img/loading.gif" alt="loading subcategory" /></div>'); $.get('loadsubcat.php?parent_cat=' …

Member Avatar for lps
0
203
Member Avatar for phoenix254

Hi var div = document.createElement('div'); div.id = 'window'; var div2 = document.createElement('div'); div2.id = 'windowhead'; var span1 = document.createElement('span'); span1.id = 'name'; div2.appendChild(span1); var div3 = document.createElement('div'); div3.id = ('close'); div2.appendChild('div3'); div.appendChild(div2); document.body.appendChild(div); Can someone tell me why chorme console is giving me this error : Uncaught TypeError: Failed to …

Member Avatar for phoenix254
0
905
Member Avatar for phoenix254

Hello everyone, I am trying to create html like this **html code** <div id="windwo"> <div id="windowhead"> </div> </div> And this is my try **Js cose ** var div = document.createElement('div'); div.id = 'window'; var div = document.createElement('div'); div.id = 'windowhead'; document.body.appendChild(div); document.body.appendChild(div);

Member Avatar for stbuchok
0
187
Member Avatar for phoenix254

Hi everyone, my code is here [Click Here](http://codepen.io/anon/pen/XbdBLm) How i can get value of php variable in javascript, i have an div id=windowhead where i want to show username which i clicked <a class='users' href='#' >test</span></a> <a class='users' href='#' >test2</span></a> <a class='users' href='#' >Max</span></a> <a class='users' href='#' >John</span></a> <div id="warp"> …

Member Avatar for Aeonix
0
250
Member Avatar for yankeefan24

Im using this function to disable check boxes after selection $( "input[type='checkbox']" ).prop({ disabled: true}); the problem is that when the form is submited the data of the checkboxes select is not showing in the email sent. It work if checkboxes are enabled.

Member Avatar for yankeefan24
0
287
Member Avatar for design_primo

I have made a project in Html5 canvas and this is responsive for all devices. The mouseClick, Drag and Rotate events in canvas are working fine on desktop pc and Laptop. But touch is not working in mobile and tablet devices. What should I do?

Member Avatar for stbuchok
0
179
Member Avatar for ramsiva

I am getting response as standard id in my project & i need to pass this value to php variable any body help me. My PHP page <div class="checkbox check-success"> <?php $b=mysql_query("select * from standard_names ")or die(mysql_error()); $count = mysql_num_rows($b); $i = 0; $breakafter=5; ?><?php while($row = mysql_fetch_array($b)) { $i++; …

Member Avatar for diafol
0
9K
Member Avatar for Mitchell_1

I have this gallery any help on how to enter text under each image that is moused over, i want the text to be written under the big centred image? I have the whole website attached Thanks in advance <DOCTYPE html> <html> <head> <title>Gallery</title> <link rel="stylesheet" type="text/css" href="../css/style.css"/> <style> img …

Member Avatar for Mitchell_1
0
283
Member Avatar for phoenix254

Hi I need help here, please tellme why it snt working correctly Urgent ; THankss very much $('#windowhead').click(function(){ /*$("#fullwindow").css({ "height":20+"px" });*/ $("#fullwindow").slideToggle('css'({ "height":20+"px" })); });

Member Avatar for phoenix254
0
134
Member Avatar for semo5

hi all, i was doing this coding and i get an error but i dont know what my error is could you please help me thanks in advance <html> <head> <title> Student Final Results </title> <style> Inline Code Example Here`Inline Code Example Here` background: #f3f3f3 url('22.gif'); } </style> <script type="text/javascript"> …

Member Avatar for lps
0
318
Member Avatar for faie

Hi i am a beginner in PHP Ajax. i found this code but i want to know how to start to display the table after i select the value from dropdown list. I am also a bit slow in this. All example i have found are only show how to …

Member Avatar for faie
0
818
Member Avatar for Niloofar24

Hello. There is a button in the page when i click it, a div will appear or disappear by toggling to the left and right. I want when the page loaded, user can only see the button and have to click to appear the dive. But the problem is that …

Member Avatar for lps
0
508
Member Avatar for gcardonav

I found this [jQuery Plugin](http://jsfiddle.net/ZdCPs/4/) online. The plugin is exactly what I need and I want to add it to my page but my table is created by obtaining the elements from a db. I tried adding it to the page as the jsFiddle sample but pagination just does not …

Member Avatar for diafol
0
586
Member Avatar for webdev2

Hi all. I am newbie here a web developer curently working in CSS, Jquery and php+mysql. Hope to learn new things and solutions. Regards

Member Avatar for Rafiii
0
99
Member Avatar for Blouet

I am using bxslider within an AJAX call which brings up the chrome console error - Uncaught ReferenceError: jQuery is not defined. My issue is that the whole thing works fine exactly as it should on my pc but this error is annoying me as, obviously, jquery is defined - …

Member Avatar for diafol
0
183
Member Avatar for klemme

Hi all, I have this function, which should scroll animated to an anchor. Does anyone know how I can activate this only after a form has been submitted? I want to animate the scroll down to either id="error" or id="succes" - depending on the form was submitted with or withour …

Member Avatar for Caio_1
0
7K
Member Avatar for Niloofar24

Hello. I'm working on my own CMS. I want to use Bootbox.js which is a small JavaScript library which allows us to create programmatic dialog boxes using Bootstrap modals, without having to worry about creating, managing or removing any of the required DOM elements or JS event handlers. [And this …

Member Avatar for Niloofar24
0
3K
Member Avatar for YongJAng

This JavaScript code is supposed to read an xml document and output it into a table. If the user selects bid, a prompt will ask for a new value and the Start Price will be changed immediately. However, this isn't the case for my code. When I have clicked the …

0
126
Member Avatar for phoenix254

Hello everyone, I need help here. So my problem is how I want to make an image slider where show user uploaded images from his directroy/folder/account whatever. I would like to create like this [image slider](http://postimg.org/image/hl3pdp3mr/). I tried to create it.... [here it is](http://postimg.org/image/g5vva37wv/). and my php code is like …

Member Avatar for Makara
0
442
Member Avatar for Niloofar24

Hello. In javascript there is a jQuery slideToggle() Method that toggles up-down but i want it to toggles left-right. I found a code from [here](http://jsfiddle.net/abwVd/) and then i copied and pasted and edited it in this way: <html> <head> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script> <script> $('.nav').click(function() { $('.text p').css({ 'width': $('.text p').width(), 'height': …

Member Avatar for Niloofar24
-1
379
Member Avatar for chichi9

hi, so im trying to get the course names and teachers printed from the JSON file and having trouble linking it to the drop down please help :) html code <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>Course Info</title> </head> <body> <h1>Course Information Search</h1> <form action="" method="GET"> <select name="course" id="course"> …

Member Avatar for mrsixcount
0
194
Member Avatar for Ghayo

In parent page i have table with dynamic adding row and each row have text box and button to open pop up window. After pop up window open there are some checkboxes and when user select of them the value will be send to text box in parent page. this …

0
158
Member Avatar for Aeonix

Recently I got interested into dynamic execution of scripts. That is, user clicks the button and the JavaScript part (or any other library attached to it) will send a request to a file with `$_GET[]` or `$_POST[]` data. Then PHP (preference) would execute the function or anything that it has …

Member Avatar for Aeonix
0
1K
Member Avatar for mattyd

Hello. I am working on a form with multiple text-entry boxes and I am using jQuery to give messages to the User for each field. So far every field works correctly except for the last field, "Company": When a User enters any text the message should disappear, behaving like the …

Member Avatar for Aeonix
0
138
Member Avatar for dawbin

This simple onlick event works in IE and Chrome but not in FireFox (latest version). Is there some syntax issue? <html> <head> <script> function scroll() { alert(1); } </script> </head> <body> <a href="#" onclick="javascript:scroll();" />Click Here</a> </body> </html> Thanks in advance!

Member Avatar for DaveAmour
0
218
Member Avatar for sakuradata

I'm newbie in web development. If I use the adress "www.xxxxxx.com/test.html#chgd", the second accordion should be expanding. It works perfectly for Chrome but not for Firefox and Explorer. What is the problem in the source code that works for Chrome but not for Firefox and Explorer? I also have used …

Member Avatar for diafol
0
160

The End.