20,316 Topics
This is the script code i used for getting a slideshow of pictures.. can u help me with simple codes so that all these pictures can be retrieved from the database??? or let me know if i m getting wrong?? [code=JavaScript]<SCRIPT LANGUAGE="JavaScript"> <!-- Original: Mike Canonigo (mike@canonigo.com) --> <!-- Web …
Hi, in my project I'm using following javascript code to print my page [CODE]<script language="javascript" type="text/javascript"> function CallPrint(strid) { var prtContent = document.getElementById(strid); var WinPrint = window.open('','','letf=0,top=0,width=1,height=1,toolbar=0,scrollbars=0,status=0'); WinPrint.document.write(prtContent.innerHTML); WinPrint.document.close(); WinPrint.focus(); WinPrint.print(); WinPrint.close(); prtContent.innerHTML=strOldOne; } </script> [/CODE] Now question is that how can I know printing document is finished ?
I have a menu and I want when I mouseover them it change their color and style .Are the any suggestion?
Hello, I have this reservation form found on the main page of: [url]http://www.avis.com.lb/[/url] As you can see the current month "August" is selected as the default month and so is the year and day (the day is programmed to jump 2 days ahead for the renting of the car...) However …
if i have a java interface on a website and that interface contains a box where a user enters a string and then submits it. If I wanted to rapidly submit strings from a list I had (in a text file say), how would I go about doing this? I …
I was wondering if anyone could help me out with this issue. I am creating a basic function that will handle movement of an item that is absolutely positioned on a webpage (function moveElement). I begin with the onload event item which calls function prepare which calls function moveElement with …
here is my code [code]<input type="submit" class="button" onclick="window.open('http://wwww.christiancouriernewspaper.com/upload.html',Upload','width=400,height=400')" name="<?php echo $form_id; ?>" id="<?php echo $form_id; ?>" value="<?php echo $submit_text; ?>" alt="<?php echo $submit_text; ?>"<?php echo $x_or_h; ?>><br<?php echo $x_or_h; ?>>[/code] if you go to this page.. www dot christiancouriernewspaper dot com / blogbase / contactpage.php you will see the SUBMIT …
Hi all, I have a problem in javascript , ajax and jsp. Please see this url [url]http://xil.co.in/print_screen_2.JPG[/url]. I am working on this form. There are sum buttons (like submit , add ,edit at bottom of this page , but not visible in printscreen). On click of a radio button on …
Hey, I'm trying to create a dynamic drop down box where the first drop down box populates the second drop down, but it isn't working. I have two tables; pricelist with fields, -id -groupname -item -price groups with fields, -id -groupname I've got the code and to me it looks …
Hey I am trying to know what is the value of of a check box (true, or false) but i cant seem to get it write [CODE] function getPrice(boxName){ alert(form1.Soft_Top_Cloth.checked) // Hard code box name it works alert(form1.boxName.checked) // passed threw variable not working } [/CODE] [CODE] <input type="checkbox" name="<%= …
Hi All, I need to cache some javascript variable values across the page. Consider page 1 has a javascript variable which holds some value and If the user take page 2 and clicks the browser back button the javascript variable value on page 1 will be lost. How can i …
Hi I want to include two sets of javascript on one page and in doing so one of the functions stops working. Here is the scripts I am trying to use: 1. [code]<script type="text/javascript" src="slider-js/jquery.js"></script> <script type="text/javascript" src="slider-js/easySlider1.7.js"></script> <script type="text/javascript"> $(document).ready(function(){ $("#slider").easySlider({ auto: true, continuous: true }); }); </script>[/code] 2. …
Hi, I have timer class and some classes use timer. but when i come back from timer with callback function, i can see this. properties. [CODE] function Timer(dName, dCallback){ this.timer = null; this.name = dName; this.isRunning = false; this.interval = 50; this.callback = dCallback; } Timer.prototype.Start = function() { this.timer …
I have an array of div elements that apparently is too long, but I need all the divs for my dragNdrop application. Could someone suggest a work around? The dragNdrop initialization is... [code=javascript] var elements=['div1','div2','div3',.....,'div400']; //Doesn't work properly var elements=['div1','div2','div3',.....,'div200']; //Works properly window.onload = function() { elements.each( function(item) { new …
Hello all, I have run into an issue with an JavaScript expand menu (you click a menu option a sub-menu shows, moving the other main navigation menu options down). Well I have designed a nice custom script to do just this. The problem is, how do I keep that sub-menu …
I am creating an classifieds section for the newspaper that I work for. I am able to get the ads to display and search them. I want to add a few features: Save ad Print ad E-mail ad Does anyone know how to do the Save Ad feature? Basically you …
hi guys? Im new to this so please bear with me. I have not seen a practical example of what I am trying to do so i'd appreciate any help I get. The code below contains a form with a number of fields. I am trying to query the database …
Is there a way to count the number of items in a option list? I have an alphabetical list and when you select a letter a select option list will populate with links. I would like to display to the user how many links are in the box. The code …
hi I have a freetextbox, a hiddenfield and a button on my web page. By pressing the button it insert the text from hiddenfield into freetextbox at current cursor position. I am doing this task using java script. when I run the webpage it give me Object required error. The …
Hi everyone I have an idea for something but not sure which method would work best to provide the desired result. Let's say I have a database up and running, storing data for 2 users (php and mysql). What I want to achieve is: having 2 clients on the page …
hello there, I 'm new to this, but I'll appreciate it if someone could help me with my script I'm writing a javascript that add's site to favortites. It works fine in IE but not in anything else. This is for a clients site who uses Mac and linux. I …
Hey there, I'm facing a problem with a calculator on my site, you can see it here: [url]http://axa.seomena.com/fr/calculez-vos-primes/calculez-vos-primes-assurances-medicales[/url] The problem is, when you choose the "number of family" whether you're a family of 1 or a family of 6 and more, (in the next step) if you choose anything but …
Hi All, I am fresh to php.Please help me in following scenario. I am trying to enable/disable a text by selecting 'Yes' or 'No' option of a combo box which is available on same page. Note: It should only work with 'Yes'/'No' option selection not with a submit button click. …
HI, i am new to JQUery and Ajax.I am trying to use the value returned from the Ajax call to the another Ajax call.. like [CODE] $.ajax({ type: "POST", url: "http://localhost/FormBuilder/index.php/forms/saveForm/", async: false, data: "formname="+formname+"&status="+status, success: function(msg){ //alert( "Data Saved: " + msg); getformid=msg; }//success });//ajax $("#fb_contentarea_col1down21 div").each(function() { //alert("Form …
hi i have one problem in my project what i m doing is populating the select box from data base. When user presses F3 button in select box, a pop up window will open which will allow the user to enter new value ,which will first go to database and …
[B]What it is now:[/B] I'm working on a personal blog because I'll be visiting Sweden for 4 months. I've found / hacked a script that allows the user to mouseover swedish words and have a static translation box show the translation. Working site at [URL="http://sverigejourney.tumblr.com"]http://sverigejourney.tumblr.com[/URL] The current code I use …
Hey, Man... I know this is so easy and yet I can't get this to work. I have a url that I want to pass a simple variable with: [url]http://www.somerandomsite.com/index.php?page=1[/url] Here's what I have on the destination page: [QUOTE] <?php $page=$_GET['page'];?> <?php header( 'Location: http://www.anotherrandom.com/?pid=$page') ;?> [/QUOTE] However, the destination …
Well, I'm doing pretty good with my WebChat application, but I was thinking to add some smileys! At first, I would like the app to auto detect the smileys in standard form from a given string and place the image in its place, but I came across the problem: how …
I am looking for an autofill script to use with with a point of sale system. We would like to hook a credit card reader to our computers and when we swipe the credit card it will autofill the customers information the fields so it does not have to be …
have a javascript in which i am trying to assign the value to a hidden field and getting the below msg 'document.Form1.H_ROWID' is null or not an object i am getting the value in the alert box but not able to assign it o teh control [code]alert("row " +M_ROWID) document.Form1.H_ROWID.value …
Hi, In the page I'm developing, I need a DropDownList where the items have CheckBoxes beside them. I found a lot of different suggestions on the internet about how to do it. Some suggest to use a ChebkBoxList, javascript and css and make the CBL looks like a DDL (a …
Hey; i have a table and rows. For example two texts In one row my text is "Helegelemere" In another row my text is "More" But in my JSP page they don't seem identical. For example It looks like Helegemere More And because of after every word i have a …
Hi Friends... I developed web application which contains script validations in most of the html pages in these validations i used document.forms[0] its working fine in IE , but my problem now i need to execute this application in FireFox browser,but FireFox is not supporting document.forms[0], so please tell me …
OK- this code is working just fine on Firefox. this is what's suppose to happen: you go to the website, a pop-up comes up, you click the pop-up and another window opens up to register for site.. see it here www . christiancouriernewspaper . com / popuptest.html (try in both …
Hello Everyone, I had a small problem in my page. There are some select menus that the user can select and there is a download button which on click should allow the user to download a file based on the selected options...I used the following code under the onclick event …
in my application i am using Ajax post like [CODE] $('#fb_contentarea_col3 #fb_contentarea_col1down2 #saveForm').live("click", function(){ if(!$("#formName").val()==""){ if(saveDraft=='on') status="Incompleted"; else status="Completed"; var formname=$("#formName").val(); $.ajax({ type: "POST", url: "http://localhost/FormBuilder/index.php/forms/saveForm/", async: false, data: "formname="+formname+"&status="+status, success: function(msg){ getformid=msg;//returned FOrm id is saved in the JQuery variable }//success });//ajax $("#fb_contentarea_col1down21 div").each(function() { alert("Form id "+getformid);//alerts me …
Hello guys, I don't know if there is already a solution for this but I'm having a lot of problems with re-loading the Ajax div tags. At the moment I have two div tags in my main index.php file, called "flowchartDiv" and "buttondataDiv". Now what I'm trying to do is …
Hi All, I hope someone can offer some help / advice. I need to plot a fairly simple line chart/graph, using some data generated previously from another Java program (run from the console) that is output to a text file. I'm really struggling trying to produce a viewable line chart/graph …
I am trying to download the full videos behind this flash player. Please investigate. Thanks! HTTP link: [url]http://www.3dbuzz.com/vbforum/simplevideo.php?v=2064[/url] [CODE=javascript]<html> <head> <script type="text/javascript"> window.focus(); </script> </head> <body> <div style="position:absolute;left:0px;top:0px;width:100%;height:100%;" id="container"> </div> <script type="text/javascript" src="/vbforum/swfobject.js"></script> <script type="text/javascript"> document.getElementById("container").innerHTML = '<a href="http://www.macromedia.com/go/getflashplayer"><img src="/images/sx/youneedflash480.jpg" width="640" height="516" border="0"></a>'; /*var s1 = new SWFObject("http://www.3dbuzz.com/vbforum/mediaplayer4.swf","mediaplayer","100%","100%","9.0.124.0"); s1.addParam("allowfullscreen","true"); s1.addVariable("file","2064&q=0.mp4"); …
i am very new for ajax..can anyone send me the link or material to learn ajax plz
I have been trying to get this form to work but it just dont seem to work. The buttons does nothing but keeps pointing to the same form. This is for the mozilla browser. Did I miss something? [code=html]<html> <head> <title>Admin</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <link href="../_assets/skin/cms.css" rel="stylesheet" type="text/css" …
Hello all, I've submitted something similar in the asp.net forum so if you frequent both you'll see it in both places. I'm curious if javascript or ajax can help us accomplish some of our tasks, here is the post in the other thread: Hello all, I'm a bit newer and …
Hi,I have maybe stupid question but are anyway to build "forum" on javaScript or Html without using SQL or ASP maybe there is way client send his information directly to the page? Thanks,Sergey
I want reset user choice of radiobutton here is my code [CODE=javascript] form action="mailto:meerovichsergey@gmail.com" method="post" enctype="text/plain"> <fieldset> <legend>Your opinion</legend> <input type="radio" name="choice" id="op1" value="All was perfect ,answer to all question." >  All was perfect ,answer to all question.<br/> <input type="radio" name="choice" id="op2" value="Arcticle is good,but there are a things to …
hi I have a textbox and i want when i type on it my textbox read it in many langueges how is it possible? plz with code snipped
I wrote this code bellow but it doesn't work how I get to [B]bgcolor[/B] of [B]tr[/B] tag? [CODE][COLOR="Red"] <table id="menutable" name="table1"> <tr onmouseover="ChangeCol()" id="tr_1"><li><a href="main.html" name="main" target="main">Main Page</a><br/></tr> <script language="JavaScript" type="text/javascript"> <!-- function ChangeCol() { var col="#998800"; document.menu.tr_1.bgcolor=col; } //--> </script> [/CODE][/COLOR] thanks.Sergey
I'm having an issues with this script from my own debugging it appears that the readyState is doing the following 1 ... 4 ... 1 ... 4 the second time it appears not to have any response so I end up seeing my content shortly (if all my debugging alerts …
I am new to AJAX. that's why I ask it to you. i search it in daniweb and google but i decided ask it. anyway, my question is : how can i dropdown list from database like google. I want to use it in searching the word in a dictionary …
I really am stumped by this problem and would appreciate some help.. I am tryiing to build a site on a computer running Wiindows XP and using, mainly, FrontPage 2003 although I have also used Notepad to try and solve a problem that has arisen. The problem is that IE6 …
The End.