15,121 Topics

Member Avatar for
Member Avatar for joshisumitnet

Dear Friends, The problem I am facing a that how to Hide and Unhide Div tags in IE7 and IE8? My code is [CODE]<div> <a href='javascript:void(0)' onclick='DisplayAddComment();'> <img src="../images/AddComment.jpg" border="0"/> </a> </div>[/CODE] and javaScript Function is [CODE]var m=1; function DisplayAddComment() { if(m==1) { document.getElementById("dvAddComments").style.visibility="visible"; document.getElementById("dvAddComments").style.display="table"; m=0; } else { document.getElementById("dvAddComments").style.visibility="hidden"; …

Member Avatar for Taywin
0
1K
Member Avatar for powerteens001

Hi everyone...I'm very much new to java scripting..My problem is...I have a situation where I have to check wether the text entered into a text box contains "_" (underscore) or not..I have to use this in javascript of my asp.net page. can anyone help me with some code..??

Member Avatar for Taywin
0
222
Member Avatar for Aventurine

Hi, I am a PHP developer I never learned much JS but there is no way to accomplish this function using only PHP without a refresh. I am trying to adapt a script that did the basics. [CODE] <script language="JavaScript"> function som() { var First, Last, Full; First = document.Credit.First.value; …

Member Avatar for Airshow
0
1K
Member Avatar for rajbdilip

I have a link at a page. It has a email form that sends an email to my address. I want to thank sender. I'm redirecting to another page that thanks the user. But i want a thank notification to be displayed in the same page with close option. Please …

Member Avatar for rajbdilip
0
104
Member Avatar for eagled2

I am looking for advice for using the functions of these 2 scripts on the same site. I have been using greybox and a different version of easytabs that didnt require the jquery script. I recently found a version of easytabs that allows the back button to work and for …

Member Avatar for eagled2
0
162
Member Avatar for daneuchar

This code is working perfectly in Chrome and Firefox but i am unable to work it out in IE can some help me out with this [CODE]<form name="login" method="post" id="login_form"> <div class="form_back"> <input name="text" type="text" id="username" /> <input name="text2" type="password" id="password" /> <a href="" onclick="$(this).closest('form').submit(); return false;" class="login"><div id="login_button"></div></a> </div> …

Member Avatar for daneuchar
0
94
Member Avatar for luke noob

i have a form with some hidden fields..... index.php page.... [code="php"] <form id="addReplyForm" method="post" action=""> <input type="text" id="target" name="commentreply" /> <input type="hidden" id="session_id" name="session_id" value="" /> <input type="hidden" id="page_id" name="page_id" value="" /> <input type="hidden" id="firstName" name="firstName" value="" /> <input type="hidden" id="lastName" name="lastName" value="" /> <input type="submit" id="submitReply" value="Reply" /> </form> …

Member Avatar for thejimgaudet
0
242
Member Avatar for MoreBloodWine

See my demo page for where I have it working on an img src but not an input which is what I really want. Here's the link to my testing / demo page: [url]http://www.myu2sig.com/stellardonations/buttontype.php[/url] As for what I want to do, how can I apply the function to the input …

Member Avatar for MoreBloodWine
0
139
Member Avatar for Buppy

Hi, I have a HTML that looks something like this: [CODE] <form name="form1" method="post" action=""> <select name="name1" id="id1" onchange="someJavaScriptFunction(somearg1,somearg2)"> <option style="" value="a0">a0</option> <option style="" value="a1">a1</option> <option style="" value="a2">a2</option> </select> </form>[/CODE] What i need to do is execute the onchange event outside the form, so i don't have to write it …

Member Avatar for ko ko
0
67
Member Avatar for PeterWaij

I am trying to implement a code to hide and show divs with a radio button. If yes is selected i want to show the divs. If no is selected i want to hide them. It sounds simple enouth but i can't figure this out. Can someone please advise. Here …

Member Avatar for PeterWaij
0
136
Member Avatar for Clarkeez

Hey. I'd like someone to point me in the right direction. Basically, my work website shows data from a MySQL db. If a new line of data is added in the DB, the user has no way of knowing that it has gone in until they have refreshed. Now, its …

Member Avatar for thejimgaudet
0
236
Member Avatar for marieannevi

I have the following code: [CODE]window.addEvent('domready', function() { $$('.navigation li a').each(function(el) { var fx = new Fx.Tween(el, { duration: 200, link: 'cancel' }); el.store('prop', el.getParents('ul')[0].id.contains('splash') ? 'padding-right' : 'padding-left'); el.addEvents({ 'mouseenter': function() { fx.start(el.retrieve('prop'), 3); }, 'mouseleave': function() { fx.start(el.retrieve('prop'), 0); } }); }); }); window.addEvent("domready", function() { $('splash-img').fade('hide'); $('splash-navigation').setStyle('right', …

Member Avatar for marieannevi
0
79
Member Avatar for xylude

I spent some time this morning trying to figure this out, and finally did. I thought I would share: [CODE]$('body').click(function(event){ //You can swap .attr('class') with whatever and it probably will work. Nested divs may return the top parent's class, so you may need to fool around with it some. If …

0
63
Member Avatar for Aamit

Hi, I am using IE8. I am trying to set value for check_id but it not working in IE8. but works in firefox. [code] <script type="text/javascript"> function check_test() { var new_url="http://www.abc.com/xyz.php?id=5"; alert(new_url); document.getElementById("check_id").value=new_url; } </script> </head> <body> <form name="mod_frm" method="post" id="mod_frm" action="<?php echo $self;?>" > <input type="radio" name="pkg_name" value="1" class="styled" …

Member Avatar for Baradaran
0
168
Member Avatar for vij123

i am work on an app where combo box is define in each row of table in a jsp. when i select the specfic color from combo box it is doing the same color on whole row. now i want, when i set the color of each row and submit …

Member Avatar for javaAddict
0
296
Member Avatar for Acute

Hi, in Gmail (I've noticed it in other services too..)after you log in, progress bar appears. What does it do? Uploads all the JS(containing ajax) files into client's machine? or what?:) Thnx!

Member Avatar for Graphix
0
50
Member Avatar for akhil9

frnds i started working on websites...and i want to learn java script which can be used to build menubar and other content....so as a starter whats the best way that i can focus to learn the things very fast because i need to show up my work.... better sites to …

Member Avatar for Graphix
0
219
Member Avatar for pradeepktg

Hi All, I want to know how to avoid inserting multiple records. Below is my case; (1) I have a jsp page - when a timer for a particular product reaches 3 mins, i am getting that particular productid and sending the productid through ajax (2) in the ajax script, …

Member Avatar for Graphix
0
74
Member Avatar for saintrenz

i think this one will appear in our finals but no one seems to help me.. always getting error.. a 3 radio buttons and will appear the result on alert or popup? something like YOU SELECTED: "___"

Member Avatar for Graphix
0
26
Member Avatar for kesh1000

hi guys. im using this script to convert information to its md5 equivalent. smhow im not able to make it work.plz help as towhy its not workin. here my code to test the function. [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"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> …

Member Avatar for Graphix
0
210
Member Avatar for omaiaa0p

Hello All, I am a beginner to javascript and would like to learn how to call a function which I implemented, called random, two times, with two seperate div buttons. I have tried several times to de-bug the code, somehow it still does not work. My question : Does it …

Member Avatar for Graphix
0
4K
Member Avatar for jeffcogswell

The other day Google announced a new API console to simplify working with their various APIs. These APIs are basically REST-based calls into the Google servers where you connect through a URL, passing different parameters in the URL itself, and get back a response. The response comes back as either …

Member Avatar for 360anish
1
519
Member Avatar for SunnySideUp

Hi, I am trying to get a live search facility working but my code is not working, I was wondering if someone could help me out and see if there are any mistakes or things I can change: Index.php [CODE] <form id="jobSearch" method="get" action=""> <input type="text" id="searchJobs" class="JobSearchBox" name="z" onkeyup="showResult(this.value)" …

Member Avatar for SunnySideUp
0
217
Member Avatar for omb70

I have created a transparent flash video (virtual spokesperson) for my website. For demoing purposes, I would like surfers to be able to have this movie appear on any desired website of their choice. On my site, I would like the surfer to be able to type in a URL, …

Member Avatar for omb70
0
85
Member Avatar for nettee

I am very new to js, getting very confused. I need three button's on the bottom using onclick.First button - change color scheme, second button - different color scheme and the third button - needs to return back to the original color scheme. thank you inadvanced [CODE]<html> <head> <title>My Table …

Member Avatar for nettee
0
83
Member Avatar for mark2326l

This works in every browser I've tested except IE My .js [CODE]document.getElementById("location").innerHTML = object.city;[/CODE] My html [CODE]<div id="location" class='text1' ></div>[/CODE] I've spent hours searching the web, but have found no solution. Any advise? Thanks

Member Avatar for samaru
0
105
Member Avatar for nikita.chandra

hi! in my project textboxes and radiobuttons are generating at runtime. And my problem is that i want only that textbox to be enabled if radiobutton in front of that text box is selected. name of each element is generating at runtime as number of textboxes is not fixed. please …

Member Avatar for steelshark
0
75
Member Avatar for djcrab

Having trouble with this assignment. Can someone help me out with this? I don't get it! For my assignment it wants me to create a constructor function name automobile w/ 5 properties. Assign the values of my car to each automobile property. Print to the screen. This 1st one is …

Member Avatar for hielo
0
107
Member Avatar for feoperro

Hi, How do you text-wrap something like this: [CODE] <table width="10%"> <tr> <td>IWANTTHISLINETOBEBROKENWHENITREACHESTHEENDOFTHECOLUMN</td> </tr> </table> [/CODE] Thanks, Ashton.

Member Avatar for feoperro
0
128
Member Avatar for kram54

i dont find to my error plese help me this code i using to loading to php array [CODE] while($newarray = mysql_fetch_array($query)) { $latt[$count] = $newarray['lat']; $lonn[$count] = $newarray['lon']; $userr[$count] = $newarray['user']; $count++; } [/CODE] this part my javascript code [CODE] var cout= <?php echo $count ?>; var lat = …

Member Avatar for pritaeas
0
252

The End.