15,113 Topics

Member Avatar for
Member Avatar for mattyd

My email vaildation is working correctly now. But, I would like to alter the message color from black to red by styling it somehow. I have attempted such things as: { message = "Please, enter a valid email"; message.style.color == 'red'; writeMessage(message); return false; } The insertion being: message.style.color == …

Member Avatar for JorgeM
0
97
Member Avatar for Anubhav_1

Hello, i just coded for login script now i want to add "sha1" to my code due to security reason but it's showing an invalid login error i don't know the reason but when i use this withouht "sha1" it's working fine but i want to secure password into database …

Member Avatar for Bob Hensley
0
225
Member Avatar for chrisschristou

hello my lovely friends of daniweb commuty. i have i jquery code of login popup basicaly it work when we click on a link to call it. but i want to excute it if a field is empty for it, i have add a code before `$('a.login-window').click(function()` and that code …

Member Avatar for chrisschristou
0
310
Member Avatar for mattyd

Hello. I am finally figuring out some basic validation. My main interest at this point is validating email. The script I got online contains the following, but does not check for "com", etc: if (email.indexOf("@") == -1 || email.indexOf(".") == -1) This works but does **not** check for "com". It …

Member Avatar for JorgeM
0
194
Member Avatar for Pravesh_1

I want to change content of a DIV which is in the TD (Table Tag); every div has unique ID viz. picked_cJN_031599, picked_cJN_031596; every div is prefixed with picked_cJN_ *and a unique ID came from database; I want to change the value of any div just by passing ID and …

Member Avatar for temp11
0
155
Member Avatar for Kewne

I have a code in php that is being echoed in html: $tblAccounts .= "<td width=\"100\"><input title=\"$objRow->AccountCode\" name=\"chkAcctField[$objRow->AccountCode]\" id=\"chkAcctField[$objRow->Description]\" value=\"chkAcctField[$objRow->AccountCode]\" type=\"checkbox\" $strIsChecked>" . ucwords($objRow->Description) . "</td>"; now may problem is this... I don't know how will I get the value of the checkboxes clicked by the user.... when the names …

Member Avatar for diafol
0
236
Member Avatar for ravi142

Need Help for. I have one texarea which i have write keyword then press **Enter key** result with <BR> generate. $("#chat_box").keydown(function (e){ if(e.keyCode == 13){ var textval = $("#chat_box").val(); alert(textval+' you pressed enter ^_^'); } }); ENTER : Hello, test OUTPUT: Hello, test (That not correct) Enter Key works perfectly. …

Member Avatar for diafol
0
233
Member Avatar for Siberian

I know jQuery is recommended to write to the DOM, I want to understand how to write to the DOM in Javascript, considering how many programs use Javascript as there language, never know what I want to or need to develope for (*maybe a smart phone app in the future*) …

Member Avatar for Siberian
0
259
Member Avatar for suavedesign

I have an element (a nav bar) on my website that has fixed positioning. How can I make it be fixed only up to a certain point? The url: http://www.peresidences.com/index.php I want the nav bar to be fixed positioning only until it reaches under the picture, and then it should …

Member Avatar for suavedesign
0
805
Member Avatar for baig772

**Problem** I need an jax pagination in YII, The problems are * its not showing the required results for the first time. ie. it is showing the complete result * When clicked on more, it again shows the complete result below that section as it is **What Needed** * i …

0
156
Member Avatar for marse.haka91

I'm new in jQuery charts, can anyone help me please? Below there is a static chart that I must populate with dynamic data. I have create the JSON file with but I don't know how to call these data. Thanks in advance. <div class="top-stats-panel"> <h4 class="widget-h">Daily Sales</h4> <div class="bar-stats"> <ul …

0
99
Member Avatar for ravi142

I have build simple chat box. One Text box -> Enter msg One button -> Submit One Textarea -> show message which enter in "Text Box" How could i do using jquery + ajax.? Give me suggestion. Thank you

Member Avatar for diafol
0
69
Member Avatar for ravi142

I am making a cms for a booking app and the admin will be able to see the number of bookings at any moment. How can I do it so that the above updates continuously with ajax...like facebook newsfeed for example. So far the only ajax I have made is …

Member Avatar for Fernando_4
0
192
Member Avatar for Kent55

I am making a game for my computing class and the objective of the game is for the player to move around the grid and collect all of the passengers in the game and deliver them to the base before they run out of power. I have managed almost everything …

0
132
Member Avatar for burhanahmed92

I am making a form which contain two input suggestion fields, 2 datepicker and three select fields. I want to make my form ajax based and show result in div when any field is changed. Just like farecompare.com I almost created a form but form start loading when i click …

Member Avatar for diafol
0
519
Member Avatar for centenond
Member Avatar for Halnex

Hello, I'm trying to implement autocomplete on a single field "contact". This should query the "contacts" table looking for an id but displaying the firstname in the input field. This is my function inside ListingsController.php, every listing belongs to a contact and every contact belong to a listing. public function …

0
121
Member Avatar for rubai

There is little bit problem in my website viewing in Chrome browser. Navigation bar blinks or sometimes gone or colors tabs gone. How to solve it? It happens only in chrome browser. You can see it here http://theshortstoriesonline.com/pixie/ Thanks

0
236
Member Avatar for M.Waqas Aslam

