558 Posted Topics

Member Avatar for apanimesh061

[QUOTE=apanimesh061;1593713][ICODE] <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" > <head runat="server"> <title>Events !</title> <script type="text/javascript"> window.onload = function() { [B]//Only this occurs[/B] document.getElementById('anImage').onclick = function() { alert('F-14 Tomcat !'); } [B]//This gives the result of the first[/B] document.getElementById('anImage').ondblclick = function() { alert('Not again ! !'); } [B]//Nothing …

Member Avatar for Troy III
0
98
Member Avatar for chompchomp

[QUOTE]Please bear in mind we are not coding this site for the benefit of anyone that uses IE![/QUOTE] Well, just don't! :) IE(~60%) + firefox (~20%) = ~80% of existing surfers. You are of course targeting less than 18% of them. But of course - a substantial something, is better …

Member Avatar for chompchomp
0
294
Member Avatar for Mujahid158

[QUOTE=Mujahid158;1589377]Hello, I'm converting a HTML/PHP website to wordpress. I'm showing real estate listings on the Google Maps. I've been able to sort out all the problem when converting to wordpress but I'm stuck at a point. Here is the code; [CODE] parameters: function() { var result = {}; var url …

Member Avatar for Troy III
0
130
Member Avatar for totalwar235

[QUOTE=totalwar235;1550879]what is a good program to write HTML in? i am looking at Note Pad ++ right now since i will need it for lau soon but i would like some opions here first.[/QUOTE] The best coding environment[program] is the one you feel comfortable with. Notepad++ is very nice for …

Member Avatar for Azmah
0
179
Member Avatar for Troy III

Since the Firefox [Bug 633133] of the [B]in[/B] operator on DOM Collections has ben finally fixed - We can now write a short fast and clean function of the method "Contains" for FirefoX to check if x.contains(y). And vice- versa. What we will need is: a prototype and we'll chose …

Member Avatar for Troy III
0
631
Member Avatar for Tchibo

Declaring variables with the keyword "var" outside of functions, makes a global var anyway; But declaring it with 'var' keyword inside a body function makes it a local var. therefore for internally initialized variables to be globally accessible you simply drop the variable constructor declaration. [icode] This might also do …

Member Avatar for Troy III
0
186
Member Avatar for oggiemc

Nice construction Airshow, that's efficient coding; for further optimization purposes the function recursion can also be omitted I think: [icode] var args=[1,35.4,-14,44,0.5]; document.writeln(function(args,x,v){for(x in args)v+=args[x];return v+"<br>"+args.join(' and ')}(args,0,0)) [/icode]

Member Avatar for Troy III
0
123
Member Avatar for chaituu
Member Avatar for aaraf

[QUOTE=aaraf;1529817][B]hi I knew very little about javascript and I didn't used it before a lot but now I Have a problem that: I want the pages in my website to go only forward and disable going backward [COLOR="Red"]I mean the user can not go back to the previews page in …

Member Avatar for Troy III
0
101
Member Avatar for azegurb

check if FF suports the textRange method first, if not, see if FF provides an alternative method/syntax than substitute your existing code where necessary.

Member Avatar for Troy III
0
91
Member Avatar for Buppy

[QUOTE=Buppy;1455772]Hi, I have a HTML document with form. The form has several radio buttons. I want different elements of HTML (including <input> elements) to appear when each radio button is selected. Also, it is intended to show only those elements for a specific radio button. For example, if i select …

Member Avatar for Troy III
0
723
Member Avatar for vaibhav1983

[QUOTE=vaibhav1983;1450667]Hi All, Does anybody know of some Modal Window API? I made a custom modal window for my website, but it gave problems in IE7. I need to put various forms like login, newsletter, etc into them. Thanks in Advance[/QUOTE] If you prefer a true Modal Dialog window on IE, …

Member Avatar for vaibhav1983
0
133
Member Avatar for Infame

[QUOTE=Infame;1450033]Hi. I was wondering about something. The code is great for writing in ordinary text. But when using <pre class="brush: js;"> code here </pre> it kinda messes it up, since all the original newlines has been converted into the HTML eqvivalent \n- <br />... Is there a work around for …

Member Avatar for Troy III
0
126
Member Avatar for shamala

[QUOTE=shamala;1453538]hi i need a javascript code to disable print screen key in both firefox and IE[/QUOTE] Print Screen is not monitored by browsers - you can't intercept it. IE reports only the keyup event for it, (but even than it is too late to prevent it) other browsers don't.

Member Avatar for Troy III
0
112
Member Avatar for rperez100508

There are lots of errors there.But for a start: 1. I'm not sure if NN itself supports Layers anymore. 2. var [iCODE]move[/iCODE], where is it defined, what's the format of its value? ps Is it possible that your code is older than you?!

Member Avatar for Troy III
0
149
Member Avatar for daniweb-forum-u

[QUOTE=daniweb-forum-u;1454163]I found a neat Flash image gallery here: [URL="http://www.hrewheels.com/"]http://www.hrewheels.com/[/URL] Where images of cars appear in a slideshow and the special effect shows the image opening up from the center. Are there any Javascript/AJAX, etc type galleries I can use to achieve this same effect? Thanks![/QUOTE] No, there aren't. But you …

Member Avatar for Troy III
0
124
Member Avatar for cavpollo

don't worry they want! you've coded for firefox and firefox it gave. there are two ways of fixing this, you either give your images enough space (width) to fit in that container, or you force style display block on their inline wraper tags, <a> . I would suggest you go …

Member Avatar for Arkinder
0
251
Member Avatar for happygeek

Doesn't this once again prove the fact that almost 90% of computer clients use Windows? Doesn't it say again that all attackers are in fact highly paid scum-coders coming from other software vendors publically respected, starting with OS-es and ending with browsers and other mainstream applications? But what it really …

Member Avatar for Chronister
1
2K
Member Avatar for ddrumpac

try a global variable name: var counter; To make it global you must state this outside of the functions that will manipulate its value.

Member Avatar for VisibleFrog
0
447
Member Avatar for yopirates

[QUOTE=yopirates;1367405]hey guys! onload function is working in window.open! but it is not working in .showmodaldialog [CODE]newwindow2=window.open('app.html','app','Width:700;Height:350; modal:true;'); newwindow2.onload=function() { alert("hello"); } [COLOR="Green"]This works [/COLOR] newwindow2=window.showModalDialog('app.html','app','dialogWidth:700px;dialogHeight:350px;dialogTop:200px; dialogLeft:200px;resizable=no;'); newwindow2.onload=function() { alert("hello"); } [COLOR="Red"]Not working [/COLOR] [/CODE][/QUOTE] dialog box is in fact the same as msg box - if you can make your …

Member Avatar for yopirates
0
953
Member Avatar for djcrab

[QUOTE=djcrab;1368764]I'm in need of some more help for something quite simple. All I'm trying to get to work is the (onmouseover) portion of the below. I'm sure there is a typo somewhere that I'm not seeing. I've got to quit doing homework when I'm exhausted. Just a little hard after …

Member Avatar for Troy III
0
117
Member Avatar for arctushar

[QUOTE=arctushar;1343399]Hi I have below javascript code [CODE] <SCRIPT language="javascript"> function validate(){ if(document.r_requisition.r_project_name.value=="deny"){ alert ("You are not authorised to any project "); return false; } if(document.r_requisition.r_number.value==""){ alert ("input in req No."); return false; } if(document.r_requisition.r_delv_date.value==""){ alert ("input Delivery Date: "); return false; } } </script> [/CODE] Its working fine. But when …

Member Avatar for Taywin
0
130
Member Avatar for maxelcat

[QUOTE=maxelcat;1338758]I have a client that wants a site for people who are potentailly being abused, often by partners they live with. He is under the impression that it is possible for there to be a "Button" that deletes the cache when the user presses it rather than going through the …

Member Avatar for maxelcat
0
216
Member Avatar for ryy705

[QUOTE=ryy705;1341647]Hello, I understand how use the onblur event the following way [CODE]<input name="city" id="city" [I][U]onblur="myfunction()" [/U][/I]/>[/CODE] But what if I don't want to insert javascript in html. I need to keep all javacript in a separate file. Can I execute my function without mixing html and javascript? Thanks in advance.[/QUOTE] …

Member Avatar for Troy III
0
155
Member Avatar for MDGM

[QUOTE=MaxMumford;1336580]Hi all, I'm making some changes to a google chrome extension I made and am having some trouble. Heres my code on a content script page (removeAttr.js) : chrome.extension.sendRequest({greeting: "whitelist"}, function [COLOR="red"]whtlst[/COLOR](response) { var whitelist = response.whitelist; console.log(response.whitelist);//working }); alert(whitelist);//alerts "undefined" How do I acess the whitelist variable from outside …

Member Avatar for Airshow
0
4K
Member Avatar for techie929

[QUOTE=techie929;1327914]Hi, I am repeatedly getting "missing ) after argument list" in firefox. hash_a is a variable. $("#details_a").append("</br>"+"Enter Name "+"<input type='text' id='myText' />"+"<input type='button' id='theSubmitButton' value='Edit Name' onclick='edit_data("+hash_a+")''>"); Thanks.[/QUOTE] [CODE] $("#details_a").append( "<\/br>"+ "Enter Name "+ "<input type='text' id='myText' \/>"+ "<input type='button' id='theSubmitButton' value='Edit Name' onclick='edit_data("+ hash_a+ ")'\/>"); [/CODE]

Member Avatar for Taywin
0
177
Member Avatar for technical_amit
Member Avatar for beanryu

[ICODE]<script type="text/javascript"> paragraph = document.createElement("p"); text = document.createTextNode("first"); paragraph.appendChild(text); document.getElementById('mydiv').appendChild(paragraph); alert(text.nodeValue); </script>[/ICODE]

Member Avatar for Ezzaral
0
5K
Member Avatar for bapu435

If you are targeting Explorer only you can always use a super lightwieght DSO to access data go to MSDN and search for "Data Source Object" you'll find all that you need.

Member Avatar for Ezzaral
-4
7K
Member Avatar for pritaeas

could it be the other way around, because if it really happens to be an IE "bug" you should post back at Microsoft -'cause we cant fix browsers. Why don't you check you code instead of 'repoting bugs' you don't know anything about? It works fine on my IE 6 …

Member Avatar for pritaeas
0
303
Member Avatar for edDev

That's because you are embedding QT instead of WMP! [CODE]<html> <head> <style type="text/css"> <!-- .fontStyle { font-family: Verdana, Geneva, sans-serif; font-size: small; font-weight: bold; color: #67A2DC; } --> </style> <script type="text/javascript"> window.onload=function(){ loadVideo(); } function loadVideo() { if (parseInt(navigator.appVersion)>3) { if (navigator.appName == "Netscape") { winW = window.innerWidth; winH = …

Member Avatar for jasonc31
-1
448
Member Avatar for freggel2

[QUOTE=freggel2;964431]What am i doing wrong? My iframe background stays white. It must be black. Can anyone help me plz? [/QUOTE] you can also watch [URL="http://www.daniweb.com/forums/post932714-6.html"]here[/URL] for more universal solution and controll over the Iframe background color from its parent. The script allows you to set the background color of your …

Member Avatar for Airshow
0
617
Member Avatar for gunnarflax

[QUOTE=gunnarflax;1144264]I'm having really hard to really grasp everything about the this object in javascript. I've been trying with tutorials but I haven't found a really good one. I mean, if I have a function which executes some code and then in the end I return "this" what exactly do I …

Member Avatar for vsmash
0
351
Member Avatar for tapas.chand

[QUOTE=tapas.chand;1141543]Thank a lot for your reply, but that is what i was asking. Is there any way to call a javascript function after the textbox comes into picture?[/QUOTE] Yes. You wait for the onload event to occur. But in case that textbox doesn't have its display property set to 'none'. …

Member Avatar for tapas.chand
0
140
Member Avatar for thebluestar

There are some errors... [QUOTE=thebluestar;1141356][CODE =html] <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>Untitled Document</title> <script language="JavaScript" type="text/javascript" src="js.js"></script> </head> <body> <h2>Calculate the area</h2> Choose shape <form> <input type="radio" name="hinh" value="hcn" onclick="area(this.value)" />Rectangle <input type="radio" name="hinh" value="htron" onclick="area(this.value)"/>Circle </form> <div id="property"></div> …

Member Avatar for Troy III
0
146
Member Avatar for ryan311

[QUOTE=ryan311;1137329]i have a javascript code i'm using ajax i'm new on this i want to clear all the input fields after submitting [CODE]<script type="text/javascript" src="js/mootools.js"></script> <script type="text/javascript"> window.addEvent('domready', function(){ $('registerForm').addEvent('submit', function(e) { new Event(e).stop(); var log = $('log_res').empty().addClass('ajax-loading'); this.send({ update: log, onComplete: function() { log.removeClass('ajax-loading'); } }); }); }); </script>[/CODE] …

Member Avatar for Troy III
0
159
Member Avatar for Wraithmanilian

[QUOTE]Uncaught ReferenceError: Ajax is not defined scripts/ajax.js:1 Any thoughts?[/QUOTE] yes, you can't prototype from a nonexisting object!

Member Avatar for Troy III
0
234
Member Avatar for robroy

[QUOTE=robroy;1140235]I tried to post on Mozilla's forum but I ran out of space, so I'll give this a try and thanks in advance... :) Also, I've googled til I cannot google anymore, so please be kind. :D I'm trying to call a .js file in my header where javascript would …

