14,053 Topics

Member Avatar for
Member Avatar for Blaise.M

Hi, I am trying to do something like this: [CODE] function showContent(toPopulate) { document.getElementById(toPopulate).innerHTML = "<a href='javascript:showOtherContent(toPopulate);'>show</a>" } function showOtherContent(toPopulate) {...} [/CODE] I am not able to send the variable toPopulate as an argument of function showOtherContent() in line 2 Thanks, Blaise

Member Avatar for Blaise.M
0
166
Member Avatar for youlichika

I have 3 divs. I want distribution them random (when refresh the windows, three divs' position will be changed) I think Math random() can solve this problem, but how to do that? Thanks. [CODE]<div id="div1">...</div> <div id="div2">...</div> <div id="div3">...</div> <script> Math.floor(Math.random()*3)+1; ... </script>[/CODE]

Member Avatar for youlichika
0
168
Member Avatar for himmat.m4

Hi, I have done code for two dorpdownlist by using Ajax. It is working properly on my machine but whenever copy to other machine that Ajax code not working, so please give me solution. Thanks in advance

Member Avatar for himmat.m4
0
147
Member Avatar for ActionTwisty

Hi all Firstly may i say i have found your forums to be of great help, but I have a task and not entirely sure if its possible I have a shoutcast radio that i have displaying on my shoutbox every 3.5 mins (auto refresh) but someone said what i …

Member Avatar for Airshow
0
196
Member Avatar for rajeesh_rsn

Hi friends, I want to submit a form using ajax and I want to show "LOADING" in the login page till the next page completely loads. and after its load then go to that page and show its contents. Any ideas ? Please help Thanks in advance Tahnks Rajeesh

Member Avatar for scrappedcola
0
87
Member Avatar for erum

have a single look on code based on jquery,the code is running fine but the problem is when ever i click on any radio button to create div it created div but overlap each other ,i added blank row or <BR> but useless any help [CODE]<body> <form id="form1" runat="server"> <div> …

Member Avatar for Taywin
0
251
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
221
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
240
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
135
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 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
294
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
25
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
516
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
80
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
104

The End.