15,121 Topics

Member Avatar for
Member Avatar for Hangfire

Hi all, here' the code [CODE] $(document).ready(function(){ $("ul li ul").hide(); $("li:has(ul)").click(function(){ $this = $(this); if ($this.siblings().find('ul:visible').size()!=0) { $this.siblings().find('ul:visible').slideUp(1000, function(){ $this.find('ul:hidden').slideDown(500); }); } else { $this.find('ul:hidden').slideDown(500); } }); $("li:has(ul:hidden)").mousedown(function(){ $(this).css("background-color","#869094"); }).mouseup(function(){ $(this).css("background-color","#7793ae"); }); $("li > ul > li").mousedown(function(){ $(this).css("background-color","#a5ccef"); }).mouseup(function(){ $(this).css("background-color","#d9ebf1"); }); }); [/CODE] The problem is the li:has(ul:hidden) part - …

Member Avatar for Hangfire
0
85
Member Avatar for rajumon

Hi, I have a sidebar application, I am using an IM functionality inside this sidebar. When a user is logging in, the connection with chat server will generate on this sidebar.The sidebar itself acts as a parent window. When a user click on the IM icon inside the sidebar, a …

Member Avatar for EricThompson
0
128
Member Avatar for elamigosam

hi I was wondering if any one could help me create this "tool" I want a table, with two colums, one for topics, and the other one for explanations hide the explanations and when user clicks on 'topic 2' show 'explanation 2' when user clicks on 'topic 3' hide explanation …

0
69
Member Avatar for eclecl

Hello everyone, I'm learning JavaScript programming and I have a test to do. Will it be possible for someone to check what I've already written and let me know if I'm on the right track? In green are the questions asked and in red are my answers. I also put …

Member Avatar for JugglerDrummer
0
118
Member Avatar for franko75

