Fun Board


Go Back   Fun Board » Moderated usnet disscussion » Programming

JavaScript Everything about programming in JavaScript language.


Popular Tags: JavaScript
, , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,

 
Threads in Forum : JavaScript Forum Tools Search this Forum
  Rating Thread / Thread Starter Last Post Reverse Sort Order Replies Views

window.print

I have an html screen that extends beyond the length of a single printed page. I have the following: <input type=button name="print" value="Print Page" onClick="javascript:window.print()"> When clicked, the first page prints out with whatever fits onto that first paper sheet. The...
sheldonlg
13th December 2010 12:34
by sheldonlg Go to last post
1 3

Ajaxian--dumber than dirt?

http://groups.google.com/group/my-library-general-discussion/browse_thread/thread/d64b751ae6f52b61/4032f3e0393049ad?hl=en#4032f3e0393049ad Really one for the books (or book anyway). ;)
David Mark
13th December 2010 12:34
by David Mark Go to last post
1 309

Does Array.apply work as expected?

I am reading Nicholas's book <Professional JavaScript for Web Developers> 2nd. On page 168, he explained the "parasitic constructor pattern" by an example as follows, ///////////////////////////////////////////////////// function SpecialArray(){ //create the array var values = new Array();...
Dolaameng
13th December 2010 12:34
by Lasse Reichstein Nielsen Go to last post
3 270

How to copy multi object array contents into single object arrays?

Hi, I have an array with image source and caption object pairs, such as: var library = ; I would like to return copies of the above as if the contents had been placed in two separate arrays, like: var photos =
Tuxedo
13th December 2010 12:34
by Thomas 'PointedEars' Lahn Go to last post
15 343

How PROTOTYPE works behind the scenes?

I am reading the book <Professional javascript for web developers> by Nicholas C. Zakas. On page 162 he gives an example of how overwriting the prototype with an object literal can cause the constructor testing to fail. Here is the code in the book,...
Dolaameng
13th December 2010 12:34
by Dolaameng Go to last post
4 270

Question about constructor property vs. instanceof

I'm currently reading a JS book (Zakas, Prof. JavaScript for Web Developers, 2nd. Ed.) and wondered about a statement Zakas made in the OOP chapter. Discussing the constructor pattern he says: "The constructor property was originally intended for use in identifying the object type. However,... (Multi-page thread 1 2 3 ... Last Page)
wmc
13th December 2010 12:34
by David Mark Go to last post
105 1,157

Event wanted after page is refreshed

I've a html table which is sortable by clicking on the header of each column. Because the sorting sometimes takes a couple of seconds I'd like to prevent that the user can click the header of a column while the sort function is running. Here's my approach: I do at the end of the sort... (Multi-page thread 1 2 )
Stefan Mueller
13th December 2010 12:34
by David Mark Go to last post
32 578

SproutCore--over 20000 lines of new code!

After 20000 lines of new code, over 5000 new unit tests, and countless hours of effort by over 30 contributors, SproutCore 1.0 is ready. ... Is it? First suspicious file is browser.js (wonder what that could be?) //... (Multi-page thread 1 2 )
David Mark
13th December 2010 12:34
by David Mark Go to last post
55 576

Mutex

I've had a strange effect today on an Ajax page, which pulls in some data and displays it in the page, when the user clicks on a link. The trouble happens when the user clicks twice. The JavaScript function is obviously started twice, and it calls the Ajax function twice. Since I had no...
Hans-Georg Michna
13th December 2010 12:34
by Hans-Georg Michna Go to last post
5 262

Error getElementbyClassName

Why this code doesn't work ? <html> <head> <script type="text/javascript"> function hello() { alert("Hello World!"); }
nameless
13th December 2010 12:34
by David Mark Go to last post
11 281

How to link CSS(s) already linked to parent frame into child iframeusing javascript

Hey there, I've a particular requirement in which I need to link stylesheets already included in a parent html. In that HTML file, another iframe is being on the fly and I need to link same stylesheets into the child iframe. I can't link those stylesheets individually into the child iframe... (Multi-page thread 1 2 )
prabhjot singh
13th December 2010 12:34
by Scott Sauyet Go to last post
39 592

What browser doesn't support ajax ?

What browser doesn't support ajax ? I need a list of browser that doesn't support ajax. Thanks ^_^
nameless
13th December 2010 12:34
by David Mark Go to last post
18 253

string with apostrophes

