15,700 Topics

Member Avatar for
Member Avatar for niche1

Can someone work createElement into this script to demo its use? I think the two can work together, but I don't know how. [CODE]<html> <head> <script type="text/javascript"> function myFunction(anid) { var cssatr = document.getElementById(anid).getAttribute('style'); // get the value of "style" var htmlanid = document.getElementById(anid).innerHTML; // get html code return ('css …

Member Avatar for niche1
0
122
Member Avatar for niche1

how do I get the css and the html into the function? [code]<html> <head> <script type="text/javascript"> function myFunction() { return ("Hello world!"); } </script> </head> <body> <div style="float:right;"> <script type="text/javascript"> document.write(myFunction()) </script> </div> </body> </html>[/code]

Member Avatar for niche1
0
123
Member Avatar for newbie14

Dear All, I have two pages with the similar codes. One is here [url]http://183.78.169.53/tm/addTyreSwap1.php[/url] in this page you have select the vehicle via the drop down list then a number of tyre will appear via the ajax call. The problem is that both the draggable and droppable is attached to …

0
78
Member Avatar for rouse

I am writing some learning code to convert an XML file to a JavaScript array. So far I can convert from XML to JSON with this: [code] <?php $xmlStr = simplexml_load_file("xml/galleryXML.xml"); $jsonStr = json_encode($xmlStr); ?> [/code] I don't know and can't find a way to convert to a JavaScript array …

Member Avatar for rouse
0
373
Member Avatar for extemer

what i am trying to do is when i click the div it decreases to width=100px and when i click it again it changes it to original size but i am getting the problem in the second part where i want to re size it to original size i known …

Member Avatar for Airshow
0
150
Member Avatar for fire eaters

when i click the link the the div is resized to 100px .. but again if i click i want to the the div to be same as before (800px) using the same sliding animation ..how can i do that [CODE] #ee{ border:1px solid #00F; height:100px; width:800px; position: absolute; } …

Member Avatar for extemer
0
113
Member Avatar for shashankit

I have a HTML table having currently 3 rows and 7 columns. here rows and column may increase in future. Row1.Column3.Value= Row1.Column1.Value + Row1.Column2.Value Row1.Column7.Value= (Row1.Column3.Value - Row1.Column4.Value - Row1.Column5.Value ) * Row1.Column6.Value It should be repeated in every rows. I did but my code traversing only with first ROW

0
44
Member Avatar for William Blore

okay, I've got another problem. How can I obtain content of cascade style, using javascript? I know, there's a code document.getElementById('id').style.border='5px solid blue'; for example, but I need to do reversed operation, not to change style, but obtain it. I hope I've described my problem clearly enough enough ;) Thanks …

Member Avatar for extemer
0
123
Member Avatar for Rahul V S

Hi, :) I am a newbie here and this is my first post. :?: I always wonder whether there is a better way of putting this or that or is there a work around for that, etc.... :idea: So, its better if we can have an uncluttered discussion topic that …

Member Avatar for LaxLoafer
0
95
Member Avatar for Lyandor

Hey guys, is there a way to get a node's name and assign it as a value to a variable using javascript? Here's an example structure of the xml. [CODE] <list> <student id="101"> <name>John Smith</name> <DOB>07-09-1987</DOB> <address>123 ABC street</address> </student> <student id="102"> <name>John Doe</name> <DOB>05-04-1986</DOB> <address>234 DEF street</address> <address2>345 GHI …

0
108
Member Avatar for rakwel10

Can I configure this function to make it print a certain pixel only? Around 500px X 700px Center. <script language="javascript"> ... function printpage() { window.print(); } </script> Is it possible?

Member Avatar for Airshow
0
156
Member Avatar for niche1

I have a html script with some JS and a php script that produces a comma delimited string of suggestions of first names to enter into an input field. It only works for "B" names right now. I need to turn this script into a combo box and can't think …

Member Avatar for niche1
0
164
Member Avatar for dwlamb

