imagine mydomaincom-resource-getsomemorephp is the link and mydomaincom-indexphp is in browser try resource-getsomemorephp
it'll load a new page, yes
/[a-zåäö0-9]/i will match without beeing case-sensitive
but the browser won't know why
ofc you should add the quantifier and the match-start/match-end tokens
thats ok. Im trying to redirect a page to another page.
of course it'll only work if javascript is available and enabled
match-start/match-end tokens ?
^$
ohhh
but its there ?
if it happens automatically, the browser can do it when not expected, which can damage the effect of the back button: pressing back goes to the previous page, which then immediately loads a new page
which means you can't go back further by pressing the back button twice
Yes, I was talking about my example.
oh, sorry
Do you have the page online for viewing?
hello
Hi.
how can I create link to the javascript host function
no, its not online yet
i want error messages like in java or php!
stuck with this code for some hours now, going crazy
code looks valid from my end
to get more info I'd have to run the page
ill paste my form with the javascript file in pastebin, and you can paste it to a document?
any idea ?
As long as its one page
sure. ill put the class in the header too.
a link to who?
split(//,'perlman')
7
here you go : http://pastebin.parentnode.org/18331
split(/l/,'perlman')[0]
''ERROR: syntax error at (eval 212) line 1, near ")["
syntax error at (eval 212) line 1, near ")["
split(/l/, 'perlman')
2
a href="what should I write here"link/a
a valid uri
that's markup you know, not js
functionToRun()
something like that
a'right, thanx dude
o=function(arg){ return 'me slaps '+arg+' with a vegetaarian eggroll'} o('finpingvin')
Error: Error: missing ; before statement at line 0: o=function(arg){ return 'me slaps '+arg+' with a vegetaarian eggroll'} o('finpingvin')
All your class methods are incorrectly defined.
function isEmpty() should read this.isEmpty = function()
okay followed a tutorial during that one :/
o=function(arg){ return ('me slaps '+arg+' with a vegetaarian eggroll')} o('finpingvin')
Error: Error: missing ; before statement at line 0: o=function(arg){ return ('me slaps '+arg+' with a vegetaarian eggroll')} o('finpingvin')
. wonder why it errs
mechecks in firebgu
because the } is part of an expression, not a statement
o=function(arg){ return ('me slaps '+arg+' with a vegetaarian eggroll')}; o('finpingvin')
me slaps finpingvin with a vegetaarian eggroll
:O
P
:P
hehe
CSS is incredibly less annoying when you reverse the effects of adding a border with a negative margin… I can't believe I never thought of doing it until now
look at 48, 92 of your code: shouldnt that be value instead of val?
he's swedish, cut him some slack
swedish= slow coder?
o=function(arg){ return ('me slaps '+arg+' with a vegetaarian eggroll')} o('finpingvin');
Error: Error: missing ; before statement at line 0: o=function(arg){ return ('me slaps '+arg+' with a vegetaarian eggroll')} o('finpingvin');
lol
hey. followed a tutorial confused it with what it was called there i guess hehe. and swedish != slow coder, look at MySQL for an example
mysql, isn't that opensourced?
o=function(arg){ return ('me slaps '+arg+' with a vegetaarian eggroll');} o('finpingvin')
Error: Error: missing ; before statement at line 0: o=function(arg){ return ('me slaps '+arg+' with a vegetaarian eggroll');} o('finpingvin')
the company php mysql web hosting AB is swedish
o=function(arg){ return ('me slaps '+arg+' with a vegetaarian eggroll');} o('finpingvin');
Error: Error: missing ; before statement at line 0: o=function(arg){ return ('me slaps '+arg+' with a vegetaarian eggroll');} o('finpingvin');
I know, but the coders may not be swedish…
damn how do i get this irc javascriot to work?
by doing it right
true
but we have alot of great game studios
like dice
o=function(arg) { return 'me slaps '+arg+' with a vegetaarian eggroll'; }; o('finpingvin');
me slaps finpingvin with a vegetaarian eggroll
o=function(arg){ return ('me slaps '+arg+' with a vegetaarian eggroll')}; o('fatbrain');
me slaps fatbrain with a vegetaarian eggroll
bah!
yeah
Starbreeze, who did darkness for 360
thx
the upcoming world in conflict
but back to the js, it still wont work :/
if(value = match(/^s+$/) || value == "") {
\s
not s
value = match(/^s+$/
== ?
oh, sorry
I have a question for all you super js coders! Is there a way to load a page with the "rel" property that u have in a href link?
and use the * quantifier instead of +
and remove the || value = ''
value=" "; if (value.match(/^\s*$/) return 'empty string';
Error: Error: missing ) after condition at line 0: value=" "; if (value.match(/^\s*$/) return 'empty string';
value=" "; if (value.match(/^\s*$/)) return 'empty string';
Error: Error: invalid return at line 0: value=" "; if (value.match(/^\s*$/)) return 'empty string';
value=" "; value.match(/^\s*$/) ? 'empty' : '';
empty
still complains that match is undefined
now it is if(value = match(/^\s*$/)) {
what?
value.match
match isn't a global function
and use regex.test
if(/^\s*$/.test(value))
im gouing to kill the one who wrote the tutorial ;p
Seems like an aweful crappy tutorial
is a rel attribute preventing a link you have from working?
but the = match() was mine, used to php
with empty src
php == fugly
on evry request web browser tried to fetch image from current url
so on POST I got POST and GET on the same url
php == is_nice();
php == error messages
Getting harrased with scriptaculous and barging into a channel suddenly the LoudMouthMan enters the room and says Hello.
Good timezone to you all, id like some cardboard programmer time with a ajax/scriptaculous question if its the appropriate channel ?
wtf is scriptaculous?
thanks anyway for all the help! just got it working
script.aculo.us
good for you
ur an angle ;D
an effects lib on top of prototype
prototype.js
scriptaculous is a ajax library / wrappers to save time rewritting various ajax/javascript code.
then I'm sure it was suppose to be named crapaculous
ahh okay
I am fatbrain, hear me ROOAR!!
thats the one .
ive been hunting a way to get the autocomplete function to append and not overwrite a textfield but im either being braindead or just that but ive not found anything which suggests others wanted to do the same .
deltab - nope, just wanted be able to call on a page with a rel value - by using javascript
*sigh* WHy is it so darn hard to get data from some source to a JS script.. probably easy for u guys.. but it feels like im getting no where..
there have to be 10b tutorials on the internets showing you how to do it
fatbrain - well, hard to find anything that match my needs in the matter.. but then again maybe im bad with keywords
Don't be too hard on yourself. Being bad at searching puts you right in the middle of the pack.
not sure what you mean
hi
Do you know a librry for simulate scrolling with javascript?
a draggable div as scroll bar , and the content to be scrolled
I need it for the horizontal direction
how can i get array of elements by their class? (i mean, like a class="kaki")
http://www.quirksmode.org/js/layerscroll.html - try this one?
if you know which type of tags, you could get them all with getelementsbytagname and check class
should the id proterty be unique for every tag? or can i use it for "grouping" tags?
getelementbyid is supposed to return only the first tag with the id
so it's not a good idea to use it for grouping
hm
it's supposed to return the only tag with that ID
if there's more than one tag with the same ID then the document's not valid and you can't guarantee what it'll do
`id v class
to identify an element, use id. To classify an element, use class
i'm having a problem with an included js file.. i'm using the jquery library to make a CMS, it works fine except for the relative linking to the php webhosting file which updates the database.. i can't seem to make an absolute link to the
file it just throws out errors
i might be doing something wrong.. how do i make an absolute path to a file in js?
how does your path look like now?
and why doesn't exist a getelementsbyclass function or something like that? i think it's a really common need to get arrays of classified tags…
anyways, thx for the help
good bye!
"testpost.php"
in one subdirectory it for example returns "404 cannot find 'rcb/testpost.php'"
and how do you call it in your script, ie make the request for the php?
http://docs.jquery.com/Ajax#.24.post.28_url.2C_params.2C_callback_.29 .
i guess your path is relative to document.location.pathname - look at how the url in the browser looks and go from there in a relative manner
imagine: mydomain.com/resource/getsomemore.php is the link and mydomain.com/index.php is in browser.. try 'resource/getsomemore.php' or am i getting something wrong?
hello everyone
ah cheers =] now it works, it also needed another prefixed / for it to work in subdirs - '/resource/getsomemore.php'
glad to hear - does it really need the prefixed /? in php / prefixed is for going to the webdirectory root.. but it might be the case that its the same anyway…
in my example that would be the same of course
yeah, theres the root dir, then subdirectory "rcb" in which is the script calling the testpost.php which is also in there, i forgot it had to be relative to the root of the site. i'm a php man, javascript confuses me!
its the same in php!
yeah for paths! but i meant generally haha