15,121 Topics

Member Avatar for
Member Avatar for Ritesh_4

Hello I am currently working on a "local" dev wordpress site, where I have a JS file stored with the path as e.g, http://www.devsite.com/websites/wordpress/mysite/wp-content/themes/mtheme/validations.js Currently, am using the relative path e.g. src = "././wp-content/themes/mtheme/validations.js" to load it. However, on the live server, which is maintained by someone else and I …

Member Avatar for Ritesh_4
0
242
Member Avatar for gcardonav

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> …

Member Avatar for Taywin
0
538
Member Avatar for safian123

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 …

Member Avatar for hericles
0
135
Member Avatar for Violet_82

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 …

Member Avatar for Ajith_1
0
5K
Member Avatar for safian123

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"); …

Member Avatar for JorgeM
0
102
Member Avatar for surferbloggy

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 …

Member Avatar for hericles
0
289
Member Avatar for gcardonav

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 …

Member Avatar for gcardonav
0
230
Member Avatar for Priti_P

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; …

Member Avatar for AleMonteiro
0
150
Member Avatar for 68thorby68

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, …

Member Avatar for Taywin
0
265
Member Avatar for CodeGirl_xx

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 …

Member Avatar for Taywin
0
641
Member Avatar for John_74

i am new to ajax. i want to load the contents of one page in the div created in another page using href

Member Avatar for Taywin
0
75
Member Avatar for Priti_P

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 …

Member Avatar for AleMonteiro
0
155
Member Avatar for Priti_P

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> …

Member Avatar for AleMonteiro
0
324
Member Avatar for weekendrockstar

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. …

Member Avatar for AleMonteiro
0
219
Member Avatar for divyakrishnan

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 …

Member Avatar for Taywin
0
96
Member Avatar for infoitmanoj

<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 …

Member Avatar for infoitmanoj
0
156
Member Avatar for divyakrishnan

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

Member Avatar for veedeoo
0
2K
Member Avatar for RikTelner

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.

Member Avatar for JorgeM
0
116
Member Avatar for arafath077

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.

0
103
Member Avatar for John_74

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

Member Avatar for John_74
0
76
Member Avatar for Koh_1

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 …

Member Avatar for AleMonteiro
0
203
Member Avatar for John_74

<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'; …

Member Avatar for Dervish1
0
238
Member Avatar for safi.najjar1

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: …

Member Avatar for matrixdevuk
0
502
Member Avatar for Himanshu Chawla

<!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 …

0
164
Member Avatar for realmattbender

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"> …

Member Avatar for Taywin
0
246
Member Avatar for Priti_P

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> …

Member Avatar for Airshow
0
151
Member Avatar for Siberian

Argh, I can't see the error in this code ? [[Link](http://jsfiddle.net/WildWind/D8tTE/)]

Member Avatar for Siberian
0
170
Member Avatar for dhani09

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 …

Member Avatar for dhani09
0
271
Member Avatar for ocw91

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 …

Member Avatar for ocw91
0
178
Member Avatar for dwlamb

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 …

Member Avatar for Airshow
0
253

The End.