15,120 Topics
| |
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 … | |
<script> var mins = 0.10; var secs = mins * 60; function countdown() { setTimeout('Decrement()',1000); } function Decrement() { if (document.getElementById) { minutes = document.getElementById("minutes"); seconds = document.getElementById("seconds"); // if less than a minute remaining if (seconds < 59) { seconds.value = secs; } else { minutes.value = getminutes(); seconds.value … | |
Hi I want to assign a smarty array to Javascript array I used the following code <script type="text/javascript"> var arr = {/literal}{$a.ins_status|@json_encode}{literal}; alert(arr); </script> But the arrray is showing as Null | |
Is there possibility to select every table-cell, image and text within ID? I plan to make them all smaller using `.animate();` problem with it, I need to select all these elements first without manually doing it (it has to automatized) process. | |
hi. Im devoloping website. I using [this theme for devoloping](soaptheme.com/html/travelo/). and validate the field using [bootstrapvalidator](http://bootstrapvalidator.com/) .but i cant validate datepicker filed.i tryied [this way](http://bootstrapvalidator.com/validators/date/#date-picker-example) its not working. can anyone help me to solve this problem. | |
re = /^(\d{1,2})-(\d{1,2})-(\d{4})*$/; if((form.dob.value="") || (!re.test(form.dob.value))) { alert("Error:enter Valid date of birth!"); form.dob.focus(); form.dob.style.background = "yellow"; return false; }Inline Code Example Here | |
Hi there, May I know if i want to filter 3 column, for example Column A, Column B and Column C When user select Column A, the mysql query will select the data based on the Column A value. When user continue select Column B, the msql query will select … | |
<script type='text/javascript' language="javascript"> function validate() { var error=0; var name=document.getElementById("name"); var checkname =/^[a-zA-Z]+$/; var email= document.getElementById("email"); var emailcheck = /^([a-zA-Z0-9_.-])+@([a-zA-Z0-9_.-])+\.([a-zA-Z])+([a-zA-Z])+/; var re_pass; if (name.value == "") { name.style.background = 'Yellow'; error = 1; alert('enter user name!'); } else if ((name.value.length < 5) || (name.value.length > 15)) { name.style.background = 'Yellow'; … | |
Hello Guys, I coded the following and worked 100% perfectly but I want to do it ajaxly ! how to make all of this sending by ajax with animation(fadeIn,fadeOut) this my code: product.php url: product.php?id=4 <div id="product_page_desc"> <?php foreach ($products as $info) { ?> <div style="background:#fff;box-shadow: 0 0 1px #cd9db1;float: … | |
<!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <link href="css/bootstrap.min.css" rel="stylesheet" media="screen"/> <link href="css/datepicker.css" rel="stylesheet" /> <script src="js/bootstrap.min.js"></script> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script> <script src="js/bootstrap-datepicker.js"></script> <script src="http://code.jquery.com/jquery-1.11.1.min.js"></script> <script src="js/JavaScript.js"></script> <script src="http://ajax.aspnetcdn.com/ajax/jquery.validate/1.9/jquery.validate.min.js"></script> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script> <title></title> </head> <body> <div> <form class="form-horizontal" id="form1" runat="server"> <fieldset> <!-- Form Name --> <legend>Enter Your Details</legend> <div class="control-group"> <label class="control-label input-xlarge" for="Status">Employment … | |
I am looking to do exactly what the title states. I have a radio field that i would like to persist across a page refresh. The following is my code: <div id="RadioFields"> <input type="radio" name="country" value="usa" id="usa" />USA <input type="radio" name="country" value="foreign" id="foreign" />Foreign Country <div id="countryerror"> <div class="asterisk" runat="server"> … | |
Hello, I have created text fields <fieldset class="step"> <p> <label for="Certifications">Certifications:</label><br> <label style="margin-left: -125px !important;"> <div id='test_certify' style="display:table;"> <table id="mytable" width="5%"> <tbody> <tr> <td align='middle'>Certification Name</td> <td>Pass Out Year</td> </tr> <? $tr_id=1; ?> <tr id=<?echo $tr_id; ?> > <td> <? echo CHtml::activeTextField(EmpCertificates::model(),'Name',array('id'=>'C_name-'.$tr_id,)); ?> <td> <td> <input for date> </td> </tr> … | |
Argh, I can't see the error in this code ? [[Link](http://jsfiddle.net/WildWind/D8tTE/)] | |
I''m trying to process a form without page reload using jQuery post as shown below: <script type="text/javascript"> $('#settingsForm').submit( function(){ $('input[type=submit]', this).attr('disabled', 'disabled ');}); function scheck(){ var oldanswer = $("#oldanswer"); var newquestion = $("#newquestion"); var newanswer = $("#newanswer"); var url = "settingsupdate.php"; //This part of the code works fine. Errors are … | |
Hi, i was trying to call JQuery function from my backend C#. the JQuery function testtesttest(testurl,counter) { $("'#imgThumbnail"+counter+"').attr('ImageURL','"+testurl+"'); $('#imgThumbnail'+counter+').show(); } backend C# code int counter = 0; while(counter<list.Count) { int imgcounter = 1; string testurl = list[counter]; ClientScript.RegisterStartupScript(this.GetType(), "sc", "testtesttest("+testurl+", "+counter+")", true); imgcounter++; counter++; } I trying to pass 2 … | |
After writing out that which appears below I realise help I am asking for might be outside the scope of support for Owl Carousel. The plug-in itself is working as it should. It is functions within this plug-in that I want to emulate for the rest of the content that … | |
Hello, I have written an ajax call: $.ajax({ url:'summary_page_data', type:'POST', data:name={}, context: this, dataType: 'json', success:function(data_){ if(data_!= -1) { data=JSON.stringify(data_); alert(data); $('#write_table').append('<p>Summary:<br><br>[FORM TABLE HERE]</p>'); } else alert("outside") } }); In this "summary_page_data" i have written `echo json_encode($skills);` SO it is returning array. when i alert the return data, it shows … |
The End.