I am experiencing a problem with flash ie that i cant seem to identify I am using a flash replacement technique
i want to count _only_ numbers in a string – how would i do this?
not add them up, count the number of digits
Or, how do i strip a certain character from a string? eg remove all spaces?
`js ref
http://developer.mozilla.org/en/docs/JavaScript , http://devedge-temp.mozilla.org/central/javascript/index_en.html , http://phrogz.net/ObjJob/ , JScript@MSDN: http://tinyurl.com/9pk3l , www.crockford.com/javascript/
by using google
by using replace
he is
mornign
how goes?
I remembered some image compression techniques I designed about15 years ago you might want to try out… unless you’ve moved on
nah i haven’t moved on. i’m actually stuck
the lz77 is sometimes really bad
oh? stuck on?
yes
in that a file becomes larger if there are no matches
every technique has data it sucks with
some systems use a 0 length to mark that next is a run of unmatched chars… with their own run length token
and problem is if i do lazy matching then the algo starts to put in too many literals instead of copies
lazy matching?
means if i have found a match i continue to search for longer matches one byte after the current input byte
not opting for a Boyer-Moore search ,then?
boyer-moore?
whats that?
string search algorithm…very efficient
there’s a lot of LZ77 variants…. some opting for faster compression, others for smarter matching, etc
anyway.. some of my old ideas worked on dictionaries of 2d blocks of pixels
banyway.. some of my old ideas worked on dictionaries of 2d blocks of pixels/b
hm. thats interesting. i was kinda thinking that it should be possible to use spatial information of the image. because lz77 just thinks its a long array where each byte has only 2 neighbours
right
2d wavelet compression in js?
nice
if you took, say, 4×4 blocks of pixels…
my basic scheme worked on direct matches…. but some others worked on base+difference … so you could say “OK, this is block X, plus block Y”… much trickier on the compressor
hm boyer-moore has to be adapted for lz77. its only working for constant length search strings
but if you look closer, extending the string is easy
as in, once you find a match, add a char, update your offsets and pointer… and keep going
the joy of LZ77 is you can make the compressor smarter or more slack… and decompression doesn’t change
hm. i’m not sure if it is really worth the effort. compression speed is not really a concern
iLess:
Is it mandatory to put a submit button in a form??
I want to send the form using an event
How will you post the form without javascript without a submit button?
have you xp with c++?
I think I’ve it
you’ve it?
more than I’d like
I’m try $(‘id’).submit()
Where id is the form ID
haha. can you have a look at my lz77 code?
ok
Mace[work]: s.replace(/\D/g, “”).length
thx, realised js is the same as php – no “remove” but only “replace”
Munter asked how you’d submit the form without javascript hosting available
It will have
It’s a TV embebed app
I’m sure It will have it
http://77.57.2.131/~schwadri/lz77.cpp
maybe i did something wrong.
i haven’t found a good implementation that i could compare with my code
true http://pastie.caboo.se/82439 ??
fortunately, it’s been too long since I used C++ to parse that quickly…
I wrote all my LZ77 code in C
oh. i hope the templates doesn’t confuse to mutch
How do you reference what the user see’s in a select box, the selected row?
eg oFieldSelect.value would be the “value”, but what would the description the users see’s be?
hi
none?
i have problems with memory leaks programming in ajax
how can i free the memory of IE?
i have tried with history.go(0) function
oFieldCardType.value is outputting the value, AMEX etc whereas oFieldCardType.text isn’t outputting the display text
but it doesn’t work
fix the memory leak problem maybe..
I have fix the ajax memory leak with the API of Yahoo
the web page have to be opened the 24hours of the day
It´s a google maps mashup
Why history.go(0) doesn´t free the memory¿
sorry, mate… can’t really follow it right now
np
what is the attribute to set to hide a button within a form?
argh
oFieldCardType.options[oFieldCardType.value].text doesn’t work, oFieldCardType.value outputs as expected, as does oFieldCardType.options[2].text
“document.frmForm.btnClear.visibility = hide;” is not working for me. am I setting the wrong attribute or value?
Mace[work]: oFieldCardType.options[oFieldCardType.selectedIndex].text
aha
thank you – was about to itterate through it heh
.style.visible = “none” or something.
IE is a great shit
document.forms['frmFrom'].elements['btnClear'].style.visibility = ‘hidden’;
join #compression
grammar question, is it “Card number is too short for” or “Card number is to short for”
deltab/jafet, thanks. i got it to work with deltab’s line.
Mace[work]: “too”
thought so cheers
what’s wrong with it?
deltab, my aim to get something the second. but this one doesn’t work…
how doesn’t it work?
deltab, the second one doesn’t send anything
what does it do?
is there a “replace_all”?
deltab, it is landing in nirvana. the url is wrong and the browser is running some kind of endless loop (always searching for something)
Mace[work]: add the g option
Mace[work]: s.replace(/\D/g, “”).length
ah that’s what that was, thanks
deltab, definitely not working
document.write isn’t going to work once the page is loaded
deltab, o.k. what would you advise me to do instead?
what’s the point of this dynamic form creation anyway? why not just have the form in the page?
deltab, the reason is why the form only shall be defined when clicking the button (onclick)
what is the reason?
deltab, having not only one button like this but more than 20? 20 forms on the page?
why so many forms/
wouldn’t one form do?
deltab, right. i also don’t like that many forms
deltab, no i want to have the data of that form belonging only to that button.
what does the form submission do on the server?
deltab, CRUD on a db.
you could encode the value you need in the name of each button
deltab, and when i have more than 1 value per button?
encode them into one
deltab, do you have an idea, how to achieve such a create_form_on_the_fly?
the general way you’re doing it, without the useless document.write
deltab, yes. but i need a hidden-input int that form. how to add it?
in that
using DOM ?
with appendChild
deltab, you form.appendChild?
you mean
why is iCardNumber = oField.value.replace(“/\s/g”,”); not removing spaces?
Mace[work]: because Javascript is not PHP
Mace[work]: javascript has regular expression literals
it could have been python but w/e
thanks
deltab, thank you for your good hint. it works now
thx, realised js is the same as php
they’re very different but i understand why you said that
common misconception
using javascript, how can I uncheck a radio?
.checked = false
staz, like “document.frmForm..elements['radArtEmail'].checked = false;” ?
have you tried it ?
yeah, didn’t work
i accidentaly put the ‘..’ when i was copy and pasting
when doing /(\-)(\D[\s\-])+(\-)/g – how do you reference (\D[\s\-]) in str.replace?
$2
note that – has no special meaning in regexes outside character ranges
it says it can’t find $2?
“12-X -34″.replace(/(\-)(\D[\s\-])+(\-)/g, “=$2=”)
12=X =34
ah k
“12-X -34″.replace(/-(\D[-\s])+-/g, “=$1=”)
12=X =34
document.getElementById(‘radArtEmail’[0].name).checked = false; I’m trying to reset a radio button
what’s ‘radArtEmail’[0].name ?
I have the following currency, 25,000.00, how could I multiply that number while retaining its format?
“radArtEmail” is the radio buttn name. I thought the [0] referenced the first index in the array for the radio buttons called radArtEmail. the “.name” is the property?
i got it working it was this.document.frmForm.elements['radArtEmail'][0].checked = false;
that’s for the suggestions
*thanks
‘radArtEmail’[0] refers to the first character of the string
deltab, oh
“abc”[0]
as opposed to the first index…
a
0 is the first index
HEYYYYYYYYYy0-
wussupppppppp Scripters!!
=/
lol
am too hyper,too much rock songs for a long time XD
heh
guys i was wondern
are you bored or something Deja?
rock songs? lol
loool well am working a saving a webpage button
scripters make us sounds like we are not real coders
using javascript
well a weried web develoepr.i sing and rock around
well i got a really complicated casse
i have to make a button that saves the HTML page to the client
Have you been drinking? Again? Look, we’ve had this discussion five times now. This has got to stop.
including the IMAGES
loool
well yeah,i think am drunk when u am talking about javascript to create a button to save the whole webpage including the images
any could help
?
Doubt it can be done. There may be proprietary functions to invoke the save as… button in the file menu which might be what you want but I don’t think I’ve seen any.
Deja^vu^Boy: javascript host can’t write data to a hard drive without external help (java, flash, activex)
Deja^vu^Boy: just use wget or something
Server side you could use wget and generate a zip file for download.
Then link to it.
And run that script with cron.
I am experiencing a problem with flash ie that i cant seem to identify. I am using a flash replacement technique that was written by another developer at my job and for some reason in ie when the flash gets written onto the page if there is a hash in the url it gets appended to the end of the
title bar. has anyone ever encountered this problem?
So it keeps up to date.
server side isnt that practical
i thought of using activex
…
Oh dear.
its a news portal website
that has like 5000 daily news with about 2 for each
Hmmm… nice generalisations you’ve got going there.
tahts why i guse its not pratical,imagin that works on a cron job,2 huge procedure
Uh?
I don’t think you quite understood what I was suggesting.
I wasn’t suggesting you write an entire database backed site.
Ummm………..okay,could u explain it
more
I was suggesting that daily you ran a script that connected to your site as a client on the server.
Deja^vu^Boy: Why not just detect the browser they are using and give them instructions on how to use File-Save As…
I have the following currency, 25,000.00, how could I multiply that number while retaining its format?
And then zipped the resulting html hosting + js + css + image up.
Sembiance’s solution is the easiest and for most purposes best.
convert to an int, multiply, then re-format
Alright, I’ll try it out.
Umm….
hello, how can i know if a string contain only numbers?
TheHcDreamer, use regular expressions
you can do a test for non numeric characters
in theory isNaN(parseInt(theString, 10))
I believe \D will check for any non-numeric characters
/^[0-9]/ but i don’t know if is correct
breakerfall has a good suggestion too
TheHcDreamer, nope, that will simply only match a string which begins with numbers
ah ok
so /[0-9]/?
“ioeini3e3e33″.test(/\D/);
Error: Error: TypeError: “ioeini3e3e33″.test is not a function at line 0: (null)
well..cant i just execute a “SaveAs” a “complete web page”?i have found already a exeCommand(‘SaveAs’)
it shows a save as HTML
TheHcDreamer, /[0-9]*/
thanks
hi
i have the name of a field of a form in a string. how can i get the value of it in javascript?
formElement.elements[fieldName].value
http://techrepublic.com.com/5208-6230-0.html?forumID=101&threadID=203616&start=0
check this forum out
var regexp = /\D/; regexp.test(“dcdc3334″);
true
TheHcDreamer, that’s a better solution
?????:??
63
var regexp = /\D/; regexp.test(“3334″);
false
breakerfall i will try
s.match(/\d+/g)
hmm
s.match(/^\d+$/g)
deltab, the solution I provided makes much more sense :p
no, that results in true when there *are* nondigits
breakfall so now i can do if(regexp.test(mystring)?
TheHcDreamer, yes
deltab, “hello, how can i know if a string contain only numbers”
and you said “here’s a test to see if a string contains any non-numbers”
TheHcDreamer, if you receive true, then it means you have non numeric characters in your string
it work good!
GarethAdams ?
if (/^\d+$/.test(s)) { print(‘it contains only digits’); }
deltab’s made more sense – it can be read as “does this contain only digits”. Yours is simpler, but it doesn’t make more sense
if (/\D/.test(s)) { print(‘it contain a nondigit’); }
GarethAdams, I suppose, readability wise, you’re right
i can try all two solution
with second solution /\D/.test(s) it dont’work for me
but with /\D/ it work
hm
how can i change the ondblclick property of an element by javascript?
myElement.obdblclick = newFunction
GarethAdams, so, can i do something like myElement.ondblclick = “fooFunc(); barFunc(3);”?
no
myElement.ondblclick = function() { funcOne(); funcTwo(); }
is there any reason that i cant use the google maps api host and use rel=”external” on the same page?
what happens?
the map doesnt show up
what are you using rel=”external” on?
is the presence of rel attributes the *only* thing you’re changing? or is there a script you’re removing?
the there’s the external.js
if i dont let it load the part that adds target=”_blank” behavior to links, the map works
if i include that, its blank
so adding (that part of) external.js breaks the map?
The paste 634621 has been copied to http://erxz.com/pb/3777
thats what external.js looks like
well, its named popout.js though because i’m using it for popping up a new window for showing galleries too
Question, is there a way to wait until an ajax request finishes loading (via an outside call…IE, can’t change the ajax calls)? This includes loading the images, etc.
hi, I’m inside a div and would like to make all it’s children visible (children[].display = ‘block’), how can I iterate over an element’s children?
firebug isnt showing any errors and the xhtml is valid, so i dont know whats wrong
how are you creating the map?
i did it like the google api shows
ok
http://colbyframeco.com/directions.shtml
window.onload = function() { myCreateMapFunctionHere(); popout(); return true; };
if its only for one page though, and i’m using SSI, will it freak out on other pages that don’t have a div#map?
the map creating function is on body onload=, not on window
move it out of there
window.onload = popout(); is overwriting the other
same thing
also, it should be window.onload = popout;
anyway, try what I’ve pasted above
the return true is irrelevant, isn’t it?
and get rid off onload of the body element
yeah, it is
just preferences in this case
deltab, i copied it from elsewhere
and it’ll error when #map is not present
Can anyone help me with a google-maps issue?
put the code you want to run later into a function, and have that function called when an event happens by assigning it to onload or whatever
ok that sounds about right — can you do an onload on an element that may not even exist yet?
no
so you need something else to set that up when it does exist
does it matter if i put popout or load in window.onload=”" first?
hmm
it doesnt make sense that popout was overwriting the map though
you can put onload=”" into a div tag, no?
because thatd imply that map ran and then the popout script ran
mcknin, no
hmm
you had two window.onload handlers, didn’t you?
and i used alerts and the map one doesnt run at all if the popout.js is htere
tags) and it didnt fix it
for (var i = 0, childrenLen = children.length; i childrenLen; i++) { var myChild = children[i]; if (myChild.nodeType == 1) { myChild.style.display = “block”; } }
window.onload = function() { popout(); Gload(); };
like so
woot! thank you maggi!!!
you’re welcome
forgot one thing: var children = refToDivEle.childNodes; for…
if I’m using AJAX to load a page into, say….a div, is there a good way to have JavaScript eval any JavaScript in the page I’m loading
?
now back to deathwishes for the developers of internet explorer and their inability to understand & implement proper CSS support
thanks!
Receive my bookmarklet awesomeness.
t=true;w=window;d=document;a=w.addEventListener;r=w.removeEventListener;n=’click’;v=’keypress’;s=’30em’;b=’white’;p=d.createElement(‘p’);q=p.style;q.position=’fixed’;q.top=’48%’;q.left=’35%’;q.width=’30%’;q.height=’4%’;q.border=’1px black
solid’;q.backgroundColor=b;q.color=’black’;q.padding=’0.5em’;q.textAlign=’center’;p.innerHTML=’Click a block of text until as much of the page as you want is a readable width. Then ctrl-click if you w
ant it
centred.’;d.body.appendChild(p);h=function(e){if(e.ctrlKey){c(e.target)}else{m(e.target)}};a(n,h,t);f=function(e){if(e.keyCode==27){r(n,h,t);r(v,f,t);p.parentNode.removeChild(p);w.clearInterval(o)}};a(v,f,t);m=function(e){u=e.style;if(u!=undefined){if(u.width==s){m(e.parentNode)}else{u.width=s}}};c=function(e){if(e.parentNode.style.width==s){c(e.parentNode)}else{e.style.margin=’0
auto’}};void(o=w.setInterval(function(){if(q.back
groundColor==b){q.backgroundColor=’yellow’}else{q.backgroundColor=b}},1500))
It’s ALIVE
and the immediate parent node’s name?
for a child div, the enclosing div is called how?
what is that snippet of code?
myChild.parentNode.nodeName.toLowerCase()
cool
It’s a bookmarklet I just made and mangled really tiny that makes bits of text that are too wide a readable length.
(30ems to be exact)
And then optionally centres it.
‘this’ is the ‘a’ element, right?
correct
hi guys
javascript can some method to get IP?
when I put a name=”blah” inside a node, can I then use that name directly in js? (ie: blah.visibility = ‘block’)
no
or should I use id=”" and then document.getElementById() ?
that’s the most stable way
ok, thanks
so what’s the name for?
form elements are sent to the server in name/value pairs
where name and input are attributes on input elements
ah, ok, just for forms then
*name and value
you could use name using some javascript framework supporting xpath/css selectors, but by id is more convenient
except your HTML would probably not be valid
exactly
or you could use getElementsByName
that goes for all attributes.
I’d go by id or class
yeah, works
I’m developing a treeview, the problem is that in all my a onclick=… I have also href=”#” which sends me to the top of the page each time,
is the href mandatory?
you’ll have to return false
to prevent the default action
great
hum, i need to request an url (make a HTTP / 1.1), but not view the document
i dont need the respons
response*
document.location makes the browser go the the actual url,
any ida?
timtux, HttpXmlRequest, iframe, image host tag, link tag, script tag, etc.
hello!
Does javascript have any problems with forms??
I have this js code after a form tag and it only works if the name and target fields of the form are not there
http://privatepaste.com/3a1w9veEFi — here is the code
on line 12
If I have something like this I get all types of errors from the functions
if I put it commented like that it all works fine
can I change the onclick from the onclick?
anyone know?
when clicking I then want to insert another eventhandler in the onclick
to invert the state
im passing an id to a function I want to take that element and get the child element that has a class name = to “content” and change the style
how can i do this
my bad, a simple if/else does it
anyone know my problem?
I might if you described it.
I did
but it’s not important now
I solved it
how bout my problem
http://maps.google.fr/maps/geo?q=saint%20germain%20des%20pr?s&output=json&key=ABQIAAAAtOjLpIVcO8im8KJFR8pcMhQjskl1-YgiA_BGX2yRrf7htVrbmBTWZt39_v1rJ4xxwZZCEomegYBo1w
but it return null, any idea why?
I have a php hosting script that I want to execute every 30 seconds, someone may guide me on doing that?
you can use meta refresh
is there a way to specify regex match to only return unique matches?
I only one a small segment, of the page to refresh not all
use xmlhttprequest
“a1b1c1a1bb2ccc3″.match(/[abc]/g) to only result in [a,b,c] for matches – rather than what it seems to do now: [a,b,c,a,b,b,c,c,c]
MikeD_, I may be wrong but [] signify character sets that can be included in your result
I’m parsing the matches (as tokens) and globally replacing each match with a specific value – there’s no point to having the second+ occurances checked for the replace if the first occurrance is global
it’s just an example – the actual regex is different
MikeD_, principle is the same, [abc] will match any a or any b or any c
suppose a,b,c are tokens/stubs that should get a different value replaced into the text at those points
right
but every time “a” appears it should be replaced in the text with “Foo”
so i don’t need the match to tell me that “a” is in the text 5 times
if i’m doing a global replace of “a” with “Foo” then i only care about the first “a”
can some1 help me
im trying to change the style of an element
when i pass in the parent elements id i want it to be able to find the child element
based on class name
MikeD_, why not use string.replcae
MikeD_, I dont think yo want match then
div id=”4″h2test/h2div class=”content”/div/div
so how can i make the content div change style?
I need some help. I’m trying to add script tags to the head on the fly
But it’s not quite working
i tried var name = document.getElementById(newsid).childNodes[0];
alert(name.nodeName);
and it gives me #text
I have an arbitrary length file containing any number of variables that are delimited with @@ – so i do var t = textblob.match(/@@.?&&/g); for(var x=0; xt.length; x++){ textblob.replace( new RegExp(t[x],”g”), getReplacementValue( t[x] ) ) }
titosanta – you need to iterate the collextion of childNodes looking for an element that has the class you want – think about how many elements may be inside a div – you can’t expect element 0 to be the one you want
i just didnt know why it was giving me #text
wouldn’t it be easier to change a className on the parent and use the cascading power of CSS
and the first item following it (which might contain just the line break character or other whitespace in the source)
how do i do that
what tag are you trying to access inside the parent div?
inputs? that are checkboxes of class “foo” ?
var children = this.childNodes; for (var i = 0, childLen = children.length; i childLen; i++) { var myChild = children[i]; if (/(^| )content( |$)/.test(myChild.className)) { myChild.style.color = “green”; break; } }
Maggi – nice
should give you an idea
does childLen get declared locally or globally with exactly that syntax?
locally
the comma separates multiple “var” s? cool
e.g. var x, y = “Foo”; alert(x); // “Foo” alert(y); // “Foo”
im just accessing a div
err
var x = “Foo”, y = “Foo”;
x = y = “Foo”;?
does var x=’foo’, var y=”foo” break the for() structure?
grimeboy – would you actually ever write that in real code?
var x = y = “Foo”; also works
not sure, try it
and yes, it can be practical
e.g. ele.onmouseover = ele.onfocus = myFunc;
just take a look at my example and adjust it to your needs, by the way, an ID shouldn’t start with a number, it’s not valid
hello excuse me, I have a question about printing
already googled for solution but did not seem find it
developing Firefox extension in Javascript — im working with contextual menu — and have object at document.popupNode — but how do i get that object’s document?
document.all
http://www.jboss.com/index.html?module=bb&op=viewtopic&t=114526
(kidding)
many thanks to any help!
nobody has a solution? Thanks in advance!
hrm
anyone have a clue about my RegExp question?
what was the question again?
not sure if I’d be much of a help tho, reg exp is not one of my strongest points ;p
you could try window.open(“…”).print();
I have a regexp match that returns the same value multiple times – i iterate all the matches and run a global replace on the text for each match
What are you trying to do.
how do i bind this window.open(“…”).print() to a button?
the 2nd+ occurrence of a specific match value are entering the global replace step even though they’ve already been done
sorry for the stupid question, i’m really clueless about javascript…
i was wondering if there is a way to return only unique matches
What are you trying to accomplish?
`paste
Paste links, not code: http://erxz.com/pb/ http://pastebin.parentnode.org/ http://paste.css-standards.org/
(Please, no code, just give me an example)
um… hold on
refToBtn.onclick = function() { var doc = window.open(“URLHere”); doc.print(); return doc.closed; };
input type=”button” value=”Print” onclick=”window.open(“…”).print()”
;D
lol
you and your fancy code
yes
big thank you!
it’s not that fancy
big thank you too!
you’re welcome
I havn’t tried it tho
np ningning
so try it first
i have a formatted list from a java bean, how to bind thid list to your “var doc” ?
“MikeD” at 71.6.194.243 pasted “prevent duplicate effort of global replace on redundant matches” (13 lines) at http://erxz.com/pb/3781
and what should i write for the URLHere?
I let you guess that
;p
the use of the done object accomplishes what I was looking for
I believe you can only print a whole document with the print method
fatbrain – i don’t think i could have explained that without code
Hi all. I’m trying to write a scanner according to ECMAScript 3rd edition. It’s fully working so far, except for regexps. I’m really lost on how to decide what is a regexp, and what is a division, or division&assignment operator. I can’t find anything in the standard. How should I be doing
this?
well, you could give me the source-string and the value you want when the parsing is done.
But I get what you want to do.
It’s alot easier than you think.
really? please explain
var content = { fname: ‘foo’, lname: ‘bar’ }; ‘@@fname@@ and @@lname@@’.replace(/@@.*?@@/g, function(s) { return content[s]; });
undefined and undefined
Any recommendations for standalone drag and drop library (no toolkits/frameworks)?
var content = { fname: ‘foo’, lname: ‘bar’ }; ‘@@fname@@ and @@lname@@’.replace(/@@(.*?)@@/g, function(s, f) { return content[f]; });
foo and bar
Did you get that?
what is “s” ?
it’s the whole match, e.g. ‘@@fname@@’ where f is the first matching-group i.e. ‘fname’
that’s very cool, thanks
np
i was unable to make that work in a JScript environment – most likely because Microsoft …
no matter
hihi
Hi Jan-
what’s the difference between using the new keyword to an object constructor and calling a function that returns an object?
if the function that returned the object did so by “new-ing” it, then there is very little difference
if it gives you some pre-existing object, then there’s a big difference
so i guess the answer is “it depends”
was it you who had the cool link about events and “this” with the sample of the Prototype bind function?
Guys when doing async javascript and sending values over $_GET how in the world do you retain the format of new lines?
it sends
one
two
as onetwo
npoe
nope, eben
but i need to process it and output it as seperate lines
dont use new line as a separator?
how do i do it then
wait
sepArate
what are you doing with the returned value? is it html? xml? js?
ajax
:/
wrong answer ….
what is the type of the ajax response?
errrrr
what is the type of the ajax response? are you expecting something that yo’ull treat as data?
i need ajax to take input.value that has stuff in lines
and not post it as $value=thisisnotonsamefuckingline
what does “ajax” mean to you
oh jesus.. prototype ajax.update call
what?
ok i dont use Prototype
typo, meant to address aleksey3
what about it?
what about what?
hey how can i dynamically change a css style? element.style = … does not work
change properties of the style object, dont assign directly to style
e.g. element.style.backgroundColor = …
k. thx.
are the names exactly the same as in css?
like border-color, border-width etc?
yes except where they have hyphens
i think those are camel-case
borderColor, etc.
anyways
answer is escape()
k. thx
grats on consulting the documentation after asking in channel!
uhuh. k
there’s also a special case
which is float
becomes cssFloat
except in IE
k thx.
don’t need float atm though
have you guys experience with canvas?
i have a var in javascript e.g var_test = “testtest”… how could I put another variable onto the end of that one.. e.g. in php it would be $var_test = “testtest” . $other_var;
?
var_test = “testtest” + other_var;
thanks
welcome
is there a simple string function that can be used to determine if a string contains a specific value anywhere in the string? For instance, I want to evaluate a string that reads “blahblahSOMETHINGblah” and respond if SOMETHING is found within the string (sorry for the bad example)
Is there any way to grab the values of inputs in a form as an array? I know that can be done if it is passed to php, but I want to process it with php.
*sorry, i meant to say that I want to use ajax
derenrich, no automatic method
you would have to write one
argh
but shouldn’t be too complicated
just stick all the form elements into an array then simply access their value or inner values
but you know, there are various other scripts already in circulation to do this. I think there are plugins for mootools and jquery at the very least
It isn’t a simple array at all (it’s 2D) and I planned to encode data in the array names and dimensions
as in name=”education[1][school_name]“
something like that
then it’s not an array
it’s a hash/object contained within an array
don’t confuse the two (no, really don’t)
In ph they are both arrays
*php
not in javascript
thus the problem
js doesn’t have associative arrays
Well, it has hacked objects
you use objects instead
yeah
tag into the head of my html page using js, is there a way I can tell when the script has been loaded without added javascript code to the script file?
Don’t think so
Luminari, use an object
in your included js file
I have objects there
simply have it create window._custom_object = true
then you can do a check if said object exists
.match property can be used to validate if a string contains a specific value
basically you mean write a loop that keeps going till the object exists?
Wait, browsers won’t parse script tags that are created by js afaik
I had that exact problem this morning
they definitely will
as long as I wait long enough for the script to load, I can
Maybe that was the problem
you can insert script using dom methods
I didn’t even realize it was a problem until just today when I tried to use the data right after added the tag
if it’s an external file (if I remember correctly)
thats how I did it
I just have to make sure the script is loaded before I can continue
Luminari, the only thing I can think of then, is to have your added script call a function in the main script
or if the main script is adding the new script, write an oncomplete function that’s called once the script is appended to the page
var myStr = “abcSOMETHINGdef”; if (myStr.indexOf(“SOMETHING”) != -1) { // do something }
I was hoping to avoid that because the script actually contains localizations, which I didn’t want to confuse since non techies may end up writing them
Luminari, so write an oncomplete script in the code that actually includes the file
don’t completely follow
If I do var AB = {} then AB.options = {…}, then var BBB = new AB;, will BBB.options be set?
thank you. I’m finding that var myStr=”abcSOMETHINGdef”; if (myStr.match(“SOMETHING”)==”SOMETHING”) {// do something} works as well, though the indexOf method might be cleaner…
`js ref
http://developer.mozilla.org/en/docs/JavaScript , http://devedge-temp.mozilla.org/central/javascript/index_en.html , http://phrogz.net/ObjJob/ , JScript@MSDN: http://tinyurl.com/9pk3l , www.crockford.com/javascript/
if i have temp = {a: 0, b: 1, c: 3}; how can i add ‘d: 4′ to the object?
temp.d = 4
ahh. easy enough
thx
yup expando properties
is there a way to pop a specific value off of an array?
you mean by index? no.
I prototyped a method on for it
You c
You can have it if you want
um, I mean if I have array ["poem","shortstory","novel","other"]
and I want to do this.. (pseudocode)
newarray = oldarray.pop(‘novel’);
Fair enough. Don’t think it works like that.
Write yourself a quick method to do it and prototype it onto Array.
right, that’s what I’m working on figuring out
like ruby array.delete
anyone know of a simple way to clone a select box?
with all its options and such intact?
innerhtml?
ah, found it, in the prototype library array.without is like ruby’s array.delete
just what I want at my job, IED’s
Does anyone know a good looking, easy to use, DHTML calendar?
What do you mean?
for a form
You want to put events on a page, or do you want to select a date?
`calendar @ collink // no idea if it’s any good, but someone put it in the bot at some stage for a reason
http://www.dynarch.com/projects/calendar/
I’ve tried that
it looks good
but it has an issue with recursion
Coo. Iraq coder.
(or the ability)
Is it possible to have multicolored text inside a textarea element?
no
Ok. It was just a dream
ok. how can i get the length of that object now?
temp.length is undefined
onClick=”location.replace()” –how can i make it open in same window onClick=”location.window()” ?
onclick=”alert(‘Press Ctrl+N please’);”
just kidding
hey little question. is cloneNode faster than createElement?
window.open(document.location); ?
given the following:
var temp = {a: 1, b: 2, c: 3};
how can i find the length of temp?
just iterate through a for loop, or is there an easier way?
http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Array:splice and http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Array:indexOf#Compatibility
thanks Maggi – I found a method called .without in the prototype library
temp is an object. It HAS no length
How can he find how many elements it holds?
yeah. i’m aware of that, but it has 3 key/value pairs. surely i can get that number from the object
yes, cloneNode is faster than createElement
So I want to do something like if (m != null) {m.close()} but soon as I reference m to see if its null it gives me a m is not defined error, any ideas?
var tmpLen = -1; for (var i in temp) { tmpLen++; } alert(tmpLen); // 2
yeah. that’s what i ended up doing. figured it was easier to count…
not quite right
`for/in @ atoponce and Maggi
for/in: Loop over keys in an object, skipping prototypes: for( var i in Obj ) if( Obj.hasOwnProperty(i) ){ … }
ah nice that someone came out with a simple fix for the for..in crap
ah, yes, nice
i will stick with the regular way of iterating
regular?
if (typeof m != “undefined” && m != null) { m.close(); }
woosta, i meant my regular way i guess
thanks maggi
Letting prototypes creep in?
how much faster?
woosta i dont see how prototypes creep in with for(var i =0; iObj.length; i++){}
Erm .. coz that’s not an object .. that’s an array
significantly
even faster than creating the elements using html-code and innerHTML?
No .. but at least it WORKS
ok. thx.
good point
Object.prototype.Foo = “Bar”; var myObj = {}; for (var i in myObj) { if (myObj.hasOwnProperty(i)) { // Foo is not taken into account, correct? } }
correct
awesome
does IE support this?
yes
great
You don’t need that extra set of braces
for () if () { .. }
will work just fine
yes, just being strict there
return Validation.get(‘IsEmpty’).test(v) || !/\W/.test(v)
hi all
whats !/\W/.test(v)
it’s regex for alphanum ?
var h = my_element.style.height; – how can I convert it to a numeric value if I for example got something like “500px”?
tests if v doesn’t contain non word chars
i need to replace this with something that accept an adress
address?
email or snail?
666 HellStreet
erm .. the best you’ll get there is just making sure it has SOME value
use parseInt or parseFloat
can’t i just add the ‘SPACE’ char to this regex ?
thanks
/^\s*$/.test(v)
!/\W\s/.test(v)
what about this ?
no
google for “JavaScript regular expression”
http://www.commentcamarche.net/javascript/jsregexp.php3
well your’s work with anything lol
[many numbers] [space] [many char/space]
always include optional braces
it’s a language specification error to even make them optional in the first place
NO OPPOSING VIEWS ON THIS POINT ARE ACCEPTABLE
I’m in agreement in this case.
tyvm
All braces or no braces.
no braces?
No middle ground as far as I’m concerned.
if (/^\s*$/.test(v)) { // v is empty or contains only whitespace chars, error handling here blah }
then how to define blocks? sytactically-meaningful indentation?
tha’ts a mistake too imo
well, blocks can be useful
Nah, I like meaningful whitespace.
[0-9] [A-Z]
anyways, ill just write required
and regex it with php
damn i hate js
bullshit
Please don’t spread FUD
It’s not fud, it’s obviously strongly held personal opinion.
I don’t mind his opinion, but it’s most certainly FUD that is was a “language specification error”
They lend no semantic significance to a single action
Thus they are not required
It *annoys* me that they’re needed in other languages .. but I’m not going around claiming that their need in other languages was an error
What are we talking aboot?
if i have a variable referencing a uri, like x = http://test , can I get the source in txt form for the uri?
i want to do some regex work on the uri to get some data out
You can, but only if the URL is in the same domain as the calling document
Thanks, but no thanks. Plenty of leftover Indian in the fridge
do you mean domain as in same file system or as in http://
Is it possible to limit the types of chars I input in my text box?
mmmm indian
“leftover chinese” is a phrase which no-one in my house could parse
http:// is the protocol.
woosta, no, it’s an external uri
Chinese as in “chinese food”
http://this.bit.here/but/not/this.bit
Or at least the close approximation served by takeaways in Essex
Then no, you can’t do that
you have to use a server-side proxy then.
(which must reside in your domain)
^^ And make sure it’s no an open proxy!
(no cross-site XHR was supposed to be a security measure (bleugh) .. instead it has led to thousands of open proxies being exploited by spammers)
(no cross-site XHR was supposed to be a security measure (bleugh) .. instead it has led to thousands of open proxies being exploited by spammers)
b(no cross-site XHR was supposed to be a security measure (bleugh) .. instead it has led to thousands of open proxies being exploited by spammers)/b
off
Curried chicken, natch.
reboot, brb
Mmmm. Full now.
JAN!
DAVEMAN!
Er.
Hello Jan
how’s Daveworld
Pretty good, Jan, … pretty good
Busy as all hell, so, the usual, I guess
Woman got a promotion
How’s your work going?
It makes me get up superearly and sleep when I get home.
I’m getting a bit tired of it.
Jan, well, hopefully there’s SOME reward to it…
say… something to pay the rent, perhaps?
how do i get the value of a radio button?
i tried using .value but i’m getting “undefined” on alert;
is it similar to a select where i have to take selected index or something?
are you sure you’re doing .value on a radio button and not a NodeList?
um, pretty sure, what’s the difference?
form.elements['status'].value
onclick=’document.body.style.fontSize = “18″;
are there multiple radio buttons with the same name in your form?
nevermind
forgot px
yes indeed there are, that’s the way radio buttons work no?
then form.elements['status'] will give you a list, not a radio button
and i need the value=”" attribute of the one that is selected
ok
`js ref
http://developer.mozilla.org/en/docs/JavaScript , http://devedge-temp.mozilla.org/central/javascript/index_en.html , http://phrogz.net/ObjJob/ , JScript@MSDN: http://tinyurl.com/9pk3l , www.crockford.com/javascript/
loop over it and find the one which is .checked
does javascript have foreach?
`js ref radio
for(var i = 0, l = yourList.length; i l; i++) { var item = yourList[i]; }, or use soemthing like http://dean.edwards.name/weblog/2006/07/enum/
*something
k
Hello
what do i use to do a simple ‘y/n’ dialog with an OK/Cancel button?
does alert() support that or do i use something else?
confirm
`js ref confirm
bah, anyone? ref on that?
http://developer.mozilla.org/en/docs/DOM:window.confirm
`dom ref confirm
Displays a modal dialog with a message and two buttons, OK and Cancel. (http://developer.mozilla.org/en/docs/DOM:window.confirm)
confirm etc are DOM methods
(For some bizarre reason)
strange if they where part of the js-language.
yeh, quite bizarre reason, but whatever
what else would they be
Application Object Model
Hoenoes!
ZOMG!
hi all
have pb with IE nd this script
http://paste2.org/p/5210
it add me an empty value to the list
any idea?
pb with leftlist.appendChild(newOption);
uh, variable names that start with ‘var’?
yes what’s the pb?
it works fine with IE
euuh
with FF and opera
but not with IE
what’s the pb?
heho
var var; – teh leet syntax. or maybe you gaiz di’n get the memo
why on earth would document.formname.submit(); get me the error that “this object doesnt support that property or method” ?
`js forms
use document.forms['formname'].submit()
i shall try o7
no dice
document.forms.formname and document.forms['formname'] are interchangeable
fhat is id of your form ? is it really is formname ?
but either way it says my form cant be submitted…do I need to have a submit button for it to be submittable?
no, its getfile but i tried it with getfile
no, you do not have to have submit control
http://paste2.org/p/5212
same pb
strange. can the javascript be after the form for it to work?
it add an empty row to the select list
rightlist.item(rightlist.selectedIndex).text cotain a null value when i put alert
with FF and opera all it’s right
the pb persist with leftlist.appendChild(newOption);
newOpetion Contain a right value
but when it append it to the new list, it append an empty valuee
http://paste2.org/p/5212
anyone knows those image gallery scripts that fill the screen with a semitransparent png?
look jquery library
k
so i have an action that needs to fire on a resize event … however i’m not exactly sure how to go about capturing this event in IE6/7 since it continuously fires the event. Where as in FF / Safari it fires it after the user has finished resizing. any ideas?
onresize=function(){ if(window.resizeTimeout) clearTimeout(window.resizeTimeout); window.resizeTimeout = setTimeout(function(){ do whatever }, 500) }
Now it will only ‘do whatever’ 500ms after you stop resizing
in IE it will constantly set and reset the timeout
in FF it will just be set once
In both, it will call the handler function just once, 500ms after you stop resizing
whats hte css property that greys out an entire div or such? like in lightbox?
^[0-9a-zA-ZäöüÄÖÜß-\+\*\~\#\^$\§\%\€\ ]{10,250}$
this channel is 99% dead btw
where’s the real freenode javascript chan
99% dead? saywhat?
from a page? is there something along the lines of a document.removeElement() or document.deleteElement() or something?
#css ?
s/99% dead btw/not responding to me INSTANTLY LIKE I DESERVE, DAMNIT/
background: gray; ?
lol
that effect is often acheived by overlaying an element over the whole viewport and making it semi-transparent
Woosta, thank you
insin; hmm i see
so i need to find my elements position and size
is there a javascript way to quickly see if an array contains an item?
var yourNode=document.getElementById(‘yourNodeID’); yourNode.parentNode.removeChild(yourNode)
no
a particular item that is.
well
`index of
`indexof
`indexof array
bah
`array indexof
indexOf is only supported in JS1.6+ .. so you can optionally add it as a prototype to earlier versions: if(![].indexOf) Array.prototype.indexOf = function(needle){ for(var i=0; ithis.length; i++) if(this[i] == needle) return i; return -1 }
a valiant effort, Woosta
FINALLY
ah, bested!
opacity (W3C), filter: alpha(opacity) (IE), -moz-opacity (Mozilla based), -webkit-opacity (Webkit based, Safari…), -khtml-opacity (KHTML based, Konqueror…)
`css opacity
learn css opacity = opacity (W3C), filter: alpha(opacity) (IE), -moz-opacity (Mozilla based), -webkit-opacity (Webkit based, Safari…), -khtml-opacity (KHTML based, Konqueror…)
OK
sweeet
pretty much every modern browser supports the W3C variant (CSS 3) except for IE (this includes version 7)
ie supports nothing… ‘cept activex trash :p
learn css opacity = W3C: opacity:0.5; Gecko: -moz-opacity:0.5; Webkit (Safari): -webkit-opacity:0.5; KHTML (Konqueror): -khtml-opacity:0.5; IE: filter:progidXImageTransform.Microsoft.Alpha(opacity=50);
OK
learn css opacity = W3C: opacity:0.5; Gecko*: -moz-opacity:0.5; Webkit (Safari)*: -webkit-opacity:0.5; KHTML (Konqueror)*: -khtml-opacity:0.5; IE: filter:progidXImageTransform.Microsoft.Alpha(opacity=50); (* = recent versions support W3C)
OK
how do i get the position of a div after i have its object w/ document.getElementById
how can I get the id of an element?
?
getAttribute(“id”)
thanks, Maggi
sorry about that..
Hang on kalve .. WHY do you want the ID?
my fault
position? At a guess you mean offset .. in which case offsetLeft and offsetTop .. which is an offset from offsetParent
hmm does firefox not render border-top-style dotted ?
i found a function
findxywh()
next i need to figure out how to set x, y, w, and h.
With CSS
hey everyone
i’m using mootools Drag.Drop .. and when I drop the item, I need to get the id of the element I just dropped.
hey look at this
http://www.developpeztn.net/verboz/
have pb with IE
but it didn’t work with getAttribute(“id”), probably because the element is a “clone” of the original element.
the question is WHY you think you need it
Woosta, http://www.developpeztn.net/verboz/
any suggestion?
I need to send the ID to a script using an ajax request
OK, we’re getting closer .. why does your script need the ID?
to know what was dropped in the “cart”, and update it accordingly
So you’re trying to use the ID to store data
but because the drag clones the original node, it’s gone
(as you can’t have more than one instance of any ID in a document, a clone will not clone the ID)
ok
is there a way to refresh a page via js
window.location=window.location ?
would you mind take a look at my code and see if you have a quick suggestion on how I could pass that information?
hm what was that’
?
string value
not id
location.reload();
you could store it in a custom property (not attribute) of the clone
or give the clone the ID + “Clone”
^^ kalve .. talk to Maggi .. and remember: ID is not for storing data
NO
don’t store data in there
you could then just strip out “Clone” but I’d go with a custom property
anyway, dinner time
is there a way to define custom property in html? or should I first use custom property on the element (from source elements ID) when I clone the first element?
Hey
ok, say I have a table and onclick on I want to do something to that cell that I click. How do I get the value of the cell that was clicked?
I am just getting into java script
I bought a book, I was wondering though if any of you guys would suggest a good one
?
OnClick
antihaxer-: what?
case sensitive?
then this.innerHTML=”new what not”
right?
never use uppercase in html
I was wondering if you could suggest a good book for learning javascript
antihaxer-: no
lol
i don’t know javascript :p
This channel is ##javascript?
are you a programmer? or a web designer?
vise versa ?
do you have a programming background?
Does anyone know of a good book for learning javascript?
oops
i meant to refer to antihaxer- not kalve
I have done a lot of programming in PHP, and a lot of web design
ok
Me?
antihaxer-: it depends on what your background is
Yes, i do have a programming abckgrounf
background*
sup
I know some c and a bit of other languages
I also know html
hello
hey
i know the basics
how is that chat going? :p
arrays, variables etc in all the languages
its going great
just about to ask a question related to it, actually
vinse, so suggestion on a book? For programming, not web designing.
msg = msg.replace(‘+’,”%2B”); If msg is “lol+lol” it will replace with “lol%2B”. But if msg is “lol++++lol” it will replace with “lol%2B+++”.. why is this?
antihaxer-: check out www.crockford.com; he’s a good technical resource for javascript
K, thanks, bookmarked, but for an actual book?
antihaxer-: plus he has a specific book recommendation
though i dont remember what it is
ok, thanks
hey everyone
Nearly all of the books about JavaScript are quite awful. They contain errors, poor examples, and promote bad practices. Important features of the language are often explained poorly, or left out entirely. I have reviewed dozens of JavaScript books, and I can only recommend one: JavaScript: The
Definitive Guide (5th Edition) by David Flanagan.
now i’m generating these table cells with insertCell(); how do I add an onClick event to them?
give it s a regex, not a string, then make it global
replace(/\+/g, ‘%2B’)
okay thanks dude Lemme try it out
Last time I did /\+/ but that didnt work
but I suppose that global thing will help
before you insert it just do myCell.onclick =
ok onClick is an attribute
cool
should be all lowercase [some browsers dont like it if it's not]
dont capitalize it
woot! It works
http://atomiku.com/scripts/ajaxchat/chat.html
feel free to try and break it
I need to get this thing fool proof before I release it D:
pfft
its pretty secure atm
You can only test for foolproof by giving it to fools
just slap a “beta” on the label
and release with impunity!
XD
I suppose so
but if something bad went wrong
it’s good enough for google …
my reputation would be lowed
lol
*lowered
have you fixed your sql injection? :p
why do i have to hit enter twice to send a message on that? lol
what browser?
Firefox/WinXP Media Edition
doesn’t seem to be working
x.cells[offset].onclick=”table_edit_cell(this)”; x.cells[offset] is the cell I want to assign my onclick to
but it seems to be not working
heh
try … = function() { table_edit_cell(this); }
what does that do?
it creates an anonymous function and assigns it to the cells onclick property
I don’t think thats my problem
when you do function foo() { … its the same as var foo = function { …
yes it is, what you just showed wont work ever
you assigned a string to the onclick property
onclick has to be a function
wait
that should have been the same as onclick=”table_edit_cell(this)”
table_edit_cell(x) is one of my functions
no
table_edit_cell is a function
“table_edit_cell” is a string
ahh
yes
so when I set mycell.onclick= to what?
function() { table_edit_cell(this); }
so that sets the onlick property to a function instead of a string
regexp in javascript looks like a pain
ya know in js, when you go back
is it possible to keep the form elements in place ?
how can I determine the coordinates of a pop-up window after it has been opened? Say I would like to know if the user has moved the window around…
can i do a triplicate equality check? $foo == $bar == $baz; to see if three vars are all the same?
i don’t suspect i can, but i figure maybe javascript will do that
er, i guess that’s sort of PHP syntax, remove the $’s
with or without $s you cant do that
just break it into two statements
for example if A=B and B=C
then A would = C
it will evaluated the first comparison to some boolean value and then compare the result of foo == bar to baz
$foo == $bar && $bar == $baz
DO THE NETSPLIT
that never gets old
whats going on?
why is everybody leaving an joining so fast?
is it just my client?
some wierd irc network freak o ut
happens fairly regularly
how can I determine the coordinates of a pop-up window after it has been opened? Say I would like to know if the user has moved the window around…
element.offsetTop and element.offsetLeft will work i think … the element has to be a child of the document body though
I have a question concerning table manipulation, specifically how to dynamically update an image placed in a table. Forget for a moment that this is not the ideal solution (I would much rather set the page up with div’s, but thats not an option). I have a column of check boxes and I want to
respond to a check box being checked and change the image. I have a function I’ve written to respond to the check box and it’s
working, but how do I update the table of my choice with the proper image?!?
create an img element and append it to the td element you want it displayed in
i’m answering way more questions than is justified by my actual javascript knowledge
hopefully some one will read all this and correct me
ok I will look into it, and it is a child so that works out =]
regex1 = new RegExp(“/^\input.+\$/”); is that proper syntax for a regex?
tags. Can you give me a for-instance/example of what you are referring to?
are you familiar with DOM methods?
yes
regex1.test(“\input”) should be true
you can use DOM to create an element of a specific type, ie img
ok, that’s a good place to start. I will do some research on this.
ok can’t figure this out
I think I’ve found a blog that goes into some detail. Thank you for the direction
np
hey everyone
http://www.regular-expressions.info/javascript.html
from my bookmarks
yeah I’m reading it right now
hey is there any routine available to javascript to decompress data? like deflate?
Not built in.
Why do you want to do that, though? The browser should handle compression and decompression en route.
just curious
i’m trying to do inline html images
Ah. Was just having a code-hiding discussion in #python, and when people ask about compression and decompression in Javascript, I automatically, cynically, think: “oh, that person’s just trying to obfuscate code. Let’s try to deter him from doing that.”
Ah. data urls?
nope
i have a javascript string that contains the rgb data
You could use one pixel table cells.
its lz77 and base64 encoded
i draw to a canvas and for ie i fall back to table cells
How’s the performance on that?
i also had a version that used divs. but it was way too slow
Have you tried the canvas-for-IE implementation?
quite bad
and occasionally the browser crashes
What about the last technique listed here? http://www.elf.org/essay/inline-image.html
i’ve read that already
and it looks quite wastefull having to escape all the data
And it doesn’t work in IE anyway.
my code should also work in ie, but unf. i couldn’t test it yet with it
It seems easier to just let the server generate the image.
but its cheating!
Well, it could be a simple program that slurped the urlencoded image from the URL and echoed it with the correct mimetype.
Of course, you run afoul of URL length limits that way.
here is a taste of how slow it is: http://77.57.2.131/~schwadri/peep.html
Yow
Just over three seconds
CHOCOLATE RAIN!
really?
weird
mine was so much slower
hm the table version seems to be broken
hey is it possible to delete objects just like in c++?
delete somevar?
or var=null?
`js ref delete
The delete operator deletes an object, an object’s property, or an element at a specified index in an array. (http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Operatorspecial_Operators:delete_Operator)
try searching the docs before asking
k. thx
do u use ie?
oh
lol
hey everyone, i’m having a problem correcting the offset in IE7
http://projects.darkcitydesigns.com/bcp/
every submenu is supposed to be 65px to the left of where it’s at
when i try to fix this in JS, nothing happens
i could set the style.left property to 9000px, nothin
and the worst part is i don’t have access to IE7 at all
because i’m using a mac
anyone?
hmm trying to get a dynamically created form to post
and its not sending the data I want
is it possible to load an entire style sheet dynamically with javascript?
algum brasileiro?
there’s no reason to, CSS has a statement called @import
how could I import a css from a drop down menu?
is there any way to make a text input box without the border?
CSS
I do it here .. with an action on focus to put them back: http://rick.measham.id.au/paste/drag-n-drop.htm