Good day, I've done some searching on this topic but am not sure if I am defining terms properly in order to get results. I am new to AJAX and can execute the process of dynamically adding some content. But I want to take it one step further for adding …

0
75
Member Avatar for Ajaxnewbie

Hi there! Okay, here is my scenario: I have a link and a div on a webpage. With the link I want to toggle the content (HTML) of the div. On toggle, I want to load the content from a PHP-file and I want it to load on the toggle, …

Member Avatar for LaxLoafer
0
160
Member Avatar for jonsan32

I have 6 horizontal navigation image links on top of my site. The regular images are black n white, but on the hover they transform to a colored image. Each image leads to a different page on my site, I'm wondering if I can make the image corresponding to that …

Member Avatar for shravan24
0
244
Member Avatar for tomjrjones

Hello i trying to create a little diary using jquery, i have a script where you enter in the textbox then it displays it in a div with a delete button. how do i make it so when i go back to the page the text is still the but …

0
94
Member Avatar for JDoggieIII

I am attempting to use a WebBrowser control in C# to display a webpage. I would like my C# application to know when a Javascript function is called within the loaded webpage. Is there anyway to do this? I can't seem to find an event handler for it.

Member Avatar for JDoggieIII
0
389
Member Avatar for krishna501

[CODE]<%@page import="java.util.Calendar"%> <%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%> <!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=ISO-8859-1"> <title>employee leave application</title> <script src="EmpLeaveValidation.js" type="text/javascript"></script> <style type="text/css"> #ehint { position: absolute; right: 230px; top: 18px; } #cnhint { position: absolute; right: 200px; top: 40px; } #chint { …

Member Avatar for ddymacek
0
137
Member Avatar for Virangya

Hi, i'm really new to jquery and i don't know how to solve this. i added following code to blink a div. initially mypopup div is hidden. and 10 seconds after page was loaded this div appears. because of this toggle() method div displays for 10 more seconds before hiding …

Member Avatar for ddymacek
0
271
Member Avatar for taylordsmith

Greetings, I am attempting to paste a javascript music player into my site from the developers at cashmusic.org. The music player displays and plays files correctly in the 'live view' display in Dreamweaver, but will not display at all in browser preview (Chrome & Safari). I have brought up Chrome's …

0
154
Member Avatar for ghost_from_sa

Hey guys, I was wondering if there is possibly an "onBlurr" or "onChange" way I can check using JavaScript if a Birth date is correct I've seen a couple but I have a pretty simplistic way about how I want to get it done. Basically what I would like to …

Member Avatar for jbennet
0
219
Member Avatar for Virangya

hi, i need to build a slider. which is not there in the page when it loads. then after few seconds it appears and slides from the right hand side of the window and stops at some position on the screen. then after few seconds it changes its image into …

Member Avatar for Virangya
0
186
Member Avatar for ghost_from_sa

Hi guys, I seem to have come across a weird issue in internet explorer. I've been working on doing regular expressions for a register form, and I've checked it in Firefox, and Chrome and it seems to work for both of them but yet it doesn't work for Internext Explorer …

Member Avatar for vibhaJ
0
253
Member Avatar for 54uydf

I added an editor from this site [url]http://dhtmlx.com/docs/products/dhtmlxEditor/index.shtml[/url] it works when I add words but when I click submit the text doesn't go through the POST how do I do this? I added a textarea like in one of the examples on that site, and another button that when clicked …

Member Avatar for AlexandraKl
0
327
Member Avatar for emulman

in a my page i have create che code for a modal dialog box in jquery: [CODE] <script type="text/javascript"> $(document).ready(function() { $('#dialog').dialog({ autoOpen: false, height: 280, modal: true, resizable: false, buttons: { OK: function() { $(this).dialog('close'); } } }); }); </script> [/CODE] i should want the window appears if a …

Member Avatar for emulman
0
1K
Member Avatar for DILO3D

I describe my problem with following simple example. here when i click the test button it will create a new test button inside div tag. But after that if i clicked new generated test button document.getElementById("test" ).onclick = function() is not working. how can i add functions to new dynamically …

