Im looking to write a bookmarklet for the iPhone with very little javascript background What do I want to look

Thanks anyways guys,

innerHTML–

lol, serious brainfart
Next up: Freeing memory before you've allocated it

Woosta, ain't working

bugger

argument is not getting passed apparently
i am getting p_data undefined variable
Woosta, channel_obj = new window[channel_klass](t_data);
channel_obj.display_response();
two precious lines, and i expect t_data to be passed to the constructor

initially i have a combo with, 6 elements… how disable the combobox? onload ?

works for me .. var foo = function(){this.y = 12}; var X = new window['foo'](); X.y

Woosta, works for me too, the problem was elsewhere
Object.extend was the culprit

ahh cool

how would I go about scrolling the page so that a spacific element comes into the viewport?

lokkju_wrk, scrollTop and getting the element position?

Where I can find all Keybord keys?
KeyCode i mean

is anyone familiar with plotkit?

if i add an form element via javascript.. and then i fill out that element and then have javascript add another form element is firefox known for clearing the first made form element?

Can someone help me debug a bizarre bug?
I will paypal someone $10 for their help

how are you modifying the form? innerHTML?

yes

Bzzzt

heh

`innerhtml sucks @ kuito

innerhtml sucks: If you have events on elements that are rendered via innerHTML they do not go away when you empty the innerHTML area. They may even crash your browser. You cannot use innerHTML for building items like tables in IE. You cannot use innerHTML for adding options to selects
in

elements in innerHTML are not executed.

"Form elements apparently added to forms via innerHTML do not get submitted with the form."
If you need to modify a form, you need to do it via DOM calls. InnerHTML should be avoided for all but the simplest of HTML

could you point me to a good tutorial that explains nodes and how to use them correctly? or is that the right way?

`html2dom @ kuito // Put some form stuff in the top left and click convert

html2dom: Woosta's (x)html to DOM convertor .. convert xhtml chunks to DOM scripting: http://rick.measham.id.au/paste/html2dom.htm

you'll see how the DOM methods look for the supplied HTML

so cut and paste the form into there and it will break it down for me?

yup
Of course, most of your form can already be on the page, you'll only need the parts of the code that add in the new parts
I don't do PM .. what's the problem in general terms. If it interests me, we can go from there

so if i switch this all to using createElement and appendChild and such it should remedy the problem?

yup

word that shouldn't be all that difficult

nup

seems like a bit more work than using innerHTML - but since it's the best way i will convert

innerHTML is so nice though
it's like…
document.innerHTML=whatever
and BOOM!

get over it

haha
i'm over it

innerHTML is a good idea, poorly implemented
If I had my way, you wouldn't call it on elements, but as a method
var contentObject = document.importHTML(yourString); someNode.appendChild(contentObject);

http://rafb.net/p/Nhcssw35.html — any ideas how to fix this function to work in Firefox as well as in explorer?

ya i wouldn't mind that .. would be simpler than createElement etc etc

exactly .. but it's in the same vein. It's a DOM method so it converts the string into a DOM object which you can then do whatever you want
BTW, if you have a chunk of HTML and don't want to turn it all to DOM, put your browser to work:

chart is not defined
in explorer it works

… then you can do: contentObject = d.gEBI('someChunk').cloneNode(true); someNode.appendChild(contentObject);

`no ie @ Techdeck_

no ie: Sorry, I don't help out with IE-only problems. They take up too much of my own life to spend time helping fix yours.

(and vice-versa)

woosta, do you know of a simple way if you had div1 above div2 to take div2 and move everything in it above div1?

Everything *in* it, or just swap them over?

ya everything in it would stay as well

div1.parentNode.insertBefore(div2, div1)

easy enough

will remove div2 from where it sits and insert it above div1

Woosta, the problem is in firefox, not IE :o )

is there also a insertAfter?

and I'm actually trying to make it portable ..

insertBefore( newNode, someNode.nextSibling ) === insertAfter

IE is working .. firefox don't know chart for some reason

`insertAfter
jsbot learn insertAfter = insertAfter is not a built-in function as the process is simple: containingNode.insertBefore( newNode, afterThis.nextSibling );

OK

Woosta, come on..

jsbot learn insertAfter = insertAfter is not a built-in function as the process is simple: containingNode.insertBefore( newNode, afterThisNode.nextSibling );

OK

(and vice-versa)

You seriously caught me on a bad week .. I've been knee deep in cross-browser problems all week

that's a bummer

Actually .. make that nipple deep. It's been a bad week

ah okay man.. can you just give me a direction?

Left

i do a lot of html/css and cross-browser problems are the suck

-wiseass remarks :p
nvm, I'll google my soul out

Meltdown

Module Meltdown does not appear to be in core. Perhaps capitalization matters or try using the 'cpan' command to search for it.

lol

hello. how can i include a script file only once the html host body is loaded?

`include

Include another Javascript file in your Javascript .. http://www.phpied.com/javascript-include/

^^ adapt

im not sure what just happened
but thanks ill give it a go

anyone used swfupload.mammon.se ?

*crickets chirp*

indeed
i need a multi fileupload system but browsers are retarded
what about this http://www.fyneworks.com/jquery/multiple-file-upload/
hmm are jquery and its plugisn gpl'd?

`explorer

