15,127 Topics

Member Avatar for
Member Avatar for castajiz_2

I m new to javascript and I m little bit confused on how does a webpage read the actual script. let's say I have the folowing code: <script> vrijeme = document.getElementById("Label7").innerText; minute = vrijeme.substring(0, 2); sekunde = vrijeme.substring(3, vrijeme.length); alert("fuck you"); var start_time=setInterval(secondFunction, 1000); function secondFunction() { sekunde = sekunde …

Member Avatar for [NOPE]FOREVER
0
313
Member Avatar for RobotFX

So I'm trying to use a free service to get the visitor's location and redirect them to the proper page. The problem is that these free services don't always work; freegeoip has a limit of 10000 requests per day and I'm not sure about telize. What I want to do …

Member Avatar for [NOPE]FOREVER
0
601
Member Avatar for sussy123

I am baffled at this webform on my responsive site which works perfectly fine in all iOSdevices and android tablets. However on android smartphones, specifically samsung s3/s4 -when the text box is clicked- the keyboard appears for less than a second then suddenly disappears. Should a set focus rule be …

Member Avatar for [NOPE]FOREVER
0
3K
Member Avatar for Priti_P

I have formatted a string date into date format by using <script type="text/javascript"> var st = "26-04-2013"; var pattern = /(\d{2})\-(\d{2})-(\d{4})/; var dt = new Date(st.replace(pattern,'$3-$2-$1')); alert(dt); </script> and it's output is `Fri Apr 26 2013 05:30:00 GMT+0530 (IST)` but I want out put as `2013-04-26` how can i do …

Member Avatar for Priti_P
0
244
Member Avatar for Christian Joy

i am making an online quiz that has a countdown timer plugin: https://code.google.com/p/jquery-countdown/source/browse/trunk/js/jquery.countdown.js?r=3 everything is fine but if the user log out or close the browser then the timer will reset back to the default given time. i would like to know how to get the value of the timer …

0
113
Member Avatar for Affable zaki

I am using upload services and i have to use a request over http due to which IE gives me "Mixed Content" popup. My client do not want this. Is there any way to hide or handle it through java script or in Jquerry or C#? Additional Info: Web Application …

Member Avatar for cgeier
0
158
Member Avatar for rahulroshan