Member Avatar for ko ko
0
2K
Member Avatar for Thisisnotanid

Hi all, I'm new to web development and am experimenting with different things; one of which would be creating a visually appealing "drop-down" menu. I had a simple CSS selector setup before but I opted for a JavaScript solution instead, making the change for the greater flexibility which the approach …

Member Avatar for Thisisnotanid
0
243
Member Avatar for ankit.pandey3

[CODE]<?xml version="1.0" encoding="[CONTENT_ENCODING/]"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="[LANG_CODE/]" lang="[LANG_CODE/]" dir="[BASE_DIRECTION/]"> <head> <meta http-equiv="Content-Type" content="[CONTENT_TYPE/]" /> <title>Micro Customer Care</title> <style type="text/css"> body { padding:0; margin:0; } </style> [STYLE_SHEETS/] <!--[if lt IE 7]> <link rel="stylesheet" type="text/css" href="css/ie5-6.css"/> <![endif]--> <script src="js/chat.js" type="text/javascript" charset="UTF-8"></script> <script src="js/lang/[LANG_CODE/].js" type="text/javascript" charset="UTF-8"></script> …

Member Avatar for ddymacek
0
178
Member Avatar for phaedrusGhost

Hi All, I am using a loop to display professionals and their data on a webpage. I have a "Recommend" button that is included in this loop and when clicked, displays a jquery POPUP form that will email the chosen professionals data. My trouble is, when I click the "Recommend" …

Member Avatar for ddymacek
0
163
Member Avatar for William Blore