I'm using jQuery Cycle plugin for a slideshow of images and also potentially swf files. I've written a script to pull images and movies out of the page content (which is part of a CMS - so i never know what image/swf content will be there, the slideshow has to …

0
64
Member Avatar for itsjareds

Here's a script I worked up to convert binary code into ASCII. Didn't work out an ASCII to binary conversion yet.

Member Avatar for digital-ether
0
985
Member Avatar for jaimca

I need a java script code tat changes the mouse pointer to an image of my choice when a button or an image is clicked .. Please help me out regards jai..

Member Avatar for serkan sendur
0
134
Member Avatar for adino2

I written a code to create a image viewer using javascript. But the script only works in IE but not in firefox. Please help. The code is below...... [CODE] <script type="text/javascript"> function changeImage(filename) { mainimage.src = filename; } </script> <center> <img src="images/bg.jpg" name="mainimage" width="419" height="282"> <marquee width="90%" scrollamount="5" onmouseover="this.stop();" onmouseout="this.start();"> …

Member Avatar for matthewmaxwell
0
140
Member Avatar for Agent Cosmic

I am very interested in developing RIAs. So I just wanted to know you opinions of each of them. I have a good foundation of XHTML and CSS, so is AJAX better? -How compatible are they? -How well do they handle images and animations? -How flexible and versatile are they? …

Member Avatar for Troy III
0
107
Member Avatar for serkan sendur
Member Avatar for j_limboo

New to javascript please help me create a link after we click on submit button What is happening is when we click on submit button, it directly does the action on query to google But instead need this to create a link I mean when we hit search the javascript …

Member Avatar for phper
0
115
Member Avatar for hnissani

I have both firebug and venkman debuggers installed. Both seem to function yet neither works. I use firefox3.5.3., windows xp. Any suggestion?? Thanks

Member Avatar for hnissani
0
116
Member Avatar for ykjadeja2020

[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" /> <title>Untitled Document</title> </head> <body> <?php echo $arr = explode(',',$_POST['technology_id']); foreach ($arr as $key => $value) { echo $value; echo '<br>'; } ?> <script> function select_tech() { var frm = document.frm; var id = ''; …

Member Avatar for Airshow
0
129
Member Avatar for becraig

I have a question I am have been googling all day with no examples I can use and need to come up with something. I want to have a Javascript session timeout which does it's own internal countdown ie: 5 mins left before your session expires etc I then would …

Member Avatar for peter_budo
0
70
Member Avatar for Bellwin
Member Avatar for Thirusha
0
54
Member Avatar for MDanz

i tried this but the background of the textarea turns white and not to image.. [code] <script language="javascript" type="text/javascript"> function ChgText(number) { var newtext = document.getElementById(number).innerHTML document.getElementById('reply').style.backgroundImage = "url(newtext)"; } </script>[/code] [B] var newtext = document.getElementById(number).innerHTML [/B] this is the hyperlink of the image [B]'reply'[/B] is the value of the …

Member Avatar for codejoust
0
83
Member Avatar for grabit

Hi Folks Can I do the following please: In have a form for entering payments of invoices. If they pay the whole ammount that is ok BUT if they only pay a part payment i wanna do the following. On the form i have radion buttons (partpay yes & no) …

Member Avatar for grabit
0
96
Member Avatar for carlcarman

When I execute my functions the first one works fine and the second is called because I get my alert box but the second function does not execute. Any ideas why? Any input is appreciated. function changeFont() { <!--alert("changeFont function");--> document.getElementById("q4").style.fontStyle ="italic"; } function changeFontBack() { alert("changeFontBack function"); document.getElementById("q4").style.fontStyle="normal"; } …

Member Avatar for carlcarman
0
85
Member Avatar for Altairzq

Hello, I thought the programming gurus in this forum could lend me a hand understanding recursion in Javascript. I'm following an online Javascript tutorial ("Eloquent Javascript", I recommend it to anyone) and chapter 3 shows this function: [CODE]function power(base, exponent) { if (exponent == 0) return 1; else return base …

Member Avatar for ~s.o.s~
0
127
Member Avatar for Sereal_Killer

hi . im trying to figure out what the best possible way would be for me to zoom into a selected img/div. i have multiple divs with images in them and when a user clicks on one of them i would want the selected image to fill the whole screen. …

Member Avatar for donfady
0
165
Member Avatar for itsjareds

Hi, I'm trying to create a Youtube video inserter script for my site. Long story short, I need to be able to prototype an HTML element and add a string into the element's innerHTML, like this: [ICODE]myObj.insertVid(5sw2OvIgoO8);[/ICODE] I'm using jQuery to getElementsByClass("sip"). [CODE]Object.prototype.insertVid = function(id) { if (id.length > 0) …

Member Avatar for Troy III
0
172
Member Avatar for Graphix

Hi, I am currently writing a chatprogram, and it works fine in FF but it doesnt refresh as it should every 1500ms (set with setInterval("retrieve_messages()",1500) in body tag) in IE. The object ajax is made in previous code. I wrote the following code: [code] function retrieve_messages() { // Checks wether …

Member Avatar for Graphix
0
183
Member Avatar for Swapsry

Hi frnds... I am new to AJAX....now i m trying to learn Prototype AJAX... here i have a doubt, plz check this one.... [CODE] new Ajax.Request("submit.php", { method: 'post', [B]postBody: 'name='+ $F('name') 'mobile='+ $F('mobile') 'email='+ $F('email') 'address='+ $F('address'),[/B] onComplete: showResponse });[/CODE] here how can i send more number of variables....(bold …

0
62
Member Avatar for sreecheck

Hi, I want to access a textbox in content page (contentplaceholder1) from a .JS file. From inline javascript i am to do so using [ICODE]document.getElementById('<%=TextBox1.ClientID%>')[/ICODE] But from .JS file this throws an error. Although here following does work.. [ICODE]document.getElementById('ctl00_ContentPlaceHolder1_TextBox1') [/ICODE] Is there anyway to make this dynamic so as to …

0
96
Member Avatar for deadmancoder

i have a form.. i validated it.. if the form has an empty field, instead of popping up an alert box, i need to display a message that goes off say after 5 seconds.. any idea of how to do it?

Member Avatar for digital-ether
0
400
Member Avatar for Ghostenshell

Could someone show me how to add line numbers to a sorted list? If you need the code it is under the last thread I started. I started using document.write() but every time I did this the page would erase.

0
72
Member Avatar for swaters86

I'm looking for a snippet of code that would let me generate testimonials, quotes or any string value randomly on a webpage. I would like for it be standards compliant, XML based(meaning I would store the testimonials in an xml file), and the less obtrusive it is, the better. Where …

Member Avatar for mejohn
0
827
Member Avatar for Terry56

Hi to al :)l, Hope all will be fine. I want to include a link in the alert method.I tried this [code=JavaScript] alert("Please enable your java to experience this enhanced page." + '<a href="http://www.java.com/en/download/index.jsp" target="_blank">Free Download Java</a>'); [/code] But this will not made a link it shows all as it …

Member Avatar for almostbob
0
256
Member Avatar for gokul.raja

Hello, This is Gokul Rangarajan. I need a suggestion or code in JavaScript which reads the MS Word document page settings and number of pages. I know how to open and read a MS Word document, but i couldn't able to get page properties. Some one please help me with …

Member Avatar for gokul.raja
0
186
Member Avatar for mvt6204

Hello guys, is there a way to detect whether JS is enabled or not, using PHP codes? Thanks in advance. =)

Member Avatar for CalmQuiet
0
195

The End.