17,114 Topics

Member Avatar for
Member Avatar for FreddieBambino

Right. Im a php developer and I have never taken the time to study Javascript, and it always gives me a hard time. I have a drop down menu with 2 options. The default option is just Choose Payment. If I go to credit card, then nothing is supposed to …

Member Avatar for hielo
0
117
Member Avatar for SunnySideUp

Hi, I am looking to get some help as to how I can create a script that does an Instant live search which displays results as I type: For Instance: 1) I arrive at a page and it has all lists of members from a database already displayed. 2) Then …

Member Avatar for sleign
0
236
Member Avatar for artvor

Hello Web Developers! I need a simple help out here: This is my JS code: [CODE=javascript]<script language="JavaScript" type="text/javascript"> /*<![CDATA[*/ function CngClass(){ var zxcevt=window.event||arguments.callee.caller.arguments[0]; var zxcobj=window.event?zxcevt.srcElement:zxcevt.target; while (zxcobj.parentNode){ if (zxcobj.nodeName=='LI') break; zxcobj=zxcobj.parentNode; } if (zxcobj.nodeName!='LI') return; var zxcul=zxcobj.parentNode; var lis=zxcul.getElementsByTagName('LI'); for (var z0=0;z0<lis.length;z0++){ lis[z0].className=lis[z0]!=zxcobj?'off':'on'; } } /*]]>*/ </script>[/CODE] This is my …

Member Avatar for Airshow
0
374
Member Avatar for drewpark88