Hello, I've get very elementary problem with javascript I add onclick option to one of paragrahps, but it doesn't work properly, It should display result of my new function, but it display result in a new, empty page. (My function work properly, but connecting it with onclick and button is …

Member Avatar for William Blore
0
118
Member Avatar for anupama385

I have entered value in a textbox and want it to be displayed in the form beneath.How should I do it?

Member Avatar for krishna501
0
292
Member Avatar for bookmark

Hi. I was wondering if there was a command that allows you to return to the beginning of the script. Let's say /pseudocode/ You ask for pass word if password is correct --> do nothing or just display a random message else if password is incorrect or no password is …

Member Avatar for bookmark
0
97
Member Avatar for johnnycho

I know from scouring the Web that this is a very common Javascript question, but I have a twist on the question which is giving me headaches, and I hope some of the brilliant minds here at DaniWeb can help show me the error of my ways. Say a user …

Member Avatar for vibhaJ
0
2K
Member Avatar for geekme

An assignment asks me to take certain details from user and then generate a passowrd and then the details should be sent to another page .How do I implement it using JavaScript?

Member Avatar for vibhaJ
0
69
Member Avatar for sawmya

Hi everyone,I would like to implement a drag and select feature in the page.I have tried to implement in the following url,but the javascript function work only for the mouse click. Here is the url of the page [url]http://pekas.lbclients.info/SchedulesWorkManage.php[/url] The working is as follows: The user have to pick one …

Member Avatar for peter_budo
0
191
Member Avatar for jonsan32

I want to list helpful instructions on my website for customers, specifically designed for them. I'd like for one of 16 images to appear below the 3 dropdown boxes, dependent on the values selected. The process can be instant or initiated with a submit button, but I'd like for the …

0
147
Member Avatar for Jeroen van Zijp

I have to build a small contactform validator in JS, which checks the fields' values when submit is clicked. I am experiencing problems with getting the email validation to work properly. This is what I've got: [CODE=js]function validate_form() { valid = true; // Validation of email input if ( (document.contact.email.length …

Member Avatar for MHENRU
0
239
Member Avatar for momonq1990

how can i change longitude and latitude of my google map? can i use javascript for that???? i made website with google map api and it works with default value for longitude and latitude...here is my concern, all i want is to change the location dynamically of my google map …

Member Avatar for pritaeas
0
88
Member Avatar for karthik_ppts

Hi frendz, Can we set a value for a session variable through javascript onclick event? (or) How can we set a global variable for the whole website using javascript?

Member Avatar for karthik_ppts
0
7K
Member Avatar for niconico96

Hello everyone. I'm an expert html5/css3 designer, but when it comes to javascript, I don't know anything... I need some javascript code that detects a browser engine (webkit, gecko, etc.) and redirects based on that. I need webkit and gecko to redirect to home.php and all others to redirect to …

Member Avatar for niconico96
0
235
Member Avatar for waaliban

Hello friends, I want to write a javascript to list of all files in a folder including files in the subfolders. This is for the scorm purpose to list all the files. some examples are listing files but not listing the files inside the subdirectories. I want the file's full …

Member Avatar for nudelsalat
-1
28K
Member Avatar for Joemeister

Hey everyone! I'm currently busy learning jQuery and developing a jQuery slideshow and I have a few problems just with the scrolling of the thumbnails of the images. I want to click on a thumbnail to show me a 'larger' version of it and the thumbnails must scroll with buttons …

0
75
Member Avatar for Behseini

Hi, I am trying to modify a contact form but I do not know why the Dropbox has been duplicated?! I think the issue comes from script.js but I do not know how to fix it?! Can you please take a look at the site: [URL="http://www.geoca.com/demo.php"]http://www.geoca.com/demo.php[/URL] as you can see …

0
51
Member Avatar for dashawk

Hi guys, I have a problem on getting the selected radio button and save it in the database. Here is my code: [CODE] <div id="container"> <div id="question1" style="display: inline;"> <p>Question 1</p> <ul> <li><input type="radio" name="q1" value="1" id="ans1" />Answer 1</li> <li><input type="radio" name="q2" value="2" id="ans1"/>Answer 2</li> <li><input type="radio" name="q3" value="3" id="ans1"/>Answer …

Member Avatar for cereal
0
256
Member Avatar for bsiness

Could Someone PLease Help Create Forums... Some Reference Codes PDFs? I don't owe a top-level domain just free hosting so here it comes... I'm a 15-yr old boy and I want to learn how to make [U]forums with users log-in[/U]... gonna style it put some ads(which is the thing I …

Member Avatar for stbuchok
0
101
Member Avatar for eusaf

Ok so problem is that I'm using an XML generated intro for my website. My intro(index.html) is in the root directory with website home(index2.html). Issue is that I want the website to be loaded directly after intro in the same browser tab/window/page instead of a new one. Intro is using …

0
115
Member Avatar for dashawk

Hi guys, I have a problem on my php code and url passing. [B]What it should do:[/B] There are 3 forms of the php file, the [B]"email"[/B], [B]"item1"[/B] and [B]"item2"[/B]. The [B]email form[/B] is hidden by default on page load, it will only be visible if any of the [B]item1[/B] …

Member Avatar for cereal
0
428
Member Avatar for raviaaaa

Hi How to disply element id value to view pls give me with example if(a.indexOf("UpdateDiv***") > -1){ var arr = a.split("***"); document.all.lblDivAccess.innerHTML = "&nbsp&nbsp[ " + arr[1] +" Divisions(s) ]"; document.all.lblDivAccess.style.display = "inline"; document.all.lblDivAccess.style.color = "red"; document.all.txhSelDiv.value = arr[2]; break; } in this line iam getting totally added 'number'(in + …

0
56
Member Avatar for Mangesh G

[CODE]<div id="test1"><div id="fb-root"></div> <script src="http://connect.facebook.net/en_US/all.js#xfbml=1"> </script> <fb:comments href="http://www.jewelryfresh.com/" num_posts="10" width="739"></fb:comments></div>[/CODE] Above is the code for facebook comments box. I want to dynamically change the href value to the page on which it is. How can i do it.I do not want the static href value as it is now. Please …

0
114
Member Avatar for shobe089

hello there. i was just wondering.is it possible to get the text display of your div and place it in a variable? if so, how should i do it? i've been searching for a solution in this problem but i can't find anything.thanks in advance.

Member Avatar for fobos
0
545

The End.