15,694 Topics

Member Avatar for
Member Avatar for Jackson Desai

i have simple javascript.i want to refocus on a text box control when it is left blank by user..everthing going all right.message is also displayed "this field is required" besides dat textbox control.when focus is lost with blank textbox.i [COLOR="Red"]want to cursur back on lost focus in dat blank textbox..[/COLOR]give …

Member Avatar for stbuchok
0
33
Member Avatar for jpknoob

Hello all, afetr receiving such excellent help regarding my first ajax file, i have received an error in my code that i have not encountered before. I have created a form with input fields and when the button is clicked, three functions are run, the first is an ajax call …

Member Avatar for jpknoob
0
332
Member Avatar for learner guy

[CODE] function displayResult() { var damn = document.getElementById("textyar").value; document.getElementById("oneforty").innerHTML = damn; var newDIV = document.createElement('div'); newDIV.className = "tweets"; var newspan =document.createElement('span'); newspan.className = "imagespanleft"; var img = document.createElement("IMG"); img.className="image"; img.src = "tweets/me.jpg"; newDIV.innerHTML = document.getElementById('textyar').value; document.getElementById('leftmaindiv').appendChild(newDIV).appendChild(newspan).appendChild(img); } [/CODE] this is the code , i m trying to create an interface …

Member Avatar for learner guy
0
1K
Member Avatar for vibhas

hello friends i wanted to use auto populate text box based on another select box using jquery ajax and wanted to pass values of both the check boxes to a php form and insert in db my code id : [B]index.php[/B] [CODE]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html …

Member Avatar for pzuurveen
0
151
Member Avatar for Virangya

hi, i'm develping a system which opens a jquery dialog onclick of a image. but i fuond out that when an body wrap is there (a div) an it has a style [ICODE]float:left[/ICODE]. dialog opens after the page.. how can i fix this without removing [ICODE]float:left[/ICODE]? help needed soon. thanks …

Member Avatar for Virangya
0
195
Member Avatar for Melow

Hy, I need to get the full path of a file trough JS/Prototype and all i get is the name file. From what I read on the web this is a security issue and it is not allowed. But still, is there a way?

Member Avatar for Melow
0
160
Member Avatar for jcarbillon
Member Avatar for jcarbillon
0
100
Member Avatar for wetube

hello guys, please give me any idea about solving this problem. I have two tables categories: id .... category .... parent ________________________________ 1 .... general .... 0 2 .... news .... 0 news: id .... headline .... category_id ________________________________ 1 .... headline1 .... 1 2 .... headline2 .... 2 3 …

Member Avatar for diafol
0
115
Member Avatar for riahc3

I have this code: [code] <html><head><title></title></head><body><form id='formulario' action='index.html' method='post'><label>Ancho </label><input type='text' name='ancho' id='ancho'><br ><label>Alto </label><input type='text' name='alto' id='alto'><br ><label>Izquierda </label><input type='text' name='izquierda' id='izquierda'><br ><label>Horizontales </label><input type='text' name='horizontal' id='horizontal'<br ><label>Verticales</label><input type='text' name='vertical' id='vertical'><br ><label>Crucero </label><input type='text' name='cruzero' id='cruzero'><br ><label>Marco </label><input type='checkbox' name='marco' id='marco'><br ><label><input type='radio' name='RadioGroup1' value='1' id='piezas'>Piezas</label><br><label><input type='radio' name='RadioGroup1' value='0' …

Member Avatar for Troy III
0
166
Member Avatar for tqmd1

Dear experts I have following codes [CODE]<html> <head> <script type="text/javascript" src=jquery.js"></script> <scritp type="text/javascript"> $(document).ready(function(){ $('button[name="button1"]'.click(function(){ $("p").hide(); }); }); </script> </head> <body> <form> <p>hello</p> <input type=button name=button1 value=hide> </form> </body> </html>[/CODE] Why it does not work?

Member Avatar for AleMonteiro
0
105
Member Avatar for learner guy

i want to assign content of textarea to a div .. like in twitter when you type something and press "Tweet" a div is created and has the content of textarea.. how can i implement it , i know something about getElementById() but not sure how it can help me …

Member Avatar for niranga
0
135
Member Avatar for BilalAKhan

Hi, I am using TinyMCE as a rich text editor. I need to add an image upload functionality. At first I tried Just Boil Images 2.1 for the upload which gave me a good functionality, but when I switched the operating system and came to Windows 7 it stopped working …

0
55
Member Avatar for tapandesai007

I am using a AJAX ModalPopUp control to display some data, which I am fetching through a WebService, what I want to do is that when the Data is being fetched by webservice,(during the time when the data is being fetched) I want to show a .GIF progress bar image …

Member Avatar for Luckychap
0
101
Member Avatar for socialmd

I'm trying to figure out how to use PHP in Javascript to fill in the options for my drop down menus for my dynamic inputs. I've tried several things already, but I have had no luck. This is how my code stands at the moment. Any ideas are greatly appreciated. …

Member Avatar for Airshow
0
301
Member Avatar for clerisy
Member Avatar for ebad.masood

