15,121 Topics

Member Avatar for
Member Avatar for puvi

hi, to validate the name entered by user, i am using this expression "/^[a-zA-Z, ,]/". The name should contain only alphabets and space, if anything other than these two appear in the string, it should output alert msg. Is this expression correct? it is working fine only when numbers are …

Member Avatar for puvi
0
112
Member Avatar for kiranbvsn

HI, I am using Ajax,Jquery in my web application, the problem i am facing is, when i kept my page idle till the session expires and then if I click on any buttons above javascript exception is coming and page freezs with out doing any functionality such as OnselectedIndexChanged of …

0
54
Member Avatar for mai03002

Task 1 - DHTML in the example that you could show English and Swedish text, hold the pointer over two different links. This example illustrates the principles behind DHTML, but you will certainly find weaknesses: • When the page loads first time, both English and Swedish text. • When you …

0
53
Member Avatar for subhankar02dey

I have a div tag, I want to print the content of it. I have done it using Java Script, but I am not getting the styles applied to different texts or textboxes into printout. I want to get the print with CSS styles. How to do it using Java …

Member Avatar for Airshow
0
103
Member Avatar for MARKAND911
0
68
Member Avatar for mbarandao

Hello: I'm using this script as an auto resize function for an iframe, but can't get it to work [U]in safari. [/U] [CODE] <script type="text/javascript"> <!-- function calcheight() { var the_iframe = document.getElementById('paymentHistory'); var the_document = (the_iframe.contentWindow ¦¦ the_iframe.contentDocument); if(the_document.document) the_document = the_document.document; var the_height= the_document.body.scrollHeight;} //--> </script> [/CODE] to …

Member Avatar for mbarandao
0
197
Member Avatar for nickles