Hi I want to rename Image in this script after downloading ,now it downloads as default Want to rename it to x.png Any help appreciated Saw a way via PHPserver,but Im using JAVA App <html> <head> <script type="text/javascript" src="http://canvg.googlecode.com/svn/trunk/rgbcolor.js"></script> <script type="text/javascript" src="http://canvg.googlecode.com/svn/trunk/canvg.js"></script> <script> function getImgData(chartContainer) { var chartArea = chartContainer.getElementsByTagName('svg')[0].parentNode; …

0
187
Member Avatar for nadiam

maybe i need to be more specific in where i post my questions coz i posted one in web development. so ill reiterate im trying out this cloning and toggling thing to see if they could work together. ive got a table like so: <table class="StateTable" rules="all" cellpadding="0" cellspacing="0"> <thead> …

Member Avatar for minitauros
0
3K
Member Avatar for Priti_P

Hi There, I had a multidimentional array with values. I wanted to convert it into JSON I tried it with : `json=JSON.stringify(skill_array);` But it gave me output as below: [["Language","C++","0","1","May 2014","ascasc"],["DataBase","C++","0","1","May 2014","ascasc"],["Language","C++","0","1","May 2014","ascasc"]] SO how can i convert it into JSON? in Javascript

Member Avatar for Priti_P
0
127
Member Avatar for nadiam

what i want to do is show form based on the value of a dropdown list. like if value 2 then what appears is two forms of the same form. example: <div> How many? <select name="options"> <option value="1">1</option> <option value="2">2</option> <option value="3">3</option> </select> </div> <div id="test"> </div> <form id="form1"> <table> …

Member Avatar for nadiam
0
366
Member Avatar for Priti_P

Hello There, Basically I want to print table from javascript. I have a multidimenational array global_arrayLength is lenght of that array In form I have defined an table with below code <div class='box1' id='show_this' name='show_this'> <div id='information-table'><table id='myTable'><tr bgcolor=#ff9966 id='0'> <td>Skill</td> <td>Skill Type</td> <td>Total Experience Year</td> <td>Total Experience months</td> <td>Last …

Member Avatar for Priti_P
0
220
Member Avatar for Priti_P

i have table with id myTable first tr is like: <tr bgcolor=#ff9966 id='0'> <td>Skill</td> <td>Skill Type</td> <td>Total Experience Year</td> <td>Total Experience months</td> <td>Last Used In</td> <td>Description</td> <td>Modify</td> </tr> when I am inserting values of one array into this table using for loop with below code: var html=""; var tr_id=/* I …

Member Avatar for Priti_P
0
435
Member Avatar for dhani09

I have a drop-down list, which contains a list of over 150 schools. Each school in this drop-down list is located in one of 30 states. What i'm trying to implement is this: If a user chooses a school from the "select" list, the text box below it would automatically …

Member Avatar for nadiam
0
275
Member Avatar for ownedbynothing_1

I have this particular snippet.. newcell.innerHTML = table.rows[0].cells[i].innerHTML; //alert(newcell.childNodes); switch(newcell.childNodes[0].type) { case "text": newcell.childNodes[0].value = ""; break; case "checkbox": newcell.childNodes[0].checked = false; break; case "select-one": newcell.childNodes[0].selectedIndex = 0; break; case "number": newcell.childNodes[0].value = ''; break; } the switch above makes the newly added rows to reset the value from the …

Member Avatar for ownedbynothing_1
0
279
Member Avatar for Jamie_4

I'm trying to get the text "Student 1, " to display in a text box but also have it as a link back to the student's page. This code displays only the url I want but not as a link and doesn't display "Student 1 " function getFavourite() { var …

Member Avatar for taersious
0
1K
Member Avatar for sushmaja.arumalla.9

I have 8 ajax tabcontainers in my page.On the top of the page I have one button "Collapse All".When I click on the button all the tabcontainers should be collapsed. Please help me how to achieve this functionality.

Member Avatar for taersious
0
144
Member Avatar for Priti_P

I have <div id='name' onchange='load_div()'> <b>Car Name : </b> <select name="carlist" form="carform"> <option value="volvo">Volvo</option> <option value="saab">Saab</option> <option value="opel">Opel</option> <option value="audi">Audi</option> </select> </div> <div id='name2' onchange='load_div()'> <b>second Car Name : </b> <select name="carlist" form="carform"> <option value="volvo2">Volvo</option> <option value="saab2">Saab</option> <option value="opel2">Opel</option> <option value="audi2">Audi</option> </select> </div> Here I have a link called "Add" …

Member Avatar for diafol
0
179
Member Avatar for mikeandike22

Ok so im using hubspot for inbound marketing and the have a thing called page grader that finds errors in your page. The most common warning is page has images without alt text. Since im dealing with a really big drupal site and dont want to go through every image …

Member Avatar for marta.johnsson
0
5K
Member Avatar for confstu

0 down vote favorite I want to ask all of you for some help since i'm still new to web programming. So basically i have html table like this, <table width='200' border='1'> <TH>Year 1 Spring</TH> <TR> <TD> <div id="y1f_0">one</div> <div id="y1f_1">one</div> </TD> <TD> <div id="y1s_0">two</div> <div id="y1s_1">two</div> </TD> </TR> </table> …

Member Avatar for dnyaneshk2
0
2K
Member Avatar for dhani09

I have an HTML dropdown list which i'm populating from a database. My question is how can i retrieve the value of a selected item from this dropdown list using AJAX? Thanks in advance.

Member Avatar for dnyaneshk2
0
6K
Member Avatar for nadiam

hey guys. im trying to show a dropdown list and hide input text when an option in another drop down list is selected. dropdown <select name="table-type" id="select-t"> <option value="" disabled selected>Types of Tables</option> <option value="Round Table" id="rt">Round Table</option> <option value="Banquet Table" id="bt">Banquet Table</option> <option value="Square Table" id="st">Square Table</option> </select><br> No. …

Member Avatar for nadiam
0
260
Member Avatar for Priti_P
Member Avatar for Priti_P

Hello, I have a form in which , I have DIV1. Selecting option from DIV1 another DIV2 gets open and form is filled. But I want after filling DIV2, its values should get refreshed to default ones. How can I do this in JS?

Member Avatar for JorgeM
0
127
Member Avatar for samertaha

hi , i am searching for a good tree menu design for products categories to use it in my website , i need it to be flexible so i could style it as needed and also simple so i can target it with my own javascript. thanks again.

Member Avatar for samertaha
0
214
Member Avatar for eburlea

Hi. I have an input type "number" set to display decimals. For example if I type "5" there should appear "5.0000". It works in Chrome and previous versions of Firefox. Now with Firefox 29 it does not work anymore. Does somebody know what could be the problem? $('#mynumber').bind('focusout', function(){ if(!isNaN(parseFloat($(this).val()))){ …

0
111
Member Avatar for nadiam

hey guys. so i was thinking of creating this page that has 2 different tables : table1(table1 filled with names that are populated from database but lets not think about that part for now) and table2(empty), table1 rows are clickable and when doubleclick on one row the data in that …

Member Avatar for nadiam
0
341
Member Avatar for thunder234

I have the following code for a login page that is supposed to display an error when the user enters the wrong username and password combination. can anyone have a look at the code and tell me why it isnt displaying the error message when its supposed to. Here is …

Member Avatar for poosapatisuresh
0
271
Member Avatar for vizz

I found [this template](http://livedemo00.template-help.com/wt_48221) on template monster. That is what I was working on. How to slide pages about.php, work.php, contact.php directly inside div tag? Dispaly home.php by default **menus used in example template of template monster** <ul> <li><a href="/"><div class='open_hover'></div>gallery</a></li> <li><a href="/about.html"><div class='open_hover'></div>about me</a></li> <li><a href="/experience.html"><div class='open_hover'></div>Experience</a></li> <li><a href="/resume.html"><div …

Member Avatar for vizz
0
151
Member Avatar for devianleong

Hi guys, I want to hover all the images and show the image with colour when mouseover (remove hover when mouseover). I hover it by using this line of code and it's work fine but I do not know how to add mouseover method to change fadeTo value become (400,1): …

Member Avatar for pixelsoul
0
263
Member Avatar for Priti_P

Hello There, My problem is: I have declared an empty PHP array. and onsubmit of button I want to add the _post values to array at every time on my form. I am working this in Yii framwork. Array declred as: $skill_values_array=array(); button code <?php echo CHtml::submitButton(Yii::t($model, 'next'), array('id' => …

Member Avatar for Kyle Wiering
0
731

The End.