In my form I am using a AjaxToolkit ModalPopupExtender. The PopupControlId has been set to a panel which has a RadioButtonList and a dropdownlist.The panel which pops up is something like this: [CODE] <asp:Panel ID="PopUpWindowPanel" runat="server" Visible="false" BorderStyle="Solid"> <table cellpadding="2" cellspacing="0" width="100%" border="0" class="dataTbl"> <tr> <td class="left"> <asp:RadioButtonList ID="RdBtnLstSortOptions" runat="server" …

0
70
Member Avatar for Virangya

hi, i encoded a long string before i sent it to a url trough javascript. now when i display it using php $_GET[] all the text displays correctly except a "'" (single quotation) it displays as, %u2019 . i'm not sure if there are other encoding that $_get[] won't convert.. …

Member Avatar for Virangya
0
140
Member Avatar for Punitha Balan

[QUOTE=parry_kulk;1185610]An approach would be to create the divs on load of the page and make them hidden with CSS. Then onclick of button just make all of them visible and on clicking on each div make that hidden again. Creating and removing elements dynamically in JS is slow and errorprone(if …

0
68
Member Avatar for jakx12

Hey everyone, I am new to js and am writing a bookmarklet. For some reason cookies are not working at all. I have tried numerous setCookie, delCookie etc functions and none work, so I am using the simplest form of setting a cookie and it still ceases to work. Here …

0
119
Member Avatar for veledrom

Hi guys, I want to assign something into label via JS but code below doesn't work for array. Do I miss something? Thanks in advance [code] <script> function calculate_cost(whichlabel){ document.getElementById('text_cost['+whichlabel+']').innerHTML = 'show me in label below'; } <input type="text" name="text_qty[]" value="0" size="3" maxlength="5" style="text-align:center;" onkeyup="calculate_cost(0)" /> <label id="text_cost[]">0.00</label> [/code]

Member Avatar for veledrom
0
116
Member Avatar for evilguyme

Hey guys! was wondering if anyone knows anything about how to make a popup appear with an image as soon as the page loads.. lots of sites have this and i couldnt find it anywhere on google.. im pretty sure it can be done with java but i may need …

Member Avatar for pritaeas
0
87
Member Avatar for Ryujin

Embarrassed to say how many hours I've burned on this--am hoping someone can point me down the right path. This is more a conceptual question than a straight coding one. Building a web app to enable people to reserve stuff where I work. One of the pages uses a [URL="http://jqueryui.com/demos/datepicker/#date-range"]date …

Member Avatar for pritaeas
0
244
Member Avatar for freakybeavis

Admittedly I am only a beginner at playing with java but I'm pulling my hair out trying to understand something I thought would be easy, and it probably is. Trying to write code that randomly selects from 3 preloaded arrays and spits out the results. Mechanically the code seems to …

Member Avatar for javaAddict
0
159
Member Avatar for borgyborg

Hi, I would like to have a php script or javascript to calculate the array textboxes where values fetched from the database. My array textboxes code below: [CODE] $sql="SELECT * FROM records WHERE is_active = 'Yes'"; $result=mysql_query($sql,$connection) or die(mysql_error()); while ($row=mysql_fetch_array($result)) { $default_salary = $row["default_salary"]; echo "<input onkeyup=\"AddInputs()\" type=\"text\" class=\"validate[required,custom[onlyNumberSp],maxSize[5],minSize[3]] …

0
83
Member Avatar for Virangya

hi, i'm passing a content in a div tag to a url. url looks like [ICODE]index.php?content=texttext &amp; text text[/ICODE] .. so on. when i'm trying to display this string, php only displays content up to &amp; it stops at '&' how can i stop this? i need to change this …

0
106
Member Avatar for patk570

Hello everyone. I seem to be having trouble with the doMath() section of my code. I was wondering if you can help me out... [CODE] <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <title>Package Plans</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <meta http-equiv="Content-Style-Type" content="text/css"> <meta http-equiv="Content-Script-Type" content="text/javascript"> <SCRIPT LANGUAGE="JavaScript"> function …

0
95
Member Avatar for jphillips66

I used from <script> to </script> and the image sections as well. except on my page I have five images a crossed the bottom of the page. So when the image gets larger I want all images to stay in the same spot instead of moving down the page. What …

0
67
Member Avatar for Virangya

hi, i have this jquery page that is included in an html file and in that file i have a function with .dialog() i want to open a normal pop up if this dialog doesn't work.. i was wondering how ca i do this... will try() catch() work on this..? …

Member Avatar for Airshow
0
197
Member Avatar for Troy III

This is my first post of a type: "question", so bare with me... I need to obtain a list of supported events on an encountered browser version programmatically, ie, via script. Since Explorer exposes its events on document object I can do something as simple as this: [CODE];for(x in document)if(/^on/.test(x))alert(x);[/CODE] …

Member Avatar for Troy III
0
111
Member Avatar for BenzZz

Hi, I want to use javascript within my php file. The three drop down boxes involved are: [CODE] <select name="year" width="10"> <option value="<?php echo $curYear ?>"><?php echo $curYear ?></option> <option value="<?php echo $curYear++ ?>"><?php echo $curYear++ ?></option> </select> <select name="month" width="10"> <option value="01">01</option> <option value="02">02</option> <option value="03">03</option> <option value="04">04</option> <option …

Member Avatar for AleMonteiro
0
156

The End.