Hi, I've built a login box that uses ajax to verify a user's account. If something is wrong (ie. password and username don't match) it spits an error message out underneath the password field. I have two questions: 1. How can I get the box to resize automatically to fit …

0
70
Member Avatar for genzoman

Hi, all. This is using jquery by the way. I have a list of ethnicities on a form for a person to enter that are checkboxes. One option is 'Other, specify'. When 'other specify' is checked, I would like a text box to pop up and disable the other boxes …

Member Avatar for genzoman
0
654
Member Avatar for 2brite

HELP Please - I have hit a wall in trying to get the following perl created web page to work correctly. It is designed to find all the pictures (.jpg) in all folders below the designated one and to then display them in individual slideshows. I have a version of …

Member Avatar for mitchems
0
120
Member Avatar for Archenemie

I have been tasked to learn basic JavaScript as part of my collage coarse, and i've taken this section if code from the W3C website and commented it out. Is my interpretation of what this script is doing correct? Im using this script as an example of how JavaScript can …

Member Avatar for Archenemie
0
115
Member Avatar for sanchow

Hi, I am trying to use AJAX to do a simple thing of displaying the results in the same page. Clicking on the <a href tag should display the results in the same page. This is working correctly in IE but the onclick() function is not working in firefox and …

Member Avatar for Airshow
0
1K
Member Avatar for ganeshhsk

Write a program to find and print how many times the number 8 occurs in an array A. The array A should take as input as many values as the user wishes to enter. I tried this program......but still i didnt fix the problem. i wants to know the program …

Member Avatar for pritaeas
0
42
Member Avatar for murphs

<html> <head> <title></title> </head> <body> <table border="8" cellpadding="80" bordercolor="black" cellspacing="0" frame="border"> <tr> <td width="50%"></td><td width="50%">Welcome</td> </tr> <tr> <td width="50%"></td><td width="50%">Client</td> </tr> </table> </body> </html> i need urgent help on div floats, this are my codes the only thing missing is a div float in the middle.please help me, i have …

Member Avatar for benqus
0
99
Member Avatar for Meriam

[CODE]<HTML> <HEAD> <TITLE>TMA 02 Q4(ii)</TITLE> <SCRIPT LANGUAGE = "JAVASCRIPT"> var loc; var weather; var name; loc = window.prompt('Please enter your location',''); weather = window.prompt(`Please enter the weather`,``); name = window.prompt(`Please enter your name`,``); document.write(`London`;` Snowing`;` Meriam`); document.write(`<BR>` + `See you soon`) </SCRIPT> </HEAD> <BODY> </BODY> </HTML>[/CODE]

Member Avatar for benqus
0
90
Member Avatar for ikari

I've been having problems with web browsing that I think may be related to Javascript. I use forum sites like [url]www.ernya.com[/url] and there I get logged out every few minutes/seconds. I've found that clearing my cache regularly seems to help a little, but it doesn't fix the problem. Other forum/avatar …

Member Avatar for benqus
0
185
Member Avatar for feoperro

Hi, I would like to set the dimensions of an iFrame according to the content inside. Please bare in mind that the content inside will be based on ajax, so it will change without the page reloading. Thanks, Ashton.

0
77
Member Avatar for pgmarco

My JavaScript code works in all browsers except ie, I am not sure why. Any help is appreciated, Thank you. Website is [URL="http://illcomputers.comyr.com/custom.php"]http://illcomputers.comyr.com/custom.php[/URL] Javascript File[URL="http://illcomputers.comyr.com/scripts/lowendcost.js"]http://illcomputers.comyr.com/scripts/lowendcost.js[/URL] JavaScript Code [CODE] function updatecost1() { const keymouse = 40; const Case = 55; var data = document.getElementById("data"); var seldata = data.selectedIndex; var cpu = …

Member Avatar for Airshow
0
1K
Member Avatar for Tcll

here's a little test I want to do: in the main html I simply want a text input, and a submit button... when I type something in the input and click 'submit', it calls a function that generates an html with: [CODE] <html> <head><title>JS Generated HTML</title></head> <body> //(text in input) …

Member Avatar for Tcll
0
145
Member Avatar for lf.gene

Hi. I have question regarding jquery. I would like to know is it possible to put two href into one therefore i can use two different css for one jquery? [CODE] <link type="text/css" href="css/ui-lightness/jquery-ui-1.8.6.custom.css" rel="stylesheet" /> <script type="text/javascript" src="js/jquery-1.4.2.min.js"></script> <script type="text/javascript" src="js/jquery-ui-1.8.6.custom.min.js"></script> <link rel='stylesheet' type='text/css' href='../fullcalendar/fullcalendar.css' /> <script type='text/javascript' src='../jquery/jquery-1.4.4.min.js'></script> …

Member Avatar for Airshow
0
104
Member Avatar for EZ Fanpage

Hai Fellow Developers, I have one problem and appreciate if any of you could guide me on this. I created a custom Paypal button with some Javascript and AJAX. Why with AJAX? Because the script have a coupon acceptance code where i need some validation using AJAX. The problem is …

0
108
Member Avatar for mbarandao

If the following function performs calculation [CODE] <script type="text/javascript"> function updatesum() { document.PaymentForm.newbalance.value = (document.PaymentForm.balance.value -0) - (document.PaymentForm.paymentamount.value -0); } </script> [/CODE] How do I incorporate above function and the one below into one to thus do the calculation and round the number? [CODE] <script type = "text/javascript"> function roundNumber(num, …

Member Avatar for mbarandao
0
91
Member Avatar for yopirates

hey! guys i am not able to use the attribute word-wrap:break-word; many ppl say its compatible only in css3 . :( i want to know an equivalent tag for that in css2 ..

0
92
Member Avatar for Ritesh_4

Hi Am currently attaching 2 files, but am concerned with the javascript file, whereby I want to make the transition of the slideshow follow almost same as the flash one, anyone can help me? Could not upload js files here so here's a link from which can download: [url]http://www.keepandshare.com/doc/2425411/example-zip-december-7-2010-10-31-am-3-5-meg?da=y[/url] Also …

0
75
Member Avatar for Ritesh_4

Hello Just like we have some addons which enable us to download flash movies from webpages in firefox, is there a similar tool which can download javascript animations from webpages?

Member Avatar for Ritesh_4
0
92
Member Avatar for luke noob

this is my code... [code=javascript] $(function() { $(".Like").livequery("click", function(e) { var ldl_session_id = $("#session_id").val(); var name = $("#commentName").val(); var ldl_id = $(this).attr("id").replace("post_id",""); var parent = $("#display_like_names-"+ldl_id); // var parent = $(this); $(this).fadeOut(200); $.ajax({ type: "POST", url: "ajax_like_names.php", data: "ldl_post_session_id="+ldl_session_id+"&ldl_post_id="+ldl_id, cache: true, success: function(html) { parent.html(html); parent.fadeIn(200); } }); return false; …

Member Avatar for luke noob
0
786
Member Avatar for Helpjava11

Please Help I am trying to make a counter that when i click a button it adds .01 to a running total. Below is the code I have created but when i click on the button it adds one and deletes the bid button [CODE]<html> <form> <input name = "count2" …

Member Avatar for Airshow
0
140
Member Avatar for lf.gene

Hi all, Im currently working on a project that requires me to use jquery that i have never learnt before. I have downloaded the library online. How can i change the datepicker calendar to able to select multiple date at one time?

Member Avatar for lf.gene
0
57
Member Avatar for SBA-CDeCinko

I have a ScriptManager tag in my master template. This causes no issue for visitors who have Javascript disabled. As soon as I add EnableHistory="true" to support the saving of history points, Javascript disabled visitors get an error. How can I support both types of users?

0
59
Member Avatar for JustmeVSI

Hi guys. I'm still a newbie with ajax and I have a problem that I guess has a standard solution that I don't know. Here is the situation. I have my ajax navigation from page to page and I use jQuery and a POST method to send the information to …

Member Avatar for hielo
0
90
Member Avatar for druveen

Hi, I have to store all words in an array suffixed with @ in an string. For eg : var str = "Hello i @need help with @regexp"; \s@([A-Za-z0-9_]+\b) this regular expression gives me only @need not @regexp so please help. check this link... [URL="http://www.regular-expressions.info/javascriptexample.html"]http://www.regular-expressions.info/javascriptexample.html[/URL] might be helpfull thanks in …

Member Avatar for druveen
0
69

The End.