Hi at all. With this code ( below ), I insert in the tag with "results" as identifier, the data that I retrieve from ajax function ( json structure "data" in below" ). But when "data.books.name" is a string with apostrophes, the function onclick doesn't work !! How can I resolve this issue ?...
nameless
13th December 2010 12:34
by Paul Hovnanian P.E. Go to last post
9 253

A weird result of PROTOTYPE syntax

I am reading the book <Professional javascript for web developers> by Nicholas C. Zakas. On page 162 he gives an example of how overwriting the prototype with an object literal can cause the constructor testing to fail. Here is the code in the book,...
Dolaameng
13th December 2010 12:34
by Dolaameng Go to last post
0 251

Automatic semicolon insertion ...

In the "examples" section within "the section dealing with "Automatic semicolonInsertion" section of the spec, the example whose text is "a = b + c(d + e).print()" is described as not being Semicolon-transformable since the parenthesis before the "c" could then be "interpreted as an argument...
Russell Potter
13th December 2010 12:34
by Thomas 'PointedEars' Lahn Go to last post
25 285

Absolute positioning with IE Explorer bar

I'm using screen.width to find the visitors screen size, and then absolutely positioning Google ads based on their width. I'm doing this so that the ad is the last thing to load on the page, so it doesn't slow the page down noticeably for the visitor. This works fine for 95% of my traffic,...
Jason Carlton
13th December 2010 12:34
by David Mark Go to last post
6 253

JavaScript or JScript on Server-Side?

Sorry for this generic question and I have read the differences of JavaScript and JScript on server side, however, I want to hear what experts think about what to choose when programming ASP pages in one of these two options. I understand it may have to do with what the needs are. But let's say...
vunet
13th December 2010 12:33
by Thomas 'PointedEars' Lahn Go to last post
2 259

dynamically adding a filter (solved)

It appears that, at least in IE 6, you cannot add a filter by using elem.filters.item("DXImageTransform.Microsoft.Alpha").opacity = 10; unless a corresponding filter exists on the style applied to elem eg. #elem { filter: progid:DXImageTransform.Microsoft.Alpha(opacity=100);
Andrew Poulos
13th December 2010 12:33
by JR Go to last post
3 276

Please help with enumerating functions in window object

I have a need to enumerate all functions in window object in order to install intercepts. I have problem with the enumeration using the code in the example http://jsbin.com/acubo Note: for now the code lists all elements in the window object. I expect to see the global function 'fun' listed...
intrader
13th December 2010 12:33
by intrader Go to last post
7 266

IDE for Javascript n CSS

Which one do you suggest as a better IDE for javascript n CSS. What abt debugging them?
Kabindra
13th December 2010 12:33
by Gregor Kofler Go to last post
1 276

Namespace problem

I have a working javascript script with some global variables which I want to use alongside other scripts. The script includes the following: var side_bar_html = ""; var gmarkers = ; var icount = 0; function createMarker(point,name,html) { var marker = new GMarker(point);...
SteveYoungTbird
13th December 2010 12:33
by SteveYoungTbird Go to last post
2 258

How to control order of frames loading?

Hi All, I have an HTA with 3 frames. In the main frameset HTML, the very first frameset, I have an onload function. This frameset function MUST execute before any of the 3 frames are loaded because it sets global variables to be used among the 3 frames. During all my tests it seems that...
CharlesEF
13th December 2010 12:33
by CharlesEF Go to last post
3 283

IE versions of moz transform

I've been looking at the transforms possible in FF and Safari: https://developer.mozilla.org/en/CSS/-moz-transform IE has this: http://msdn.microsoft.com/en-us/library/ms533014(VS.85,loband).aspx To me that is just about inscrutable. What does this mean?:
jeff
13th December 2010 12:33
by jeff Go to last post
0 265

ECMA 262 Implementations test.

I write for own usage simple test for some case in ES implementations. var ESImplement = { _global : this, functionStatement : function() { var code = .join('');
Asen Bozhilov
13th December 2010 12:33
by Dmitry A. Soshnikov Go to last post
3 242

Explaining an error

Hi. I have the following piece of code: var code = <some code from the user>; eval(code); If there is a syntax error in the evaluated code, the "error console" of Firefox is able to pinpoint the exact location of the error. Firebug does that also.
Nicolas George
13th December 2010 12:33
by Nicolas George Go to last post
2 251

Re: Using Javascript to find if Java applet has loaded

Hi Jason, "Richard Maher" <maher_rj@hotspamnotmail.com> wrote in message news:... > Hi Jason, > > "Jason Carlton" <jwcarlton@gmail.com> wrote in message > news:a8e19be8-5116-4889-b26b-b1998b2d7c26@j19g2000yqk.googlegroups.com... > > Specifically, Parachat. I'm showing an absolutely...
Richard Maher
13th December 2010 12:33
by Jason Carlton Go to last post
1 262

Static Class Variables and IE8 Loosely Couple Internet Explorer (LCIE)

Hi, In case any other JAVA people get bitten by IE8's LCIE "We have to do tabs in separate processes 'cos we keep crashing all the time" below is a work around I just found on the net. (If anyone could possibly influence Microsoft to make it a User-Configurable preference and not just a...
Richard Maher
13th December 2010 12:33
by Thomas 'PointedEars' Lahn Go to last post
4 259

Javascript in Adobe Photoshop

Just wondering. Is the javascript interpreter (ExtendScript) on-topic here?
slebetman
13th December 2010 12:33
by Hans-Georg Michna Go to last post
3 260

.match(...) awkwardness

Does anybody have a good idea how to deal with the limitations of the regular expressions in JavaScript? Here's the example: var page = location.search.match(/(?:\?|&)(?:page=)(\d+)/); if (page) page = +page; else page = 0; All this does is look for a page= parameter, followed by a number,... (Multi-page thread 1 2 )
Hans-Georg Michna
13th December 2010 12:33
by Hans-Georg Michna Go to last post
32 468

DOM ready, window.onload, etc.

Hi everybody; hope you all got over Xmas in good shape. The following may be a frequently asked question, but I haven't seen any inspiring answer. Does anybody here have a good idea or some simple working code to solve the problem of having JavaScript code work on the DOM just after it is...
Hans-Georg Michna
13th December 2010 12:33
by Hans-Georg Michna Go to last post
27 241

Dropdownmenue + Bild

Hallo NG ich habe hier so meine Problemchen mit diesem Kleinen Script. Es sollte eigentlich das Bild wechseln. kann mir da ein JAvascript experte helfen? ************** <select id="select" onchange="wechsel()"> <option value="bilder/folien/folie_vorschau_ge8b.gif">rose</option> <option...
Stephan Moos
13th December 2010 12:33
by JR Go to last post
1 233

eval(string) scope ?

Hi, I had the idea to create a walkthrough sessions for users, printing statements, then executing one by one. I find that eval on separate strings doesn't put values in the same scope, so any statement using an earlier value throws ReferenceError. Here's a minimal session:
Jocke P
13th December 2010 12:33
by Jocke P Go to last post
3 265

Javascript dummy needs help.

I would appreciate a bit of help with a problem I'm having which may or may not be javascript related, or at least a pointer to where I could solve it. XP Pro SP2 Firefox 2.5.7 Google toolbar 7.0.20091216Wb1 The drop down search box on the left of the Google toolbar has suddenly stopped...
Michael Swift
13th December 2010 12:33
by Michael Swift Go to last post
0 248

More fun with attributes

Using the DOM module at <http://www.cinsoft.net/mylib-builder.asp> and given <input readonly> as the first element of type INPUT in a HTML context,
Eric Bednarz
13th December 2010 12:33
by Eric Bednarz Go to last post
0 231

dynamically adding filter +IE6

PNG with an alpha channels needs something with this elem.style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" + filename + "', sizingMethod='image')"; to get the transparency to not show. This link <url:
Andrew Poulos
13th December 2010 12:33
by Andrew Poulos Go to last post
1 258

Canceling a form submitted to an iframe target

Hello all, I'm currently having a dilemma. I'm using an iframe as a target to handle a form submit to allow users to submit file uploads without requiring a page reload. What I want to do is this: when the user clicks the submit button, I want a "cancel" button to appear - clicking that... (Multi-page thread 1 2 )
acoleman616
13th December 2010 12:33
by Jorge Go to last post
35 472

JavaScript Dates in Other Countries

Hi, I've got a script, which works with dates. It compares two dates using an operand to test weather the first date is '<', '>' or '=' to the second date. Here it is. function CompareTwoDates(firstDate,secondDate,operator) { var tmp; // ConparisonType eg. <,>,= etc // first find out if... (Multi-page thread 1 2 )
Laser Lips
13th December 2010 12:33
by Thomas 'PointedEars' Lahn Go to last post
40 504

Augmenting Types

Have read Douglas Crockfore's JavaScript The Good Parts, it recommend Augmenting Types, e.g. Function.prototype.method = function(name, func) { this.prototype = func; return this; }; String.method('trim', function() { return this.replace(/^\s+|\s+$/g, ''); (Multi-page thread 1 2 3 ... Last Page)
Ryan Chan
13th December 2010 12:33
by kangax Go to last post
121 966

JavaScript code mangler / scrambler / ... khm, more than

Hi! I hope I can get close to Sun and avoid the flames... ;) First of all, I have read and fully understand numerous postings on obfuscation. Also, I understand and mostly agree with this: http://jibbering.com/faq/obfuscate.html I have also personally successfully decoded JS that was... (Multi-page thread 1 2 )
Andrew
13th December 2010 12:33
by Andrew Go to last post
47 497

Code Guidelines

I'm putting together a couple of documents: 1) code guidelines 2) code review guidelines The goals are to help make for better code reviews here and to help debate on assessing javascript code quality. I'd like to start with my outline of code guidelines and get some feedback on it. (Multi-page thread 1 2 3 ... Last Page)
Garrett Smith
13th December 2010 12:33
by Garrett Smith Go to last post
105 1,005

Encapsulation and js, html, css

It is fun to add a piece of short code to a project, eg. a method of a nice object/constructor without worrying, which other possibly numerous locations in the same project have to be changed. But as the code grows, everything starts to depend on everything else, the code feels like...
optimistx
13th December 2010 12:33
by Scott Sauyet Go to last post
14 238

Difference between WScript and CScript

Hi there what is the difference between WScript and a CScript language. Where can u find good tutorial for CScript on the internet. I have tried googling it and it comes back saying Javascript arent Javascript something for web development. i'm after window scripting newbie here. please...
capt edgar
13th December 2010 12:33
by capt edgar Go to last post
2 272

opacity and IE bug

Well I've been using the info that Thomas and others have provided me on applying opacity to images. I've been making some good progress until I hit this interesting bug in IE, when you apply/add an opacity filter to a JPEG the pure black (#000) pixels go transparent. According to google...
Andrew Poulos
13th December 2010 12:33
by Andrew Poulos Go to last post
4 246

Good Editors

Hi there can u suggest some good jscript editors please? I'm a newbie to programming
capt edgar
13th December 2010 12:33
by Laser Lips Go to last post
8 263

Passing Arguments

Hi there I need help passing extra arguments to one of the function in my script. The code below is one of the functionality of the script and it creates Log Folder function CreateNewLogSubDir(pBuildID,pLogID,pDescription) { var strSubdirName='';...
capt edgar
13th December 2010 12:33
by David Mark Go to last post
13 267

What's a good license for My Library?

I've decided to release My Library under some sort of free license. Haven't thought about free licenses in a long time (decades), so I am open to ideas. Anything to prevent the exponential growth of JS futility like this;- http://github.com/jrburke/blade I don't think that thing even...
David Mark
13th December 2010 12:33
by David Mark Go to last post
28 265

Workaround for IE6 select width cut off options' width

Hi all, I have been searching google for hours but still cannot get a workaround to suit my application. What I want to do is to make the select's behavior looks like FF. http://css-tricks.com/select-cuts-off-options-in-ie-fix/ has a good example but I am not allowed to use JQuery and even I...
SamuelXiao
13th December 2010 12:33
by SamuelXiao Go to last post
5 295

Why won't my Javascript function fire?

http://store.yesmagazine.org/store/index.php?main_page=product_info&products_id=210 I've got a Javascript function on the form above that is supposed to check for blank values and show an alert box if any exist. It used to work, but now unexplicably doesn't even trigger. Can anybody help...
Kevin Audleman
13th December 2010 12:33
by Laser Lips Go to last post
3 230

Some Javascript newbie questions

I'm porting an application to Javascript (from Java) and I'd like to do a couple of things. The user will load a 'form' from my website, which will load the required Javascript libraries using the src='....' attribute of various script tags. I use the term 'form' loosely, as the app will use...
Paul Hovnanian P.E.
13th December 2010 12:33
by Thomas 'PointedEars' Lahn Go to last post
10 264

Reload two iframes on one iframed page!

I have two php scripts running and iframes the result from both of them on one html-page. This page is then iframed into my website... I need the option to reload the two original iframes. I have tried to add this into the header of the page with the two iframed results: <script...
Freshman
13th December 2010 12:33
by Freshman Go to last post
8 243

Updated FAQ

How do I trim whitespace? Change code to coerce the thisArg to String, as per ES5 - Bozhilov How do I POST a form to a new window? Change example to use method="post" -Saarikumpu How do I disable the right mouse button? Fix the grammar
Garrett Smith
13th December 2010 12:33
by Garrett Smith Go to last post
14 115

Why won't my (j)query work?

For the typical neophyte, CSS selectors are magic. Put in a selector, get out a collection of matching elements. What could be easier? Turns out, almost anything would be easier. For the typical library author, attribute handling is also magic, so they never got close to creating a reliable... (Multi-page thread 1 2 3 ... Last Page)
David Mark
13th December 2010 12:33
by Diego Perini Go to last post
97 1,332

opacity and MS (one more time)

In IE 8 running in standards mode with this HTML <img id="z012" alt="Fish" title="Japanese fish print" src="images/old-print-fish.jpg" style="-ms-filter:'alpha(opacity=0)'; filter:alpha(opacity=0); opacity:0;
Andrew Poulos
13th December 2010 12:33
by Andrew Poulos Go to last post
5 146

JavaScript ajax library critique

I am a new JavaScript programmer. In training I was introduced to Prototype and in the first ~8 months of my job I heavily relied on it. Over time I realized how ridiculous it was to include over 4000 lines of code for event handling and XHR. (As well as I didn't think script errors on every... (Multi-page thread 1 2 3 )
Mychal Hackman
13th December 2010 12:33
by Hans-Georg Michna Go to last post
89 527

JavaScript for Business Website ?

Is it advisable to build a business website (with users entering and retrieving private info and monetary Paypal-type transactions and the like) using JavaScript (in view of the fact that the code is totally visible to users) ? Are there any examples of business websites which are purely...
AP
13th December 2010 12:33
by AP Go to last post
9 156

measuring idle time during loading?

How to measure, how much time there would be available for 'extra' javascript execution during page loading? How to utilize that time for calculations in js-language? SetTimeout? If yes, how? Ideas? (the question arose from the magic word 'efficiency': IF there is plenty of idle time...
optimistx
13th December 2010 12:33
by Thomas 'PointedEars' Lahn Go to last post
5 130

Dropdown + hiddenbereiche

Hi NG Ich suche eine möglichkeit anhabnd einer ausgewählten Dropdown auswahl ein resp. mehrere Eingabefelder erscheinen zu lassen? also, Wenn im Dropdownfeld z.b. A ausgewählt ist -> erscheint unterhalb des Dropdown menüs 2 Eingabefelder Wenn im Dropdownfeld z.b. B ausgewählt ist -> erscheint...
Stephan Moos
13th December 2010 12:33
by Gregor Kofler Go to last post
4 143

fullscreen (IE only) local and remote

newWin = window.open( "", "", "fullscreen" ); the above line used locally produces a full screen display but includes an unwanted right-side scroll bar. The same script used remotely from the file stored on my web server produces a fullscreen display without the scroll bar but includes...
l_hodges@cix.compulink.co.uk
13th December 2010 12:33
by l_hodges@cix.compulink.co.uk Go to last post
0 126

Interesting report concerning META elements

Couldn't think of a better subject as this one is a bit of a mystery. Had a report from Sweden that there was a problem with this test page in Opera 9.62:- http://www.cinsoft.net/attributes.html The problematic code was in one of the baseline DOM property tests:- el =...
David Mark
13th December 2010 12:33
by David Mark Go to last post
2 133

Conditional statement with an assignment expression

Before few weeks ago Garret Smith payed attention for "Conditional statement with an assignment expression": <URL:http://groups.google.bg/group/comp.lang.javascript/msg/ 9299befb874eb9a0> He maintain theory for readable of code in statements like this one: var x; if (x = function(){}) {
Asen Bozhilov
13th December 2010 12:33
by Asen Bozhilov Go to last post
11 158
 

Display Options
Showing threads 1 to 60 of 630
 
Forum Tools Search this Forum
Search this Forum :

Advanced Search

New posts New posts More than 15 replies or 150 views Hot thread with new posts
No new posts No new posts More than 15 replies or 150 views Hot thread with no new posts
Closed Thread Thread is closed  
 
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


All times are GMT +1. The time now is 09:08.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2