15,700 Topics

Member Avatar for
Member Avatar for diafol

Hi all. Am messing about with an ajax form at present which loops through records in a DB. This is my issue: I have a reset image link in my form (called "file_edit") which calls a 'confirm reset': [CODE]function reset() { if (confirm("Reset? You'll lose any changes!")) { document.file_edit.reset(); } …

Member Avatar for liamfriel
0
132
Member Avatar for Spikae

am using an example of tooltips from [url]http://www.dynamicdrive.com/dynamicindex5/stickytooltip.htm[/url] on [url]www.euroworker.no/order[/url] I have this code here to work with, but it just doesn't seem to work correctly, I've tried everything I can think of. It's not a problem with the Smarty or html, css as far as I Can see, when …

Member Avatar for Spikae
0
235
Member Avatar for nccsbim071

I built an ajax chat in one of my mvc website. everything is working fine. I am using polling. At certain interval i am using $.post to get the messages from the db. But there is a problem. The message retrieved using $.post keeps on repeating. here is my javascript …

Member Avatar for nccsbim071
0
344
Member Avatar for Hitman908

I'm trying to add a java multi level drop down menu but im having trouble adding it. If someone can walk me through it, i would appreciate it.

0
71
Member Avatar for Hitman908

Im trying to add something to my web site, where a person can upload a file and i receive it through the email. how can i do that?

Member Avatar for Airshow
0
73
Member Avatar for Ragnarok

I have been picking up little bits of JavaScript for a while now and I can do a lot of basic scripts like disjoin (sp) rollovers and redirects and stuff. Now I want to be able to create advanced scripts like games and advanced form handling things. I find that …

Member Avatar for Airshow
0
242
Member Avatar for Zurompeta

Within a function, I am creating a new variable that contains an HTML element. The variable declaration works fine in Firefox for example, however it comes up "undefined" in Google Chrome. [CODE]function updateName(num) { name = document.getElementById("id_name_"+num); } [/CODE]

Member Avatar for Airshow
0
116
Member Avatar for Designer_101

Hey I was wondering how you allow the user to highlight text they've typed (in a form) and click a button to edit its style (placing tags around the highlighted text). Could someone explain this a little further and perhaps provide an example. Thanks in advance.

Member Avatar for Designer_101
0
103
Member Avatar for degenz

i am having a problem where i want to give user an option to select more entry from one dropdown...example : <form name="form1" method="post" action=""> <label> <select name="service" id="service"> <option value="service1">service 1</option> <option value="service2">service2</option> <option value="service3">service3</option> <option value="service4">service 4</option> <option value="service5">srvice5</option> <option value="service6">service 6</option> </select> </label> </form> in this case, …

Member Avatar for katarey
0
118
Member Avatar for dabobrow

Modal not showing up when show is called, also error on loading page. Attaching code below, can anyone help me discover my syntax / logic issues here? NOTE: Did some research on this before posting, some claimed it can be an issue of where the modal is placed on the …

Member Avatar for dabobrow
0
89
Member Avatar for davidm23

Hey Guys, Please help me out. We were re-designing a web page. When we tried to edit the contact us page its popping out an unwanted message. Actually there is no change except the design from the previous version ([url]http://newgenresoft.com/contact.htm[/url]) both are working in the right way. But this popup …

Member Avatar for Airshow
0
77
Member Avatar for Bobon

Hey guys, new to javascript. I was just wondering could you point me in the right direction as to where i might be going wrong. Please see code below. [CODE]<%@page contentType="text/html" pageEncoding="UTF-8"%> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>JSP Page</title> <script language="JavaScript">function …

Member Avatar for Bobon
0
168
Member Avatar for nelliott10

I can produced a small function using JavaScript, which adds a new table row upon a button click, however, I am unsure how to get values into the dropdown menu. Is it possible to obtain the values from a sql database? Any help would be much appreciated. My existing code …

0
59
Member Avatar for kammphoto

I am trying to dynamically create a table using Javascript. I will start by telling you what i have done. I am modifying a html page that has picture thumbnails on it. I drag the thumbnail pictures to a drop box. The pictures are added to an array. When a …

0
47
Member Avatar for fsmaniaka

Hello there I am a fairly new in MySQL/PHP/Javascript programming. I'm writing a web based gymnast profile management system for my final year project. Here's my problem. I have 5 MySQL InnoDB tables: [B]tests[/B], [B]testunits[/B], [B]points[/B], [B]testsgymnast[/B] and [B]gymnast[/B] I am able to retrieve a selected test which has particular …

Member Avatar for cwarn23
0
229
Member Avatar for stockton

Is there a method one could use in either HTML, CSS or Javascript to resize an alert box? If this is not possible could one create one's own window that looks like an alert/confirm box but is resizeable? I also need this window to be always on top, no matter …

Member Avatar for jet1337
0
118
Member Avatar for Pleasant Day

I'm having some trouble with some code, I found a script that makes a countdown then sends you to another page, I like the script a lot, I tried editing it to change its look, in this case its font, does this look right to you, I notice its colour …

Member Avatar for Pleasant Day
0
160
Member Avatar for lacialec

To create the page page2.html which will have blue text shadow button. Moreover, by clicking on the button to change color and direction of the shadow. When your cursor is over the button text should be dug ("Inside"), and when the cursor is over the button's text should be "out" …

0
39
Member Avatar for achiman

I am using this code to validate a form to check that only numbers have been entered but when I enter alphabets the javascript raises an error but still submits the form. So please can anyone tell me where I am going wrong. [CODE] <script type='text/javascript'> function isNumeric(elem, helperMsg){ var …

Member Avatar for achiman
0
111
Member Avatar for Jeyush

I write javascript for image slide show. [CODE] var mygallery=new fadeSlideShow({ wrapperid: "fadeshow1", //ID of blank DIV on page to house Slideshow dimensions: [380, 469], //width/height of gallery in pixels. Should reflect dimensions of largest image imagearray: [ <?php $q2 = mysql_query("select * from home_flash"); $i = 0; while($res = …

Member Avatar for Airshow
0
97
Member Avatar for kiransadani

Hi I am developing an online admission website for my project....I hv a table in php page with 2 columns(student id, student name)...when some1 clicks on any row, then the detail information of that student should be retrieved from mysql table n result should be displayed in the form of …

Member Avatar for Krstevski
0
1K
Member Avatar for Ryujin

Greetings! I'm trying to make [URL="http://faculty.kutztown.edu/rjensen/charcoun.htm"]this tool[/URL] for some fellow librarians who answer questions via text messaging. As you see beneath that page's text box, the catch is that the PC-to-SMS client treats the forward slash as [I]two[/I] characters. I'd like if possible for the JavaScript character counter to recognize …

Member Avatar for Ryujin
0
388
Member Avatar for sicoev

I would like to use Galleria to display photos on my website but I'm having trouble getting it to function. I don't know an awful lot about html but I think I've followed the instructions correctly. I would like my gallery to function something like this: [url]http://monc.se/kitchen/stew/galleria/index2.htm[/url] but right now …

Member Avatar for sicoev
0
95
Member Avatar for hallinan

I have a drop down box which is working but I want to put it on the same page twice because the document.drop_list.? is hard coded it will not work if I try and use it twice on the same page I have tried sending the id to the javascript …

Member Avatar for hallinan
0
111
Member Avatar for albertkao

I like to have a sleep or delay function in javascript. The Prototype library 1.6.1 has a delay function. It is working well in Firefox or Chrome but not IE 7 on windows XP. Please help (I cannot use newer version of windows). [CODE]function sleep() { } sleep.delay(0.1);[/CODE]

0
75
Member Avatar for iandmac

Hi one and all, Have taken a look through the mass of other threads and whilst not covering what I need, certainly given me a dozen other ideas for other things, so definately not wasted hours but learning diversion, anyway sorry. I have been trying to utilize a pre existing …

Member Avatar for iandmac
0
225
Member Avatar for cfHutton

Hi all, first time post here. I'm using jquery/ajax to create some links with window.open method. Here's the relevant code: [CODE]$("#content").empty(); $.ajax({ type: "GET", url: "webapps.xml", dataType: ($.browser.msie) ? "text" : "xml", success: function(xml){ var newXML = parseXml(xml); $("#content").append('<h2>'+ cat + '</h2>'); $("#content").append('<div id="appLinks"></div>'); $(newXML).find("APP").each(function(){ <!-- alert("before if"); --> if …

Member Avatar for cfHutton
0
175
Member Avatar for anish5000

Hi, I have a page in which the code is as below: <%@ taglib prefix="s" uri="/struts-tags"%> <s:url id="delete" action="delete" > <s:param name="proj.id" value="id" /> </s:url> <s:a href="%{delete}" onclick="return confirm('Are you sure?');" theme="ajax" notifyTopics="selected_Project" formId="projectForm">Delete</s:a> Now the issue over here is, when i click on the delete button i get a …

0
55
Member Avatar for ramjeev

Friends, Can u suggest me some good sites and tutorials to start Extended JS (Java Script) ? --Thanks ramjeev

0
71
Member Avatar for chathuD

guys i am new to java scripts and these days iam following some tutorials on w3school and lynda. i have a big problum on classes on Jscripts. this is my code [CODE]<html> <body> <script type="text/javascript"> //Write a "Good morning" greeting if //the time is less than 10 var d=new Date(); …

Member Avatar for chathuD
0
153
Member Avatar for nelliott10

I have produced some code which adds a table row on a button click, which can be seen below. However, I would like the new row to be added at the bottom of the table instead of the top. How can this be achieved? [CODE]function addRow() { //add a row …

Member Avatar for nelliott10
0
4K
Member Avatar for phoenix_dwarf

Im doing some stuff in the code behind page and then putting that data into javascript respectively. This javascript is then connected to the asp.net page with a literal control. I.E. [CODE] StringBuilder sb = new StringBuilder(); sb.Append("<script type='text/javascript' src='http://www.google.com/jsapi?key=ABCDEFG'></script><script type='text/javascript'>google.load('maps', '2'); ...SOME MORE CODE HERE.... }"); sb.Append("function createMarker(point, htmlSTR) …

Member Avatar for phoenix_dwarf
0
596
Member Avatar for MDanz

i have two frames. the bottom, which is my domain. the top which is an external domain. i'm trying to make a bookmark script, which bookmarks anypage in the top frame. But i can't retrieve the top frames url becuase of the same origin policy. the top frame is called …

Member Avatar for Airshow
0
75
Member Avatar for sojanjose4u

well am not very sure of displayign messages as if in light box. been useing javascript alert can some one explain how her eon this site when a user enter the site we get a light box style page displaying sign in to use maximum of daniweb .how to do …

0
47
Member Avatar for atar

Hello to all the fellows!! Here is a great site that is excellent for studing web development. this site is suitable for all the levels from beginers to experts and the best thing is that all for FREE!!!! Visit here: [url]http://www.w3schools.com/[/url] Best regards! atar.

0
71
Member Avatar for jino

Dear, I am doing a site for chatting application. How can i detect the other person start typing for displaying he is typing... I also want to display an (alert) , what i mean is , if we typed a text and go to an another tab and if we …

0
62
Member Avatar for amithks

Hi :-) my browser is not able to access the javascript of css file from the location. Its saying What might be the reasons <p> The requested URL was not found on this server. If you entered the URL manually please check your spelling and try again. </p> I dont …

Member Avatar for Graphix
0
137
Member Avatar for johny321

Is there difference b/w Javascript & JSP. are JSP is the abbreviation of Javascript. In my point of view Java is totally different from Javascript. There is slight confusion about Javascript &JSP. Can any one explain it

Member Avatar for manoharsingh
0
126
Member Avatar for cloud09

I have a form that "activates" the submit button; switching a greyed out version that does nothing for the working one, when all the fields are correctly filled in. The problem arises in IE 7 when the submit button is supposed to be activated. The greyed one disappears, but the …

Member Avatar for cloud09
0
133
Member Avatar for gangsta1903

Hello, I am trying to write a simple javascript to read all forms. My ReadForm function works right. I tried it out of ReadAllForms function, there is no problem with it. I think document.getElementsByTagName returns false. Why can this happen? [CODE=javascript] function ReadAllForms() { if (document.getElementsByTagName) var myforms = document.getElementsByTagName("form"); …

Member Avatar for PierlucSS
0
203
Member Avatar for gunnarflax

Hi! I'm trying to create a file browser - similar to windows explorer but for the web. I want to be able to move a file into a folder and for this I'm using the jQuery UI library. The code I have so far is this (I haven't made any …

0
67
Member Avatar for loligator

IE tells me there's an error on line 17, which is the onload method of the body tag. So here's the code... [code] <script language="javascript" type="application/javascript"> function startUp() { setFocus(); } function setFocus(){ document.frmSearch.txtSearch.focus(); document.frmSearch.txtSearch.select(); } </script> [/code] And here's how it's called: [code] <body onload="startUp();"> [/code] I tested this …

Member Avatar for loligator
0
2K
Member Avatar for albertkao

To ensure my program keep the client preference after page refresh, do I do this: [CODE]var value = Cookie.get('key'); if (value == null) { // get the client preference // ... // save the client preference Cookie.set('key', 'uservalue'); } // use the client preference[/CODE]

0
68
Member Avatar for saiprem

Hi All, I am trying to add a an element(Select Box and added a function in onChange) through Javascript, which is working fine in IE6, IE7, FF and Opera. But i am failing in IE8. If anyone has come accross this issue please help me. here is my code [code=javascript] …

Member Avatar for Airshow
0
159
Member Avatar for pavankumarupper
Member Avatar for akabir77

I am very new to this and trying to call a method which will update the record depending on the check box user clicks. now my jsp looks like this [CODE] <input TYPE="checkbox" name="<%=as.getAppId()%>" id="<%=as.getAppId()%>" <%=((as.isStatus()==true)?"CHECKED":"")%> onClick="update('<%=as.getAppId()%>')" /> [/CODE] and the scripts [CODE] function update(appId) { var stat = eval("document.getElementById(appId)"); …

Member Avatar for akabir77
0
70
Member Avatar for ClaudeVernier

Hello, I have started to work on a new implementation of a shopping basket, some of it is not working as I would like it to do and so, I thought I could ask for an advice. I have included the full HTML page in a ZIP attachment, it is …

0
24
Member Avatar for happygeek

The MIX10 Microsoft Developer Conference is always good for a laugh or two, but just who was rolling on the floor after the IE9 preview code was revealed? Certainly Microsoft is deadly serious about Internet Explorer: The Next Generation. So serious that it has apparently created a new development team …

0
593
Member Avatar for sam023

i need javascript for a textbox which allow only alphabet and first letter becomes capital on keyup..!! any help will be appriciated..!! thanks.!

Member Avatar for chandsir
0
134
Member Avatar for Bubbleboy

I wrote a code that i want to fade a <div> tag with. Here's the <div> tag. [CODE]<div id="about" onmouseover="fadein('about');"><li><a href="">About</a> <ul class="navbar" id="aboutoptions"> <li><a href="aboutus.html">Us</a></li> <li><a href="aboutproj.html">Projects</a></li> </ul> </li></div>[/CODE] Here's my java code. [CODE]function fadein(objectID){ object = document.getElementById(objectID); object.style.opacity = '0'; animatefadein(); function animatefadein(){ if(object.style.opacity < 1){ var current …

Member Avatar for hashinclude
0
173

The End.