Member Avatar for Troy III
0
1K
Member Avatar for delbois1651

[QUOTE=delbois1651;1142463]Hi, I recently created a website with a spry dropdown navigation bar. On preview from Dreamweaver CS4, in Firefox, IE, Opera, Chrome, all elements work properly and the dropdown menus work as well. However, when I upload it to my server at the domain [url]http://www.kcsslibrary.com[/url], the dropdown menus do not …

Member Avatar for Troy III
0
127
Member Avatar for djMot

Well djMot, try this stupid solution than: [code] window.open ( "http://www.girlsrockradio.com/minisite.php", "Girls_Rock_Radio_MiniSite", "height=330,width=640,location=1" ) [/code] Regards.

Member Avatar for hapakity
0
97
Member Avatar for K?!

Since years now, html element is a part of the document layout. You are seing the gap padding of the html now you dont need the [COLOR="Green"]*[/COLOR] selctor of course, its tricky and will cause much trouble as you develop further, jus try to add to it[COLOR="green"] display: block[/COLOR] and …

Member Avatar for xigmapro
0
99
Member Avatar for Helban

should have named that anonymous onload function since the beginning... [CODE]if(!this.addEventListener){ attachEvent('onload', namedFunction)} else {addEventListener('load', namedFunction, 0)}[/CODE] Regards

