15,116 Topics

Member Avatar for
Member Avatar for Lucardy

Hi All, I am having trouble getting this javascript to set a cookie on any browser. Below are the two scripts I am using and if anyone can save me from this week of frustration by telling me what I am doing wrong, I would greatly appreciate it. **This is …

Member Avatar for Lucardy
0
1K
Member Avatar for php_noob

I have this code example <?php $sel_query = "SELECT * FROM tbl_name ORDER BY id DESC"; $res_query = mysql_query($sel_query); while($arr_my_array = mysql_fetch_array($res_Query)){ $cl_id = $arr_my_array['client_id']; ?> <input type="hidden" id="hdn<?php echo $cl_id ?>" name="hdn<?php echo $cl_id ?>" value="<?php echo $cl_id ?>" /> <input type="button" id="btnget<?php echo $cl_id ?>" name="btnget<?php echo $cl_id …

Member Avatar for AleMonteiro
0
191
Member Avatar for f_atencia

I need a function that allows a string to be passed in that strips out everything before a decimal place. For example, 40.00% should be 40. However, it needs to be flexible enough to check if there are no decimals and still maintain the same result. For example, 70% becomes …

Member Avatar for IIM
0
197
Member Avatar for Farhad.idrees

Hi i m checking my values from javascript functiions..i m comparing values... alert is showing that values are not euqal but but form is still submitting.....when i press submit.... java script code is <script type="text/javascript"> function validate(value) { var minimum = document.getElementById('min').innerText; var maximum = document.getElementById('max').innerText; var mini = parseInt(minimum); …

Member Avatar for radhakrishna.p
0
111
Member Avatar for matildacheng

Hi there, Hope someone can help me on this. I really need help. I have a javascript for a rotating image, whereby a total of 10 images will change automatically in every 3 seconds. It works well in a .html page, however it doesn't work in a .php page. In …

Member Avatar for matildacheng
0
567
Member Avatar for smepperson

Using Handlebars.js, I am trying to hide the first element in an array. It would be conditional to an option being true/false. Can this be done without a helper? Thanks Horizontal Menu with > as separator {{#if options.display-home}} <li class="home">{{options.home}}</li> {{/if}} /*If display-home true hide initial separator*/ {{#recursive data "menu-breadCrumb"}} …

Member Avatar for LastMitch
0
167
Member Avatar for Farhad.idrees

Hi i want to close my popup window.. how to do it? window.close() is not working.. i m showing my popup using jquery.. i want to close popup when close button is clicked.. Regards.. fahrad

Member Avatar for AleMonteiro
0
298
Member Avatar for dados

I use this function http://goo.gl/Luxkx to create Fetching Posts by Category with jQuery , but the problem is that I need pagination. For example, I have in some categories more than 10 posts. The first 6 posts show up okay, but I need pagination to show the rest. You can …

Member Avatar for LastMitch
0
442
Member Avatar for biswa2ray

I have created email account in my website(ex: info@mywebsite.com) to use it for sending clients feedback.please guide me in jsp code to solve problem.. and sorry for bothering!

Member Avatar for JorgeM
0
198
Member Avatar for dinhunzvi

i have a php associate array and i want to convert it to a javascript array. how best do i do this

Member Avatar for code739
0
159
Member Avatar for Evil_genius82

Hi All, new to Javascript and stuck on a small issue, its a little late and my head is not thinking straight. The scenerio is I have two textboxes and a submit button. All i want is the values to transfer to a function so i can change 2 global …

Member Avatar for Evil_genius82
0
124
Member Avatar for milkman93

Hey guys, In the following code I'am trying to change the shape of the box and also be able to move it around the page with the cursor keys. Here is a link to a site hosting the files: http://mobile.sheridanc.on.ca/~agnihopr/WebDev2_A3/ HTML Code: <!DOCTYPE html> <html onkeypress="boxReset()"> <head> <title></title> <meta charset="utf-8"> …

Member Avatar for AleMonteiro
0
317
Member Avatar for pucivogel

How do i reference to a folder? I'm want the photos in folder 'gallery1' to be shown when i click on it, this htm code is in the same directory with folder gallery1 i've done this: <a href="gallery1" onclick="return false" onmousedown="ajax_json_gallery('gallery1')">Gallery 1</a><br> but nothing shows when i click on it

Member Avatar for stbuchok
0
244
Member Avatar for jelly46

I have been assigned to build a form in flat html but parses a small bit of info to a dynamic (asp) page on a CMS. Can i do this in Javascript or just HTML? I have looked at quite a few question on this but nothing answers what I …

Member Avatar for jelly46
0
61
Member Avatar for dinhunzvi

i have an html form with two text boxes. one is for the product name and the other is for the price. i want the text boxes for price to allow numeric values only. is there a way of limiting user input for this text box using javascript

Member Avatar for radhakrishna.p
0
167
Member Avatar for mahesh m

hi, i used this code for caturing the close event in firefox browser .but the alert is getting when refresh and closing the tab in the browser also . can anyone help me out from this problem. if (!event.clientX && !event.clientY ) { //alert(event.clientX+" ,"+event.clientY); alert(event.pageY); if(event.pageY) { alert("hiiiiii in …

Member Avatar for stultuske
0
109
Member Avatar for keithcorwin

Hi Everyone, This is a simple problem. I'm making a flowchart-based troubleshooting guide. There are checkboxes on each process box which will generate a text when the checkbox is clicked. The generated text would be on a textfield area which a user can copy. hope anyone can help me with …

Member Avatar for printersdelhi
0
117
Member Avatar for techyworld

Hi i need a simple timer for seconds which keep increment. 0 1 2 3 ....30 Can anyone help?

Member Avatar for slametcahboyolali
0
109
Member Avatar for GraficRegret

I need to create a script to scroll the ads on the website I am developing, with the pages. The want the ads to stay on screen when everything else scrolls, Anyone know where to find a good tutorial on this or have a good code to do this with …

Member Avatar for GraficRegret
0
329
Member Avatar for SMode55

I'm making a administration panel which is generated with Jquery's live and post it works fine.Inside the generated page I'm trying to be able to edit a user in their respective rows so i want to run a post function to retreive the input of a textfield and onkeyup use …

Member Avatar for AleMonteiro
0
188
Member Avatar for pucivogel

How can i make an ajax request through a link, i mean when i click on link <a href=.... it sends an ajax request to a php file which shows in my case a table?

Member Avatar for JorgeM
0
386
Member Avatar for scholarwithfire

Im new to Javascript stuff especially on JSON and Jquery. I have successfully implement the monthly view of FullCalendar but is there anyway to show or pop up the dayview based on the date when user clicked on monthly view? Any help would be much appreciated.

Member Avatar for LastMitch
0
130
Member Avatar for jeets1892

I wrote a code below. What I am trying to do here is, when the three right cells are selected, it should show a message saying "Right" , if not then should say "Try again". So far my code only highlights the cells. I am wondering how do I proceed …

Member Avatar for LastMitch
0
147
Member Avatar for jacob21

Hi, I am working on google charts.Below code is showing tooltip in case of core graph. I am trying to show tooltip in case of Table chart. need sugestions corechart code: <html> <head> <script type="text/javascript" src="https://www.google.com/jsapi"></script> <script type="text/javascript"> google.load("visualization", "1", {packages:["corechart"]}); google.setOnLoadCallback(drawVisualization); function drawVisualization() { data = new google.visualization.DataTable() data.addColumn('string', …

Member Avatar for LastMitch
0
1K
Member Avatar for Dani

As many of you know, DaniWeb now has an API. It (optionally) uses OAuth 2.0 and it supports both server-side and client-side implementations. The server-side method I have down pat. However, I had to hack together the clientside implementation, and although it works, I'm not sure it's done "correctly". I …

Member Avatar for Dani
0
906
Member Avatar for dfn77

Hi, I am using Kendo Web UI and am trying to filter a listView using multiple rangeSliders. I've seen a few examples of filtering, but never with a listview using range sliders. Pretty much all of the examples I've seen involve filtering a grid with a dropdown. I am curious …

Member Avatar for LastMitch
0
480
Member Avatar for pucivogel

So, i want to display data from a table in my db (Mysql), i click the buttonto get the data, it sends request via Ajax and Ajax calls getdata.php file. The table which is supposed to return the data returns in everyfield the written code like "$head" and "$value". I …

Member Avatar for AleMonteiro
0
242
Member Avatar for pucivogel

Is there anyway to view/download binary files from a folder in my server with Ajax? If not in ajax, in php? Can you show me any tutorial or page which shows this?

Member Avatar for AleMonteiro
0
225
Member Avatar for cereal

Hello, I'm trying to display a message depending on the value of an input field. But it stops working when going back to default. Here's the JQuery code: $(document).ready(function(){ test(); }); function test() { $('#quantity').keyup(function(){ var quantity = $('input:text#quantity').val(); if(isInteger(quantity)) { var msg = false; if(quantity > 1) { msg …

Member Avatar for cereal
0
193
Member Avatar for ckjaseem

I have a button which uploads a background image to a folder and saves the file name to the database, but I cant figure how to re size the image before uploading it. Actually I am facing two problems. 1 - How to resize the image and upload it. 2 …

Member Avatar for LastMitch
0
299

The End.