Wednesday, June 25, 2008

can someone please show me some basic code for how javascript could manipulate a DOM (document object model).

Can be very basic

I absentmindedly asked a question a few days ago about how to add a mailto button when I really meant this- and somehow I m not surprised that I didn t realize until someone answered.

Anyway- what I actually need is the actionscript for a button that will bring up the print page dialogue box/wizard and reference the page to be printed from a separate HTML file in the same directory. I know this can only be done with javascript in HTML- so would that work within the geturl- or is there a function in flash for that?

My guess is something like: "on (release) {
getURL("javascript:window.print(page.html)")"

i ahev a blackberry curve 8310 from at$t and when i go on yahoo answers from my blackberry it will let me get on but when i go to submit an answer t says that i cant because javascript is not enabled so i went to the browser home and hit options and general and went to where it says:
"enable javascript location support
prompt before
closing browser or escape
closing modified pages
running wml script"
and theres a box beside each one so i turned them all on and it stil lwont work-what do i do?

ok here is a code i have
<div id="marketing" style="height: 285px; width: 960px;">
<div id="swf">
</div>
<div id="ad">
<div id="tkn_medrec"></div><script type="text/javascript">
sdc_wrapper("tkn_medrec"- "/Homepage/Index-SiteHome-10000000"- "x14");
</script>

</div>
</div>

now how can i use that to make the video play? there are some other things in the <head> and if i have all that too how can i make this play? i dont understand it... its off another website- is there a way i can use that video in mine? can u give me an idea? ty
any help would be greatly appreciated!
ive tried that but it doesnt work- it doesnt even work if i just view source and save a some.html- is there a way i can make it work?
tx

Hello world- i m 14 years old and i m not that great with computers and i ll explain this with as much detail as possible. I go to youtube and click a video to watch it and it says- "Hello- you either have JavaScript turned off or an old version of Adobe s Flash Player. Get the latest Flash player." now.. I highly- highly doubt I have javascript turned off.

I think it s the flash player. So I click on the link to go to the flash player when I do- I press- "Agree and install now" I click that then I need to install "Active x control" well I did that so after that the windows come up to "install" and "windows needs your permission" blah blah so I agree to that junk then nothing happens =[

I did notice where it said there should be some junk up above it- there is just a big white box with a little icon that looks like a red square- green circle- and a blue triangle. If this is an easy fix.. I hope I didn t make myself look like an idiot =P

No comments: