17,114 Topics

Member Avatar for
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
132
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
171
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
210
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
187
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
65
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
98
Member Avatar for PetrQ

Hello everyone, I´m newbie in PHP and I can´t solve following problem. My code contains form of unknown number of rows. I add it using jQuery class ( clone the last row ). I wanted to use array. Write out complete form for confirmation and insert it i. e. as …

Member Avatar for cloudgen
0
940
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
411
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
73
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
842
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
287
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
190
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
200
Member Avatar for dangari

Hi all.Am new to this forum so cut me some slack if I don't articulate my problem with utmost clarity.My problem is that I have a javascript function such as: function modReg(x,y) { <!-- var answer = confirm ("Do you really want to deregister user" +x+"?") if (answer) { document.leo["id"].value=x; …

Member Avatar for dangari
0
164
Member Avatar for Terry56

Hi to all, Hope you all are fine.I have a javascript to check whether java is installed or not on your system.The code is [code=JavaScript] <body> <script language="Javascript" type="text/javascript"> if(!navigator.javaEnabled()){ alert('Enable your java to expeirience this java enhanced page or\n try install it...'); location.replace('http://java.sun.com'); window.open('instructionsforintallingjava.html'); } else{ document.write('<applet watever></applet>'); } …

Member Avatar for Terry56
0
189
Member Avatar for Ghostenshell

New to JavaScripting and copying information out of a book. I understand the concept of the code but I do not know why it is not working. I can type info in both boxes but the information does not add. Tried it in three browser FF, IE, and Chrome. [CODE]<html> …

Member Avatar for Ghostenshell
0
115
Member Avatar for filch

Ho, I am building a large registration form. In this form, a sponsor/educator must register himself or herself and then may add up to 6 more " delegates" in pairs. The first two pairs registration info on the form is shown by default. I need to hide the other two …

Member Avatar for filch
0
133
Member Avatar for matthewl

When I looked at Get started tutorial at Jquery.com I thought that it took more code in the Get started tutorial then it would just writing it myself. I really did not see any pros so I am asking this question. What are some advantages Jquery has? I just want …

Member Avatar for serkan sendur
0
55
Member Avatar for eligmatic

I have this script: [url]http://snipplr.com/view/19692/g-or-y-search-hilite/[/url] but it won't search for chars like ')' . How should I adapt it? Thanks.

0
74
Member Avatar for thegreatdanton

Im having a problem trying to combine a datepicker with a form that is displayed with a lightbox. With out the lightbox effect, the form works with the datepicker. when the lightobx effect is implemented, the datepicker will not work. below is the code for the form with the date …

Member Avatar for thegreatdanton
0
99
Member Avatar for gk0110

Hi all , I have to sort a table where few columns are dynamically generated .I searched the net and came out with sorttable.js included in my jsp file . then called this function in <body>onload event as initTables('id_of the table"); It was working out for me.. But with some …

Member Avatar for SAMAEL
0
81
Member Avatar for deadmancoder

hello all, i am new to ajax.. unfortunately, i was given an assignment before i complete ajax.. i need help, someone pls direct me where i can learn to solve the following thing!! Consider a web page has 3 frames, the top has the header, the left has the actions …

Member Avatar for Thirusha
0
119
Member Avatar for jaid_3k

Hi this function is to add a Note to the database. Now I want to remove the Note when there is no text available in the Note. I am unable to delete the row from the database and so the next time when the page loads the Note reappears. Kindly …

0
64
Member Avatar for kwesiaryee

Hi there, Can some one help me with the following problem. I need to pass the date to 2000-02-02 date format so that mysql will accept it. The following code is as follows; [CODE]function checkdate() { var begDate = new Date(document.demoform.now.value); var endDate = new Date(document.demoform.later.value); var difDate = endDate.getTime() …

Member Avatar for kwesiaryee
0
137
Member Avatar for wrestler05

I am trying to use a select box to store a list of responses, but I have a limited width of which I can use. I have set a width for the select box, but my responses are longer then the width so they are getting cut off. I would …

Member Avatar for almostbob
0
391
Member Avatar for dskanth

Hi, iam a Bebo application developer, and iam posing a security issue with Firebug on my bebo application (an online game) online. The users are using firebug to cheat the game, and its driving me nuts. I see that Bebo uses SNJS as its javascript, and a normal javascript will …

0
73
Member Avatar for cwarn23

Hi and I have been looking around and found that google has a few search api's but haven't yet found one that returns the results as a javascript/ajax array. Is it possible to at least get the google api to send the results to my website as a variable/array in …

Member Avatar for cwarn23
0
190
Member Avatar for deadmancoder

using ajax/javascrtipt, how to browse for a folder and get *.xml files in the given folder path.?? :?:

Member Avatar for deadmancoder
0
77
Member Avatar for deadmancoder

how to parse an xml file using ajax and javascript? i know this is basics.. but couldn't get it the right way. could someone help me out..

0
63
Member Avatar for sunilsinha

I need to rotate text by 90, 180 and 270 degrees. How can i achieve this in firefox2. In brief, what i am doing is, there is one main container div whose background is set by 600x400 image. There are 4 inner divs each having some text. Now i have …

Member Avatar for rhand
0
175
Member Avatar for AdventDeo

Ok so I have two separate AJAX function that I want to combine but have no idea how. The first 2 files are to call up a table with cells in the form of text-boxes, and the last 2 files are linked dropboxes. What I want to do is to …

Member Avatar for AdventDeo
0
122
Member Avatar for InsightsDigital

Back even a few years ago, it was popular to use log files to ascertain web analytics. Now, most companies use a javascript tag that the web analytic tool picks up. Hence, do you still rely on logfiles? Or do you forget it even exists?

0
75
Member Avatar for itisnot_me

is it possible to run a command in javascript when someone paste text into a textarea? What i am trying to do is make a remove format command in the text editor run when they paste. And if it is possible make it run the command on the text without …

Member Avatar for Troy III
0
65
Member Avatar for Sereal_Killer

im busy with a school project to create a photo viewer type site with java script. the whole thing i being created from java script and im giving all the img's an ID tag how do i go about getting the id of the img that i have just clicked. …

Member Avatar for Sereal_Killer
0
248
Member Avatar for jazzycontact

hi i don't know it is wright place for it or not. i am new in javascript programming. i am try to implement find and replace functionality. in it i want to search keyword in particular div only. not other part of the page. i have implement following code function …

Member Avatar for Troy III
0
132
Member Avatar for Chad Gary

[QUOTE]I'm currently using prototype framework to validate whether or not a field is has data. When the field is empty and the user hits the form submit button the intended alert message box comes up, but after you hit OK on the message box it submits the form anyway, which …

0
54
Member Avatar for Norbie

Hi guys, I have a coding problem here that I can't quite figure out. For a clothing website I need to display stock information for each product related to colours and sizes available. I'm using a mysql database to store information on what sizes and colours are available. The structure …

Member Avatar for Norbie
0
73
Member Avatar for PetrQ

Hello, please help me with following jQuery code. I'm javascript user only and I don´t understand it :( I use jQuery validate from [URL="http://bassistance.de/jquery-plugins/jquery-plugin-validation/"]http://bassistance.de/jquery-plugins/jquery-plugin-validation/[/URL] Following part of code is modified for array form. It works great for array in format: example[] . But I need use array: example[$i][quantity]. [CODE] //modified …

0
55
Member Avatar for Ashwin Vasnai

some body help me.I want to know how to put the dropdown list from database at my textbox cursor. full problem definition is like this. I want to create a Hint system for SQL which will give the structure of of Query. for example if user enters trigger he will …

Member Avatar for Ashwin Vasnai
0
140
Member Avatar for click here

my comments table <div id="1"><p>the comment</p> <a class="edit" id="1">edit</a> </div> i want when click on edit the textarea appear and save and calcel boton appear too and edit it

0
59
Member Avatar for al.nop

Hi All. I'm Developing on One project that Contains Just One Page(home.aspx) ! Home.aspx Contains ScriptManager , UpdatePanel ( A Div , Some LinkButtons that Load related UserControl ) in UpdatePanel. Other pages are UserControls(UC) that Load in a div placed in Home.aspx . Some user controls Contains javascript Codes …

Member Avatar for serkan sendur
0
64
Member Avatar for Chad Gary

I have the following PHP code, which uses server-side validation, which works fine. It the user leaves the text field empty it stores an error in a session array which is outputted on the page where the $_GET['id'] variable came from. I also implemented a snippet of javascript code that …

Member Avatar for ShawnCplus
0
134
Member Avatar for Altairzq

Hello I'm using this code I got from an example: [ICODE] <head> <TITLE>Creating a link</TITLE> <SCRIPT LANGUAGE="JavaScript"> <!-- function createLink() { var szURL = prompt("Enter a URL:", "http://"); if ((szURL != null) && (szURL != "")) { document.execCommand("CreateLink",false,szURL); } } // --> </SCRIPT> </HEAD> <BODY> <H1>Creating a link</H1> Here's some …

Member Avatar for Troy III
0
2K
Member Avatar for Yatendra_goel

I want to know how the integrated chat service on orkut pops up automatically. Is Orkut using javascript to call that service. The html source of the chat service and the page on which it appears is different. Then how is it possible to have two pages with diff. source …

0
44
Member Avatar for millsy007

Hi I am using the css image gallery I got from: [url]http://www.dynamicdrive.com/style/csslibrary/item/css-image-gallery/[/url] I want to change the behaviour, currently an image is enlarged when a user hovers over the link/thumbail. I would like to change it so that the main image is instead shown onclick of the thumbnail, and remains …

Member Avatar for millsy007
0
93
Member Avatar for servis

hello friends, i am searching a ajax captcha from some time which have following properties, - intimate user for wrong verification code without refresing ... 2ndly - if the user enters the right code, it process the form normally. unfortunately i could not find reqired script. please help me any …

0
70
Member Avatar for feoperro

Hi, I was wondering if there's a framework that can help me with the following: I currently have regex checks on html input fields that work 100%, I would like to also have a check to the database for duplicate records so that if the user enters an ID that …

Member Avatar for peter_budo
0
121
Member Avatar for Pleasant Day

Javascripts that I find on the net sometimes have pop up messages as part of the app / game, Id like to change the colors used in these pop ups, also Id like to get rid of the blue top bar we have in the pop up. See this image …

Member Avatar for ShawnCplus
0
215
Member Avatar for sassenach

Hi, I am using PHP & mySql to grab the title and description that I have stored in a table in the DB. I am trying to dynamically change the <head> <title></title>, as well as <meta name="Description" content="" /> . I used document.title to change the title. I see the …

Member Avatar for Troy III
0
818
Member Avatar for baburk

Help me to show the jquery confirm box. If I move the tags out of content panel it works well. http://www.clientsideasp.net/2009/06/16/showing-beautiful-message-boxes-in-aspnet-web-forms-using-jquery-impromptu/ By using the above site I wrote the code. But I use Ajax. Protected Sub babubabu_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles babubabu.Click 'If IsValid Then 'The …

Member Avatar for codejoust
0
185

The End.