Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
100% Quality Score
Upvotes Received
1
Posts with Upvotes
1
Upvoting Members
1
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
0 Endorsements
Ranked #3K
~15.8K People Reached
Favorite Forums
Favorite Tags
Member Avatar for Vivek_13

array = [1, 2, 3, 1, 2, 4, 5]; for (var i = 0; i < array.length; i++){ for (var j = 0; j < i; j++){ //if (i != j) { if (array[i] == array[j]) { $('#result').append(array[j]+'Repate<br>'); } //} } $('#result').append(array[i]+'<br>'); } ## given output is 1 2 3 …

Member Avatar for parvez alam
0
250
Member Avatar for Vivek_13

how to set countdown of time in jquery... in my database i have one field which content time in int format..

Member Avatar for Aeonix
0
112
Member Avatar for Niloofar24

Hello. Is there any other way for not using the submit button? <?php $user_choice = $_POST['font_styles']; if ($user_choice == "font_style_1"){ $font = 'firstfont'; }elseif ($user_choice == "font_style_2"){ $font = 'secondfont'; }elseif ($user_choice == "font_style_3"){ $font = 'thiredfont'; }elseif ($user_choice == "font_style_4"){ $font = 'forthfont'; } ?> <html> <head> <style> h1 …

Member Avatar for Niloofar24
0
428
Member Avatar for Vivek_13

<?php $xml = simplexml_load_file('/exam/'.$file); foreach($xml->main as $main) { if($main['select'] == "selected") { ?> <div> <textarea rows="2" class="span11"><?php echo $main->question ?></textarea> <div class="row" style="padding-left:3%;margin-bottom:1%;"> <ul> <?php foreach($main->ans as $ans) { ?> <li style="float:left; margin-left:1%;" ><input type="radio" name="optionsRadios" class="rdChk" style="margin-top:-2%">&nbsp;<span><?php echo $ans ?></span></li> <?php } ?> </ul> </div > </div> <?php } …

Member Avatar for Vivek_13
0
1K
Member Avatar for phoenix254

HI I am getting this error: **Uncaught SyntaxError: Unexpected token function** in line setInterval(function(){ (line 5) Someone can tell me what i wrong done ? $.ajax({ type:"POST", url:'getmessage.php', data:{user_id:id}, setInterval(function(){ success: function(data){ $('.umsg'+id).append(data); }, }, 2000), });

Member Avatar for Vivek_13
0
236
Member Avatar for ramsiva

I am passing one variable successfully any body help me to pass two variables to ajax page $.ajax({ type: "POST", url: "fetch_st_name.php", data: "sid=" + sid, cache: false, beforeSend: function() { $('#display1').html('<img src="loader.gif" alt="" width="24" height="24">'); }, success: function(html) { $("#display1").html(html); } }); I am passing one variable. data: "sid=" …

Member Avatar for phoenix254
0
10K
Member Avatar for annya

Iam just stuck on this code I want to add an water mark on in between this process but I don't know how to give it. If the user select upload on the first image the image will uploaded and it will show in the right side. I want to …

Member Avatar for Vivek_13
0
976
Member Avatar for Vivek_13

function getRandomNode($file, $numOfQue) { $xml = simplexml_load_file($file); foreach($xml->main as $main) { //Here I want to Get Ramdom Node using $numOfQue. //$numOfQue is a random node Number } $xml->asXml($file); } guys Help me...

Member Avatar for Vivek_13
0
263
Member Avatar for phoenix254

Hi everyone, why my 2nd,3rd,4th line arent working in js source ? $(document).ready(function(){ $('.cls').click(function(){ $('.mwindow').hide(); }); $('.frnd').on('click', function(){ var name=$(this).attr("id"); var div_mwindiow = document.createElement('div'); var div_hwindiow = document.createElement('div'); var span_hwindiow = document.createElement('span'); div_mwindiow.className ="mwindow"; div_hwindiow.className ="hwindow"; span_hwindiow.className ="cls"; var x = document.createTextNode('x'); span_hwindiow.appendChild(x); div_hwindiow.appendChild(span_hwindiow); var t = document.createTextNode(name); div_hwindiow.appendChild(t); div_mwindiow.appendChild(div_hwindiow); …

Member Avatar for Vivek_13
0
261
Member Avatar for rpv_sen

Hi I have written a json file using php. But i am unable to display the css style. can any please help me to fix the issue. **my json code** <?php require_once('config.php'); function jde_date_conv($jde_date) { $ct = substr($jde_date,0,1); $yr = substr($jde_date,1,2); $dy = substr($jde_date,3,3); if($ct == 0)$yr_pfx=19; if($ct == 1)$yr_pfx=20; …

Member Avatar for rpv_sen
0
516
Member Avatar for Vivek_13

<root> <question>What is php ?</question> <ansIndex>0</ansIndex> <ans> <0>Server SIde Lang.</0> <1>client side lang</1> <2>none</2> <3>both</3> </ans> </root> //This is my xml File. // Bt I want When <ansIndex> is 0 then set attribute in <0 true>,<ansIndex> is 1 then <1 true> //how i can do this? //my Php code is …

Member Avatar for Vivek_13
0
200
Member Avatar for Vivek_13

<root> <item0><courseId>133</courseId></item0> <item1><question>What is php?</question></item1> <item2><ansIndex>1</ansIndex></item2> <item3><ans>Sever Side Lang.</ans></item3> <item4><ans>Web Lang.</ans></item4> <item5><ans>NOne</ans></item5> <item6><ans>Both</ans></item6> </root> My Xml Function Give This Type Of Output..Bt i Want <root> <courseId>133</courseId> <question>What is php?</question> <ansIndex>1</ansIndex> <ans>Sever Side Lang.</ans> <ans>Web Lang.</ans> <ans>NOne</ans> <ans>Both</ans> </root> This is my Xml Function .. $array = json_decode($_GET['data'],true); function array_to_xml($array, &$xml_user_info) …

Member Avatar for Vivek_13
0
390
Member Avatar for Vivek_13

{"courseId":"116","question":"asdasd","ansIndex":"1","ans0":"sadsa","ans1":"dsad","ans2":"sadasd","ans3":"asdasd"} This is my Json String......How to Convert In to Xml File

Member Avatar for diafol
0
307
Member Avatar for Vivek_13

Array ( [0] => 116 [1] => asdasd [2] => 1 [3] => asdsadas [4] => dasdasd [5] => sadasdsad [6] => asdasdasd ) i want to convert this aaray in to xml

Member Avatar for diafol
0
345
Member Avatar for Vivek_13

<?php $query = mysql_query("select * from `tbl_student`"); while($data = mysql_fetch_array($query)) { $output[] = array ($data[0],$data[1],$data[2],$data[3], '<select class="form-control select1" id="'.$data[0].'"> <option 'if(----){'selected'}'>asd</option> <option >dasd</option> <option>asd</option> </select>'); } echo json_encode($output); ?> <!--here code of if() throw error-->

Member Avatar for Vivek_13
0
403