Member Avatar for Airshow
0
170
Member Avatar for SKANK!!!!!
Member Avatar for Divk

[QUOTE=Divk;1053502]Hello, Till date I've tested sites/designs by changing my monitor resolutions. A new project just came by, and when the tester changed the DPI, the webpage went wrong. It has been made fully in divs and looks good in different resolutions and browsers. Can you please suggest what to do? …

Member Avatar for Troy III
0
82
Member Avatar for PDB1982
Member Avatar for psathish2

Here, - catch this: [CODE]function disableRefresh(netscape){ var F5=(netscape||event).keyCode; if(F5==116){ if(!netscape){event.keyCode=0} return false; } } document.onkeydown=document.onkeypress=disableRefresh; //IE, FX, OP, ++ Troy III[/CODE] p.s.: adding 100KB of JS code for a simple task is pretty much expensive; Especially when you are forced to include all of that junk just to be able …

Member Avatar for Troy III
0
494
Member Avatar for ggeoff

[QUOTE=ggeoff;1035753]Hi I am using Expression Web 2 and need to alter an existing website so as to display nicely on what I regard as a standard display size of 1024 x 768. It would have been better to start from scratch but it's a bit late for that now. I …

Member Avatar for almostbob
0
509
Member Avatar for Dat0

[QUOTE=Dat0;1041958]I have a table inside a div with height=100%(viewport). The also table has height=100%(viewport). However, I want one row to have a fixed height while other adjusts to the content. [CODE]<div style="height:100%;"> <table style="height:100%"> <tr style="height:10px;"><td>Header</td></tr> <tr style="height:100%;"><td>Header</td></tr> </table> </div>[/CODE] The problem is that the second tr also takes viewport …

Member Avatar for MidiMagic
0
111
Member Avatar for odee
Member Avatar for cguan_77

[QUOTE=cguan_77;1038963]hi guys, just want to ask if it is possible to check which link on the page receives a focus? For example, i got Links name A1, A2, A3, A4 and A5. How to check which link is currently receiving the focus? is it possible to do? thanks ...[/QUOTE] [CODE]someLink[COLOR="Green"].onfocus[/COLOR]=doYourThing[/CODE] …

Member Avatar for cguan_77
0
307

The End.