Hey Guys, I am having a couple issues with a website when I view it in Internet Explorer. It works fine in Firefox, Google Chrome and probably most other browsers, but has issues with the navigational drop down and for some reason the footer is only partially coming up (cut …

Member Avatar for Airshow
0
212
Member Avatar for parkz16

Hi, there are many websites which allow you to create your own running route on google maps. Does anyone know how this is done? i cant find any information anywhere, tutorials and open source code. i am hoping to implement something like this into my website, weather its having to …

Member Avatar for Taywin
0
64
Member Avatar for artvor

Hello Web Developers! I need a simple help out here: This is my JS code: [CODE]<script language="JavaScript" type="text/javascript"> /*<![CDATA[*/ function CngClass(){ var zxcevt=window.event||arguments.callee.caller.arguments[0]; var zxcobj=window.event?zxcevt.srcElement:zxcevt.target; while (zxcobj.parentNode){ if (zxcobj.nodeName=='LI') break; zxcobj=zxcobj.parentNode; } if (zxcobj.nodeName!='LI') return; var zxcul=zxcobj.parentNode; var lis=zxcul.getElementsByTagName('LI'); for (var z0=0;z0<lis.length;z0++){ lis[z0].className=lis[z0]!=zxcobj?'off':'on'; } } /*]]>*/ </script>[/CODE] This is my …

Member Avatar for Airshow
0
313
Member Avatar for pr1sm

[code] private void button1_Click(object sender, RoutedEventArgs e) { ShellWindows shellwindows = new ShellWindows(); string filename; foreach (InternetExplorer ie in shellwindows) { // Get the document mshtml.IHTMLDocument document = ((mshtml.IHTMLDocument)ie.Document); // Get the script object. object script = document.Script; filename = Path.GetFileNameWithoutExtension(ie.FullName).ToLower(); if (filename.Equals("iexplore") && ie.Document.parentWindow.name = "Test") { // Make …

Member Avatar for pr1sm
0
1K
Member Avatar for dennishall

Hi there: I am running FCKEditor 2.6.4 and am looking for a solution to insert onClick and onMouseOver external javascript into the anchor tags of my editor instances. This insertion would be handled via a toolbar button. What I already know and have tried: 1. Know how to manually do …

Member Avatar for Taywin
0
143
Member Avatar for aladar04

Example, lets say I have L1.html and L2.html. In L1.html, I have a <div id='name'></div>. Is it possible to call that 'div' in L2.html using its 'id? If possible, how? Can you give a sample? Thanks in advance.

Member Avatar for Taywin
0
69
Member Avatar for chineerat

Hi! I need help calculating the summed values of a column. Also, the row values are subtracted from each other eg: [CODE] col1 col2 col3 row1 a b = a-b row2 c d = c-d row3 =a+c =b+d =a-b+(c-d) [/CODE] however there can be N number of rows. I have …

Member Avatar for chineerat
0
160
Member Avatar for nicholaslee21

[CODE] <html> <link rel="stylesheet" media="screen" href="DynCalendar/dynCalendar.css" /> <script language="javascript" type="text/javascript" src="DynCalendar/browserSniffer.js"></script> <script language="javascript" type="text/javascript" src="DynCalendar/dynCalendar.js"></script> <body> <table width="703" height="210" border="1" cellpadding="5" cellspacing="0"> <tr> <td width="535"><form name="Add_Record"><form action="insert.php" method="POST"> <p class="Headings"><strong>Add a Record</strong> </p> <p>First Name: <input type="text" size="20" maxlength="20"name="firstname" /> Last Name: <input type="text" size="20" maxlength="20" name="lastname" /> </p> <p>Days …

Member Avatar for hielo
0
186
Member Avatar for techie929

Hi, I want to calculate the number of days between two dates. Date is in the below format: First Date : 2010-09-27 05:00:00 Second Date : 2010-10-1 08:00:00 Thanks.

Member Avatar for Airshow
0
329
Member Avatar for gauri_agr

Hi All, I am new to Ajax. I have updated my website with Ajax code. How should I get unique url after click on menu. I mean if I click on "about me" on my website yogawithgauri.com. the url in the address bar should be yogawithgauri.com/aboutme Please let me know …

Member Avatar for Protuberance
0
119
Member Avatar for marketingmaniac

This use to work for me when i placed it in the browsers address bar to follow someone on twitter. [CODE]javascript:alert($('.follow-button').click());[/CODE] does anyone know how to not follow with a similar code in the address bar? been trying everything but cant seem to get the rite code down.

Member Avatar for marketingmaniac
0
134
Member Avatar for MackAttack30

Hi forum, This will probably be an easy one but i have a situation where i have multiple PHP/HTML <SELECT> tags. So i hold their id and name in an array. When i go to call this enableBox JavaScript function and i try to call the selectorName[] using the getElementById …

Member Avatar for MackAttack30
0
325
Member Avatar for anandhikrishnan

Hi all, I have a jsp page. It display a table contain 3 columns. 1st column display color name, 2nd for purpose of color like that.. Now i need the contents in td element to editable. This is the sample code. here status is a vector table. out.println("<td align=left class=formlabel1 …

Member Avatar for Protuberance
0
741
Member Avatar for julianmoors

Hi Guys, OK I'll admit it from the off I'm a complete PHP newbie, but I'm willing to learn. Here's what I've got so far... I have a search form which is being updated using an AJAX call. So far so good, but my boss would like it so that …

0
88
Member Avatar for thinstaafl

Please help! I have a form with checkboxes. When one or more checkboxes are clicked, I want the program to dynamically create a div, assign that div an editable text area, then when user clicks submit, I need it to gather the input from EACH textbox and output that to …

Member Avatar for sana3366
0
217
Member Avatar for phaedrusGhost

Hi all, I mistakingly posted this in the PHP forum but hope to find my solution here. I am trying to make a dropdown system for states and cities but the cities aren't coming up correctly. I have this on the root page: [code] <? echo "<form name=sel>\n"; echo "States …

Member Avatar for phaedrusGhost
0
165
Member Avatar for Ambislm

hi buddies, I am much impressed by jQuery. I have enjoyed using it with javascript. But my doubt is whether we can integrate jQuery with java web applications? If so can anyone provide some examples? Thank You. :)

Member Avatar for peter_budo
0
59
Member Avatar for dalip_007

Hi all I want to make sure that my password field should contain numbers as well as letters i am using something like function isAlphabet(elem, helperMsg){ var alphaExp = /^[a-zA-Z]+$/; if(elem.value.match(alphaExp)){ return true; }else{ alert(helperMsg); elem.focus(); return false; } } but it does nothing when there are letter in field …

Member Avatar for dalip_007
0
100
Member Avatar for H_TSOPELAS

i serch about 1 month to find a script that names biorhythms and i found a script! my problem is that the script works in internet explorer but not in firefox and i do not know why! i will sent the code...can any one help me and say to me …

Member Avatar for Airshow
0
166
Member Avatar for NBLWebmaster

This question refers to this sample page on my test site: [URL="http://www.twdesign.ca/up/display_tattoos_2009.php"]http://www.twdesign.ca/up/display_tattoos_2009.php[/URL] The following section of PHP code: [CODE=php] <table cellspacing="0" cellpadding="0" border="0" align="right"> <?php while($row = mysql_fetch_row($result2)) { $active = $row[0]; $imagenum = $row[1]; echo "<tr><td><a name='placeholder$imagenum' href='display_tattoos_2009.php?in=$imagenum' onClick='swap('toppic','$imagenum')'><img class='opacity' name='$imagenum' id='$imagenum' src='tattoothumbnails/$imagenum.png' width='72' height='72' alt='$imagenum'></a></td></tr>\n"; } ?> </table> …

Member Avatar for hielo
0
162
Member Avatar for ktyler

I have the following code (at the end) that will create a new distribution row dynamically. Everything looks good on the page and here is the innerHTML for the new row: [code] <TD style="WIDTH: 10px">&nbsp;</TD> <TD colSpan=4>Distribution to: <INPUT name=newdistacct> <INPUT name=newdistshare> <INPUT type=checkbox Name="newdistdefault"></TD> <TD>* New</TD> <TD><INPUT style="TEXT-ALIGN: right" …

Member Avatar for Taywin
0
137
Member Avatar for SSMuller

I am getting the exception in firefox 3.6.10 "Illegal operation on WrappedNative prototype object" nsresult: "0x8057000c (NS_ERROR_XPC_BAD_OP_ON_WN_PROTO)" <myfilename>::anonymous::line 172 I am using prototype.js and the line as folows, var dropInsertBeforeElement = createElement("<div id='drop_insert_before_" + this.id + "' style='height:6px; width:" + totalWidth + "px;'>"); The exact place in prototype.js var Enumerable …

Member Avatar for hielo
0
261
Member Avatar for lse123

<textarea [B]wrap="hard"[/B] name="Questions" id="Questions" cols="32" rows="4"></textarea> wrap=attribute DO NOT pass w3c validator [CODE]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml">[/CODE] well what is css equivalent?

Member Avatar for Traevel
0
143
Member Avatar for arctushar

Hi I have below javascript code [CODE] <SCRIPT language="javascript"> function validate(){ if(document.r_requisition.r_project_name.value=="deny"){ alert ("You are not authorised to any project "); return false; } if(document.r_requisition.r_number.value==""){ alert ("input in req No."); return false; } if(document.r_requisition.r_delv_date.value==""){ alert ("input Delivery Date: "); return false; } } </script> [/CODE] Its working fine. But when …

Member Avatar for Taywin
0
130
Member Avatar for CasTex

I want to echo the variable when I use test(); fuction. I meanwhen I use the variable with this function like test(john) , how to use it in that php snippet. Anyone knows ? [CODE]<script type="text/javascript"> function test(){ document.getElementById("php_code").innerHTML=" <?php echo "hello"; ?> "; } </script>[/CODE]

Member Avatar for Taywin
0
111
Member Avatar for serkan sendur
Member Avatar for bobyx

Hello,everybody.I want to write a program that change the color of blocks and text on each block in a web page by it.You know in a web page we have many blocks and each blocks we have texts and may be shapes.[B]So,I want to assign three(3) code to each block …

Member Avatar for bobyx
0
153
Member Avatar for Yazzy

Greetings, all! I'm looking for a script (java or other) that would pull information daily and display it on an index page. Thanks in advance for your suggestions!

0
51
Member Avatar for maxelcat

I have a client that wants a site for people who are potentailly being abused, often by partners they live with. He is under the impression that it is possible for there to be a "Button" that deletes the cache when the user presses it rather than going through the …

Member Avatar for maxelcat
0
216
Member Avatar for julianmoors

Hi guys, I have a form which has multiple drop-down menus using the standard <select> tags, but I can only get the results for the first drop-down menu. Does anyone know how I can expand the below code to support multiple variables using a querystring? Thanks, Julian [CODE]<!DOCTYPE html PUBLIC …

Member Avatar for julianmoors
0
225
Member Avatar for kartiktiger

HI I HAVE ONE PROBLEM........ANY ONE CAN SOLVE IT .................... String s="void main() ' he is a \"good boy"; out.println("<input type=text value='"+s+"' name=s>"); IN THIS CODE , IN TEXT BOX THE VALUE AFTER ' IS NOT COMING , CAN ANYONE TELL HOW THE FULL STRING s CAN COME IN TEXT …

Member Avatar for Thirusha
0
72
Member Avatar for Pari13

hi All, how to save image in folder using javascript in asp.net.? I want to save image in folder using onchange method. So can any body have code for that? Thanks.

Member Avatar for Pari13
0
2K
Member Avatar for scarcella

Hey guys i have a little problem!! :confused: I am trying to prompt a JavaScript alert before the html headers and when this happens i does not style my footer from css. Heres my code: [CODE] if ($queryupdate) { echo "<script>alert('Your password has been updated!')</script>"; } else { echo "<script>alert('Your …

Member Avatar for P0lT10n
0
170
Member Avatar for brown23

I'm having a little bit of a problem with JavaScript and a User Agent. I'm using a C# Application, and a WebBrowser Control with a custom user agent. Now I'm currently looking at different ways on how to show different methods for specific user agents. I've got a little script …

0
79
Member Avatar for cmccully

Hi all, I have a page that modifies (using AJAX) a list of animal characteristics stored in a database. The page uses a PHP file to control the actual access to the database. Everything works except when a duplicate entry is entered. The PHP file prevents the duplicate entry from …

Member Avatar for cmccully
0
402
Member Avatar for steveadams617

Using appendTo() I've successfully gotten a text box to be added when I click an icon when I click an edit button. I'd love to be able to have the text in the text box pre-selected so that the user can just start typing without having to highlight everything to …

Member Avatar for Airshow
0
91
Member Avatar for lse123

I want to check if in a email textbox form field, [B]email has correct syntax, but for Mobile Browsers[/B], in desktop I used below, this will work foe Mobile Devices too? or better check this on server side(PHP)...(check second snippet)? [CODE]function checkFormtemplate() // javascript used success desktop browsers { if …

Member Avatar for Taywin
0
156
Member Avatar for jigarsolanki
Member Avatar for arctushar

Hello I want to make search box like google. when typing in the text box it will show search list. the list must be from mysql query search. How can I do that.

Member Avatar for Taywin
0
52
Member Avatar for Olliepop

Hey everyone - the function discussed in this thread is at the bottom of this post. What this function does is countdown the value of an HTML table-cell to zero (minus 1 every second) then stop counting that specific cell when it's finished. This works perfectly, the problem is that …

Member Avatar for Taywin
0
87
Member Avatar for ayooshkasmth

Is there a way to display text from selecting checkboxes such that different combinations have different texts?

Member Avatar for ayooshkasmth
0
77
Member Avatar for bwls

I need to open a popup window from a PHP site and pass in some parameters to use in the pop up window. I have the params in an input box and need to get the val of the box into a param and pass it to the new popup …

Member Avatar for fobos
0
121
Member Avatar for hotice47

Hi all, I have a been developing an chat website using PHP,Mysql and flash. I have implemented everything. I don't know much about AJAX My requirement is to devise a way of updating (in real-time) the current userlist and on clicking on the button it pass one user to flash …

0
76
Member Avatar for arctushar

Hello I have [B]Ten div[/B] and [B]one textbox[/B] in a page. Every div contain single username.Now I want that after clicking on one div, the [B]textbox value[/B] will be the username in that div value contain. How can I do that.

Member Avatar for russjb
0
47
Member Avatar for MARKAND911

i have a div tag named <div id="div1" runat="server"></div> i wrote a javascript which adds content like 0,1,2,3, in this div tag as its content. Now i want a script which will delete some of the content of div1. as like 0,2,3, how can i remove content from div tag.

Member Avatar for MARKAND911
0
178
Member Avatar for ethhunt

i have an external hdd and it has self installed software that comes with a website. when i click on the site launcher it gives a js error. [CODE]function loadResourceFile(file) { var req = window.XMLHttpRequest ? new XMLHttpRequest() : (window.ActiveXObject ? ActiveXObject("Microsoft.XMLHTTP") : null ); if(req!=null) { req.open("GET",file,true); req.send(null); } …

Member Avatar for Airshow
0
81
Member Avatar for TySkby

So I'm having a heck of a time getting this to work- JavaScript isn't exactly my specialty and I realize that's a big part of the issue, but I'm at my wit's end... I'm developing a PHP application that deals with scheduling music lessons. In my application, I have these …

0
97

The End.