|
 |
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
|
|
1 |
3 |
|
 |
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
|
|
1 |
309 |
|
 |
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
|
|
3 |
270 |
|
 |
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
|
|
15 |
343 |
|
 |
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
|
|
4 |
270 |
|
 |
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,...
(
1
2
3
... Last Page)
wmc
|
|
105 |
1,157 |
|
 |
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...
(
1
2
)
Stefan Mueller
|
|
32 |
578 |
|
 |
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?)
//...
(
1
2
)
David Mark
|
|
55 |
576 |
|
 |
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
|
|
5 |
262 |
|
 |
Why this code doesn't work ?
<html>
<head>
<script type="text/javascript">
function hello() {
alert("Hello World!");
}
nameless
|
|
11 |
281 |
|
 |
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...
(
1
2
)
prabhjot singh
|
|
39 |
592 |
|
 |
What browser doesn't support ajax ?
I need a list of browser that doesn't support ajax.
Thanks ^_^
nameless
|
|
18 |
253 |
|
 |
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
|
|
9 |
253 |
|
 |
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
|
|
0 |
251 |
|
 |
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
|
|
25 |
285 |
|
 |
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
|
|
6 |
253 |
|
 |
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
|
|
2 |
259 |
|
 |
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
|
3 |
276 |
|
 |
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
|
|
7 |
266 |
|
 |
Which one do you suggest as a better IDE for javascript n CSS. What
abt debugging them?
Kabindra
|
|
1 |
276 |
|
 |
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
|
|
2 |
258 |
|
 |
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
|
|
3 |
283 |
|
 |
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
|
0 |
265 |
|
 |
I write for own usage simple test for some case in ES
implementations.
var ESImplement = {
_global : this,
functionStatement : function()
{
var code = .join('');
Asen Bozhilov
|
|
3 |
242 |
|
 |
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
|
|
2 |
251 |
|
 |
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
|
|
1 |
262 |
|
 |
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
|
|
4 |
259 |
|
 |
Just wondering. Is the javascript interpreter (ExtendScript) on-topic
here?
slebetman
|
|
3 |
260 |
|
 |
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,...
(
1
2
)
Hans-Georg Michna
|
|
32 |
468 |
|
 |
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
|
|
27 |
241 |
|
 |
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
|
1 |
233 |
|
 |
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
|
3 |
265 |
|
 |
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
|
|
0 |
248 |
|
 |
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
|
|
0 |
231 |
|
 |
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
|
|
1 |
258 |
|
 |
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...
(
1
2
)
acoleman616
|
13th December 2010 12:33
by Jorge
|
35 |
472 |
|
 |
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...
(
1
2
)
Laser Lips
|
|
40 |
504 |
|
 |
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, '');
(
1
2
3
... Last Page)
Ryan Chan
|
13th December 2010 12:33
by kangax
|
121 |
966 |
|
 |
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...
(
1
2
)
Andrew
|
13th December 2010 12:33
by Andrew
|
47 |
497 |
|
 |
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.
(
1
2
3
... Last Page)
Garrett Smith
|
|
105 |
1,005 |
|
 |
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
|
|
14 |
238 |
|
 |
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
|
|
2 |
272 |
|
 |
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
|
|
4 |
246 |
|
 |
Hi there
can u suggest some good jscript editors please?
I'm a newbie to programming
capt edgar
|
|
8 |
263 |
|
 |
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
|
|
13 |
267 |
|
 |
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
|
|
28 |
265 |
|
 |
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
|
|
5 |
295 |
|
 |
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
|
|
3 |
230 |
|
 |
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.
|
|
10 |
264 |
|
 |
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
|
|
8 |
243 |
|
 |
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
|
|
14 |
115 |
|
 |
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...
(
1
2
3
... Last Page)
David Mark
|
|
97 |
1,332 |
|
 |
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
|
|
5 |
146 |
|
 |
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...
(
1
2
3
)
Mychal Hackman
|
|
89 |
527 |
|
 |
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
|
9 |
156 |
|
 |
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
|
|
5 |
130 |
|
 |
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
|
|
4 |
143 |
|
 |
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
|
|
0 |
126 |
|
 |
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
|
|
2 |
133 |
|
 |
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
|
|
11 |
158 |