http://paste.debian.net/33443
this is a script that helps me drag nd drop table rows (sortable way)
I've got it somewhere online
now… this scripts triggers also the onDrop event when I only click on the row and don'ta ctually moveanything
can somebody help me prevent doing that?
I would like that onDrop is triggered only when the row is moved

i cant help you for this script but Yahoo's UI library is hard to beat for drag and drop.

yes I tried jQueries interface and scriptaculous but both doesnt support table rows
I will check yahoo UI but I doubt
hm… and yahoo UI doesnt work with jQuery, right?
couse I've got the whole app on jquery, so I cant use anything else
except for simple scirpts taht doesnt enterfier
so any1?

some one work with jsquery? i am testing the width function wich works properly in msie 6, mozilla and also on one comp on msie7, but on another comp on msie7 it doesnt work properly, i am detecking the witdh of UL in another parent UL, LI, and is the problem, in msie7 he get the the with of
ist parent LI, not an UL how it is, because the UL is bigger than its LI parent. any idea? thank you

you ment jQuery probably, right? try on #jquery

Lion29 ok i try yes i ment jQuery, sorry

http://vids.myspace.com/index.cfm?fuseaction=vids.individual&videoid=7084203
a href="http://vids.myspace.com/index.cfm?fuseaction=vids.individual&videoid=7084203"http://vids.myspace.com/index.cfm?fuseaction=vids.individual&videoid=7084203/a

how to change the background of a tr by mouseover?
onmouseover="document.table.tr.background='#FFFFFF'" ?

hi
i seem to be having some reentrancy issues with qooxdoo and xmlhttprequest
the callback of the xhr seems to fire while the code is busy doing something else

try onMouseOver="this.bgcolor=….";
or background

is this correct ?
i would expect setTimeout and the xhr callbacks to fire after other running scripts complete

and it's better to use style

I'm looking to write a bookmarklet for the iPhone with very little javascript host background. What do I want to look at to popup a modal dialog with some text, a text input field, and three button?

first i suggest you take some gasoline, soak the iphone in it, take am atch and light the POS on fire
first i suggest you take some gasoline, soak the iphone in it, take am atch and light the POS on fire

I'll take that under advisement. :-)

then get a real phone and start over

anyone that can direct me to some documentation on 'when' the callback of xmlhttprequest and settimeout fire ?
google hasn't been helpfull

is what I want to do hard, or am I just not looking at the right stuff? I see the prompt command, but I cannot supply three buttons.

does work

does anyone know of a compatible way to do t his http://wvr.me.uk/javascripts/parentnode.html
it doesn't work in MSIE

anyone? please

tr onmouseover="this.style.backgroundColor='red'"tdtest/td/tr
this works perfectly

how can i add the class attribute into an existing input-field with Javascript?
the input-field is this:
input name="sa" value="Google-Suche" id="sbb" type="submit" /
it should work like this:
input class="button" name="sa" value="Google-Suche" id="sbb" type="submit" /

where is the error? http://pastebin.com/m470b38d8 thanks

http://www.irt.org/articles/js027/index.htm

it works
but the problem is with the parameters

???
no help here to add a class="button" to an input-Tag?

what is the problem? you want to add a class to an element with js?

Yes

document.getElementById('input_element_id').className = 'button';

i will try it… thanks… i think it must be like appendChild etc…

Does anyone knows whats my problem with the arguments? http://pastebin.com/m6e745c2
Thanks

why are u using quotes?

logik-bomb: http://pastebin.com/m21a6e5a5

Twey, shouldnt this work? http://pastebin.com/m35c70cae
thanks

What's the best web hosting standalone JS implementation in terms of C extensibility, most standard support, speed, etc?
Spidermonkey?

this is probably the grossest question ever but, is there any way to do rounded edges without javascript?
and easy way?

yes

using CSS?

you can use four images

Romes, yes there is

yes, there are a lot of options for you out there

google

but this is a js channel… so I guess if you'd lke to do it without js you don't need our help

you can use four images, for each corner

hehe
why not two, top/bottom?

oh i thought you said WITH js

there are a lot, really a lot of articles out there for rounded corners
check google

lol
will do
thanks

Romes, it depend, you want it to be able to get wider?
you'll be stuck with one width if you use two images

true, I didn't think about that

or one height

he said top/bottom

why not two, top/bottom?

Romes, google it
i found a site that makes you these 4 corners
you give him color and some stuff
he gives you the images, css and html

hah, cool

Romes, http://www.roundedcornr.com/
use the "Basic RoundedCornr"

http://pastie.caboo.se/82425
but i'm it doesn't work. maybe you have an idea?
why?
i think it's easy for you js-experts

okay, doing this manually is going to suck
especially since I change colour schemes all the time…
so… is there any way to do this *with* javascript? lol

anyone?

while(true);
1+1;

2

while(var i=0;110){i–;};

Error: Error: syntax error at line 0: while(var i=0;110){i–;};

:/

while(var i=0;i10){};

Error: Error: syntax error at line 0: while(var i=0;i10){};

so IS spidermonkey the best choice for a standalone impl?

*
To prove that you're not a bot, enter this code
Anti-Spam Image

Comments are closed.


Blog Tags:

Similar posts: