15,694 Topics
![]() | |
I'm trying to pass the ac_no contained in my database table to a form that's displayed within a Bootstrap Modal upon clicking a button. My code is as follows. <?php $mydata = mysql_query("SELECT * FROM slabpay WHERE ac_no='$ac_no'"); while($record = mysql_fetch_array($mydata)) { $id=$record['id']; ?> <tr class='fired' id='<?php echo $record['id']; ?>'> … | |
i have just made a game using HTML 5 and Javascript on my PC but now i want to run my game in my android phone .. can anyone help me how can i run that ?? ![]() | |
I already made a post at Superuser [Click Here](http://superuser.com/questions/800325/how-to-make-google-search-look-dumb) I will summerize here: [1] http://i.stack.imgur.com/ZN60B.jpg My point is i do not want to see torrent sites in the search results,so if someone searches Google or any other search engine this phrase(-torrent-download-watch) should be automatically and invisibly added. [2] http://i.stack.imgur.com/4mUSt.jpg And … | |
Hi guys. I got draggable to work but im having a problem with draggable on a cloned element. I have a button class `.r6s` that when clicked an image will appear in the `containment-wrapper`. The image is wrapped in a div with id `sixr`. what i did is initially hide … | |
Hi, am not a experianced coder, would like to seek for help. i would like to create a session logout. a pop out appear which able to count 60 sec " Warning your eMyHome session will expire in 60 seconds. Do you wish to continue?" with button continue & logout. … | |
for example: function Show(modal) { $(".box).show(); } so maybe use `<body onload="Show()">` is there any other way? | |
Hello In Form when I Select **"Yes"** in Radio button then **Textbox** Show with **validation**.(Submit button) When Click on **"No"** then submit form without validation. Here my code <form> <input type="radio" name="gender" value="yes" >yes <input type="radio" name="gender" value="no" checked="checked">No<br/><br/> <div id="disp_not"> Company<input type="text" name="company" value="" id="company" /><br/><br/> </div> <input type="submit" … | |
Strictly from a performance standpoint, what are the differences between remove(), hide() and detach()? If I want to permanently make an element go away on the page, is remove() or hide() even marginally faster than the other? | |
I need help in resolving a memory leak found using JavaScript. What the program does is auto scroll the videos and when it reaches the center (supposed to be a grid but for the purposes of this problem, it is not visibily shown but can be noticed immediately) or scrolls … | |
Hi folks, I just started working on a very interesting project as part of my university research for 3D visualization of earth's surface in 3D (not 3D modeling but real 3D!) using nVidia 3D vision in browser environment. I'm planning to use one of web-based javascript mapping platforms (like open … | |
i have done this ajax script so i can delete a page. it works fine the page is deleted from the database but after clicking delete the browser remains on the same page. after i refresh i get a 404. how can i redirect after success to first page? this … | |
Hello there guys I have javascript code for parallex effect its working great but what I need is to transform this code to jquery so my site contain only jquery codes not mixed. <script> var topDiv = document.getElementById("topDiv"); var speed = 1.5; window.onscroll = function() { var yOffset = window.pageYOffset; … | |
I am trying to output the SELECTED TEXT within my javascript code. I created a function that will get the selected text and I just want to output it when the submit button was output. Here's the javascript for getting the selected HTML or TEXT. function getSelectionHtml() { var html … | |
Can someone please verify if there is something wrong with [this](http://www.thecreativesheep.ca/webdesignprojects/largeprojects/CreativeSheep/cs_site.html) page, by clicking the X in the div, followed by clicking the word "reach.me". What is suppose to happen is the div which you had previously closed should bounce in; that is not happening ? | |
I want to make a recipe website.In that I had added the add to favourite button.If i click my favourite button the recipe which i clicked will add to favourites.I i re-click it will remove from my favourites.It is controlled by the status field in the favourites table in sql.How … | |
Hello I am currently working on a "local" dev wordpress site, where I have a JS file stored with the path as e.g, http://www.devsite.com/websites/wordpress/mysite/wp-content/themes/mtheme/validations.js Currently, am using the relative path e.g. src = "././wp-content/themes/mtheme/validations.js" to load it. However, on the live server, which is maintained by someone else and I … | |
Hi everyone, I been looking around how to solve this problem but I am stuck. I asked my professor and he is stuck. Can someone look at the code and see why I am getting this error? Thank you [Click Here](https://onedrive.live.com/embed?cid=C2E1FEBBE16A4502&resid=C2E1FEBBE16A4502%211354&authkey=ANpXFPvY6ss3LrY) Here is my HTML <!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head> … | |
This problem has been bugging me for days now, basically everytime i click a radio button in the alert box it only selects saab so it would say ' the vehicle you selected was saab' if i clicked on the others it still would say the same thing. Any help … | |
HI chaps, I was wondering if it is possible to add a meta tag using jquery to an html page before the page loads. The reason why I ask, is because I have a page with no viewport meta tag on and it should have it only when the resolution … | |
Was just wondering on how to add arrays, i can * it, subtract it but cant't add. Heres the code. distance[i] = window.prompt("Please enter distance in miles"); total = distance[0] + distance[1] + distance[2] + distance[3] + distance[4] average = total / 5 miles.push(distance);distance[i] = window.prompt("Please enter distance in miles"); … | |
Hi, I have to load a list of holtels from json and then click one hotel to load the hotel details page, i'm trying to solve with route i've added 2 different controllers for 2 different views each controller load a different json and this is the problem becouse it … | |
Hi Guys, I beed trying to debug my js code but I am not aware of any tool. The code I created is for my class. I am creating a simple webpage to play a guess the magic word. Now I am secure that my code is correct but it … | |
Hello, I want to use highlight / blick in validation. below is the validation function. I have just focused that fields but i want to highlight that fields and on click of it highlight should remove. I tried it in first condition but not working. function validation_summary_page() { var total_rows=document.getElementById('SkillDetails_table').rows.length; … | |
Hi All, I am using a JS pluging (executed by document.ready function) to style HTML select item. I am also using the before() function to insert additional select items, as needed. However, the select items added using the before() function does not invoke the plugin to style the select box, … | |
I'm trying to insert a google maps script with multiple markers and infowindows in my project. What I want to do is: -set a style css for infowindows (border, background-color, width, height, etc...) -move the closing button of the infowindows outside the infowindows (like in position relative) -set an automatic … | |
i am new to ajax. i want to load the contents of one page in the div created in another page using href | |
Hello, I want to disable tab event from input box on form for that i tried: <script language="JavaScript"> // disable tab event on form $(window).keydown(function(event){ if(event.keyCode == 9 ) { alert("tab is clicked") // it alerts but execute get vanished quickly event.preventDefault(); return false; } }); </script> and document.querySelector('input').addEventListener('keydown', function … | |
Hello, I have created input bonxes and filled values inside it. and made it read only using below code: <? foreach($certificated_data as $c) { ?> <tr id=<?echo $tr_id; ?> > <td> <input type ="textbox" name="certificate[<?=$tr_id?>]['name']" id="name-<?=$tr_id?>" value="<?=$c['Name'] ?>" readonly="readonly" /> </td> <td> <input type ="textbox" name="certificate[<?=$tr_id?>]['date']" id="date-<?=$tr_id?>" value="<?=$c['year'] ?>" readonly="readonly"/></td> … | |
After very little success in using JQuery .post methods I wanted to try asking this here before giving up. I am serving a couple JS based games on a site using PHP as members can log into the site and through sessions/cookies remain logged and play games under their account. … | |
Hi How to get the Id of an element after firing the event from another element which is located before first element. Actually I have dynamically created <select> and a <span>. I want to get the id of the <span>,after the onchange event of the <select> Span is located after … |
The End.