15,121 Topics

Member Avatar for
Member Avatar for lalapengi

Two friends had a disagreement about the placement of the return in the following code: [code] var abc; try{ //there can possibly be 1 or more answers; abc = getAnAnswerFromPossibleAnswers("type","key"); } catch(ex){ ex.printStackTrace(); } //We only want the first answer even if there were more return abc[0]; [/code] One person …

Member Avatar for ~s.o.s~
0
86
Member Avatar for justinmyoung

I hate to come back so soon, since I was all proud of myself for working out the last issue. This is a different issue, and beyond the scope of my knowledge. The pagination itself WORKS FINE. However, I'm trying to use a tooltip script on an image hover, and …

Member Avatar for justinmyoung
0
179
Member Avatar for joeltonnberg

Hi, I'm currently trying to implement expanding text to links. However, as the links are created dynamically I need to be able to make the DIVs Id-tag 'general' in the script. So, instead of this: [ICODE]function pageLoad() { collapseAll($('myvar_1','myvar_2','myvar_3)); } [/ICODE] I would like something like this: [ICODE]function pageLoad() { …

Member Avatar for essential
0
100
Member Avatar for justinmyoung

here's the link to the script: [URL="http://www.dynamicdrive.com/dynamicindex17/ajaxpaginate/index.htm"]http://www.dynamicdrive.com/dynamicindex17/ajaxpaginate/index.htm[/URL] I got the script working, but I can't manage to move the numbers from the top...to the bottom. I tried nearly every combination I can think of. Here's a screenshot of where the numbers are placed currently: [IMG]http://www.justinmarcusdesign.com/image.jpg[/IMG] [B][COLOR="Red"]Here's the HTML:[/COLOR][/B] [ICODE] <!DOCTYPE …

Member Avatar for justinmyoung
0
189
Member Avatar for suju_jm

For validation purpose i want the page size property of the gridview from javascript. I am using .net 3.5 and ajax. Thank you in advance

Member Avatar for greeny_1984
0
63
Member Avatar for asatess

System restore shows a blank page and sites needing javascript are saying it isnt enabled, although it is. I've looked at various previous posts regarding this topic and tried running various suggested programmes without success. Another suggestion was to download scripts from Microsoft which I have tried to do, but …

Member Avatar for Starnamer
0
232
Member Avatar for jonow

I was wondering if there was a way to make it so when the contents of a div went beyond a certain height it was put on another page or tab type thing. If you look at this webpage:[URL="http://www.ndoherty.com/demos/coda-slider/1.1.1/#4"]http://www.ndoherty.com/demos/coda-slider/1.1.1/#4[/URL] imagine that each new panel was made from overflowing content in …

0
69
Member Avatar for goodluck4287

Instead of a countdown and then redirect, I would like to countdown and unhide. I have used java before as a novice, but javascript looks like a relatively new beast for me. I found this counter and think it looks good, I guess it just resents the next smallest digit …

Member Avatar for essential
0
167
Member Avatar for hbmarar

Hi, I got a form page with 3 radio buttons. Radio button ,say A,B,C. billing and shipping address is what the form page consists of . Onclikc of A the user selects hide shipping address. On click of b , copy billing to shipping address as well and on click …

Member Avatar for its4masti
0
87
Member Avatar for nakins

Should this work to reload these two iframes? I'm having an issue where if I do an update to the actives iframe after doing an update to the message iframe, the actives frame does not update. Trying to figure out what is causing this. function updateWindow() {parent.window.frames['message'].location = 'http://mysite/people/message.aspx';parent.window.frames['actives'].location = …

Member Avatar for almostbob
0
55
Member Avatar for yssirhc

This code adds & removes textboxes from the screen. In the remove function, it also renames any textboxes that come after the one deleted so that the numbering stays in order (i.e. 1,2,3,4 instead of 1,2,4,5,8) and updates the count parameter of the textbox's corresponding remove link so that the …

Member Avatar for yssirhc
0
132
Member Avatar for veledrom

Hi, The examples in w3 page don't work. I do copy and paste and create exactly same database but nothing changes. It returns "Error on Page" error. [url]http://www.w3schools.com/php/php_ajax_database.asp[/url] [url]http://www.w3schools.com/php/php_ajax_responsexml.asp[/url] [url]http://www.w3schools.com/php/php_ajax_livesearch.asp[/url]

Member Avatar for nav33n
0
163
Member Avatar for cpeeyush1

hi i an designing a website and i just want that if a user open it on any resolution then it will fit it self to that resolution and no scroll bars will come like google,yahoo etc. i know it is possible but not know how so pls help me …

Member Avatar for Nickolls
0
143
Member Avatar for Designer_101

Hi Is there a function in javascript the same as PHP's exit() I have: [CODE]<script> ****EXIT OR EQUIVILENT IN JAVASCRIPT***** </script> <a id="java" style="color:#FFFFFF; ">Enable javascript to view my website</a>[/CODE] This tells me if javascript is on or off.

Member Avatar for nav33n
0
48
Member Avatar for danielagaba

hi I'm using the following javascript code to generate an sql statement using field values. My problem is I want to encode the value of the field password using base64 encode [code] function changereadonly(field){ var sql = "UPDATE%20user%20SET%20" if(field['button'].value=='SAVE'){ for (i = 0; i < field.length; i++) { if ((field.elements[i].name …

0
51
Member Avatar for James1997123

Ok... First off. I am not talking about javascript tricks for your website. These scripts are just for fun. To make these codes work, all you have to do is copy and paste it into the address bar of your browser window and hit Enter (Yes the little bar in …

Member Avatar for chriswellings
0
603
Member Avatar for me!

Hi I want to build a remote web-support application for my website, kind of like logmein type; 1.- Be able to use remote user's desktop upon request. 2.- It has to be an easy to get application for remote users, may be a java script or something. 3.- On the …

0
87
Member Avatar for GeoffC

I am using the following to set up a textarea for the input of the body of an email. [ICODE] <textarea name="body" id = "body" ><?php echo $sig?></textarea> [/ICODE] the php inserts a "signature" into the textarea. When I tab to it, the cursor goes to the end of the …

0
55
Member Avatar for jyotiu

Hi All, I am displaying an image from database using php .... the problem is that i want to give a row of colors beneath the image .... so that when a user clicks on one of the color .... the image should change accordingly ... in my case i …

Member Avatar for nickfday
0
134
Member Avatar for rouse

Two related jQuery questions. Is there a way in JQuery to slide to a particular point such as slide 10px or slides to a DIV, the parameters passed in the functions are speed and callback. Second questions: I was hoping I could filter on a name with a jQuery option …

Member Avatar for rouse
0
60
Member Avatar for sawant_nitesh

I am confused in choosing JavaScript Framework for my Project. I can choose any one of the following frameworks........ [COLOR="Red"][B]EXT JS[/B][/COLOR] [COLOR="Green"][B]EXT-GWT[/B][/COLOR] [COLOR="Red"][B]YUI[/B][/COLOR] [COLOR="Green"][B]jQuery[/B][/COLOR] [COLOR="Red"][B]dojo[/B][/COLOR] and many more....... I don't have any knowledge of any of above all. I am going to start from scratch. But which one to choose …

Member Avatar for ejosiah
0
52
Member Avatar for dave_nithis

When you type [url]www.google.com,it[/url] will take you to [url]www.google.co.in[/url] or [url]www.google.co.uk[/url] based on your country.Similarly I want to do for my web site.Can anyone give me simple and easiest way to do this?

Member Avatar for ejosiah
0
62
Member Avatar for theighost

Hello, I have this script for an ajax slideshow. I made the functions and they are working perfect in Firefox, but in IE they are not working? could the error be when I call the functions, or might it be the functions themselves here are the functions [CODE] function isIE() …

Member Avatar for theighost
0
95
Member Avatar for 88omar

Hello there am having a little problem i am trying to add some validations to this from i made the form using tables however its not being color coded and when submitted its not checking the appropriate validations? any body can spear to look at it please. [code=Javascript] <html> <head> …

Member Avatar for 88omar
0
87
Member Avatar for veledrom

Hi, Code below doesn't add new innerHTML into table cell. When it adds it should run other (slideOther.js) file but, doesn't work. Thanks [code] <html> <head> <script type="text/javascript"> function startSlide() { el=document.getElementById('productsBigCell'); el.innerHTML='<script>var slide1foldername="";</script><script src="slideOther.js" type="text/javascript"></script>'; } <script> </head> <body onLoad="startSlide();"> <table border="0" cellspacing="0" cellpadding="0"> <tr> <td id="productsBigCell" colspan="5">&nbsp;</td> </tr> …

Member Avatar for veledrom
0
110
Member Avatar for Remulon

Hi I have an AJAX script which is used for a "live search" type function. When a user begins to type their search, after 3 characters, my AJAX script jumps into action and shows them a list of possible results. I has worked fine for months, and now suddenly I …

Member Avatar for sillyboy
0
58
Member Avatar for yssirhc

Background - this code adds & deletes file inputs from the screen as well as adds & deletes them from an array that will be used in the uploading process. I'm having trouble splicing the correct value from an array. In the remove function, I think it is always removing …

Member Avatar for digital-ether
0
100
Member Avatar for cronodevir

I have reinstalled serveral times for diffrent reasons, one of them being that javascript links all the sudden stopped working with no change in computer settings or software. Sence then, they have never worked, even after numerous reformats. I have the latest Firefox and IE, and the latest Java Enironment, …

Member Avatar for joshuastaple
0
400
Member Avatar for samarudge

Hi, I have the following Javascript code for loading my Google custom search: [CODE=javascript]Search = '<form action="http://www.ututorial.net/search" id="cse-search-box"><div><input type="hidden" name="cx" value="partner-pub-3996237323979957:tenb6ft9bbh" /><input type="hidden" name="cof" value="FORID:10" /><input type="hidden" name="ie" value="ISO-8859-1" /><input type="text" name="q" size="31" /><input type="submit" name="sa" value="Search" /></div></form><script type="text/javascript" src="http://www.google.com/coop/cse/brand?form=cse-search-box&amp;lang=en"></script>'; function set() { document.getElementById('Search_Content').innerHTML = Search; }[/CODE] This works fine …

Member Avatar for almostbob
0
142
Member Avatar for shadiadiph

this seems to work but the new window doesn't resize and none of the attributes are working? [code] <form name="login" action="secure/checkuser.php" method="post" target="mywindow" onsubmit="window.open('mywindow','width=400,height=300,toolbar=no,location=no,directories=no,status=no,menubar=no,titlebar=no,scrollbars=yes,copyhistory=yes,resizable=no')"> [/code]

Member Avatar for leroi green
0
254

The End.