15,127 Topics
| |
Hello fellow coders i come to you in a time of need. I have an inline popup containing html5 videos. i added a stop('#video'); to the "close popup" function and this works, but only in Chrome and Opera, not in Firefox and EI, which leads me to a sub question, … | |
Hi All I have to create a filtering function for a webshop, and need to do it client side for performance reasons. I load in x number of product, so I can get to them in the DOM - And after this I have a number of checkbox groups which … | |
Here is the code, how would i go on about making the bullets fired (size 6x6 pixels) collide with the blocks currently on the map and with enemies (48x48 pixels) which are to be implemented? Desperatley need a solution! // inner variables var canvas, context; // canvas and context objects … | |
I'm working on Asp MVC 4 framework. in my "abc" page's layout file i added fb login dialog box and fb like button. `<script>(function (d, s, id) {var js, fjs = d.getElementsByTagName(s)[0];if d.getElementById(id))return;js = d.createElement(s);js.id = id;js.src = //connect.facebook.net/en_US/all.js#xfbml=1&appId=appid";fjs.parentNode.insertBefore(js, js); } (document, 'script', 'facebook-jssdk'));</script>` and now i added a partial … | |
Hello, I have been playing around with a script. It is just a start of something like a really lame version of the street fighter layout. I am having trouble with figuring out how to get the character to move the way I want. I have mapped the WSAD keys. … | |
Hi folks, I've been inactive for web developing for last 4-5 years.. I lost the will to learn programming and become programmer... after long time, I realize that I should fullfill my dream.. but, in 4-5 years timespan, the technology is so much changed that I don't know where to … | |
Hey daniwebbers, I need to have some Javascript done, and since I'm not a coder myself I thought some of you might have time to help me out! Basically, I need a script that contains a single-line user input form. When the user then clicks a button - which I … | |
Hi I am new to PHP I want to create drop down list in form where user can type any other thing if he does not wish to select from drop down. Pl Help Dr Damle | |
<!DOCTYPE html > <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>AJAX with PHP: Quickstart</title> <script type="text/javascript" > var n = 1; function testNextPrime() { var isPrime = true; n = n + 1; // console.log('testing', n); for (var i = 2; i <= Math.sqrt(n); i += 1) { if (n % i == 0) … | |
Hi all, I'm currently building a questionnaire and I've run into a head scratcher. Some of the questions require the user to give a number to represent the importance of the answer. Example: Instruction: Please select the radio buttons according to your preferred option, with 1 representing the most important … | |
I'm attempting to automate work on an external webpage. One particular element refuses to respond unless the mouse cursor is above it, which means the automation fails. I have tried firing events such as onmouseover, onmousedown etc.. but nothing appears to work unless the system mouse cursor is above the … | |
Dear Sir, I am using these codes <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head><title>My Contacts</title> <style type="text/css"> html { overflow:auto; } body{ background-color:#e7f4fe; } #container { margin: auto; position:absolute; top:0;left:0;right:0;bottom:0; background-color:#CFC; padding:10px; overflow:auto; width:300px; height:300px; } </style> <body> <div id="container"> <form action="" method="post" enctype="multipart/form-data"> <img align="middle … | |
I am having problems displaying a map. Data in ListView is showing on the page but the map is missing. I would appreciate some help. Here is what I have so far: The following pieces of code are in MyDirectory.Master page: <script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script> function init_map(map_canvas_id, lat, lng, zoomLevel, markers) … | |
Yes I've looked already at internet, 3 different queries, 5 pages each, looked on StackOverflow, then its marked as offtopic question, searched through here, answer related like sun and pancakes. My question is, how can I store content of file into variable? While I was Googling I came on this … | |
I am currently thinking of writing an AutoFill plugin/widget which will take my personal data such as First Name, Last Name etc from a file/javascript and will automatically fill it in web page form. I have read till now to build a plugin which works for all browsers, I have … | |
I am creating a little template for my website but getting an error i think so in jquery actually i want to repeat the price terms toggle option multiple times on a single page e.g. 1 month 6 months 12 months term. All is ok but on 2nd tab when … | |
Hello, Im new in Ajax.. i try to make an ajax input, and show the result without refresh page. i've success to input data with ajax (pure ajax), but i cann't show the result ?? when i look for a problem, .. it couse of the there a line break … | |
Hi, I'm trying to chage the name of 3 select boxes, I got the input name to change correctly but I'm pulling my hair out with the select boxes. If you check fiddle after cloning the text fields name chages to name="dose_value[a1]", each time it's cloned a number gets added. … | |
Hello, I have a form that i would like to convert from JS onClick to AJAX, Here is my form: <form action="" method="post" name="filter"><input id="All" onClick="if(document.forms['filter'].elements['All'].checked)window.location.href='?page=1&filter=All&perpage=10'" name="All" type="checkbox" /><label style="background:#008080; font-size:small" for="All">All</label> <input id="Pending" style="background:#FF6262" onClick="if(document.forms['filter'].elements['Pending'].checked)window.location.href='?page=1&filter=Pending&perpage=10'" name="Pending" type="checkbox" /><label style="background:#FF6262; font-size:small" for="Pending">Pending</label> <input id="Complete" style="background:#7BCC70" onClick="if(document.forms['filter'].elements['Complete'].checked)window.location.href='?page=1&filter=Complete&perpage=10'" name="Complete" type="checkbox" /><label style="background:#7BCC70; … | |
Dear Sir, When control enter in any textbox then following codes must run. Please help me what is wrong with my codes <html> <head><title>My Contacts</title> <style type="text/css"> body{ margin-top:100px; margin-left:100px; } </style> <script type="text/javascript"> $(document).ready(function(){ $('input[type="text"]').onfocus(function(){ $('input[type="text"]').css({ "background-color:silver" "font-size:12px" "color:green" }); }); }); </script> </head> <body> <form> <input type="text" name="text1"><br … | |
Hi, I start learning javascript and ajax currently. The code index.php below is perform Ajax <!--- AJAX ---> <script> function showData(str) { if (str=="") { document.getElementById("txtHint").innerHTML=""; return; } if (window.XMLHttpRequest) {// code for IE7+, Firefox, Chrome, Opera, Safari xmlhttp=new XMLHttpRequest(); } else {// code for IE6, IE5 xmlhttp=new ActiveXObject("Microsoft.XMLHTTP"); } … | |
| Why is it that, the only way this will work is if I pass the entire: add(document.getElementById('num1').value) to the function, as opposed to simply adding: add(num1) <script> function add(num1){ total=num1*1+3; alert(total); } </script> </head> <body> <input type="text" id="num1" size="4"> <input type="button" onClick="add(document.getElementById('num1').value)"; </body> </html> |
hey guys, so im trying to do the image slider with js but its not working. only the first pic: pic1, displays then it doesnt slide. code: <script type="text/javascript"> <!--> var img1=new Image() img1.src="image/pic1.jpg" var img2=new Image() img2.src="image/pic2.jpg" var img3=new Image() img3.src="image/pic4.jpg" var img4=new Image() img4.src="image/pic5.jpg" var img5=new Image() img5.src="image/pic3.jpg" … | |
Hi, I'm using a shopping cart js plugin called simplecart. Im having trouble getting a tumb of the product image to appear with the product info in the cart. This line gets the full sized image to appear in the cart <img src='$file' class='item_thumb' alt='{$row['name']}' /> Does anyone know how … | |
Hi, I am using jQuery function to calculate total of item price (label) multiply by quantity (textbox), this is working fine so far. Also, I added additional label for shipping which getting the data from rbl object, also working fine. The calculation I'm trying to get is sum of total+shipping, … | |
Hello, I am using counter to count characters in text area. Now the problem, if the number of characters calculated = 160 characters, then when I send the paragraph to my mobile phone, I get 162 characters, I got the reason, but can't find solution yet. Example: write normal paragraph … | |
How can I see the data that I passed through the following script? $('#btn_update').click(function(){ $.post("../inc/set_session.php", { key: "phone_mode", value: "update" }); var data = $('addform').serializeArray(); $.post('phones_post.php', data); }); | |
| I found a script online to have a div stick to the top of the window once you scroll to it, and I got it working fine in Firefox and Opera but in Chrome and Safari the sticky div stops before it gets to the bottom of the page. It's … |
Dear Sir, I have following codes <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head><title>My Contacts</title> <style type="text/css"> body{ margin-top:200px; font-family:Georgia, "Times New Roman", Times, serif; } </style> </head> <body> <center> <img src="Photo96.png"><br/> <a href="">Get Photo</a> </center> </body> </html> It shows this image [IMG]http://i40.tinypic.com/141saa0.jpg[/IMG] I want to upload … |
The End.