Dear All! I am facing a small issue in showing xml in a proper format. I am getting proper xml data from my webservice. but after receiving it browser is treating it as a text and showing all test in single line. I want to show my xml data same …

Member Avatar for minitauros
0
588
Member Avatar for xanawa

Hi, I am trying to call the '`getMembershipDetsPrice()`' php function in the html drop down list 'duration'. I tried to follow the W3schools tutorial but when I changed the value the html printed again. When the dropdownlist changed the value the label needs to be filled by the returned value …

0
160
Member Avatar for xanawa

Hi I have the following code so far. Basically I have a drop down list were the user selects the type of membership he wants. When he clicks the button buy now from the database the membership cost and type are displayed in the pg. The problem is that I …

0
209
Member Avatar for rubai

Hi All, I am making a website. I want to know how to implement loading animation in my website. user will see percentage of loading. Once 100% completed he/she will see my website. There are lot of css3 animation all around the internet but don't know how to apply it …

Member Avatar for rubai
0
324
Member Avatar for salman4aslam

This is my code for jquery script [code] // $Id: jquery.js,v 1.6 2006/12/23 21:46:35 dries Exp $ eval(function(p,a,c,k,e,d){e=function(c){return(c<a?"":e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('l(1l 1x.6=="Q"){1x.Q=1x.Q;u 6=q(a,c){l(a&&1l a=="q"&&6.C.21&&!a.1G&&a[0]==Q)v 6(Y).21(a);a=a||Y;l(a.3n)v 6(6.1Q(a,[]));l(c&&c.3n)v 6(c).1X(a);l(1x==7)v 1m 6(a,c);l(1l a=="24"){u m=/^[^<]*(<.+>)[^>]*$/.3c(a);l(m)a=6.3F([m[1]])}7.2a(a.14==2o||a.D&&a!=1x&&!a.1G&&a[0]!=Q&&a[0].1G?6.1Q(a,[]):6.1X(a,c));u C=15[15.D-1];l(C&&1l C=="q")7.V(C);v 7};l(1l $!="Q")6.3W$=$;u $=6;6.C=6.8h={3n:"1.0.4",66:q(){v 7.D},1S:q(2R){v 2R==Q?6.1Q(7,[]):7[2R]},2a:q(64){7.D=0;[].1q.17(7,64);v 7},V:q(C,1h){v 6.V(7,C,1h)},8k:q(1j){u 2h=-1;7.V(q(i){l(7==1j)2h=i});v 2h},1r:q(1I,11,B){v 1I.14!=3X||11!=Q?7.V(q(){l(11==Q)J(u E 1z 1I)6.1r(B?7.1o:7,E,1I[E]);G 6.1r(B?7.1o:7,1I,11)}):6[B||"1r"](7[0],1I)},1a:q(1I,11){v 7.1r(1I,11,"3j")},2D:q(e){e=e||7;u t="";J(u j=0;j<e.D;j++){u …

Member Avatar for Airshow
0
457
Member Avatar for Siberian

When working with Arrays, isn't push and length identical ? If so why do I see length property used most frequently ? I personally am growing use to using push, was a little easier for me to remember. In my discoveries I find the length property used instead. What is …

Member Avatar for pritaeas
0
208
Member Avatar for mwnt2014

Need the api for google map for marker's nearest user's fetched with their IP address from the database... Currently Using ipmapper.js its not working for marker's ..Suggest any other one......

0
143
Member Avatar for jovstudios

$(document).ready(function(){ $("button").click( function() { $("#form_gen").append('<p><table class="bar form_evalution"><tr><td>Field</td><td><input type="text" class="form-control" name="input_label" placeholder="Input Label"></td><td><select name="input_type" class="form-control"><option value="text">Text</option><option value="radio">Radio Button</option><option value="checkbox">Check Box</option><option value="password">Password</option><option value="textarea">Textarea</option><option value="submit">Submit</option></select></td><td><input type="text" class="form-control" name="input_name" placeholder="Text input"></td><td><input type="text" class="form-control" name="input_tbl" placeholder="Input Database Column"></td><td><a href="#">Remove</a></td></tr></table></p>'); }); $("a").click(function(){ $("p").remove(); }); });

Member Avatar for Airshow
0
74
Member Avatar for JivanAmara

Hi all, I usually work on website back-ends and I'm not an expert in js, but circumstances are pushing me to understand it better. I have to make updates to a web page and I found the following code: html: <a href='javascript:void(0)' id='extra'></a> js: $("#extra").on('click',function(){ ... }) css: #extra { …

Member Avatar for JorgeM
0
128
Member Avatar for begueradj

Hello Since Ajax is a client side technology, why can not we see its source code by CTRL+U ? Regards

Member Avatar for JivanAmara
1
164
Member Avatar for mohan@nano

i have a text box in that i'll enter a value . The value should generate the tree structure using javascript .is there any pulgins for the above . please suggest me

Member Avatar for mohan@nano
0
69
Member Avatar for ashab27

hi , this is asha bhatt. i have one radiobuttonlist and checkboxlist and i want to do the validation for these in asp.net ,the validation part i know that plz see my code [code] protected void SubmitButton_Click(object sender, EventArgs e) { bool flage = false; bool valid = false; try …

Member Avatar for rajesh0223
0
337

The End.